Skip to content

Commit 946ce3c

Browse files
committed
fix some selectors that were no longer needed. tweaked the hover and checked background/borders.
1 parent 3389178 commit 946ce3c

1 file changed

Lines changed: 18 additions & 33 deletions

File tree

gtk-3.20/scss/widgets/_notebook.scss

Lines changed: 18 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
transition: opacity .3s ease-in;
162162
}
163163

164-
> box, > label {
164+
> box {
165165
padding: 0 ($spacing * 3) ($spacing + 1); // top | left/right | bottom
166166
border-width: 2px;
167167
border-style: solid;
@@ -177,13 +177,10 @@
177177
button, button:hover {
178178
opacity: 1;
179179
}
180-
181-
&:checked {
182-
background-color: mix($bg_color, $base_color, .6);
183-
}
184180
}
185181

186182
&:checked {
183+
background-color: mix($bg_color, $base_color, .4);
187184
border-bottom-color: transparent;
188185
outline: none;
189186

@@ -194,6 +191,14 @@
194191
&:hover {
195192
background-color: mix($bg_color, $base_color, .6);
196193
}
194+
195+
&:not(:first-child:only-child){
196+
box-shadow: -1px 0 1px 0 rgba(0,0,0,0.1);
197+
}
198+
199+
&:not(:last-child:only-child) {
200+
box-shadow: 1px 0 1px 0 rgba(0,0,0,0.1);
201+
}
197202
}
198203

199204
label {
@@ -214,24 +219,19 @@
214219
border-bottom-width: 1px;
215220
transition: border-bottom-color .3s ease-out;
216221

217-
> box, > label {
222+
> box {
218223
padding: 0 ($spacing * 3) ($spacing + 1); // top | left/right | bottom
219224
}
220225

221226
&:hover {
222-
border-bottom-color: shade($base_color, .65);
223227
outline: none;
224-
225-
> box, > label {
226-
border-bottom-color: shade($base_color, .65);
227-
}
228228
}
229229

230230
&:checked {
231231
border-bottom-color: $selected_bg_color;
232232
outline: none;
233233

234-
> box, > label {
234+
> box {
235235
border-bottom-color: $selected_bg_color;
236236
}
237237

@@ -254,24 +254,19 @@
254254
border-left-width: 1px;
255255
transition: border-left-color .3s ease-out;
256256

257-
> box, > label {
257+
> box {
258258
padding: ($spacing + 1) ($spacing * 3); // top | right | bottom | left
259259
}
260260

261261
&:hover {
262-
border-left-color: shade($base_color, .65);
263262
outline: none;
264-
265-
> box, > label {
266-
border-left-color: shade($base_color, .65);
267-
}
268263
}
269264

270265
&:checked {
271266
border-left-color: $selected_bg_color;
272267
outline: none;
273268

274-
> box, > label {
269+
> box {
275270
border-left-color: $selected_bg_color;
276271
}
277272

@@ -294,24 +289,19 @@
294289
border-top-width: 1px;
295290
transition: border-top-color .3s ease-out;
296291

297-
> box, > label {
292+
> box {
298293
padding: ($spacing + 1) ($spacing * 3) 0; // top/bottom | left/right
299294
}
300295

301296
&:hover {
302-
border-top-color: shade($base_color, .65);
303297
outline: none;
304-
305-
> box, > label {
306-
border-top-color: shade($base_color, .65);
307-
}
308298
}
309299

310300
&:checked {
311301
border-top-color: $selected_bg_color;
312302
outline: none;
313303

314-
> box, > label {
304+
> box {
315305
border-top-color: $selected_bg_color;
316306
}
317307

@@ -334,24 +324,19 @@
334324
border-right-width: 1px;
335325
transition: border-right-color .3s ease-out;
336326

337-
> box, > label {
327+
> box {
338328
padding: ($spacing + 1) ($spacing * 3); // top/bottom | left/right
339329
}
340330

341331
&:hover {
342-
border-right-color: shade($base_color, .65);
343332
outline: none;
344-
345-
> box, > label {
346-
border-right-color: shade($base_color, .65);
347-
}
348333
}
349334

350335
&:checked {
351336
border-right-color: $selected_bg_color;
352337
outline: none;
353338

354-
> box, > label {
339+
> box {
355340
border-right-color: $selected_bg_color;
356341
}
357342

0 commit comments

Comments
 (0)