Make WordPress Core


Ignore:
Timestamp:
01/16/2025 09:03:12 PM (5 months ago)
Author:
desrosj
Message:

Administration: Modernize admin color scheme SASS files.

This updates the admin color scheme .sass files to address some deprecated notices caused by upstream changes.

  • string and colors are no longer globally available functions.
  • @import is deprecated in favor of @use.

There are still a few notices that are output, however this will require an update to the grunt-sass package to resolve.

Props MattyRob.
Fixes #62323.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/colors/light/colors.scss

    r59185 r59656  
    11@use "sass:color";
    22
    3 $scheme-name: "light";
    4 $base-color: #e5e5e5;
    5 $icon-color: #999;
     3$highlight-color: #04a4cc;
    64$text-color: #333;
    7 $highlight-color: #04a4cc;
    8 $notification-color: #d64e07;
     5$menu-avatar-frame: #aaa;
    96
    10 $body-background: #f5f5f5;
     7@use "../_admin.scss" with (
     8    $scheme-name: "light",
     9    $base-color: #e5e5e5,
     10    $icon-color: #999,
     11    $text-color: $text-color,
     12    $highlight-color: $highlight-color,
     13    $notification-color: #d64e07,
    1114
    12 $menu-highlight-text: #fff;
    13 $menu-highlight-icon: #ccc;
    14 $menu-highlight-background: #888;
     15    $body-background: #f5f5f5,
    1516
    16 $menu-bubble-text: #fff;
    17 $menu-avatar-frame: #aaa;
    18 $menu-submenu-background: #fff;
     17    $menu-highlight-text: #fff,
     18    $menu-highlight-icon: #ccc,
     19    $menu-highlight-background: #888,
    1920
    20 $menu-collapse-text: #777;
    21 $menu-collapse-focus-icon: #555;
     21    $menu-bubble-text: #fff,
     22    $menu-submenu-background: #fff,
    2223
    23 $dashboard-accent-1: $highlight-color;
    24 $dashboard-accent-2: color.adjust(color.adjust($highlight-color, $lightness: 7%), $saturation: -15%);
    25 $dashboard-icon-background: $text-color;
     24    $menu-collapse-text: #777,
     25    $menu-collapse-focus-icon: #555,
    2626
    27 @import "../_admin.scss";
     27    $dashboard-accent-1: $highlight-color,
     28    $dashboard-accent-2: color.adjust(color.adjust($highlight-color, $lightness: 7%), $saturation: -15%),
     29    $dashboard-icon-background: $text-color
     30);
    2831
    2932/* Override the theme filter highlight color for this scheme */
    3033.theme-section.current,
    3134.theme-filter.current {
    32     border-bottom-color: $highlight-color;
     35    border-bottom-color: admin.$highlight-color;
    3336}
Note: See TracChangeset for help on using the changeset viewer.