[Gtk-3.18][Gtk-3.20]Fix info,warning,question and error classes
This makes them available globally. Now gedit searchbar will turn red if the search items are not found!pull/496/head
parent
a173892e7d
commit
e43efdc90f
|
@ -8,30 +8,30 @@
|
||||||
@include exports("infobar") {
|
@include exports("infobar") {
|
||||||
GtkInfoBar {
|
GtkInfoBar {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
$types: (
|
$types: (
|
||||||
info: ($info_fg_color, $info_bg_color),
|
info: ($info_fg_color, $info_bg_color),
|
||||||
warning: ($warning_fg_color, $warning_bg_color),
|
warning: ($warning_fg_color, $warning_bg_color),
|
||||||
question: ($question_fg_color, $question_bg_color),
|
question: ($question_fg_color, $question_bg_color),
|
||||||
error: ($error_fg_color, $error_bg_color),
|
error: ($error_fg_color, $error_bg_color),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@each $type, $colors in $types {
|
@each $type, $colors in $types {
|
||||||
$fg_color: nth($colors, 1);
|
$fg_color: nth($colors, 1);
|
||||||
$bg_color: nth($colors, 2);
|
$bg_color: nth($colors, 2);
|
||||||
|
|
||||||
&.#{$type} {
|
.#{$type} {
|
||||||
@include linear-gradient($bg_color);
|
@include linear-gradient($bg_color);
|
||||||
|
|
||||||
border: 1px solid shade($bg_color, .8);
|
border: 1px solid shade($bg_color, .8);
|
||||||
color: $fg_color;
|
color: $fg_color;
|
||||||
|
|
||||||
.button {
|
button {
|
||||||
@include button($bg_color, $fg_color);
|
@include button($bg_color, $fg_color);
|
||||||
|
|
||||||
&.close { @extend %close_button; }
|
&.close { @extend %close_button; }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,30 +8,30 @@
|
||||||
@include exports("infobar") {
|
@include exports("infobar") {
|
||||||
infobar {
|
infobar {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
$types: (
|
$types: (
|
||||||
info: ($info_fg_color, $info_bg_color),
|
info: ($info_fg_color, $info_bg_color),
|
||||||
warning: ($warning_fg_color, $warning_bg_color),
|
warning: ($warning_fg_color, $warning_bg_color),
|
||||||
question: ($question_fg_color, $question_bg_color),
|
question: ($question_fg_color, $question_bg_color),
|
||||||
error: ($error_fg_color, $error_bg_color),
|
error: ($error_fg_color, $error_bg_color),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@each $type, $colors in $types {
|
@each $type, $colors in $types {
|
||||||
$fg_color: nth($colors, 1);
|
$fg_color: nth($colors, 1);
|
||||||
$bg_color: nth($colors, 2);
|
$bg_color: nth($colors, 2);
|
||||||
|
|
||||||
&.#{$type} {
|
.#{$type} {
|
||||||
@include linear-gradient($bg_color);
|
@include linear-gradient($bg_color);
|
||||||
|
|
||||||
border: 1px solid shade($bg_color, .8);
|
border: 1px solid shade($bg_color, .8);
|
||||||
color: $fg_color;
|
color: $fg_color;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@include button($bg_color, $fg_color);
|
@include button($bg_color, $fg_color);
|
||||||
|
|
||||||
&.close { @extend %close_button; }
|
&.close { @extend %close_button; }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue