[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/wp-admin/css/colors/ -> _admin.scss (source)

   1  
   2  @import 'variables';
   3  @import 'mixins';
   4  
   5  @function url-friendly-colour( $color ) {
   6      @return '%23' + str-slice( '#{ $color }', 2, -1 );
   7  }
   8  
   9  body {
  10      background: $body-background;
  11  }
  12  
  13  
  14  /* Links */
  15  
  16  a {
  17      color: $link;
  18  
  19      &:hover,
  20      &:active,
  21      &:focus {
  22          color: $link-focus;
  23      }
  24  }
  25  
  26  #post-body .misc-pub-post-status:before,
  27  #post-body #visibility:before,
  28  .curtime #timestamp:before,
  29  #post-body .misc-pub-revisions:before,
  30  span.wp-media-buttons-icon:before {
  31      color: currentColor;
  32  }
  33  
  34  
  35  /* Forms */
  36  
  37  input[type=checkbox]:checked::before {
  38      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");
  39  }
  40  
  41  input[type=radio]:checked::before {
  42      background: $form-checked;
  43  }
  44  
  45  .wp-core-ui input[type="reset"]:hover,
  46  .wp-core-ui input[type="reset"]:active {
  47      color: $link-focus;
  48  }
  49  
  50  input[type="text"]:focus,
  51  input[type="password"]:focus,
  52  input[type="color"]:focus,
  53  input[type="date"]:focus,
  54  input[type="datetime"]:focus,
  55  input[type="datetime-local"]:focus,
  56  input[type="email"]:focus,
  57  input[type="month"]:focus,
  58  input[type="number"]:focus,
  59  input[type="search"]:focus,
  60  input[type="tel"]:focus,
  61  input[type="text"]:focus,
  62  input[type="time"]:focus,
  63  input[type="url"]:focus,
  64  input[type="week"]:focus,
  65  input[type="checkbox"]:focus,
  66  input[type="radio"]:focus,
  67  select:focus,
  68  textarea:focus {
  69      border-color: $highlight-color;
  70      box-shadow: 0 0 0 1px $highlight-color;
  71  }
  72  
  73  
  74  /* Core UI */
  75  
  76  .wp-core-ui {
  77  
  78      .button {
  79          border-color: #7e8993;
  80          color: #32373c;
  81      }
  82  
  83      .button.hover,
  84      .button:hover,
  85      .button.focus,
  86      .button:focus {
  87          border-color: darken( #7e8993, 5% );
  88          color: darken( #32373c, 5% );
  89      }
  90  
  91      .button.focus,
  92      .button:focus {
  93          border-color: #7e8993;
  94          color: darken( #32373c, 5% );
  95          box-shadow: 0 0 0 1px #32373c;
  96      }
  97  
  98      .button:active {
  99          border-color: #7e8993;
 100          color: darken( #32373c, 5% );
 101          box-shadow: none;
 102      }
 103  
 104      .button.active,
 105      .button.active:focus,
 106      .button.active:hover {
 107          border-color: $button-color;
 108          color: darken( #32373c, 5% );
 109          box-shadow: inset 0 2px 5px -3px $button-color;
 110      }
 111  
 112      .button.active:focus {
 113          box-shadow: 0 0 0 1px #32373c;
 114      }
 115  
 116      .button-primary {
 117          @include button( $button-color );
 118      }
 119  
 120      .button-group > .button.active {
 121          border-color: $button-color;
 122      }
 123  
 124      .wp-ui-primary {
 125          color: $text-color;
 126          background-color: $base-color;
 127      }
 128      .wp-ui-text-primary {
 129          color: $base-color;
 130      }
 131  
 132      .wp-ui-highlight {
 133          color: $menu-highlight-text;
 134          background-color: $menu-highlight-background;
 135      }
 136      .wp-ui-text-highlight {
 137          color: $menu-highlight-background;
 138      }
 139  
 140      .wp-ui-notification {
 141          color: $menu-bubble-text;
 142          background-color: $menu-bubble-background;
 143      }
 144      .wp-ui-text-notification {
 145          color: $menu-bubble-background;
 146      }
 147  
 148      .wp-ui-text-icon {
 149          color: $menu-icon;
 150      }
 151  }
 152  
 153  
 154  /* List tables */
 155  
 156  .wrap .add-new-h2:hover, /* deprecated */
 157  .wrap .page-title-action:hover {
 158      color: $menu-text;
 159      background-color: $menu-background;
 160  }
 161  
 162  .view-switch a.current:before {
 163      color: $menu-background;
 164  }
 165  
 166  .view-switch a:hover:before {
 167      color: $menu-bubble-background;
 168  }
 169  
 170  
 171  /* Admin Menu */
 172  
 173  #adminmenuback,
 174  #adminmenuwrap,
 175  #adminmenu {
 176      background: $menu-background;
 177  }
 178  
 179  #adminmenu a {
 180      color: $menu-text;
 181  }
 182  
 183  #adminmenu div.wp-menu-image:before {
 184      color: $menu-icon;
 185  }
 186  
 187  #adminmenu a:hover,
 188  #adminmenu li.menu-top:hover,
 189  #adminmenu li.opensub > a.menu-top,
 190  #adminmenu li > a.menu-top:focus {
 191      color: $menu-highlight-text;
 192      background-color: $menu-highlight-background;
 193  }
 194  
 195  #adminmenu li.menu-top:hover div.wp-menu-image:before,
 196  #adminmenu li.opensub > a.menu-top div.wp-menu-image:before {
 197      color: $menu-highlight-icon;
 198  }
 199  
 200  
 201  /* Active tabs use a bottom border color that matches the page background color. */
 202  
 203  .about-wrap .nav-tab-active,
 204  .nav-tab-active,
 205  .nav-tab-active:hover {
 206      background-color: $body-background;
 207      border-bottom-color: $body-background;
 208  }
 209  
 210  
 211  /* Admin Menu: submenu */
 212  
 213  #adminmenu .wp-submenu,
 214  #adminmenu .wp-has-current-submenu .wp-submenu,
 215  #adminmenu .wp-has-current-submenu.opensub .wp-submenu,
 216  .folded #adminmenu .wp-has-current-submenu .wp-submenu,
 217  #adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
 218      background: $menu-submenu-background;
 219  }
 220  
 221  #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after {
 222      border-right-color: $menu-submenu-background;
 223  }
 224  
 225  #adminmenu .wp-submenu .wp-submenu-head {
 226      color: $menu-submenu-text;
 227  }
 228  
 229  #adminmenu .wp-submenu a,
 230  #adminmenu .wp-has-current-submenu .wp-submenu a,
 231  .folded #adminmenu .wp-has-current-submenu .wp-submenu a,
 232  #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
 233  #adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
 234      color: $menu-submenu-text;
 235  
 236      &:focus, &:hover {
 237          color: $menu-submenu-focus-text;
 238      }
 239  }
 240  
 241  
 242  /* Admin Menu: current */
 243  
 244  #adminmenu .wp-submenu li.current a,
 245  #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a,
 246  #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
 247      color: $menu-submenu-current-text;
 248  
 249      &:hover, &:focus {
 250          color: $menu-submenu-focus-text;
 251      }
 252  }
 253  
 254  ul#adminmenu a.wp-has-current-submenu:after,
 255  ul#adminmenu > li.current > a.current:after {
 256      border-right-color: $body-background;
 257  }
 258  
 259  #adminmenu li.current a.menu-top,
 260  #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
 261  #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,
 262  .folded #adminmenu li.current.menu-top {
 263      color: $menu-current-text;
 264      background: $menu-current-background;
 265  }
 266  
 267  #adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
 268  #adminmenu a.current:hover div.wp-menu-image:before,
 269  #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,
 270  #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,
 271  #adminmenu li:hover div.wp-menu-image:before,
 272  #adminmenu li a:focus div.wp-menu-image:before,
 273  #adminmenu li.opensub div.wp-menu-image:before,
 274  .ie8 #adminmenu li.opensub div.wp-menu-image:before {
 275      color: $menu-current-icon;
 276  }
 277  
 278  
 279  /* Admin Menu: bubble */
 280  
 281  #adminmenu .awaiting-mod,
 282  #adminmenu .update-plugins {
 283      color: $menu-bubble-text;
 284      background: $menu-bubble-background;
 285  }
 286  
 287  #adminmenu li.current a .awaiting-mod,
 288  #adminmenu li a.wp-has-current-submenu .update-plugins,
 289  #adminmenu li:hover a .awaiting-mod,
 290  #adminmenu li.menu-top:hover > a .update-plugins {
 291      color: $menu-bubble-current-text;
 292      background: $menu-bubble-current-background;
 293  }
 294  
 295  
 296  /* Admin Menu: collapse button */
 297  
 298  #collapse-button {
 299      color: $menu-collapse-text;
 300  }
 301  
 302  #collapse-button:hover,
 303  #collapse-button:focus {
 304      color: $menu-submenu-focus-text;
 305  }
 306  
 307  /* Admin Bar */
 308  
 309  #wpadminbar {
 310      color: $menu-text;
 311      background: $menu-background;
 312  }
 313  
 314  #wpadminbar .ab-item,
 315  #wpadminbar a.ab-item,
 316  #wpadminbar > #wp-toolbar span.ab-label,
 317  #wpadminbar > #wp-toolbar span.noticon {
 318      color: $menu-text;
 319  }
 320  
 321  #wpadminbar .ab-icon,
 322  #wpadminbar .ab-icon:before,
 323  #wpadminbar .ab-item:before,
 324  #wpadminbar .ab-item:after {
 325      color: $menu-icon;
 326  }
 327  
 328  #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
 329  #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
 330  #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
 331  #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
 332  #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
 333      color: $menu-submenu-focus-text;
 334      background: $menu-submenu-background;
 335  }
 336  
 337  #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
 338  #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
 339  #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
 340      color: $menu-submenu-focus-text;
 341  }
 342  
 343  #wpadminbar:not(.mobile) li:hover .ab-icon:before,
 344  #wpadminbar:not(.mobile) li:hover .ab-item:before,
 345  #wpadminbar:not(.mobile) li:hover .ab-item:after,
 346  #wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
 347      color: $menu-highlight-icon;
 348  }
 349  
 350  
 351  /* Admin Bar: submenu */
 352  
 353  #wpadminbar .menupop .ab-sub-wrapper {
 354      background: $menu-submenu-background;
 355  }
 356  
 357  #wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
 358  #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
 359      background: $menu-submenu-background-alt;
 360  }
 361  
 362  #wpadminbar .ab-submenu .ab-item,
 363  #wpadminbar .quicklinks .menupop ul li a,
 364  #wpadminbar .quicklinks .menupop.hover ul li a,
 365  #wpadminbar.nojs .quicklinks .menupop:hover ul li a {
 366      color: $menu-submenu-text;
 367  }
 368  
 369  #wpadminbar .quicklinks li .blavatar,
 370  #wpadminbar .menupop .menupop > .ab-item:before {
 371      color: $menu-icon;
 372  }
 373  
 374  #wpadminbar .quicklinks .menupop ul li a:hover,
 375  #wpadminbar .quicklinks .menupop ul li a:focus,
 376  #wpadminbar .quicklinks .menupop ul li a:hover strong,
 377  #wpadminbar .quicklinks .menupop ul li a:focus strong,
 378  #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a,
 379  #wpadminbar .quicklinks .menupop.hover ul li a:hover,
 380  #wpadminbar .quicklinks .menupop.hover ul li a:focus,
 381  #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
 382  #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
 383  #wpadminbar li:hover .ab-icon:before,
 384  #wpadminbar li:hover .ab-item:before,
 385  #wpadminbar li a:focus .ab-icon:before,
 386  #wpadminbar li .ab-item:focus:before,
 387  #wpadminbar li .ab-item:focus .ab-icon:before,
 388  #wpadminbar li.hover .ab-icon:before,
 389  #wpadminbar li.hover .ab-item:before,
 390  #wpadminbar li:hover #adminbarsearch:before,
 391  #wpadminbar li #adminbarsearch.adminbar-focused:before {
 392      color: $menu-submenu-focus-text;
 393  }
 394  
 395  #wpadminbar .quicklinks li a:hover .blavatar,
 396  #wpadminbar .quicklinks li a:focus .blavatar,
 397  #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar,
 398  #wpadminbar .menupop .menupop > .ab-item:hover:before,
 399  #wpadminbar.mobile .quicklinks .ab-icon:before,
 400  #wpadminbar.mobile .quicklinks .ab-item:before {
 401      color: $menu-submenu-focus-text;
 402  }
 403  
 404  #wpadminbar.mobile .quicklinks .hover .ab-icon:before,
 405  #wpadminbar.mobile .quicklinks .hover .ab-item:before {
 406      color: $menu-icon;
 407  }
 408  
 409  
 410  /* Admin Bar: search */
 411  
 412  #wpadminbar #adminbarsearch:before {
 413      color: $menu-icon;
 414  }
 415  
 416  #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
 417      color: $menu-text;
 418      background: $adminbar-input-background;
 419  }
 420  
 421  /* Admin Bar: recovery mode */
 422  
 423  #wpadminbar #wp-admin-bar-recovery-mode {
 424      color: $adminbar-recovery-exit-text;
 425      background-color: $adminbar-recovery-exit-background;
 426  }
 427  
 428  #wpadminbar #wp-admin-bar-recovery-mode .ab-item,
 429  #wpadminbar #wp-admin-bar-recovery-mode a.ab-item {
 430      color: $adminbar-recovery-exit-text;
 431  }
 432  
 433  #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item,
 434  #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
 435  #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
 436  #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
 437      color: $adminbar-recovery-exit-text;
 438      background-color: $adminbar-recovery-exit-background-alt;
 439  }
 440  
 441  /* Admin Bar: my account */
 442  
 443  #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
 444      border-color: $adminbar-avatar-frame;
 445      background-color: $adminbar-avatar-frame;
 446  }
 447  
 448  #wpadminbar #wp-admin-bar-user-info .display-name {
 449      color: $menu-text;
 450  }
 451  
 452  #wpadminbar #wp-admin-bar-user-info a:hover .display-name {
 453      color: $menu-submenu-focus-text;
 454  }
 455  
 456  #wpadminbar #wp-admin-bar-user-info .username {
 457      color: $menu-submenu-text;
 458  }
 459  
 460  
 461  /* Pointers */
 462  
 463  .wp-pointer .wp-pointer-content h3 {
 464      background-color: $highlight-color;
 465      border-color: darken( $highlight-color, 5% );
 466  }
 467  
 468  .wp-pointer .wp-pointer-content h3:before {
 469      color: $highlight-color;
 470  }
 471  
 472  .wp-pointer.wp-pointer-top .wp-pointer-arrow,
 473  .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,
 474  .wp-pointer.wp-pointer-undefined .wp-pointer-arrow,
 475  .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner {
 476      border-bottom-color: $highlight-color;
 477  }
 478  
 479  
 480  /* Media */
 481  
 482  .media-item .bar,
 483  .media-progress-bar div {
 484      background-color: $highlight-color;
 485  }
 486  
 487  .details.attachment {
 488      box-shadow:
 489          inset 0 0 0 3px #fff,
 490          inset 0 0 0 7px $highlight-color;
 491  }
 492  
 493  .attachment.details .check {
 494      background-color: $highlight-color;
 495      box-shadow: 0 0 0 1px #fff, 0 0 0 2px $highlight-color;
 496  }
 497  
 498  .media-selection .attachment.selection.details .thumbnail {
 499      box-shadow: 0 0 0 1px #fff, 0 0 0 3px $highlight-color;
 500  }
 501  
 502  
 503  /* Themes */
 504  
 505  .theme-browser .theme.active .theme-name,
 506  .theme-browser .theme.add-new-theme a:hover:after,
 507  .theme-browser .theme.add-new-theme a:focus:after {
 508      background: $highlight-color;
 509  }
 510  
 511  .theme-browser .theme.add-new-theme a:hover span:after,
 512  .theme-browser .theme.add-new-theme a:focus span:after {
 513      color: $highlight-color;
 514  }
 515  
 516  .theme-section.current,
 517  .theme-filter.current {
 518      border-bottom-color: $menu-background;
 519  }
 520  
 521  body.more-filters-opened .more-filters {
 522      color: $menu-text;
 523      background-color: $menu-background;
 524  }
 525  
 526  body.more-filters-opened .more-filters:before {
 527      color: $menu-text;
 528  }
 529  
 530  body.more-filters-opened .more-filters:hover,
 531  body.more-filters-opened .more-filters:focus {
 532      background-color: $menu-highlight-background;
 533      color: $menu-highlight-text;
 534  }
 535  
 536  body.more-filters-opened .more-filters:hover:before,
 537  body.more-filters-opened .more-filters:focus:before {
 538      color: $menu-highlight-text;
 539  }
 540  
 541  /* Widgets */
 542  
 543  .widgets-chooser li.widgets-chooser-selected {
 544      background-color: $menu-highlight-background;
 545      color: $menu-highlight-text;
 546  }
 547  
 548  .widgets-chooser li.widgets-chooser-selected:before,
 549  .widgets-chooser li.widgets-chooser-selected:focus:before {
 550      color: $menu-highlight-text;
 551  }
 552  
 553  /* Responsive Component */
 554  
 555  div#wp-responsive-toggle a:before {
 556      color: $menu-icon;
 557  }
 558  
 559  .wp-responsive-open div#wp-responsive-toggle a {
 560      // ToDo: make inset border
 561      border-color: transparent;
 562      background: $menu-highlight-background;
 563  }
 564  
 565  .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a {
 566      background: $menu-submenu-background;
 567  }
 568  
 569  .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before {
 570      color: $menu-icon;
 571  }
 572  
 573  /* TinyMCE */
 574  
 575  .mce-container.mce-menu .mce-menu-item:hover,
 576  .mce-container.mce-menu .mce-menu-item.mce-selected,
 577  .mce-container.mce-menu .mce-menu-item:focus,
 578  .mce-container.mce-menu .mce-menu-item-normal.mce-active,
 579  .mce-container.mce-menu .mce-menu-item-preview.mce-active {
 580      background: $highlight-color;
 581  }


Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1