From e43efdc90f014852209e4f5809d310cc198af3b0 Mon Sep 17 00:00:00 2001 From: Khurshid Alam Date: Sat, 18 Jun 2016 13:35:11 +0530 Subject: [PATCH] [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! --- gtk-3.0/scss/widgets/_infobar.scss | 34 ++++++++++++++--------------- gtk-3.20/scss/widgets/_infobar.scss | 34 ++++++++++++++--------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/gtk-3.0/scss/widgets/_infobar.scss b/gtk-3.0/scss/widgets/_infobar.scss index 4351c9b..6ed362a 100644 --- a/gtk-3.0/scss/widgets/_infobar.scss +++ b/gtk-3.0/scss/widgets/_infobar.scss @@ -8,30 +8,30 @@ @include exports("infobar") { GtkInfoBar { border: 0; + } - $types: ( - info: ($info_fg_color, $info_bg_color), - warning: ($warning_fg_color, $warning_bg_color), - question: ($question_fg_color, $question_bg_color), - error: ($error_fg_color, $error_bg_color), - ); + $types: ( + info: ($info_fg_color, $info_bg_color), + warning: ($warning_fg_color, $warning_bg_color), + question: ($question_fg_color, $question_bg_color), + error: ($error_fg_color, $error_bg_color), + ); - @each $type, $colors in $types { - $fg_color: nth($colors, 1); - $bg_color: nth($colors, 2); + @each $type, $colors in $types { + $fg_color: nth($colors, 1); + $bg_color: nth($colors, 2); - &.#{$type} { - @include linear-gradient($bg_color); + .#{$type} { + @include linear-gradient($bg_color); - border: 1px solid shade($bg_color, .8); - color: $fg_color; + border: 1px solid shade($bg_color, .8); + color: $fg_color; - .button { - @include button($bg_color, $fg_color); + button { + @include button($bg_color, $fg_color); - &.close { @extend %close_button; } - } + &.close { @extend %close_button; } } } } diff --git a/gtk-3.20/scss/widgets/_infobar.scss b/gtk-3.20/scss/widgets/_infobar.scss index 9ba0df2..5a161af 100644 --- a/gtk-3.20/scss/widgets/_infobar.scss +++ b/gtk-3.20/scss/widgets/_infobar.scss @@ -8,30 +8,30 @@ @include exports("infobar") { infobar { border: 0; + } - $types: ( - info: ($info_fg_color, $info_bg_color), - warning: ($warning_fg_color, $warning_bg_color), - question: ($question_fg_color, $question_bg_color), - error: ($error_fg_color, $error_bg_color), - ); + $types: ( + info: ($info_fg_color, $info_bg_color), + warning: ($warning_fg_color, $warning_bg_color), + question: ($question_fg_color, $question_bg_color), + error: ($error_fg_color, $error_bg_color), + ); - @each $type, $colors in $types { - $fg_color: nth($colors, 1); - $bg_color: nth($colors, 2); + @each $type, $colors in $types { + $fg_color: nth($colors, 1); + $bg_color: nth($colors, 2); - &.#{$type} { - @include linear-gradient($bg_color); + .#{$type} { + @include linear-gradient($bg_color); - border: 1px solid shade($bg_color, .8); - color: $fg_color; + border: 1px solid shade($bg_color, .8); + color: $fg_color; - button { - @include button($bg_color, $fg_color); + button { + @include button($bg_color, $fg_color); - &.close { @extend %close_button; } - } + &.close { @extend %close_button; } } } }