Make WordPress Core


Ignore:
Timestamp:
10/06/2024 11:35:49 PM (7 months ago)
Author:
peterwilsoncc
Message:

Tests/Build Tools: Update SCSS files to use new color functions.

Replaces deprecated color functions with their updated equivalents, see the deprecation documentation.

This results in four changes in the built files, hsl colors with a negative lightness value are replaced with the keyword black. These changes are harmless as they have no effect on the rendered colors.

Props aslamdoctor, veryard.
Fixes #62142.

File:
1 edited

Legend:

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

    r55574 r59185  
    77$text-color: #fff !default;
    88$base-color: #23282d !default;
    9 $icon-color: hsl( hue( $base-color ), 7%, 95% ) !default;
     9$icon-color: hsl(color.channel($base-color, "hue", $space: hsl), 7%, 95%) !default;
    1010$highlight-color: #0073aa !default;
    1111$notification-color: #d54e21 !default;
     
    1717
    1818$link: #0073aa !default;
    19 $link-focus: lighten( $link, 10% ) !default;
     19$link-focus: color.adjust($link, $lightness: 10%) !default;
    2020
    2121$button-color: $highlight-color !default;
     
    3939
    4040$menu-submenu-text: mix( $base-color, $text-color, 30% ) !default;
    41 $menu-submenu-background: darken( $base-color, 7% ) !default;
    42 $menu-submenu-background-alt: desaturate( lighten( $menu-background, 7% ), 7% ) !default;
     41$menu-submenu-background: color.adjust($base-color, $lightness: -7%) !default;
     42$menu-submenu-background-alt: color.adjust(color.adjust($menu-background, $lightness: 7%), $saturation: -7%) !default;
    4343
    4444$menu-submenu-focus-text: $highlight-color !default;
     
    5555$menu-collapse-focus-icon: $menu-highlight-icon !default;
    5656
    57 $adminbar-avatar-frame: lighten( $menu-background, 7% ) !default;
    58 $adminbar-input-background: lighten( $menu-background, 7% ) !default;
     57$adminbar-avatar-frame: color.adjust($menu-background, $lightness: 7%) !default;
     58$adminbar-input-background: color.adjust($menu-background, $lightness: 7%) !default;
    5959
    6060$adminbar-recovery-exit-text: $menu-bubble-text !default;
Note: See TracChangeset for help on using the changeset viewer.