_base.scss (2057B)
1 /************** 2 ! GTK settings 3 ***************/ 4 5 * { 6 -GtkArrow-arrow-scaling: .5; 7 -GtkExpander-expander-size: 8; 8 -GtkStatusbar-shadow-type: none; 9 -GtkToolItemGroup-expander-size: 8; 10 -GtkWindow-resize-grip-height: 0; 11 -GtkWindow-resize-grip-width: 0; 12 -WnckTasklist-fade-overlay-rect: 0; 13 14 outline-color: alpha($selected_bg_color, .5); 15 outline-style: dashed; 16 outline-width: 1px; 17 outline-offset: -1px; 18 outline-radius: $roundness; 19 } 20 21 22 /************* 23 ! Base states 24 *************/ 25 26 %selected { 27 &, &:focus { 28 background-color: $selected_bg_color; 29 color: $selected_fg_color; 30 } 31 } 32 33 * { 34 /* hyperlinks */ 35 -GtkHTML-link-color: $link_color; 36 -GtkIMHtml-hyperlink-color: $link_color; 37 -GtkWidget-link-color: $link_color; 38 -GtkWidget-visited-link-color: $link_color; 39 40 &:selected { @extend %selected; } 41 42 &:insensitive, 43 &:insensitive:insensitive { color: mix($fg_color, $bg_color, .5); } 44 45 &:insensitive { -gtk-image-effect: dim; } 46 47 &:hover { -gtk-image-effect: highlight; } 48 49 &:link, &:visited { color: $link_color; } 50 } 51 52 .background { 53 background-color: $bg_color; 54 color: $fg_color; 55 56 &:backdrop { 57 text-shadow: none; 58 icon-shadow: none; 59 } 60 61 &.csd { background-color: $bg_color; } 62 } 63 64 .gtkstyle-fallback { 65 background-color: alpha($bg_color, .5); 66 color: $fg_color; 67 68 &:prelight { 69 background-color: shade($bg_color, 1.1); 70 color: $fg_color; 71 } 72 73 &:active { 74 background-color: shade($bg_color, .9); 75 color: $fg_color; 76 } 77 78 &:insensitive { 79 background-color: shade(shade($bg_color, .95), 1.05); 80 color: mix($fg_color, $bg_color, .5); 81 } 82 83 &:selected { @extend %selected; } 84 } 85 86 GtkImage, GtkLabel, GtkBox, GtkGrid { 87 &, &:insensitive { background-color: transparent; } 88 } 89 90 GtkLabel { 91 &.separator { 92 @extend .dim-label; 93 94 color: $fg_color; 95 } 96 97 &:selected { @extend %selected; } 98 99 &:insensitive { color: mix($fg_color, $bg_color, .5); } 100 }