forked from AuroraMiddleware/gtk
Adwaita: minor sass changes.
Made _button_border_color($c) mixin in _button_border($c) fuction.
This commit is contained in:
parent
0b2198a26b
commit
f12edc2d89
@ -78,7 +78,7 @@ $widget_edge: 0 1px $borders_edge; //outer hilight "used" on
|
||||
|
||||
// buttons
|
||||
|
||||
@mixin _button_border_color ($c) { border-color: darken($c,25%); } // colored buttons want the border form the base color
|
||||
@function _border_color ($c) { @return darken($c,25%); } // colored buttons want the border form the base color
|
||||
|
||||
@mixin _button_text_shadow ($tc:$fg_color, $bg:$bg_color) {
|
||||
//
|
||||
@ -134,7 +134,7 @@ $widget_edge: 0 1px $borders_edge; //outer hilight "used" on
|
||||
darken($c,5%)
|
||||
);
|
||||
|
||||
@if $c!=$bg_color { @include _button_border_color($c); }
|
||||
@if $c!=$bg_color { border-color: _border_color($c); }
|
||||
@else { border-color: $borders_color; }
|
||||
|
||||
@include _button_text_shadow($tc,$c);
|
||||
@ -149,7 +149,7 @@ $widget_edge: 0 1px $borders_edge; //outer hilight "used" on
|
||||
// hovered button
|
||||
//
|
||||
color: $tc;
|
||||
@if $c!=$bg_color { @include _button_border_color($c); }
|
||||
@if $c!=$bg_color { border-color: _border_color($c); }
|
||||
@else { border-color: $borders_color; }
|
||||
background-image: linear-gradient(to bottom,
|
||||
lighten($c,14%),
|
||||
@ -168,7 +168,7 @@ $widget_edge: 0 1px $borders_edge; //outer hilight "used" on
|
||||
// pushed button
|
||||
//
|
||||
color: $tc;
|
||||
@if $c!=$bg_color { @include _button_border_color($c); }
|
||||
@if $c!=$bg_color {border-color: _border_color($c); }
|
||||
@else { border-color: $borders_color; }
|
||||
@if $variant == 'light' {
|
||||
background-image: linear-gradient(to bottom,
|
||||
@ -323,7 +323,7 @@ $widget_edge: 0 1px $borders_edge; //outer hilight "used" on
|
||||
);
|
||||
}
|
||||
|
||||
@if $c!=$bg_color { @include _button_border_color($c); }
|
||||
@if $c!=$bg_color { border-color: _border_color($c); }
|
||||
@else { border-color: $borders_color; }
|
||||
|
||||
@if $noedge==false {
|
||||
|
Loading…
Reference in New Issue
Block a user