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

    r59185 r59656  
    1 @use "sass:color";
     1$base-color: #59524c;
    22
    3 $scheme-name: "coffee";
    4 $base-color: #59524c;
    5 $highlight-color: #c7a589;
    6 $notification-color: #9ea476;
    7 $low-contrast-theme: "true";
     3@use "../_admin.scss" with (
     4    $scheme-name: "coffee",
     5    $base-color: $base-color,
     6    $highlight-color: #c7a589,
     7    $notification-color: #9ea476,
     8    $form-checked: $base-color,
    89
    9 $form-checked: $base-color;
    10 
    11 @import "../_admin.scss";
     10    $low-contrast-theme: "true"
     11);
Note: See TracChangeset for help on using the changeset viewer.