| 1 | .compact-ratio-controls { |
| 2 | display: flex; |
| 3 | flex-direction: column; |
| 4 | gap: 6px; |
| 5 | width: 100%; |
| 6 | } |
| 7 | |
| 8 | .compact-ratio-choice-list { |
| 9 | min-width: 0; |
| 10 | width: 100%; |
| 11 | margin: 0; |
| 12 | padding: 0; |
| 13 | border: 0; |
| 14 | border-top: 1px solid var(--border-soft); |
| 15 | } |
| 16 | |
| 17 | .compact-ratio-choice { |
| 18 | border-bottom: 1px solid var(--border-soft); |
| 19 | } |
| 20 | |
| 21 | .compact-ratio-choice__row { |
| 22 | display: grid; |
| 23 | grid-template-columns: 16px auto auto minmax(0, 1fr) auto; |
| 24 | align-items: center; |
| 25 | gap: 8px; |
| 26 | min-width: 0; |
| 27 | min-height: 40px; |
| 28 | padding: 8px 0; |
| 29 | color: var(--fg); |
| 30 | font-size: var(--font-control-small); |
| 31 | line-height: 1.35; |
| 32 | cursor: pointer; |
| 33 | } |
| 34 | |
| 35 | .compact-ratio-choice__row input[type="radio"] { |
| 36 | width: 14px; |
| 37 | height: 14px; |
| 38 | margin: 0; |
| 39 | accent-color: var(--accent); |
| 40 | } |
| 41 | |
| 42 | .compact-ratio-choice__name, |
| 43 | .compact-ratio-choice__percent { |
| 44 | font-weight: 650; |
| 45 | white-space: nowrap; |
| 46 | } |
| 47 | |
| 48 | .compact-ratio-choice__effect { |
| 49 | min-width: 0; |
| 50 | color: var(--fg-dim); |
| 51 | } |
| 52 | |
| 53 | .compact-ratio-choice__inline-input { |
| 54 | grid-column: 4 / -1; |
| 55 | justify-self: end; |
| 56 | display: flex; |
| 57 | align-items: center; |
| 58 | gap: 4px; |
| 59 | width: 116px; |
| 60 | min-width: 0; |
| 61 | padding: 0 8px; |
| 62 | border: 1px solid var(--border-soft); |
| 63 | border-radius: 6px; |
| 64 | color: var(--fg-faint); |
| 65 | font-size: var(--text-2xs); |
| 66 | overflow: hidden; |
| 67 | } |
| 68 | |
| 69 | .compact-ratio-choice__inline-input:focus-within { |
| 70 | border-color: var(--accent); |
| 71 | box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent); |
| 72 | } |
| 73 | |
| 74 | .compact-ratio-choice__inline-input:has(input[aria-invalid="true"]) { |
| 75 | border-color: var(--danger); |
| 76 | } |
| 77 | |
| 78 | .compact-ratio-choice__inline-input input { |
| 79 | width: 100%; |
| 80 | min-width: 0; |
| 81 | height: 28px; |
| 82 | padding: 0; |
| 83 | border: 0; |
| 84 | outline: 0; |
| 85 | background: transparent; |
| 86 | color: var(--fg); |
| 87 | font: inherit; |
| 88 | font-variant-numeric: tabular-nums; |
| 89 | text-align: right; |
| 90 | } |
| 91 | |
| 92 | .compact-ratio-choice__inline-input input::placeholder { |
| 93 | color: var(--fg-faint); |
| 94 | opacity: 1; |
| 95 | } |
| 96 | |
| 97 | /* The wrapper owns focus; override the shared settings focus-visible rule. */ |
| 98 | :root .settings-center .settings-page[data-layout] .compact-ratio-choice__inline-input input:focus, |
| 99 | :root .settings-center .settings-page[data-layout] .compact-ratio-choice__inline-input input:focus-visible { |
| 100 | outline: none; |
| 101 | box-shadow: none; |
| 102 | border: 0; |
| 103 | } |
| 104 | |
| 105 | .compact-ratio-choice__inline-input input::-webkit-inner-spin-button, |
| 106 | .compact-ratio-choice__inline-input input::-webkit-outer-spin-button { |
| 107 | margin: 0; |
| 108 | appearance: none; |
| 109 | } |
| 110 | |
| 111 | .compact-ratio-choice__inline-input > span { |
| 112 | flex: 0 0 auto; |
| 113 | } |
| 114 | |
| 115 | .compact-ratio-choice[data-selected="true"] .compact-ratio-choice__name, |
| 116 | .compact-ratio-choice[data-selected="true"] .compact-ratio-choice__percent { |
| 117 | color: var(--accent); |
| 118 | } |
| 119 | |
| 120 | .compact-ratio-choice__badge { |
| 121 | padding: 2px 6px; |
| 122 | border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); |
| 123 | border-radius: 999px; |
| 124 | background: var(--accent-soft); |
| 125 | color: var(--accent); |
| 126 | font-size: var(--text-2xs); |
| 127 | font-weight: 650; |
| 128 | line-height: 1.2; |
| 129 | white-space: nowrap; |
| 130 | } |
| 131 | |
| 132 | .compact-ratio-impact { |
| 133 | color: var(--fg-dim); |
| 134 | font-size: var(--text-2xs); |
| 135 | line-height: 1.45; |
| 136 | } |
| 137 | |
| 138 | @media (max-width: 520px) { |
| 139 | .compact-ratio-choice__row { |
| 140 | grid-template-columns: 16px auto auto minmax(0, 1fr); |
| 141 | } |
| 142 | |
| 143 | .compact-ratio-choice__badge { |
| 144 | grid-column: 2; |
| 145 | } |
| 146 | |
| 147 | .compact-ratio-choice__effect { |
| 148 | grid-column: 2 / -1; |
| 149 | } |
| 150 | |
| 151 | .compact-ratio-choice__inline-input { |
| 152 | grid-column: 4; |
| 153 | } |
| 154 | } |
| 155 |