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/blue/colors.scss

    r59185 r59656  
    1 @use "sass:color";
     1$highlight-color: #096484;
    22
    3 $scheme-name: "blue";
    4 $base-color: #52accc;
    5 $icon-color: #e5f8ff;
    6 $highlight-color: #096484;
    7 $notification-color: #e1a948;
    8 $button-color: #e1a948;
     3@use "../_admin.scss" with (
     4    $scheme-name: "blue",
     5    $base-color: #52accc,
     6    $icon-color: #e5f8ff,
     7    $highlight-color: $highlight-color,
     8    $notification-color: #e1a948,
     9    $button-color: #e1a948,
    910
    10 $menu-submenu-text: #e2ecf1;
    11 $menu-submenu-focus-text: #fff;
    12 $menu-submenu-background: #4796b3;
     11    $menu-submenu-text: #e2ecf1,
     12    $menu-submenu-focus-text: #fff,
     13    $menu-submenu-background: #4796b3,
    1314
    14 $dashboard-icon-background: $highlight-color;
    15 
    16 @import "../_admin.scss";
     15    $dashboard-icon-background: $highlight-color
     16);
Note: See TracChangeset for help on using the changeset viewer.