gtk: Reorder the entry type of @mixin
The raised entry is no longer used as the default type, so deprioritize it.
The raised entry is no longer used as the default type, so deprioritize it.
by roundabout, Saturday, 13 April 2019, 10:12:44 (1555150364), pushed by roundabout, Sunday, 11 May 2025, 13:22:35 (1746969755)
Author identity: nana-4 <hnmaigo@gmail.com>
3e6dd05eb7e02af84fc97cdf9cc9dd11131d6fdd
// $fc: focus color
//
@if $t == raised-normal {
transition: $transition;
border-image: none;
box-shadow: $shadow-1;
background-color: if($fc == $primary, $base, $fc);
color: if($fc == $primary, $text, on($fc));
}
@if $t == raised-focus {
border-image: none;
box-shadow: $shadow-2;
}
@if $t == raised-disabled {
box-shadow: $shadow-1;
background-color: $base-alt;
color: $text-disabled;
}
@if $t == normal {
transition: $transition, border-image $duration-ripple $ease-out;
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
background-color: $fill;
color: $text-disabled;
}
@if $t == raised-normal {
transition: $transition;
border-image: none;
box-shadow: $shadow-1;
background-color: if($fc == $primary, $base, $fc);
color: if($fc == $primary, $text, on($fc));
}
@if $t == raised-focus {
border-image: none;
box-shadow: $shadow-2;
}
@if $t == raised-disabled {
box-shadow: $shadow-1;
background-color: $base-alt;
color: $text-disabled;
}
}