Adwaita: minor sass changes.

Made _button_border_color($c) mixin in _button_border($c) fuction.
This commit is contained in:
Lapo Calamandrei 2014-07-07 14:26:58 +02:00
parent 0b2198a26b
commit f12edc2d89

View File

@ -78,7 +78,7 @@ $widget_edge: 0 1px $borders_edge; //outer hilight "used" on
// buttons // 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) { @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%) 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; } @else { border-color: $borders_color; }
@include _button_text_shadow($tc,$c); @include _button_text_shadow($tc,$c);
@ -149,7 +149,7 @@ $widget_edge: 0 1px $borders_edge; //outer hilight "used" on
// hovered button // hovered button
// //
color: $tc; 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; } @else { border-color: $borders_color; }
background-image: linear-gradient(to bottom, background-image: linear-gradient(to bottom,
lighten($c,14%), lighten($c,14%),
@ -168,7 +168,7 @@ $widget_edge: 0 1px $borders_edge; //outer hilight "used" on
// pushed button // pushed button
// //
color: $tc; 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; } @else { border-color: $borders_color; }
@if $variant == 'light' { @if $variant == 'light' {
background-image: linear-gradient(to bottom, 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; } @else { border-color: $borders_color; }
@if $noedge==false { @if $noedge==false {