|
2 | 2 | max-width: 758px |
3 | 3 | width: 98% |
4 | 4 | margin-top: 5px |
5 | | - float: left |
| 5 | + float: left |
6 | 6 |
|
7 | 7 | textarea |
8 | 8 | display: none |
|
31 | 31 |
|
32 | 32 | .stream-model-block |
33 | 33 | position: relative |
34 | | - color: #333 |
| 34 | + color: var(--body-fg) |
35 | 35 |
|
36 | 36 | &__inner |
37 | 37 | box-shadow: 0 0 5px 2px rgba(0,0,0,0.1) |
|
75 | 75 | .streamblock__block__subtitle |
76 | 76 | font-weight: normal |
77 | 77 | font-size: 1em |
78 | | - opacity: 0.7 |
| 78 | + opacity: 0.6 |
79 | 79 | position: relative |
80 | 80 | margin: 0 |
81 | 81 |
|
|
118 | 118 | bottom: 0 |
119 | 119 | left: 0 |
120 | 120 | right: 0 |
121 | | - border: 1px dashed #AAA |
| 121 | + border: 1px dashed var(--border-color) |
122 | 122 | border-radius: 5px |
123 | 123 | background: rgba(255,255,255,0.1) |
124 | 124 |
|
125 | 125 | &:before |
126 | | - content: "+" |
| 126 | + content: "" |
127 | 127 | position: absolute |
128 | 128 | width: 30px |
129 | 129 | height: 30px |
|
132 | 132 | left: 50% |
133 | 133 | margin-top: -15px |
134 | 134 | margin-left: -15px |
135 | | - background: #309bbf |
| 135 | + background: var(--secondary) |
| 136 | + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16.729' height='16.728'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='2'%3E%3Cpath d='M8.364 2v12.728M14.728 8.364H2'/%3E%3C/g%3E%3C/svg%3E") |
| 137 | + background-position: 50% 50% |
| 138 | + background-repeat: no-repeat |
| 139 | + background-size: 18px |
136 | 140 | display: none |
137 | 141 | font-size: 28px |
138 | 142 | line-height: 30px |
|
145 | 149 |
|
146 | 150 | &__content |
147 | 151 | padding: 20px |
148 | | - background: #f5f5f5 |
| 152 | + background: var(--darkened-bg) |
149 | 153 |
|
150 | 154 | .model-field-content:after |
151 | 155 | content: "." |
|
173 | 177 | .stream-block__options |
174 | 178 | padding: 7px |
175 | 179 | text-align: right |
176 | | - background: #efefef |
| 180 | + background: var(--selected-bg) |
177 | 181 |
|
178 | 182 | .stream-block__option |
179 | 183 | display: inline-block |
|
194 | 198 | & > div |
195 | 199 | margin-bottom: 0.4em |
196 | 200 |
|
| 201 | + h1 |
| 202 | + color: var(--body-fg) |
| 203 | + |
197 | 204 | h2 |
198 | 205 | padding: 0 |
199 | 206 | text-shadow: none |
200 | 207 | border: none |
201 | 208 | background-image: none |
202 | 209 | font-size: 1.3em |
| 210 | + color: var(--body-fg) |
203 | 211 |
|
204 | 212 | h3 |
205 | 213 | padding: 0 |
|
208 | 216 | background-image: none |
209 | 217 | font-size: 1.1em |
210 | 218 | margin-bottom: 0.5em |
| 219 | + color: var(--body-fg) |
211 | 220 |
|
212 | 221 | h4 |
213 | 222 | font-weight: bold |
| 223 | + color: var(--body-fg) |
214 | 224 |
|
215 | 225 | blockquote |
216 | 226 | font-size: 1.1em |
|
239 | 249 | max-height: 150px |
240 | 250 |
|
241 | 251 | .stream-model-subblock |
242 | | - background: #e0e7eb |
| 252 | + background: var(--selected-bg) // #e0e7eb |
243 | 253 | padding: 10px |
244 | 254 | display: block |
245 | 255 | border-radius: 5px |
246 | 256 | margin-bottom: 10px |
247 | 257 | position: relative |
248 | 258 |
|
249 | 259 | .stream-btn |
250 | | - background: #78adbf |
| 260 | + background: var(--button-bg) |
251 | 261 | color: white !important |
252 | 262 | padding: 3px 7px |
253 | 263 | display: inline-block |
254 | 264 | border-radius: 2px |
255 | 265 | margin-top: 5px |
256 | 266 | font-weight: bold |
257 | 267 | user-select: none |
| 268 | + text-decoration: none |
258 | 269 |
|
259 | 270 | &:hover |
260 | | - background: #309bbf |
| 271 | + background: var(--button-hover-bg) |
261 | 272 |
|
262 | 273 | .add-another |
263 | 274 | margin-left: 10px |
|
279 | 290 | font-weight: bold |
280 | 291 | text-decoration: underline |
281 | 292 | cursor: pointer |
282 | | - color: #309bbf |
| 293 | + color: var(--link-fg) |
283 | 294 | user-select: none |
284 | 295 |
|
285 | 296 | /* Help text */ |
|
349 | 360 | .stream-model-subblock .subblock-move:hover |
350 | 361 | background-position: 0 -141px |
351 | 362 |
|
| 363 | +// grp |
| 364 | +:root |
| 365 | + --primary: #a9c8d5 |
| 366 | + --primary-fg: #000 |
| 367 | + --secondary: #309bbf |
| 368 | + --button-bg: #78adbf |
| 369 | + --button-hover-bg: #309bbf |
| 370 | + --selected-bg: #ececec |
| 371 | + --darkened-bg: #f5f5f5 |
| 372 | + --body-fg: #333 |
| 373 | + --link-fg: #309bbf |
| 374 | + --border-color: #AAA |
| 375 | + |
352 | 376 | /* for django skin */ |
353 | 377 | #content-main |
354 | 378 | .streamfield_app |
355 | 379 | .stream-model-block |
356 | 380 | .streamblock__block__title |
357 | | - background: #a9c8d5 |
358 | | - color: black |
| 381 | + background: var(--primary) |
| 382 | + color: var(--primary-fg) |
359 | 383 | margin: 0 |
360 | 384 | line-height: 20px |
361 | 385 | font-weight: normal |
|
383 | 407 |
|
384 | 408 | .collapse-handlers |
385 | 409 | .collapse-handler |
386 | | - color: #309bbf |
| 410 | + color: var(--link-fg) |
387 | 411 | font-weight: normal |
388 | 412 | font-size: 14px |
389 | 413 |
|
390 | 414 | .streamblock__block-handle, |
391 | 415 | .stream-model-subblock-handle |
392 | 416 | top: 5px |
393 | 417 |
|
| 418 | +.grp-button |
| 419 | + text-decoration: none |
| 420 | + |
0 commit comments