From 9a3960a5e61e231e426fd00f25323ef70b64973d Mon Sep 17 00:00:00 2001
From: mattyrob <mattyrobuk@gmail.com>
Date: Wed, 30 Oct 2024 08:24:16 +0000
Subject: [PATCH] Migrate from @import to @use and @forward
---
src/wp-admin/css/colors/_admin.scss | 311 +++++++++---------
src/wp-admin/css/colors/_mixins.scss | 3 +
src/wp-admin/css/colors/blue/colors.scss | 24 +-
src/wp-admin/css/colors/coffee/colors.scss | 15 +-
src/wp-admin/css/colors/ectoplasm/colors.scss | 18 +-
src/wp-admin/css/colors/light/colors.scss | 41 ++-
src/wp-admin/css/colors/midnight/colors.scss | 14 +-
src/wp-admin/css/colors/modern/colors.scss | 24 +-
src/wp-admin/css/colors/ocean/colors.scss | 17 +-
src/wp-admin/css/colors/sunrise/colors.scss | 12 +-
10 files changed, 244 insertions(+), 235 deletions(-)
diff --git a/src/wp-admin/css/colors/_admin.scss b/src/wp-admin/css/colors/_admin.scss
index 40c497ba52..05009a35de 100644
|
a
|
b
|
|
| 1 | 1 | |
| 2 | 2 | @use 'sass:color'; |
| 3 | 3 | @use 'sass:string'; |
| 4 | | @import 'variables'; |
| 5 | | @import 'mixins'; |
| | 4 | @forward 'variables' show $scheme-name, $base-color, $body-background, $highlight-color, $notification-color, $form-checked, $icon-color, $text-color, $dashboard-accent-1, $dashboard-accent-2, $dashboard-icon-background, $button-color, $menu-highlight-text, $menu-highlight-icon, $menu-highlight-background, $menu-submenu-background, $menu-submenu-focus-text, $menu-submenu-text, $menu-bubble-text, $menu-collapse-text, $menu-collapse-focus-icon, $link, $link-focus, $low-contrast-theme; |
| | 5 | @use 'variables'; |
| | 6 | @use 'mixins'; |
| 6 | 7 | |
| 7 | 8 | /** |
| 8 | 9 | * This function name uses British English to maintain backward compatibility, as developers |
| … |
… |
|
| 13 | 14 | } |
| 14 | 15 | |
| 15 | 16 | body { |
| 16 | | background: $body-background; |
| | 17 | background: variables.$body-background; |
| 17 | 18 | } |
| 18 | 19 | |
| 19 | 20 | |
| 20 | 21 | /* Links */ |
| 21 | 22 | |
| 22 | 23 | a { |
| 23 | | color: $link; |
| | 24 | color: variables.$link; |
| 24 | 25 | |
| 25 | 26 | &:hover, |
| 26 | 27 | &:active, |
| 27 | 28 | &:focus { |
| 28 | | color: $link-focus; |
| | 29 | color: variables.$link-focus; |
| 29 | 30 | } |
| 30 | 31 | } |
| 31 | 32 | |
| … |
… |
span.wp-media-buttons-icon:before { |
| 38 | 39 | } |
| 39 | 40 | |
| 40 | 41 | .wp-core-ui .button-link { |
| 41 | | color: $link; |
| | 42 | color: variables.$link; |
| 42 | 43 | |
| 43 | 44 | &:hover, |
| 44 | 45 | &:active, |
| 45 | 46 | &:focus { |
| 46 | | color: $link-focus; |
| | 47 | color: variables.$link-focus; |
| 47 | 48 | } |
| 48 | 49 | } |
| 49 | 50 | |
| … |
… |
span.wp-media-buttons-icon:before { |
| 68 | 69 | /* Forms */ |
| 69 | 70 | |
| 70 | 71 | input[type=checkbox]:checked::before { |
| 71 | | content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour($form-checked)}%27%2F%3E%3C%2Fsvg%3E"); |
| | 72 | content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour(variables.$form-checked)}%27%2F%3E%3C%2Fsvg%3E"); |
| 72 | 73 | } |
| 73 | 74 | |
| 74 | 75 | input[type=radio]:checked::before { |
| 75 | | background: $form-checked; |
| | 76 | background: variables.$form-checked; |
| 76 | 77 | } |
| 77 | 78 | |
| 78 | 79 | .wp-core-ui input[type="reset"]:hover, |
| 79 | 80 | .wp-core-ui input[type="reset"]:active { |
| 80 | | color: $link-focus; |
| | 81 | color: variables.$link-focus; |
| 81 | 82 | } |
| 82 | 83 | |
| 83 | 84 | input[type="text"]:focus, |
| … |
… |
input[type="checkbox"]:focus, |
| 99 | 100 | input[type="radio"]:focus, |
| 100 | 101 | select:focus, |
| 101 | 102 | textarea:focus { |
| 102 | | border-color: $highlight-color; |
| 103 | | box-shadow: 0 0 0 1px $highlight-color; |
| | 103 | border-color: variables.$highlight-color; |
| | 104 | box-shadow: 0 0 0 1px variables.$highlight-color; |
| 104 | 105 | } |
| 105 | 106 | |
| 106 | 107 | |
| … |
… |
textarea:focus { |
| 137 | 138 | .button.active, |
| 138 | 139 | .button.active:focus, |
| 139 | 140 | .button.active:hover { |
| 140 | | border-color: $button-color; |
| | 141 | border-color: variables.$button-color; |
| 141 | 142 | color: color.adjust( #32373c, $lightness: -5% ); |
| 142 | | box-shadow: inset 0 2px 5px -3px $button-color; |
| | 143 | box-shadow: inset 0 2px 5px -3px variables.$button-color; |
| 143 | 144 | } |
| 144 | 145 | |
| 145 | 146 | .button.active:focus { |
| 146 | 147 | box-shadow: 0 0 0 1px #32373c; |
| 147 | 148 | } |
| 148 | 149 | |
| 149 | | @if ( $low-contrast-theme != "true" ) { |
| | 150 | @if ( variables.$low-contrast-theme != "true" ) { |
| 150 | 151 | .button, |
| 151 | 152 | .button-secondary { |
| 152 | | color: $highlight-color; |
| 153 | | border-color: $highlight-color; |
| | 153 | color: variables.$highlight-color; |
| | 154 | border-color: variables.$highlight-color; |
| 154 | 155 | } |
| 155 | 156 | |
| 156 | 157 | .button.hover, |
| 157 | 158 | .button:hover, |
| 158 | 159 | .button-secondary:hover{ |
| 159 | | border-color: color.adjust($highlight-color, $lightness: -10%); |
| 160 | | color: color.adjust($highlight-color, $lightness: -10%); |
| | 160 | border-color: color.adjust(variables.$highlight-color, $lightness: -10%); |
| | 161 | color: color.adjust(variables.$highlight-color, $lightness: -10%); |
| 161 | 162 | } |
| 162 | 163 | |
| 163 | 164 | .button.focus, |
| 164 | 165 | .button:focus, |
| 165 | 166 | .button-secondary:focus { |
| 166 | | border-color: color.adjust($highlight-color, $lightness: 10%); |
| 167 | | color: color.adjust($highlight-color, $lightness: -20%); |
| 168 | | box-shadow: 0 0 0 1px color.adjust($highlight-color, $lightness: 10%); |
| | 167 | border-color: color.adjust(variables.$highlight-color, $lightness: 10%); |
| | 168 | color: color.adjust(variables.$highlight-color, $lightness: -20%); |
| | 169 | box-shadow: 0 0 0 1px color.adjust(variables.$highlight-color, $lightness: 10%); |
| 169 | 170 | } |
| 170 | 171 | |
| 171 | 172 | .button-primary { |
| … |
… |
textarea:focus { |
| 176 | 177 | } |
| 177 | 178 | |
| 178 | 179 | .button-primary { |
| 179 | | @include button( $button-color ); |
| | 180 | @include mixins.button( variables.$button-color ); |
| 180 | 181 | } |
| 181 | 182 | |
| 182 | 183 | .button-group > .button.active { |
| 183 | | border-color: $button-color; |
| | 184 | border-color: variables.$button-color; |
| 184 | 185 | } |
| 185 | 186 | |
| 186 | 187 | .wp-ui-primary { |
| 187 | | color: $text-color; |
| 188 | | background-color: $base-color; |
| | 188 | color: variables.$text-color; |
| | 189 | background-color: variables.$base-color; |
| 189 | 190 | } |
| 190 | 191 | .wp-ui-text-primary { |
| 191 | | color: $base-color; |
| | 192 | color: variables.$base-color; |
| 192 | 193 | } |
| 193 | 194 | |
| 194 | 195 | .wp-ui-highlight { |
| 195 | | color: $menu-highlight-text; |
| 196 | | background-color: $menu-highlight-background; |
| | 196 | color: variables.$menu-highlight-text; |
| | 197 | background-color: variables.$menu-highlight-background; |
| 197 | 198 | } |
| 198 | 199 | .wp-ui-text-highlight { |
| 199 | | color: $menu-highlight-background; |
| | 200 | color: variables.$menu-highlight-background; |
| 200 | 201 | } |
| 201 | 202 | |
| 202 | 203 | .wp-ui-notification { |
| 203 | | color: $menu-bubble-text; |
| 204 | | background-color: $menu-bubble-background; |
| | 204 | color: variables.$menu-bubble-text; |
| | 205 | background-color: variables.$menu-bubble-background; |
| 205 | 206 | } |
| 206 | 207 | .wp-ui-text-notification { |
| 207 | | color: $menu-bubble-background; |
| | 208 | color: variables.$menu-bubble-background; |
| 208 | 209 | } |
| 209 | 210 | |
| 210 | 211 | .wp-ui-text-icon { |
| 211 | | color: $menu-icon; |
| | 212 | color: variables.$menu-icon; |
| 212 | 213 | } |
| 213 | 214 | } |
| 214 | 215 | |
| 215 | 216 | |
| 216 | 217 | /* List tables */ |
| 217 | | @if $low-contrast-theme == "true" { |
| | 218 | @if variables.$low-contrast-theme == "true" { |
| 218 | 219 | .wrap .page-title-action:hover { |
| 219 | | color: $menu-text; |
| 220 | | background-color: $menu-background; |
| | 220 | color: variables.$menu-text; |
| | 221 | background-color: variables.$menu-background; |
| 221 | 222 | } |
| 222 | 223 | } @else { |
| 223 | 224 | .wrap .page-title-action, |
| 224 | 225 | .wrap .page-title-action:active { |
| 225 | | border: 1px solid $highlight-color; |
| 226 | | color: $highlight-color; |
| | 226 | border: 1px solid variables.$highlight-color; |
| | 227 | color: variables.$highlight-color; |
| 227 | 228 | } |
| 228 | 229 | |
| 229 | 230 | .wrap .page-title-action:hover { |
| 230 | | color: color.adjust($highlight-color, $lightness: -10%); |
| 231 | | border-color: color.adjust($highlight-color, $lightness: -10%); |
| | 231 | color: color.adjust(variables.$highlight-color, $lightness: -10%); |
| | 232 | border-color: color.adjust(variables.$highlight-color, $lightness: -10%); |
| 232 | 233 | } |
| 233 | 234 | |
| 234 | 235 | .wrap .page-title-action:focus { |
| 235 | | border-color: color.adjust($highlight-color, $lightness: 10%); |
| 236 | | color: color.adjust($highlight-color, $lightness: -20%); |
| 237 | | box-shadow: 0 0 0 1px color.adjust($highlight-color, $lightness: 10%); |
| | 236 | border-color: color.adjust(variables.$highlight-color, $lightness: 10%); |
| | 237 | color: color.adjust(variables.$highlight-color, $lightness: -20%); |
| | 238 | box-shadow: 0 0 0 1px color.adjust(variables.$highlight-color, $lightness: 10%); |
| 238 | 239 | } |
| 239 | 240 | } |
| 240 | 241 | |
| 241 | 242 | .view-switch a.current:before { |
| 242 | | color: $menu-background; |
| | 243 | color: variables.$menu-background; |
| 243 | 244 | } |
| 244 | 245 | |
| 245 | 246 | .view-switch a:hover:before { |
| 246 | | color: $menu-bubble-background; |
| | 247 | color: variables.$menu-bubble-background; |
| 247 | 248 | } |
| 248 | 249 | |
| 249 | 250 | |
| … |
… |
textarea:focus { |
| 252 | 253 | #adminmenuback, |
| 253 | 254 | #adminmenuwrap, |
| 254 | 255 | #adminmenu { |
| 255 | | background: $menu-background; |
| | 256 | background: variables.$menu-background; |
| 256 | 257 | } |
| 257 | 258 | |
| 258 | 259 | #adminmenu a { |
| 259 | | color: $menu-text; |
| | 260 | color: variables.$menu-text; |
| 260 | 261 | } |
| 261 | 262 | |
| 262 | 263 | #adminmenu div.wp-menu-image:before { |
| 263 | | color: $menu-icon; |
| | 264 | color: variables.$menu-icon; |
| 264 | 265 | } |
| 265 | 266 | |
| 266 | 267 | #adminmenu a:hover, |
| 267 | 268 | #adminmenu li.menu-top:hover, |
| 268 | 269 | #adminmenu li.opensub > a.menu-top, |
| 269 | 270 | #adminmenu li > a.menu-top:focus { |
| 270 | | color: $menu-highlight-text; |
| 271 | | background-color: $menu-highlight-background; |
| | 271 | color: variables.$menu-highlight-text; |
| | 272 | background-color: variables.$menu-highlight-background; |
| 272 | 273 | } |
| 273 | 274 | |
| 274 | 275 | #adminmenu li.menu-top:hover div.wp-menu-image:before, |
| 275 | 276 | #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { |
| 276 | | color: $menu-highlight-icon; |
| | 277 | color: variables.$menu-highlight-icon; |
| 277 | 278 | } |
| 278 | 279 | |
| 279 | 280 | |
| … |
… |
textarea:focus { |
| 282 | 283 | .about-wrap .nav-tab-active, |
| 283 | 284 | .nav-tab-active, |
| 284 | 285 | .nav-tab-active:hover { |
| 285 | | background-color: $body-background; |
| 286 | | border-bottom-color: $body-background; |
| | 286 | background-color: variables.$body-background; |
| | 287 | border-bottom-color: variables.$body-background; |
| 287 | 288 | } |
| 288 | 289 | |
| 289 | 290 | |
| … |
… |
textarea:focus { |
| 293 | 294 | #adminmenu .wp-has-current-submenu .wp-submenu, |
| 294 | 295 | #adminmenu .wp-has-current-submenu.opensub .wp-submenu, |
| 295 | 296 | #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { |
| 296 | | background: $menu-submenu-background; |
| | 297 | background: variables.$menu-submenu-background; |
| 297 | 298 | } |
| 298 | 299 | |
| 299 | 300 | #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, |
| 300 | 301 | #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { |
| 301 | | border-right-color: $menu-submenu-background; |
| | 302 | border-right-color: variables.$menu-submenu-background; |
| 302 | 303 | } |
| 303 | 304 | |
| 304 | 305 | #adminmenu .wp-submenu .wp-submenu-head { |
| 305 | | color: $menu-submenu-text; |
| | 306 | color: variables.$menu-submenu-text; |
| 306 | 307 | } |
| 307 | 308 | |
| 308 | 309 | #adminmenu .wp-submenu a, |
| 309 | 310 | #adminmenu .wp-has-current-submenu .wp-submenu a, |
| 310 | 311 | #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, |
| 311 | 312 | #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { |
| 312 | | color: $menu-submenu-text; |
| | 313 | color: variables.$menu-submenu-text; |
| 313 | 314 | |
| 314 | 315 | &:focus, &:hover { |
| 315 | | color: $menu-submenu-focus-text; |
| | 316 | color: variables.$menu-submenu-focus-text; |
| 316 | 317 | } |
| 317 | 318 | } |
| 318 | 319 | |
| … |
… |
textarea:focus { |
| 322 | 323 | #adminmenu .wp-submenu li.current a, |
| 323 | 324 | #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, |
| 324 | 325 | #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { |
| 325 | | color: $menu-submenu-current-text; |
| | 326 | color: variables.$menu-submenu-current-text; |
| 326 | 327 | |
| 327 | 328 | &:hover, &:focus { |
| 328 | | color: $menu-submenu-focus-text; |
| | 329 | color: variables.$menu-submenu-focus-text; |
| 329 | 330 | } |
| 330 | 331 | } |
| 331 | 332 | |
| 332 | 333 | ul#adminmenu a.wp-has-current-submenu:after, |
| 333 | 334 | ul#adminmenu > li.current > a.current:after { |
| 334 | | border-right-color: $body-background; |
| | 335 | border-right-color: variables.$body-background; |
| 335 | 336 | } |
| 336 | 337 | |
| 337 | 338 | #adminmenu li.current a.menu-top, |
| 338 | 339 | #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, |
| 339 | 340 | #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, |
| 340 | 341 | .folded #adminmenu li.current.menu-top { |
| 341 | | color: $menu-current-text; |
| 342 | | background: $menu-current-background; |
| | 342 | color: variables.$menu-current-text; |
| | 343 | background: variables.$menu-current-background; |
| 343 | 344 | } |
| 344 | 345 | |
| 345 | 346 | #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, |
| … |
… |
ul#adminmenu > li.current > a.current:after { |
| 350 | 351 | #adminmenu li:hover div.wp-menu-image:before, |
| 351 | 352 | #adminmenu li a:focus div.wp-menu-image:before, |
| 352 | 353 | #adminmenu li.opensub div.wp-menu-image:before { |
| 353 | | color: $menu-current-icon; |
| | 354 | color: variables.$menu-current-icon; |
| 354 | 355 | } |
| 355 | 356 | |
| 356 | 357 | |
| … |
… |
ul#adminmenu > li.current > a.current:after { |
| 359 | 360 | #adminmenu .menu-counter, |
| 360 | 361 | #adminmenu .awaiting-mod, |
| 361 | 362 | #adminmenu .update-plugins { |
| 362 | | color: $menu-bubble-text; |
| 363 | | background: $menu-bubble-background; |
| | 363 | color: variables.$menu-bubble-text; |
| | 364 | background: variables.$menu-bubble-background; |
| 364 | 365 | } |
| 365 | 366 | |
| 366 | 367 | #adminmenu li.current a .awaiting-mod, |
| 367 | 368 | #adminmenu li a.wp-has-current-submenu .update-plugins, |
| 368 | 369 | #adminmenu li:hover a .awaiting-mod, |
| 369 | 370 | #adminmenu li.menu-top:hover > a .update-plugins { |
| 370 | | color: $menu-bubble-current-text; |
| 371 | | background: $menu-bubble-current-background; |
| | 371 | color: variables.$menu-bubble-current-text; |
| | 372 | background: variables.$menu-bubble-current-background; |
| 372 | 373 | } |
| 373 | 374 | |
| 374 | 375 | |
| 375 | 376 | /* Admin Menu: collapse button */ |
| 376 | 377 | |
| 377 | 378 | #collapse-button { |
| 378 | | color: $menu-collapse-text; |
| | 379 | color: variables.$menu-collapse-text; |
| 379 | 380 | } |
| 380 | 381 | |
| 381 | 382 | #collapse-button:hover, |
| 382 | 383 | #collapse-button:focus { |
| 383 | | color: $menu-submenu-focus-text; |
| | 384 | color: variables.$menu-submenu-focus-text; |
| 384 | 385 | } |
| 385 | 386 | |
| 386 | 387 | /* Admin Bar */ |
| 387 | 388 | |
| 388 | 389 | #wpadminbar { |
| 389 | | color: $menu-text; |
| 390 | | background: $menu-background; |
| | 390 | color: variables.$menu-text; |
| | 391 | background: variables.$menu-background; |
| 391 | 392 | } |
| 392 | 393 | |
| 393 | 394 | #wpadminbar .ab-item, |
| 394 | 395 | #wpadminbar a.ab-item, |
| 395 | 396 | #wpadminbar > #wp-toolbar span.ab-label, |
| 396 | 397 | #wpadminbar > #wp-toolbar span.noticon { |
| 397 | | color: $menu-text; |
| | 398 | color: variables.$menu-text; |
| 398 | 399 | } |
| 399 | 400 | |
| 400 | 401 | #wpadminbar .ab-icon, |
| 401 | 402 | #wpadminbar .ab-icon:before, |
| 402 | 403 | #wpadminbar .ab-item:before, |
| 403 | 404 | #wpadminbar .ab-item:after { |
| 404 | | color: $menu-icon; |
| | 405 | color: variables.$menu-icon; |
| 405 | 406 | } |
| 406 | 407 | |
| 407 | 408 | #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, |
| … |
… |
ul#adminmenu > li.current > a.current:after { |
| 409 | 410 | #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, |
| 410 | 411 | #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, |
| 411 | 412 | #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { |
| 412 | | color: $menu-submenu-focus-text; |
| 413 | | background: $menu-submenu-background; |
| | 413 | color: variables.$menu-submenu-focus-text; |
| | 414 | background: variables.$menu-submenu-background; |
| 414 | 415 | } |
| 415 | 416 | |
| 416 | 417 | #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, |
| 417 | 418 | #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, |
| 418 | 419 | #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { |
| 419 | | color: $menu-submenu-focus-text; |
| | 420 | color: variables.$menu-submenu-focus-text; |
| 420 | 421 | } |
| 421 | 422 | |
| 422 | 423 | #wpadminbar:not(.mobile) li:hover .ab-icon:before, |
| 423 | 424 | #wpadminbar:not(.mobile) li:hover .ab-item:before, |
| 424 | 425 | #wpadminbar:not(.mobile) li:hover .ab-item:after, |
| 425 | 426 | #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { |
| 426 | | color: $menu-submenu-focus-text; |
| | 427 | color: variables.$menu-submenu-focus-text; |
| 427 | 428 | } |
| 428 | 429 | |
| 429 | 430 | |
| 430 | 431 | /* Admin Bar: submenu */ |
| 431 | 432 | |
| 432 | 433 | #wpadminbar .menupop .ab-sub-wrapper { |
| 433 | | background: $menu-submenu-background; |
| | 434 | background: variables.$menu-submenu-background; |
| 434 | 435 | } |
| 435 | 436 | |
| 436 | 437 | #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, |
| 437 | 438 | #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { |
| 438 | | background: $menu-submenu-background-alt; |
| | 439 | background: variables.$menu-submenu-background-alt; |
| 439 | 440 | } |
| 440 | 441 | |
| 441 | 442 | #wpadminbar .ab-submenu .ab-item, |
| 442 | 443 | #wpadminbar .quicklinks .menupop ul li a, |
| 443 | 444 | #wpadminbar .quicklinks .menupop.hover ul li a, |
| 444 | 445 | #wpadminbar.nojs .quicklinks .menupop:hover ul li a { |
| 445 | | color: $menu-submenu-text; |
| | 446 | color: variables.$menu-submenu-text; |
| 446 | 447 | } |
| 447 | 448 | |
| 448 | 449 | #wpadminbar .quicklinks li .blavatar, |
| 449 | 450 | #wpadminbar .menupop .menupop > .ab-item:before { |
| 450 | | color: $menu-icon; |
| | 451 | color: variables.$menu-icon; |
| 451 | 452 | } |
| 452 | 453 | |
| 453 | 454 | #wpadminbar .quicklinks .menupop ul li a:hover, |
| … |
… |
ul#adminmenu > li.current > a.current:after { |
| 468 | 469 | #wpadminbar li.hover .ab-item:before, |
| 469 | 470 | #wpadminbar li:hover #adminbarsearch:before, |
| 470 | 471 | #wpadminbar li #adminbarsearch.adminbar-focused:before { |
| 471 | | color: $menu-submenu-focus-text; |
| | 472 | color: variables.$menu-submenu-focus-text; |
| 472 | 473 | } |
| 473 | 474 | |
| 474 | 475 | #wpadminbar .quicklinks li a:hover .blavatar, |
| … |
… |
ul#adminmenu > li.current > a.current:after { |
| 477 | 478 | #wpadminbar .menupop .menupop > .ab-item:hover:before, |
| 478 | 479 | #wpadminbar.mobile .quicklinks .ab-icon:before, |
| 479 | 480 | #wpadminbar.mobile .quicklinks .ab-item:before { |
| 480 | | color: $menu-submenu-focus-text; |
| | 481 | color: variables.$menu-submenu-focus-text; |
| 481 | 482 | } |
| 482 | 483 | |
| 483 | 484 | #wpadminbar.mobile .quicklinks .hover .ab-icon:before, |
| 484 | 485 | #wpadminbar.mobile .quicklinks .hover .ab-item:before { |
| 485 | | color: $menu-icon; |
| | 486 | color: variables.$menu-icon; |
| 486 | 487 | } |
| 487 | 488 | |
| 488 | 489 | |
| 489 | 490 | /* Admin Bar: search */ |
| 490 | 491 | |
| 491 | 492 | #wpadminbar #adminbarsearch:before { |
| 492 | | color: $menu-icon; |
| | 493 | color: variables.$menu-icon; |
| 493 | 494 | } |
| 494 | 495 | |
| 495 | 496 | #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { |
| 496 | | color: $menu-text; |
| 497 | | background: $adminbar-input-background; |
| | 497 | color: variables.$menu-text; |
| | 498 | background: variables.$adminbar-input-background; |
| 498 | 499 | } |
| 499 | 500 | |
| 500 | 501 | /* Admin Bar: recovery mode */ |
| 501 | 502 | |
| 502 | 503 | #wpadminbar #wp-admin-bar-recovery-mode { |
| 503 | | color: $adminbar-recovery-exit-text; |
| 504 | | background-color: $adminbar-recovery-exit-background; |
| | 504 | color: variables.$adminbar-recovery-exit-text; |
| | 505 | background-color: variables.$adminbar-recovery-exit-background; |
| 505 | 506 | } |
| 506 | 507 | |
| 507 | 508 | #wpadminbar #wp-admin-bar-recovery-mode .ab-item, |
| 508 | 509 | #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { |
| 509 | | color: $adminbar-recovery-exit-text; |
| | 510 | color: variables.$adminbar-recovery-exit-text; |
| 510 | 511 | } |
| 511 | 512 | |
| 512 | 513 | #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item, |
| 513 | 514 | #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, |
| 514 | 515 | #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, |
| 515 | 516 | #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { |
| 516 | | color: $adminbar-recovery-exit-text; |
| 517 | | background-color: $adminbar-recovery-exit-background-alt; |
| | 517 | color: variables.$adminbar-recovery-exit-text; |
| | 518 | background-color: variables.$adminbar-recovery-exit-background-alt; |
| 518 | 519 | } |
| 519 | 520 | |
| 520 | 521 | /* Admin Bar: my account */ |
| 521 | 522 | |
| 522 | 523 | #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { |
| 523 | | border-color: $adminbar-avatar-frame; |
| 524 | | background-color: $adminbar-avatar-frame; |
| | 524 | border-color: variables.$adminbar-avatar-frame; |
| | 525 | background-color: variables.$adminbar-avatar-frame; |
| 525 | 526 | } |
| 526 | 527 | |
| 527 | 528 | #wpadminbar #wp-admin-bar-user-info .display-name { |
| 528 | | color: $menu-text; |
| | 529 | color: variables.$menu-text; |
| 529 | 530 | } |
| 530 | 531 | |
| 531 | 532 | #wpadminbar #wp-admin-bar-user-info a:hover .display-name { |
| 532 | | color: $menu-submenu-focus-text; |
| | 533 | color: variables.$menu-submenu-focus-text; |
| 533 | 534 | } |
| 534 | 535 | |
| 535 | 536 | #wpadminbar #wp-admin-bar-user-info .username { |
| 536 | | color: $menu-submenu-text; |
| | 537 | color: variables.$menu-submenu-text; |
| 537 | 538 | } |
| 538 | 539 | |
| 539 | 540 | |
| 540 | 541 | /* Pointers */ |
| 541 | 542 | |
| 542 | 543 | .wp-pointer .wp-pointer-content h3 { |
| 543 | | background-color: $highlight-color; |
| 544 | | border-color: color.adjust( $highlight-color, $lightness: -5% ); |
| | 544 | background-color: variables.$highlight-color; |
| | 545 | border-color: color.adjust( variables.$highlight-color, $lightness: -5% ); |
| 545 | 546 | } |
| 546 | 547 | |
| 547 | 548 | .wp-pointer .wp-pointer-content h3:before { |
| 548 | | color: $highlight-color; |
| | 549 | color: variables.$highlight-color; |
| 549 | 550 | } |
| 550 | 551 | |
| 551 | 552 | .wp-pointer.wp-pointer-top .wp-pointer-arrow, |
| 552 | 553 | .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, |
| 553 | 554 | .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, |
| 554 | 555 | .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { |
| 555 | | border-bottom-color: $highlight-color; |
| | 556 | border-bottom-color: variables.$highlight-color; |
| 556 | 557 | } |
| 557 | 558 | |
| 558 | 559 | |
| … |
… |
ul#adminmenu > li.current > a.current:after { |
| 560 | 561 | |
| 561 | 562 | .media-item .bar, |
| 562 | 563 | .media-progress-bar div { |
| 563 | | background-color: $highlight-color; |
| | 564 | background-color: variables.$highlight-color; |
| 564 | 565 | } |
| 565 | 566 | |
| 566 | 567 | .details.attachment { |
| 567 | 568 | box-shadow: |
| 568 | 569 | inset 0 0 0 3px #fff, |
| 569 | | inset 0 0 0 7px $highlight-color; |
| | 570 | inset 0 0 0 7px variables.$highlight-color; |
| 570 | 571 | } |
| 571 | 572 | |
| 572 | 573 | .attachment.details .check { |
| 573 | | background-color: $highlight-color; |
| 574 | | box-shadow: 0 0 0 1px #fff, 0 0 0 2px $highlight-color; |
| | 574 | background-color: variables.$highlight-color; |
| | 575 | box-shadow: 0 0 0 1px #fff, 0 0 0 2px variables.$highlight-color; |
| 575 | 576 | } |
| 576 | 577 | |
| 577 | 578 | .media-selection .attachment.selection.details .thumbnail { |
| 578 | | box-shadow: 0 0 0 1px #fff, 0 0 0 3px $highlight-color; |
| | 579 | box-shadow: 0 0 0 1px #fff, 0 0 0 3px variables.$highlight-color; |
| 579 | 580 | } |
| 580 | 581 | |
| 581 | 582 | |
| … |
… |
ul#adminmenu > li.current > a.current:after { |
| 584 | 585 | .theme-browser .theme.active .theme-name, |
| 585 | 586 | .theme-browser .theme.add-new-theme a:hover:after, |
| 586 | 587 | .theme-browser .theme.add-new-theme a:focus:after { |
| 587 | | background: $highlight-color; |
| | 588 | background: variables.$highlight-color; |
| 588 | 589 | } |
| 589 | 590 | |
| 590 | 591 | .theme-browser .theme.add-new-theme a:hover span:after, |
| 591 | 592 | .theme-browser .theme.add-new-theme a:focus span:after { |
| 592 | | color: $highlight-color; |
| | 593 | color: variables.$highlight-color; |
| 593 | 594 | } |
| 594 | 595 | |
| 595 | 596 | .theme-section.current, |
| 596 | 597 | .theme-filter.current { |
| 597 | | border-bottom-color: $menu-background; |
| | 598 | border-bottom-color: variables.$menu-background; |
| 598 | 599 | } |
| 599 | 600 | |
| 600 | 601 | body.more-filters-opened .more-filters { |
| 601 | | color: $menu-text; |
| 602 | | background-color: $menu-background; |
| | 602 | color: variables.$menu-text; |
| | 603 | background-color: variables.$menu-background; |
| 603 | 604 | } |
| 604 | 605 | |
| 605 | 606 | body.more-filters-opened .more-filters:before { |
| 606 | | color: $menu-text; |
| | 607 | color: variables.$menu-text; |
| 607 | 608 | } |
| 608 | 609 | |
| 609 | 610 | body.more-filters-opened .more-filters:hover, |
| 610 | 611 | body.more-filters-opened .more-filters:focus { |
| 611 | | background-color: $menu-highlight-background; |
| 612 | | color: $menu-highlight-text; |
| | 612 | background-color: variables.$menu-highlight-background; |
| | 613 | color: variables.$menu-highlight-text; |
| 613 | 614 | } |
| 614 | 615 | |
| 615 | 616 | body.more-filters-opened .more-filters:hover:before, |
| 616 | 617 | body.more-filters-opened .more-filters:focus:before { |
| 617 | | color: $menu-highlight-text; |
| | 618 | color: variables.$menu-highlight-text; |
| 618 | 619 | } |
| 619 | 620 | |
| 620 | 621 | /* Widgets */ |
| 621 | 622 | |
| 622 | 623 | .widgets-chooser li.widgets-chooser-selected { |
| 623 | | background-color: $menu-highlight-background; |
| 624 | | color: $menu-highlight-text; |
| | 624 | background-color: variables.$menu-highlight-background; |
| | 625 | color: variables.$menu-highlight-text; |
| 625 | 626 | } |
| 626 | 627 | |
| 627 | 628 | .widgets-chooser li.widgets-chooser-selected:before, |
| 628 | 629 | .widgets-chooser li.widgets-chooser-selected:focus:before { |
| 629 | | color: $menu-highlight-text; |
| | 630 | color: variables.$menu-highlight-text; |
| 630 | 631 | } |
| 631 | 632 | |
| 632 | 633 | |
| … |
… |
body.more-filters-opened .more-filters:focus:before { |
| 634 | 635 | |
| 635 | 636 | .nav-menus-php .item-edit:focus:before { |
| 636 | 637 | box-shadow: |
| 637 | | 0 0 0 1px color.adjust($button-color, $lightness: 10%), |
| 638 | | 0 0 2px 1px $button-color; |
| | 638 | 0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%), |
| | 639 | 0 0 2px 1px variables.$button-color; |
| 639 | 640 | } |
| 640 | 641 | |
| 641 | 642 | |
| 642 | 643 | /* Responsive Component */ |
| 643 | 644 | |
| 644 | 645 | div#wp-responsive-toggle a:before { |
| 645 | | color: $menu-icon; |
| | 646 | color: variables.$menu-icon; |
| 646 | 647 | } |
| 647 | 648 | |
| 648 | 649 | .wp-responsive-open div#wp-responsive-toggle a { |
| 649 | 650 | // ToDo: make inset border |
| 650 | 651 | border-color: transparent; |
| 651 | | background: $menu-highlight-background; |
| | 652 | background: variables.$menu-highlight-background; |
| 652 | 653 | } |
| 653 | 654 | |
| 654 | 655 | .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { |
| 655 | | background: $menu-submenu-background; |
| | 656 | background: variables.$menu-submenu-background; |
| 656 | 657 | } |
| 657 | 658 | |
| 658 | 659 | .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { |
| 659 | | color: $menu-icon; |
| | 660 | color: variables.$menu-icon; |
| 660 | 661 | } |
| 661 | 662 | |
| 662 | 663 | /* TinyMCE */ |
| … |
… |
div#wp-responsive-toggle a:before { |
| 666 | 667 | .mce-container.mce-menu .mce-menu-item:focus, |
| 667 | 668 | .mce-container.mce-menu .mce-menu-item-normal.mce-active, |
| 668 | 669 | .mce-container.mce-menu .mce-menu-item-preview.mce-active { |
| 669 | | background: $highlight-color; |
| | 670 | background: variables.$highlight-color; |
| 670 | 671 | } |
| 671 | 672 | |
| 672 | 673 | /* Customizer */ |
| … |
… |
div#wp-responsive-toggle a:before { |
| 675 | 676 | #customize-controls .control-section .accordion-section-title:hover, |
| 676 | 677 | #customize-controls .control-section.open .accordion-section-title, |
| 677 | 678 | #customize-controls .control-section .accordion-section-title:focus { |
| 678 | | color: $link; |
| 679 | | border-left-color: $button-color; |
| | 679 | color: variables.$link; |
| | 680 | border-left-color: variables.$button-color; |
| 680 | 681 | } |
| 681 | 682 | |
| 682 | 683 | .customize-controls-close:focus, |
| 683 | 684 | .customize-controls-close:hover, |
| 684 | 685 | .customize-controls-preview-toggle:focus, |
| 685 | 686 | .customize-controls-preview-toggle:hover { |
| 686 | | color: $link; |
| 687 | | border-top-color: $button-color; |
| | 687 | color: variables.$link; |
| | 688 | border-top-color: variables.$button-color; |
| 688 | 689 | } |
| 689 | 690 | |
| 690 | 691 | .customize-panel-back:hover, |
| 691 | 692 | .customize-panel-back:focus, |
| 692 | 693 | .customize-section-back:hover, |
| 693 | 694 | .customize-section-back:focus { |
| 694 | | color: $link; |
| 695 | | border-left-color: $button-color; |
| | 695 | color: variables.$link; |
| | 696 | border-left-color: variables.$button-color; |
| 696 | 697 | } |
| 697 | 698 | |
| 698 | 699 | .customize-screen-options-toggle:hover, |
| … |
… |
div#wp-responsive-toggle a:before { |
| 702 | 703 | #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, |
| 703 | 704 | #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, |
| 704 | 705 | #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { |
| 705 | | color: $link; |
| | 706 | color: variables.$link; |
| 706 | 707 | } |
| 707 | 708 | |
| 708 | 709 | .customize-screen-options-toggle:focus:before, |
| … |
… |
div#wp-responsive-toggle a:before { |
| 713 | 714 | #customize-save-button-wrapper .save:focus, |
| 714 | 715 | #publish-settings:focus { |
| 715 | 716 | box-shadow: |
| 716 | | 0 0 0 1px color.adjust($button-color, $lightness: 10%), |
| 717 | | 0 0 2px 1px $button-color; |
| | 717 | 0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%), |
| | 718 | 0 0 2px 1px variables.$button-color; |
| 718 | 719 | } |
| 719 | 720 | |
| 720 | 721 | #customize-controls .customize-info.open .customize-help-toggle, |
| 721 | 722 | #customize-controls .customize-info .customize-help-toggle:focus, |
| 722 | 723 | #customize-controls .customize-info .customize-help-toggle:hover { |
| 723 | | color: $link; |
| | 724 | color: variables.$link; |
| 724 | 725 | } |
| 725 | 726 | |
| 726 | 727 | .control-panel-themes .customize-themes-section-title:focus, |
| 727 | 728 | .control-panel-themes .customize-themes-section-title:hover { |
| 728 | | border-left-color: $button-color; |
| 729 | | color: $link; |
| | 729 | border-left-color: variables.$button-color; |
| | 730 | color: variables.$link; |
| 730 | 731 | } |
| 731 | 732 | |
| 732 | 733 | .control-panel-themes .theme-section .customize-themes-section-title.selected:after { |
| 733 | | background: $button-color; |
| | 734 | background: variables.$button-color; |
| 734 | 735 | } |
| 735 | 736 | |
| 736 | 737 | .control-panel-themes .customize-themes-section-title.selected { |
| 737 | | color: $link; |
| | 738 | color: variables.$link; |
| 738 | 739 | } |
| 739 | 740 | |
| 740 | 741 | #customize-theme-controls .control-section:hover > .accordion-section-title:after, |
| … |
… |
div#wp-responsive-toggle a:before { |
| 745 | 746 | #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, |
| 746 | 747 | #customize-outer-theme-controls .control-section.open .accordion-section-title:after, |
| 747 | 748 | #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { |
| 748 | | color: $link; |
| | 749 | color: variables.$link; |
| 749 | 750 | } |
| 750 | 751 | |
| 751 | 752 | .customize-control .attachment-media-view .button-add-media:focus { |
| 752 | 753 | background-color: #fbfbfc; |
| 753 | | border-color: $button-color; |
| | 754 | border-color: variables.$button-color; |
| 754 | 755 | border-style: solid; |
| 755 | | box-shadow: 0 0 0 1px $button-color; |
| | 756 | box-shadow: 0 0 0 1px variables.$button-color; |
| 756 | 757 | outline: 2px solid transparent; |
| 757 | 758 | } |
| 758 | 759 | |
| 759 | 760 | .wp-full-overlay-footer .devices button:focus, |
| 760 | 761 | .wp-full-overlay-footer .devices button.active:hover { |
| 761 | | border-bottom-color: $button-color; |
| | 762 | border-bottom-color: variables.$button-color; |
| 762 | 763 | } |
| 763 | 764 | |
| 764 | 765 | .wp-full-overlay-footer .devices button:hover:before, |
| 765 | 766 | .wp-full-overlay-footer .devices button:focus:before { |
| 766 | | color: $button-color; |
| | 767 | color: variables.$button-color; |
| 767 | 768 | } |
| 768 | 769 | |
| 769 | 770 | .wp-full-overlay .collapse-sidebar:hover, |
| 770 | 771 | .wp-full-overlay .collapse-sidebar:focus { |
| 771 | | color: $button-color; |
| | 772 | color: variables.$button-color; |
| 772 | 773 | } |
| 773 | 774 | |
| 774 | 775 | .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, |
| 775 | 776 | .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { |
| 776 | 777 | box-shadow: |
| 777 | | 0 0 0 1px color.adjust($button-color, $lightness: 10%), |
| 778 | | 0 0 2px 1px $button-color; |
| | 778 | 0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%), |
| | 779 | 0 0 2px 1px variables.$button-color; |
| 779 | 780 | } |
| 780 | 781 | |
| 781 | 782 | &.wp-customizer .theme-overlay .theme-header .close:focus, |
| … |
… |
div#wp-responsive-toggle a:before { |
| 784 | 785 | &.wp-customizer .theme-overlay .theme-header .right:hover, |
| 785 | 786 | &.wp-customizer .theme-overlay .theme-header .left:focus, |
| 786 | 787 | &.wp-customizer .theme-overlay .theme-header .left:hover { |
| 787 | | border-bottom-color: $button-color; |
| 788 | | color: $link; |
| | 788 | border-bottom-color: variables.$button-color; |
| | 789 | color: variables.$link; |
| 789 | 790 | } |
| 790 | 791 | } |
| 791 | 792 | |
| 792 | 793 | /* Welcome Panel */ |
| 793 | 794 | .welcome-panel { |
| 794 | | background-color: $dashboard-accent-1; |
| | 795 | background-color: variables.$dashboard-accent-1; |
| 795 | 796 | } |
| 796 | 797 | |
| 797 | 798 | .welcome-panel-header-image circle { |
| 798 | | stroke: $dashboard-accent-2; |
| 799 | | fill: $dashboard-accent-1; |
| | 799 | stroke: variables.$dashboard-accent-2; |
| | 800 | fill: variables.$dashboard-accent-1; |
| 800 | 801 | } |
| 801 | 802 | |
| 802 | 803 | [class*="welcome-panel-icon"] { |
| 803 | | background-color: $dashboard-icon-background; |
| | 804 | background-color: variables.$dashboard-icon-background; |
| 804 | 805 | } |
diff --git a/src/wp-admin/css/colors/_mixins.scss b/src/wp-admin/css/colors/_mixins.scss
index eb98dfdbe0..c486a8d9c3 100644
|
a
|
b
|
|
| | 1 | |
| | 2 | @use 'sass:color'; |
| | 3 | |
| 1 | 4 | /* |
| 2 | 5 | * Button mixin- creates a button effect with correct |
| 3 | 6 | * highlights/shadows, based on a base color. |
diff --git a/src/wp-admin/css/colors/blue/colors.scss b/src/wp-admin/css/colors/blue/colors.scss
index 664b5e21a5..b3d68ae2e4 100644
|
a
|
b
|
|
| 1 | 1 | |
| 2 | | $scheme-name: "blue"; |
| 3 | | $base-color: #52accc; |
| 4 | | $icon-color: #e5f8ff; |
| 5 | 2 | $highlight-color: #096484; |
| 6 | | $notification-color: #e1a948; |
| 7 | | $button-color: #e1a948; |
| 8 | 3 | |
| 9 | | $menu-submenu-text: #e2ecf1; |
| 10 | | $menu-submenu-focus-text: #fff; |
| 11 | | $menu-submenu-background: #4796b3; |
| 12 | | |
| 13 | | $dashboard-icon-background: $highlight-color; |
| 14 | | |
| 15 | | @import "../_admin.scss"; |
| | 4 | @use "../_admin.scss" with ( |
| | 5 | $scheme-name: "blue", |
| | 6 | $base-color: #52accc, |
| | 7 | $icon-color: #e5f8ff, |
| | 8 | $highlight-color: $highlight-color, |
| | 9 | $notification-color: #e1a948, |
| | 10 | $button-color: #e1a948, |
| | 11 | $menu-submenu-text: #e2ecf1, |
| | 12 | $menu-submenu-background: #4796b3, |
| | 13 | $menu-submenu-focus-text: #fff, |
| | 14 | $dashboard-icon-background: $highlight-color |
| | 15 | ); |
diff --git a/src/wp-admin/css/colors/coffee/colors.scss b/src/wp-admin/css/colors/coffee/colors.scss
index 4c398cc072..8548ad02d8 100644
|
a
|
b
|
|
| 1 | 1 | |
| 2 | | $scheme-name: "coffee"; |
| 3 | 2 | $base-color: #59524c; |
| 4 | | $highlight-color: #c7a589; |
| 5 | | $notification-color: #9ea476; |
| 6 | | $low-contrast-theme: "true"; |
| 7 | 3 | |
| 8 | | $form-checked: $base-color; |
| 9 | | |
| 10 | | @import "../_admin.scss"; |
| | 4 | @use "../_admin.scss" with ( |
| | 5 | $scheme-name: "coffee", |
| | 6 | $base-color: $base-color, |
| | 7 | $highlight-color: #c7a589, |
| | 8 | $notification-color: #9ea476, |
| | 9 | $form-checked: $base-color, |
| | 10 | $low-contrast-theme: "true" |
| | 11 | ); |
diff --git a/src/wp-admin/css/colors/ectoplasm/colors.scss b/src/wp-admin/css/colors/ectoplasm/colors.scss
index 769b06594d..d8611163f6 100644
|
a
|
b
|
|
| 1 | 1 | |
| 2 | | $scheme-name: "ectoplasm"; |
| 3 | 2 | $base-color: #523f6d; |
| 4 | | $icon-color: #ece6f6; |
| 5 | | $highlight-color: #a3b745; |
| 6 | | $notification-color: #d46f15; |
| 7 | 3 | |
| 8 | | $form-checked: $base-color; |
| 9 | | |
| 10 | | $dashboard-accent-1: $base-color; |
| 11 | | |
| 12 | | @import "../_admin.scss"; |
| | 4 | @use "../_admin.scss" with ( |
| | 5 | $scheme-name: "ectoplasm", |
| | 6 | $base-color: $base-color, |
| | 7 | $icon-color: #ece6f6, |
| | 8 | $highlight-color: #a3b745, |
| | 9 | $notification-color: #d46f15, |
| | 10 | $form-checked: $base-color, |
| | 11 | $dashboard-accent-1: $base-color |
| | 12 | ); |
diff --git a/src/wp-admin/css/colors/light/colors.scss b/src/wp-admin/css/colors/light/colors.scss
index 72783635a4..65595c191a 100644
|
a
|
b
|
|
| 1 | 1 | |
| 2 | | $scheme-name: "light"; |
| 3 | | $base-color: #e5e5e5; |
| 4 | | $icon-color: #999; |
| 5 | 2 | $text-color: #333; |
| 6 | | $highlight-color: #04a4cc; |
| 7 | | $notification-color: #d64e07; |
| 8 | | |
| 9 | | $body-background: #f5f5f5; |
| 10 | | |
| 11 | | $menu-highlight-text: #fff; |
| 12 | | $menu-highlight-icon: #ccc; |
| 13 | | $menu-highlight-background: #888; |
| 14 | | |
| 15 | | $menu-bubble-text: #fff; |
| 16 | 3 | $menu-avatar-frame: #aaa; |
| 17 | | $menu-submenu-background: #fff; |
| 18 | | |
| 19 | | $menu-collapse-text: #777; |
| 20 | | $menu-collapse-focus-icon: #555; |
| 21 | | |
| 22 | | $dashboard-icon-background: $text-color; |
| 23 | 4 | |
| 24 | | @import "../_admin.scss"; |
| | 5 | @use "../_admin.scss" with ( |
| | 6 | $scheme-name: "light", |
| | 7 | $text-color: $text-color, |
| | 8 | $base-color: #e5e5e5, |
| | 9 | $icon-color: #999, |
| | 10 | $highlight-color: #04a4cc, |
| | 11 | $notification-color: #d64e07, |
| | 12 | $body-background: #f5f5f5, |
| | 13 | $menu-highlight-text: #fff, |
| | 14 | $menu-highlight-icon: #ccc, |
| | 15 | $menu-highlight-background: #888, |
| | 16 | $menu-submenu-background: #fff, |
| | 17 | $menu-bubble-text: #fff, |
| | 18 | $menu-collapse-text: #777, |
| | 19 | $menu-collapse-focus-icon: #555, |
| | 20 | $dashboard-icon-background: $text-color |
| | 21 | ); |
| | 22 | |
| | 23 | @use "../variables"; |
| 25 | 24 | |
| 26 | 25 | /* Override the theme filter highlight color for this scheme */ |
| 27 | 26 | .theme-section.current, |
| 28 | 27 | .theme-filter.current { |
| 29 | | border-bottom-color: $highlight-color; |
| | 28 | border-bottom-color: variables.$highlight-color; |
| 30 | 29 | } |
diff --git a/src/wp-admin/css/colors/midnight/colors.scss b/src/wp-admin/css/colors/midnight/colors.scss
index 305aa27c8e..7fa167f784 100644
|
a
|
b
|
|
| 1 | 1 | |
| 2 | | $scheme-name: "midnight"; |
| 3 | | $base-color: #363b3f; |
| 4 | 2 | $highlight-color: #e14d43; |
| 5 | 3 | $notification-color: #69a8bb; |
| 6 | 4 | |
| 7 | | $dashboard-accent-1: $notification-color; |
| 8 | | $dashboard-icon-background: $highlight-color; |
| 9 | | |
| 10 | | @import "../_admin.scss"; |
| | 5 | @use "../_admin.scss" with ( |
| | 6 | $scheme-name: "midnight", |
| | 7 | $base-color: #363b3f, |
| | 8 | $highlight-color: $highlight-color, |
| | 9 | $notification-color: $notification-color, |
| | 10 | $dashboard-accent-1: $notification-color, |
| | 11 | $dashboard-icon-background: $highlight-color |
| | 12 | ); |
diff --git a/src/wp-admin/css/colors/modern/colors.scss b/src/wp-admin/css/colors/modern/colors.scss
index 8d83bf09d8..91b3d9152c 100644
|
a
|
b
|
|
| 1 | 1 | @use 'sass:color'; |
| 2 | 2 | |
| 3 | | $scheme-name: "modern"; |
| 4 | | $base-color: #1e1e1e; |
| 5 | 3 | $highlight-color: #3858e9; |
| 6 | | $menu-submenu-focus-text: #33f078; |
| 7 | | $notification-color: $highlight-color; |
| 8 | 4 | |
| 9 | | $link: $highlight-color; |
| 10 | | $link-focus: color.adjust($highlight-color, $lightness: -10%); |
| 11 | | |
| 12 | | $dashboard-accent-1: #273fcc; |
| 13 | | $dashboard-accent-2: #627eff; |
| 14 | | $dashboard-icon-background: #1d2327; |
| 15 | | |
| 16 | | @import "../_admin.scss"; |
| | 5 | @use "../_admin.scss" with ( |
| | 6 | $scheme-name: "modern", |
| | 7 | $base-color: #1e1e1e, |
| | 8 | $highlight-color: $highlight-color, |
| | 9 | $notification-color: $highlight-color, |
| | 10 | $link: $highlight-color, |
| | 11 | $link-focus: color.adjust($highlight-color, $lightness: -10%), |
| | 12 | $menu-submenu-focus-text: #33f078, |
| | 13 | $dashboard-accent-1: #273fcc, |
| | 14 | $dashboard-accent-2: #627eff, |
| | 15 | $dashboard-icon-background: #1d2327 |
| | 16 | ); |
diff --git a/src/wp-admin/css/colors/ocean/colors.scss b/src/wp-admin/css/colors/ocean/colors.scss
index cf17112b85..477f1aa49a 100644
|
a
|
b
|
|
| 1 | 1 | |
| 2 | | $scheme-name: "ocean"; |
| 3 | 2 | $base-color: #738e96; |
| 4 | | $icon-color: #f2fcff; |
| 5 | | $highlight-color: #9ebaa0; |
| 6 | | $notification-color: #aa9d88; |
| 7 | | $low-contrast-theme: "true"; |
| 8 | 3 | |
| 9 | | $form-checked: $base-color; |
| 10 | | |
| 11 | | @import "../_admin.scss"; |
| | 4 | @use "../_admin.scss" with ( |
| | 5 | $scheme-name: "ocean", |
| | 6 | $base-color: $base-color, |
| | 7 | $icon-color: #f2fcff, |
| | 8 | $highlight-color: #9ebaa0, |
| | 9 | $notification-color: #aa9d88, |
| | 10 | $form-checked: $base-color, |
| | 11 | $low-contrast-theme: "true" |
| | 12 | ); |
diff --git a/src/wp-admin/css/colors/sunrise/colors.scss b/src/wp-admin/css/colors/sunrise/colors.scss
index e40e24be99..fea890c3c8 100644
|
a
|
b
|
|
| 1 | 1 | @use 'sass:color'; |
| 2 | 2 | |
| 3 | | $scheme-name: "sunrise"; |
| 4 | | $base-color: #cf4944; |
| 5 | 3 | $highlight-color: #dd823b; |
| 6 | | $notification-color: #ccaf0b; |
| 7 | | $menu-submenu-focus-text: color.adjust( $highlight-color, $lightness: 35% ); |
| 8 | 4 | |
| 9 | | @import "../_admin.scss"; |
| | 5 | @use "../_admin.scss" with ( |
| | 6 | $scheme-name: "sunrise", |
| | 7 | $base-color: #cf4944, |
| | 8 | $highlight-color: $highlight-color, |
| | 9 | $notification-color: #ccaf0b, |
| | 10 | $menu-submenu-focus-text: color.adjust($highlight-color, $lightness: 35%) |
| | 11 | ); |