Debian Codegraph @

src/gtk3/widgets/_misc.scss

raw
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 arrow {
85 min-width: 16px;
86 min-height: 16px;
87 -gtk-icon-source: -gtk-icontheme($arrow_right);
88 &:dir(rtl) {
89 -gtk-icon-source: -gtk-icontheme(
90 "go-next-rtl-symbolic"
91 );
92 }
93 &:hover {
94 color: gtkshade("@theme_button_decoration_focus", 1.3);
95 } //only lightens the arrow
96 &:checked {
97 -gtk-icon-source: -gtk-icontheme($arrow_down);
98 }
99 }
100 }
101
102 /*********
103 * Paned *
104 *********/
105
106 paned {
107 > separator {
108 min-width: 1px;
109 min-height: 1px;
110 -gtk-icon-source: none; // defeats the ugly default handle decoration
111 border-style: none; // just to be sure
112 background-color: transparent;
113 // workaround, using background istead of a border since the border will get rendered twice (?)
114 background-image: image(gtk("@borders"));
115 background-size: 1px 1px;
116
117 //&:selected { background-image: image($selected_bg_color); } // FIXME is this needed?
118
119 &:backdrop {
120 background-image: image(gtk("@unfocused_borders"));
121 }
122
123 &.wide {
124 min-width: 5px;
125 min-height: 5px;
126 background-color: gtk("@theme_bg_color");
127 background-image: image(gtk("@borders")),
128 image(gtk("@borders"));
129 background-size: 1px 1px, 1px 1px;
130
131 &:backdrop {
132 background-color: gtk("@theme_unfocused_bg_color");
133 background-image: image(gtk("@unfocused_borders")),
134 image(gtk("@unfocused_borders"));
135 }
136 }
137 }
138
139 &.horizontal > separator {
140 background-repeat: repeat-y;
141
142 &:dir(ltr) {
143 margin: 0 -8px 0 0;
144 padding: 0 8px 0 0;
145 background-position: left;
146 }
147 &:dir(rtl) {
148 margin: 0 0 0 -8px;
149 padding: 0 0 0 8px;
150 background-position: right;
151 }
152
153 &.wide {
154 margin: 0;
155 padding: 0;
156 background-repeat: repeat-y, repeat-y;
157 background-position: left, right;
158 }
159 }
160
161 &.vertical > separator {
162 margin: 0 0 -8px 0;
163 padding: 0 0 8px 0;
164 background-repeat: repeat-x;
165 background-position: top;
166
167 &.wide {
168 margin: 0;
169 padding: 0;
170 background-repeat: repeat-x, repeat-x;
171 background-position: bottom, top;
172 }
173 }
174 }
175
176 /*********************
177 * Spinner Animation *
178 *********************/
179
180 @keyframes spin {
181 to {
182 -gtk-icon-transform: rotate(1turn);
183 }
184 }
185
186 spinner {
187 background-image: none;
188 opacity: 0; // non spinning spinner makes no sense
189 -gtk-icon-source: -gtk-icontheme(
190 "process-working-symbolic"
191 );
192 &:checked {
193 opacity: 1;
194 animation: spin 1s linear infinite;
195 &:disabled {
196 opacity: 0.5;
197 }
198 }
199 }