All files / src/components/settings SettingsLayout.tsx

0% Statements 0/11
100% Branches 0/0
0% Functions 0/3
0% Lines 0/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81                                                                                                                                                                 
import styled from "styled-components";
import { Card } from "ui/cards/Card";
 
export const SettingsPageWrapper = styled.div`
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
`;
 
export const SettingsMenuColumn = styled.div`
  width: 260px;
  height: calc(100vh - 38px);
  overflow-y: auto;
  padding: 20px;
  padding-right: 0;
  box-sizing: border-box;
 
  ${Card} {
    padding: 0;
  }
 
  ${Card} > * {
    border-bottom: 1px solid ${(props) => props.theme.colors.card.divider};
  }
 
  ${Card} > *:last-child {
    border-bottom: 0;
  }
`;
 
export const SettingsSearchWrapper = styled.div`
  padding: 5px;
`;
 
export const SettingsSearch = styled.input`
  padding: 5px;
  width: 100%;
  border-radius: 4px;
`;
 
export const SettingsMenuItem = styled.a`
  display: block;
  margin: 0;
  padding: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
 
  &:hover,
  &:focus {
    background: ${(props) => props.theme.colors.menu.hoverBackground};
    outline: none;
    box-shadow: none;
  }
 
  &:active {
    background: ${(props) => props.theme.colors.menu.activeBackground};
  }
`;
 
export const SettingsContentColumn = styled.div`
  width: 100%;
  flex-grow: 1;
  height: calc(100vh - 38px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  padding-bottom: 50vh;
  scroll-behavior: smooth;
 
  & > * {
    max-width: 980px;
    margin: 0 auto 20px;
  }
`;