dotfiles

config files for my linux setup
git clone git://edryd.org/dotfiles
Log | Files | Refs | README

_misc.scss (4450B)


      1 /***************
      2 ! Dimmed label *
      3 ****************/
      4 
      5 @include exports("dimlabel") {
      6     .dim-label {
      7         opacity: .5;
      8         text-shadow: none;
      9     }
     10 }
     11 
     12 
     13 /***********
     14  ! Tooltip *
     15 ************/
     16 
     17 @include exports("tooltip") {
     18     .tooltip {
     19         &.background {
     20             @include linear-gradient($tooltip_bg_color);
     21 
     22             border: 0;
     23             border-radius: $roundness;
     24             color: $tooltip_fg_color;
     25         }
     26 
     27         * {
     28             background-color: transparent;
     29             color: inherit;
     30         }
     31     }
     32 }
     33 
     34 
     35 /***********
     36  ! Dialogs *
     37 ************/
     38 
     39 @include exports("dialogs") {
     40     GtkMessageDialog, .message-dialog, .prompt {
     41         -GtkDialog-content-area-border: 0;
     42         -GtkDialog-action-area-border: $spacing;
     43         -GtkDialog-button-spacing: 0;
     44 
     45         margin: 0;
     46         padding: 0;
     47     }
     48 }
     49 
     50 
     51 /*********************
     52  ! App notifications *
     53 **********************/
     54 
     55 @include exports("notifications") {
     56     .app-notification {
     57         &, &.frame {
     58             border-style: solid;
     59             border-color: border_normal($osd_bg);
     60             border-width: 0 1px 1px;
     61             border-radius: 0 0 $roundness $roundness;
     62             padding: $spacing * 2;
     63             background-color: $osd_bg;
     64             background-image: none;
     65             color: $osd_fg;
     66 
     67             .button { @include button($osd_bg, $osd_fg); }
     68         }
     69     }
     70 }
     71 
     72 
     73 /*************
     74  ! Expanders *
     75 **************/
     76 
     77 @include exports("expander") {
     78     GtkExpander {
     79         padding: $spacing;
     80         outline-offset: 1px;
     81     }
     82 
     83     .expander {
     84         color: alpha(currentColor, .7);
     85         border: alpha(currentColor, .7);
     86 
     87         &:hover {
     88             color: alpha(currentColor, .8);
     89             border-color: alpha(currentColor, .8);
     90         }
     91 
     92         &:active {
     93             color: alpha(currentColor, .9);
     94             border-color: alpha(currentColor, .9);
     95         }
     96     }
     97 }
     98 
     99 
    100 /*******************
    101  ! Symbolic images *
    102 ********************/
    103 
    104 @include exports("symbolicimage") {
    105     .image {
    106         color: alpha(currentColor, .5);
    107 
    108         &:hover { color: alpha(currentColor, .9); }
    109 
    110         &:selected, &:selected:hover { color: $selected_fg_color; }
    111     }
    112 }
    113 
    114 
    115 /****************
    116  ! Floating bar *
    117 *****************/
    118 
    119 @include exports("floatingbar") {
    120     .floating-bar {
    121         @include linear-gradient($bg_color);
    122 
    123         border: 1px solid border_normal($bg_color);
    124         border-radius: $roundness;
    125         color: $fg_color;
    126 
    127         &.top {
    128             border-top-width: 0;
    129             border-top-right-radius: 0;
    130             border-top-left-radius: 0;
    131         }
    132 
    133         &.right {
    134             border-right-width: 0;
    135             border-top-right-radius: 0;
    136             border-bottom-right-radius: 0;
    137         }
    138 
    139         &.bottom {
    140             border-bottom-width: 0;
    141             border-bottom-right-radius: 0;
    142             border-bottom-left-radius: 0;
    143         }
    144 
    145         &.left {
    146             border-left-width: 0;
    147             border-bottom-left-radius: 0;
    148             border-top-left-radius: 0;
    149         }
    150 
    151         .button {
    152             -GtkButton-image-spacing: 0;
    153             -GtkButton-inner-border: 0;
    154 
    155             border: 0;
    156             background-color: transparent;
    157             background-image: none;
    158         }
    159     }
    160 }
    161 
    162 
    163 /*************************
    164  ! Touch text selections *
    165 **************************/
    166 
    167 @include exports("touchbubble") {
    168     GtkBubbleWindow {
    169         border-radius: $roundness;
    170         background-clip: border-box;
    171 
    172         &.osd.background { background-color: $osd_bg; }
    173 
    174         .toolbar { background-color: transparent; }
    175     }
    176 }
    177 
    178 /***************
    179  ! Font-viewer *
    180 ****************/
    181 
    182 @include exports("fontviewer") {
    183     SushiFontWidget {
    184         padding: $spacing ($spacing * 2);
    185     }
    186 }
    187 
    188 
    189 /*************
    190  ! Gucharmap *
    191 **************/
    192 
    193 @include exports("charmap") {
    194     GucharmapChartable {
    195         background-color: $base_color;
    196         color: $text_color;
    197 
    198         &:focus, &:hover, &:active, &:selected { @extend %selected; }
    199     }
    200 }
    201 
    202 
    203 /*************
    204  ! Evolution *
    205 **************/
    206 
    207 @include exports("evolution") {
    208     EPreviewPane .entry {
    209         background-color: $base_color;
    210         color: $text_color;
    211     }
    212 }
    213 
    214 
    215 /*******************
    216  ! Gnome Bluetooth *
    217 ********************/
    218 
    219 @include exports("gnome-bluetooth") {
    220     GtkEntry.entry.pin-entry {
    221         font: regular 50;
    222         padding-left: 25px;
    223         padding-right: 25px;
    224     }
    225 
    226     GtkLabel.pin-label { font: regular 50; }
    227 }