Changeset 35443 for main/trunk
- Timestamp:
- 2021-09-21T12:48:59+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/styles/_material.scss
r35442 r35443 4 4 //// 5 5 6 /* === Start theme definitions === */7 8 // When changing these the corresponding CSS variables must be updated9 $primary-bg-color-l1: #249ccf;10 $primary-bg-color: #2191c0;11 12 $accent-bg-color: #19769e;13 14 6 :root { 15 7 --primary-bg-color-l1: 36, 156, 207; … … 20 12 --accent-fg-color: 255, 255, 255; 21 13 14 // Main font color 22 15 --body-color: rgb(39, 39, 39); 16 // For the paper style, but more generally the neutral background color 17 --paper-color: #FCFCFC; 23 18 24 19 --primary-box-shadow: 0 2px 4px 0 #505050; 25 20 --primary-box-shadow-thin: 0 1px 3px 0 #666666; 26 21 22 // The brightness to reduce participating elements to on hover 27 23 --hover-brightness: 92%; 28 29 --paper-color: #FCFCFC;30 31 24 --border-radius: 0.3em; 32 33 25 --transition-duration: 0.15s; 26 34 27 35 28 @extend .theme-primary; … … 208 201 209 202 &:checked { 210 background-color: scale-color($primary-bg-color-l1, $alpha: -60%);203 background-color: rgba(var(--bg-color-raw), 0.4); 211 204 212 205 &::after { 213 206 transform: translatex(22px); 214 background-color: var(-- primary-bg-color-l1);207 background-color: var(--bg-color); 215 208 } 216 209 } … … 268 261 height: 8px; 269 262 border-radius: 4px; 270 background-color: scale-color($primary-bg-color-l1, $alpha: -70%);263 background-color: rgba(var(--bg-color-raw), 0.3); 271 264 272 265 transition-duration: var(--transition-duration); … … 285 278 286 279 &:hover { 287 background-color: scale-color($primary-bg-color-l1, $alpha: -60%);280 background-color: rgba(var(--bg-color-raw), 0.4); 288 281 } 289 282 } … … 305 298 306 299 &:hover { 307 background-color: scale-color($primary-bg-color-l1, $alpha: -70%);300 background-color: rgba(var(--bg-color-raw), 0.3); 308 301 } 309 302 } … … 376 369 .theme-primary { 377 370 --bg-color: rgb(var(--primary-bg-color)); 371 --bg-color-raw: var(--primary-bg-color); 378 372 --fg-color: rgb(var(--primary-fg-color)); 379 373 } … … 381 375 .theme-primary-l1 { 382 376 --bg-color: rgb(var(--primary-bg-color-l1)); 377 --bg-color-raw: var(--primary-bg-color-l1); 383 378 --fg-color: rgb(var(--primary-fg-color)); 384 379 } … … 386 381 .theme-error { 387 382 --bg-color: #f04848; 383 --bg-color-raw: 240, 72, 72; 388 384 } 389 385 390 386 .theme-flat { 391 387 --bg-color: transparent; 388 --bg-color-raw: transparent; 392 389 --fg-color: rgb(var(--primary-bg-color)); 393 390 … … 401 398 .theme-accent { 402 399 --bg-color: rgb(var(--accent-bg-color)); 400 --bg-color-raw: var(--accent-bg-color); 403 401 --fg-color: rgb(var(--accent-fg-color)); 404 402 }
Note:
See TracChangeset
for help on using the changeset viewer.