|
123 | 123 | padding: 2.2rem 3rem;
|
124 | 124 | border-right: 1px solid var(--sk-back-4);
|
125 | 125 | background: var(--sk-back-3);
|
126 |
| - } |
127 | 126 |
|
128 |
| - .text :global(pre) { |
129 |
| - background: var(--sk-back-1); |
130 |
| - box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1); |
131 |
| - border-radius: var(--sk-border-radius); |
132 |
| - } |
| 127 | + :global { |
| 128 | + pre { |
| 129 | + background: var(--sk-back-1); |
| 130 | + box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1); |
| 131 | + border-radius: var(--sk-border-radius); |
133 | 132 |
|
134 |
| - .text :global(pre) :global(.highlight) { |
135 |
| - --color: rgba(220, 220, 0, 0.2); |
136 |
| - background: var(--color); |
137 |
| - outline: 2px solid var(--color); |
138 |
| - border-radius: 2px; |
139 |
| - } |
| 133 | + .highlight { |
| 134 | + --color: rgba(220, 220, 0, 0.2); |
| 135 | + background: var(--color); |
| 136 | + outline: 2px solid var(--color); |
| 137 | + border-radius: 2px; |
140 | 138 |
|
141 |
| - .text :global(pre) :global(.highlight.add) { |
142 |
| - --color: rgba(0, 255, 0, 0.18); |
143 |
| - } |
| 139 | + &.add { |
| 140 | + --color: rgba(0, 255, 0, 0.18); |
| 141 | + } |
144 | 142 |
|
145 |
| - .text :global(pre) :global(.highlight.remove) { |
146 |
| - --color: rgba(255, 0, 0, 0.1); |
147 |
| - } |
| 143 | + &.remove { |
| 144 | + --color: rgba(255, 0, 0, 0.1); |
148 | 145 |
|
149 |
| - :global(html.dark) .text :global(pre) :global(.highlight.remove) { |
150 |
| - --color: rgba(255, 0, 0, 0.27); |
151 |
| - } |
| 146 | + :root.dark & { |
| 147 | + --color: rgba(255, 0, 0, 0.27); |
| 148 | + } |
| 149 | + } |
| 150 | + } |
| 151 | + } |
152 | 152 |
|
153 |
| - /** this probably belongs in site-kit */ |
154 |
| - .text :global(p) :global(a) :global(code) { |
155 |
| - color: var(--sk-theme-1); |
156 |
| - background: rgba(255, 62, 0, 0.1); |
157 |
| - } |
| 153 | + p a code { |
| 154 | + color: var(--sk-theme-1); |
| 155 | + background: rgba(255, 62, 0, 0.1); |
| 156 | + } |
158 | 157 |
|
159 |
| - .text :global([data-file]), |
160 |
| - .text :global(.filename) { |
161 |
| - cursor: pointer; |
162 |
| - background-image: url($lib/icons/file-edit.svg); |
163 |
| - background-repeat: no-repeat; |
164 |
| - } |
| 158 | + [data-file], |
| 159 | + .filename { |
| 160 | + cursor: pointer; |
| 161 | + background-image: url($lib/icons/file-edit.svg); |
| 162 | + background-repeat: no-repeat; |
165 | 163 |
|
166 |
| - .text :global([data-file]) { |
167 |
| - background-position: 0.5rem 50%; |
168 |
| - background-size: 1rem 1rem; |
169 |
| - padding-left: 2rem; |
170 |
| - } |
| 164 | + :root.dark & { |
| 165 | + background-image: url($lib/icons/file-edit-inline-dark.svg); |
| 166 | + } |
| 167 | + } |
171 | 168 |
|
172 |
| - .text :global(.filename) { |
173 |
| - background-position: 1rem 54%; |
174 |
| - background-size: 1rem 1rem; |
175 |
| - padding-left: 2.5rem !important; |
176 |
| - } |
| 169 | + [data-file] { |
| 170 | + background-position: 0.5rem 50%; |
| 171 | + background-size: 1rem 1rem; |
| 172 | + padding-left: 2rem; |
| 173 | + } |
177 | 174 |
|
178 |
| - @media (prefers-color-scheme: dark) { |
179 |
| - .text :global([data-file]), |
180 |
| - .text :global(.filename) { |
181 |
| - background-image: url($lib/icons/file-edit-inline-dark.svg); |
182 |
| - } |
183 |
| - } |
| 175 | + .filename { |
| 176 | + background-position: 1rem 54%; |
| 177 | + background-size: 1rem 1rem; |
| 178 | + padding-left: 2.5rem !important; |
| 179 | + } |
184 | 180 |
|
185 |
| - .text :global(.desktop) { |
186 |
| - display: none; |
| 181 | + .desktop { |
| 182 | + display: none; |
| 183 | + } |
| 184 | + } |
187 | 185 | }
|
188 | 186 |
|
189 | 187 | footer {
|
|
193 | 191 | background: var(--sk-back-3);
|
194 | 192 | border-top: 1px solid var(--sk-back-4);
|
195 | 193 | border-right: 1px solid var(--sk-back-4);
|
196 |
| - } |
197 | 194 |
|
198 |
| - footer .edit { |
199 |
| - color: var(--sk-text-2); |
200 |
| - font-family: var(--sk-font-ui); |
201 |
| - font-size: var(--sk-font-size-ui-medium); |
202 |
| - padding: 0 0 0 1.4em; |
203 |
| - background: url($lib/icons/file-edit.svg) no-repeat 0 calc(50% - 0.1em); |
204 |
| - background-size: 1em 1em; |
| 195 | + .edit { |
| 196 | + color: var(--sk-text-2); |
| 197 | + font-family: var(--sk-font-ui); |
| 198 | + font-size: var(--sk-font-size-ui-medium); |
| 199 | + padding: 0 0 0 1.4em; |
| 200 | + background: url($lib/icons/file-edit.svg) no-repeat 0 calc(50% - 0.1em); |
| 201 | + background-size: 1em 1em; |
| 202 | + } |
205 | 203 | }
|
206 | 204 |
|
207 |
| - .modal-contents h2 { |
208 |
| - font-size: 2.4rem; |
209 |
| - margin: 0 0 0.5em 0; |
210 |
| - } |
| 205 | + .modal-contents { |
| 206 | + h2 { |
| 207 | + font-size: 2.4rem; |
| 208 | + margin: 0 0 0.5em 0; |
| 209 | + } |
211 | 210 |
|
212 |
| - .modal-contents label { |
213 |
| - user-select: none; |
214 |
| - } |
| 211 | + label { |
| 212 | + user-select: none; |
| 213 | + } |
215 | 214 |
|
216 |
| - .modal-contents button { |
217 |
| - display: block; |
218 |
| - background-color: var(--sk-theme-1); |
219 |
| - color: white; |
220 |
| - padding: 1rem; |
221 |
| - width: 10em; |
222 |
| - margin: 1em 0 0 0; |
223 |
| - border-radius: var(--sk-border-radius); |
224 |
| - line-height: 1; |
| 215 | + button { |
| 216 | + display: block; |
| 217 | + background-color: var(--sk-theme-1); |
| 218 | + color: white; |
| 219 | + padding: 1rem; |
| 220 | + width: 10em; |
| 221 | + margin: 1em 0 0 0; |
| 222 | + border-radius: var(--sk-border-radius); |
| 223 | + line-height: 1; |
| 224 | + } |
225 | 225 | }
|
226 | 226 |
|
227 |
| - @media (max-width: 800px) { |
| 227 | + @media (max-width: 799px) { |
228 | 228 | .text {
|
229 | 229 | border-right: none;
|
230 | 230 | }
|
|
0 commit comments