| 1 |
@charset "UTF-8"; |
| 2 |
|
| 3 |
/******** |
| 4 |
* Misc * |
| 5 |
********/ |
| 6 |
|
| 7 |
/**************** |
| 8 |
* Print dialog * |
| 9 |
*****************/ |
| 10 |
printdialog { |
| 11 |
paper { |
| 12 |
color: gtk("@theme_fg_color"); |
| 13 |
border: 1px solid gtk("@borders"); |
| 14 |
background: white; |
| 15 |
padding: 0; |
| 16 |
|
| 17 |
&:backdrop { |
| 18 |
color: gtk("@theme_unfocused_fg_color"); |
| 19 |
border-color: gtk("@unfocused_borders"); |
| 20 |
background: gtk("@print_paper_backdrop"); |
| 21 |
} |
| 22 |
} |
| 23 |
|
| 24 |
.dialog-action-box { |
| 25 |
margin: 12px; |
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
/********** |
| 30 |
* Frames * |
| 31 |
**********/ |
| 32 |
frame > border, |
| 33 |
.frame { |
| 34 |
box-shadow: none; |
| 35 |
margin: 0; |
| 36 |
padding: 0; |
| 37 |
border-radius: 0; |
| 38 |
border: 1px solid gtk("@borders"); |
| 39 |
|
| 40 |
&.flat { |
| 41 |
border-style: none; |
| 42 |
} |
| 43 |
|
| 44 |
&:backdrop { |
| 45 |
border-color: gtk("@unfocused_borders"); |
| 46 |
} |
| 47 |
} |
| 48 |
|
| 49 |
actionbar > revealer > box { |
| 50 |
padding: 6px; |
| 51 |
border-top: 1px solid gtk("@borders"); |
| 52 |
|
| 53 |
&:backdrop { |
| 54 |
border-color: gtk("@unfocused_borders"); |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
scrolledwindow { |
| 59 |
viewport.frame { |
| 60 |
// avoid double borders when viewport inside scrolled window |
| 61 |
border-style: none; |
| 62 |
} |
| 63 |
|
| 64 |
junction { |
| 65 |
// the small square between two scrollbars |
| 66 |
border-color: transparent; |
| 67 |
background-color: transparent; |
| 68 |
background-image: none; |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
//vbox and hbox separators |
| 73 |
separator, separator.sidebar { |
| 74 |
background: gtk("@borders"); |
| 75 |
min-width: 1px; |
| 76 |
min-height: 1px; |
| 77 |
} |
| 78 |
|
| 79 |
/************* |
| 80 |
* Expanders * |
| 81 |
*************/ |
| 82 |
|
| 83 |
expander { |
| 84 |
min-width: 16px; |
| 85 |
min-height: 16px; |
| 86 |
-gtk-icon-source: -gtk-icontheme($arrow_right); |
| 87 |
&:dir(rtl) { |
| 88 |
-gtk-icon-source: -gtk-icontheme( |
| 89 |
"go-next-rtl-symbolic" |
| 90 |
); |
| 91 |
} |
| 92 |
&:hover { |
| 93 |
color: gtkshade("@theme_button_decoration_focus", 1.3); |
| 94 |
} |
| 95 |
&:checked { |
| 96 |
-gtk-icon-source: -gtk-icontheme($arrow_down); |
| 97 |
} |
| 98 |
} |
| 99 |
|
| 100 |
/********* |
| 101 |
* Paned * |
| 102 |
*********/ |
| 103 |
|
| 104 |
paned { |
| 105 |
> separator { |
| 106 |
min-width: 1px; |
| 107 |
min-height: 1px; |
| 108 |
-gtk-icon-source: none; // defeats the ugly default handle decoration |
| 109 |
border-style: none; // just to be sure |
| 110 |
background-color: transparent; |
| 111 |
// workaround, using background istead of a border since the border will get rendered twice (?) |
| 112 |
background-image: image(gtk("@borders")); |
| 113 |
background-size: 1px 1px; |
| 114 |
|
| 115 |
//&:selected { background-image: image($selected_bg_color); } // FIXME is this needed? |
| 116 |
|
| 117 |
&:backdrop { |
| 118 |
background-image: image(gtk("@unfocused_borders")); |
| 119 |
} |
| 120 |
|
| 121 |
&.wide { |
| 122 |
min-width: 5px; |
| 123 |
min-height: 5px; |
| 124 |
background-color: gtk("@theme_bg_color"); |
| 125 |
background-image: image(gtk("@borders")), |
| 126 |
image(gtk("@borders")); |
| 127 |
background-size: 1px 1px, 1px 1px; |
| 128 |
|
| 129 |
&:backdrop { |
| 130 |
background-color: gtk("@theme_unfocused_bg_color"); |
| 131 |
background-image: image(gtk("@unfocused_borders")), |
| 132 |
image(gtk("@unfocused_borders")); |
| 133 |
} |
| 134 |
} |
| 135 |
} |
| 136 |
|
| 137 |
&.horizontal > separator { |
| 138 |
background-repeat: repeat-y; |
| 139 |
|
| 140 |
&:dir(ltr) { |
| 141 |
margin: 0 -8px 0 0; |
| 142 |
padding: 0 8px 0 0; |
| 143 |
background-position: left; |
| 144 |
} |
| 145 |
&:dir(rtl) { |
| 146 |
margin: 0 0 0 -8px; |
| 147 |
padding: 0 0 0 8px; |
| 148 |
background-position: right; |
| 149 |
} |
| 150 |
|
| 151 |
&.wide { |
| 152 |
margin: 0; |
| 153 |
padding: 0; |
| 154 |
background-repeat: repeat-y, repeat-y; |
| 155 |
background-position: left, right; |
| 156 |
} |
| 157 |
} |
| 158 |
|
| 159 |
&.vertical > separator { |
| 160 |
margin: 0 0 -8px 0; |
| 161 |
padding: 0 0 8px 0; |
| 162 |
background-repeat: repeat-x; |
| 163 |
background-position: top; |
| 164 |
|
| 165 |
&.wide { |
| 166 |
margin: 0; |
| 167 |
padding: 0; |
| 168 |
background-repeat: repeat-x, repeat-x; |
| 169 |
background-position: bottom, top; |
| 170 |
} |
| 171 |
} |
| 172 |
} |
| 173 |
|
| 174 |
/********************* |
| 175 |
* Spinner Animation * |
| 176 |
*********************/ |
| 177 |
|
| 178 |
@keyframes spin { |
| 179 |
to { |
| 180 |
-gtk-icon-transform: rotate(1turn); |
| 181 |
} |
| 182 |
} |
| 183 |
|
| 184 |
spinner { |
| 185 |
background-image: none; |
| 186 |
opacity: 0; // non spinning spinner makes no sense |
| 187 |
-gtk-icon-source: -gtk-icontheme( |
| 188 |
"process-working-symbolic" |
| 189 |
); |
| 190 |
&:checked { |
| 191 |
opacity: 1; |
| 192 |
animation: spin 1s linear infinite; |
| 193 |
&:disabled { |
| 194 |
opacity: 0.5; |
| 195 |
} |
| 196 |
} |
| 197 |
} |