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 82 83 | import styled, { css } from "styled-components"; import { CardHeading } from "ui/cards/Card"; export const SettingRow = styled.div` display: flex; padding-bottom: 3px; padding-top: 3px; border-bottom: 1px solid ${(props) => props.theme.colors.card.divider}; align-items: flex-start; padding: 3px 5px; box-sizing: border-box; min-height: 34px; ${CardHeading} + & { border-top: 1px solid ${(props) => props.theme.colors.card.divider}; } & > :nth-child(2) { max-width: 300px; } `; interface SettingRowLabelProps { $sectionHeading?: boolean; $indent?: number; } export const SettingRowLabel = styled.label<SettingRowLabelProps>` width: 300px; min-height: 28px; padding: 5px 0px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; font-size: ${(props) => props.theme.typography.fontSize}; ${(props) => props.$sectionHeading ? css` font-weight: bold; ` : ""} ${(props) => props.$indent ? css` padding-left: ${props.$indent * 20}px; ` : ""} `; export const SettingRowInput = styled.div` width: 300px; min-height: 28px; display: flex; justify-content: center; flex-direction: column; `; export const SettingRowUnits = styled.label` min-height: 28px; min-width: 30px; padding: 5px 0px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; margin-left: 10px; font-size: ${(props) => props.theme.typography.fontSize}; `; export const SettingsSidebarContainer = styled.div` background: ${(props) => props.theme.colors.card.background}; color: ${(props) => props.theme.colors.card.text}; padding: 0px 10px; border-top: 1px solid ${(props) => props.theme.colors.card.border}; width: 100%; box-sizing: border-box; ${SettingRow}:last-child { border-bottom: 0; } `; |