_gnome.scss
ASCII text
1
/************
2
* Nautilus *
3
************/
4
// based css:
5
// https://git.gnome.org/browse/nautilus/tree/src/resources/css/Adwaita.css
6
// hard-coded css:
7
// https://git.gnome.org/browse/nautilus/tree/src/resources/css/nautilus.css
8
9
.nautilus-window,
10
.nautilus-window notebook,
11
.nautilus-window notebook > stack {
12
background-color: $base_color;
13
}
14
15
.nautilus-canvas-item {
16
@extend iconview;
17
18
// border-radius: $material_radius;
19
}
20
21
.nautilus-canvas-item.dim-label,
22
.nautilus-list-dim-label {
23
// @extend .dim-label;
24
}
25
26
.nautilus-desktop.nautilus-canvas-item:not(:selected) {
27
// background-color: scale-alpha($black, $lower_opacity);
28
color: $inverse_fg_color;
29
text-shadow: $shadow_1;
30
}
31
32
// Toolbar
33
@keyframes needs_attention_keyframes {
34
to { background-color: $fill_color; }
35
}
36
37
.nautilus-operations-button-needs-attention {
38
animation: needs_attention_keyframes $longer_duration $standard_curve 2 alternate;
39
}
40
41
.nautilus-operations-button-needs-attention-multiple {
42
animation: needs_attention_keyframes $longer_duration $standard_curve 4 alternate;
43
}
44
45
// Floating status bar
46
.nautilus-window .floating-bar {
47
@extend %osd;
48
49
// @extend .toolbar.osd;
50
51
min-height: 32px;
52
padding: 0;
53
border-style: solid solid none;
54
border-width: 1px;
55
border-color: $border_color;
56
border-radius: (2px + 1px) (2px + 1px) 0 0;
57
background-color: $base_color;
58
background-clip: $extra_background_clip;
59
transition: $longer_transition, border-width 0;
60
61
&.bottom.left { // axes left border and border radius
62
margin-right: 8px - 1px;
63
border-left-style: none;
64
border-top-left-radius: 0;
65
}
66
67
&.bottom.right { // axes right border and border radius
68
margin-left: 8px - 1px;
69
border-right-style: none;
70
border-top-right-radius: 0;
71
}
72
73
button {
74
margin: (32px - $small_size) / 2;
75
76
@extend %small_button;
77
}
78
}
79
80
.disk-space-display {
81
// border-style: solid;
82
// border-width: 2px;
83
84
&.unknown { background-color: $warning_color; }
85
86
&.used { background-color: $primary_color; }
87
88
&.free {
89
background-color: $fill_color;
90
color: $disabled_fg_color;
91
}
92
}
93
94
// View
95
// Hide superfluous treeview drop target indication
96
.nautilus-list-view .view:not(.dnd) {
97
// border-bottom: 1px solid $border_color;
98
}
99
100
// Libgd tag entries in the search. Sadly it requires this copy pasted css style.
101
// https://git.gnome.org/browse/libgd/tree/libgd/gd-tagged-entry-default.css
102
.documents-entry-tag {
103
// min-height: 24px;
104
margin: 3px -2px 3px 8px;
105
padding: 0 8px;
106
border-radius: $circular_radius;
107
box-shadow: none;
108
background-color: $primary_color;
109
color: $inverse_fg_color;
110
111
&:hover { box-shadow: $shadow_1; }
112
}
113
114
.documents-entry-tag.button {
115
// @extend %simple_flat_button;
116
117
// min-height: 24px;
118
// min-width: 24px;
119
margin: 0 -2px;
120
padding: 4px;
121
border-radius: $circular_radius;
122
box-shadow: none;
123
color: $secondary_inverse_fg_color;
124
125
&:hover, &:active { color: $inverse_fg_color; }
126
}
127
128
// Workaround for the double border of the searchbar since we use a revealer which
129
// always allocates at least 1 pixel
130
.nautilus-window {
131
searchbar { border-top: 1px solid $border_color; }
132
133
.searchbar-container { margin-top: -1px; }
134
}
135
136
// Make operations button circular
137
.nautilus-window headerbar > revealer > button { @extend %circular_button; }
138
139
// Ensure paned separator rendering. See issue #84 for details.
140
.nautilus-window paned > separator { background-color: $bg_color; }
141
142
143
/*********
144
* gedit *
145
*********/
146
// based css:
147
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit.adwaita.css
148
// hard-coded css:
149
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit-style.css
150
151
// Only normal state is handle
152
.open-document-selector-name-label {
153
font-weight: bold;
154
}
155
156
// Only normal state is handle
157
.open-document-selector-path-label {
158
color: gtkalpha(currentColor, $tertiary_opacity);
159
font-size: smaller;
160
161
// @extend .dim-label;
162
}
163
164
.gedit-document-panel {
165
background-color: $lighter_bg_color;
166
167
// Try to look as the notebook tab close button
168
row button.flat {
169
margin-top: 8px;
170
margin-bottom: 8px;
171
172
@extend %small_button;
173
}
174
}
175
176
.gedit-document-panel-group-row:not(:first-child) {
177
border-top: 1px solid $border_color;
178
}
179
180
.gedit-side-panel-paned statusbar {
181
border-top: 1px solid $border_color;
182
}
183
184
.gedit-search-slider {
185
margin: 4px 4px 8px;
186
187
entry {
188
&:dir(ltr),
189
&:dir(rtl) { // specificity bump
190
border-radius: 2px;
191
192
.gedit-search-entry-occurrences-tag {
193
all: unset;
194
color: gtkalpha(currentColor, $tertiary_opacity);
195
}
196
}
197
198
$buttons_width: $small_size * 2 + $container_padding * 3;
199
200
&:dir(ltr) {
201
margin-right: -$buttons_width;
202
padding-right: $buttons_width;
203
204
.gedit-search-entry-occurrences-tag { margin-left: $container_padding; }
205
206
image.right { margin-right: 0; }
207
}
208
209
&:dir(rtl) {
210
margin-left: -$buttons_width;
211
padding-left: $buttons_width;
212
213
.gedit-search-entry-occurrences-tag { margin-right: $container_padding; }
214
215
image.left { margin-left: 0; }
216
}
217
218
&.error ~ button {
219
color: $secondary_inverse_fg_color;
220
221
&:hover, &:active { color: $inverse_fg_color; }
222
223
&:disabled { color: $disabled_secondary_inverse_fg_color; }
224
}
225
}
226
227
button {
228
border: solid $container_padding transparent;
229
230
@extend %simple_flat_button;
231
232
&:dir(ltr),
233
&:dir(rtl) { @extend %small_button; } // specificity bump
234
235
&:last-child:dir(ltr),
236
&:not(:first-child):dir(rtl) { margin-left: -$container_padding / 2; }
237
238
&:first-child:dir(rtl),
239
&:not(:last-child):dir(ltr) { margin-right: -$container_padding / 2; }
240
}
241
}
242
243
frame.gedit-map-frame > border {
244
&:dir(ltr) { border-style: none none none solid; }
245
&:dir(rtl) { border-style: none solid none none; }
246
}
247
248
249
/**************
250
* Tweak Tool *
251
**************/
252
// hard-coded css:
253
// https://git.gnome.org/browse/gnome-tweak-tool/tree/data/shell.css
254
255
// the sidebar
256
.tweak-categories {
257
// padding: 4px 0;
258
// background-color: shade(@theme_bg_color, 0.99);
259
background-image: image($lighter_bg_color);
260
261
separator { @extend %hide_separators; }
262
}
263
264
.tweak {
265
// padding-top: 3px;
266
padding: 3px;
267
268
&.title:hover { box-shadow: none; }
269
}
270
271
.tweak-group-white,
272
.tweak-white,
273
.tweak-white:hover {
274
// background-color: white;
275
background-image: image($base_color);
276
}
277
278
.tweak-startup,
279
.tweak-startup:hover {
280
// background-color: lighter(shade(@theme_bg_color, 0.9));
281
background-image: image($base_color);
282
}
283
284
.tweak-group-startup {
285
// background-color: @view_separators;
286
background-image: image($base_color);
287
border: 1px solid $border_color;
288
}
289
290
291
/***********
292
* Builder *
293
***********/
294
// based css:
295
// https://git.gnome.org/browse/gnome-builder/tree/data/theme
296
// hard-coded css:
297
// https://git.gnome.org/browse/gnome-builder/tree/data/theme/shared.css
298
299
// Titlebar adjustments for workbench
300
//
301
// This is needed due to our placement of headerbar inside of a
302
// stack. We were seeing black edges around the header bar, and
303
// improper radius on the headerbar.
304
//
305
workbench {
306
stack.titlebar {
307
padding: 0;
308
// box-shadow: none;
309
}
310
311
&:not(.tiled):not(.maximized):not(.fullscreen) stack.titlebar headerbar {
312
border-radius: 2px 2px 0 0;
313
// box-shadow: none;
314
}
315
}
316
317
perspectiveswitcher {
318
background-color: $bg_color;
319
320
button:checked { color: $primary_color; }
321
}
322
323
// Layout tab and tab bar tweaks
324
// The following makes the layout stack header look similar to a tab bar.
325
layouttabbar {
326
border-bottom: 1px solid $border_color;
327
background-color: $bg_color;
328
329
button { @extend %flat_button; }
330
331
> box > button {
332
margin: (40px - $medium_size) / 2 0;
333
// border-radius: 0;
334
}
335
}
336
337
layouttab {
338
margin: 0 8px; // not working
339
border-style: none solid;
340
border-width: 1px;
341
border-color: $border_color;
342
box-shadow: inset 0 -2px $primary_color;
343
background-color: $base_color;
344
345
separator.vertical { margin: 8px 4px; }
346
347
button {
348
&.text-button, &.image-button, & {
349
margin-top: 8px;
350
margin-bottom: 8px;
351
padding: 0 4px;
352
}
353
}
354
355
// Close button styling for layouttab.
356
// > box > button.close { @extend %circular_button; }
357
}
358
359
layout {
360
border: 1px solid $border_color;
361
-PnlDockBin-handle-size: 1;
362
}
363
364
entry.search-missing {
365
background-color: $error_color;
366
color: $inverse_fg_color;
367
}
368
369
// tweak icons for treeviews
370
workbench treeview.image {
371
color: gtkalpha(currentColor, $tertiary_opacity);
372
373
&:selected { color: $tertiary_inverse_fg_color; }
374
}
375
376
dockbin {
377
border: 1px solid $border_color;
378
-PnlDockBin-handle-size: 1;
379
}
380
381
dockpaned {
382
border: 1px solid $border_color;
383
}
384
385
eggsearchbar box.search-bar {
386
padding: 0 8px;
387
border-bottom: 1px solid $border_color;
388
background-color: $bg_color;
389
}
390
391
docktabstrip {
392
padding: 0 8px;
393
border-bottom: 1px solid $border_color;
394
background-color: $bg_color;
395
}
396
397
docktab {
398
transition: $longer_transition,
399
background-size 0,
400
background-image 0;
401
min-height: $small_size;
402
min-width: $small_size;
403
margin-bottom: -1px;
404
padding: $container_padding 6px;
405
406
outline-offset: -6px;
407
408
border-width: 1px; // for reorderable tabs
409
border-color: transparent; //
410
411
background-image: radial-gradient(circle farthest-corner at center,
412
$primary_color 10%,
413
transparent 0%);
414
background-repeat: no-repeat;
415
background-position: center;
416
background-size: 0% 0%;
417
418
color: $secondary_fg_color;
419
font-weight: 500;
420
421
&:hover {
422
box-shadow: inset 0 -2px $fill_color;
423
color: $fg_color;
424
}
425
426
&:checked {
427
transition: $longer_transition,
428
background-size $longer_duration $deceleration_curve,
429
background-image $longer_duration + $ripple_duration $deceleration_curve;
430
box-shadow: inset 0 -2px $primary_color;
431
background-image: radial-gradient(circle farthest-corner at center,
432
transparent 10%,
433
transparent 0%);
434
background-size: 1000% 1000%;
435
color: $fg_color;
436
}
437
}
438
439
dockoverlayedge {
440
background-color: $bg_color;
441
442
docktabstrip {
443
padding: 0;
444
border: none;
445
}
446
447
&.left-edge docktab {
448
&:hover { box-shadow: inset -2px 0 $fill_color; }
449
&:checked { box-shadow: inset -2px 0 $primary_color; }
450
}
451
452
&.right-edge docktab {
453
&:hover { box-shadow: inset 2px 0 $fill_color; }
454
&:checked { box-shadow: inset 2px 0 $primary_color; }
455
}
456
}
457
458
pillbox {
459
background-color: $bg_color;
460
border-radius: 2px;
461
}
462
463
buildperspective row {
464
padding: 10px;
465
}
466
467
layoutpane entry.search {
468
@extend %entry.flat;
469
470
box-shadow: inset 0 -1px $border_color;
471
background-color: $base_color;
472
}
473
474
editortweak entry.search {
475
@extend %entry.flat;
476
477
margin-bottom: -1px;
478
box-shadow: none;
479
}
480
481
//
482
// let's tweak hard-coded elements
483
//
484
485
// styling for editor search
486
frame.gb-search-frame {
487
// border-bottom-left-radius: 5px;
488
border-bottom-right-radius: 5px;
489
}
490
491
.gb-search-entry-occurrences-tag {
492
box-shadow: none;
493
background-color: transparent;
494
}
495
496
// Keep search bar and layouttab height in sync.
497
// layouttabbar > box,
498
// eggsearchbar > revealer > box,
499
docktabstrip {
500
min-height: 39px;
501
}
502
503
eggsearchbar entry {
504
// min-height: 24px;
505
}
506
507
workbench preferences preferencesgroup list entry {
508
// background: none;
509
// min-height: 0px;
510
padding-top: 8px;
511
padding-bottom: 8px;
512
}
513
514
515
/**********
516
* Photos *
517
**********/
518
// based css:
519
// https://git.gnome.org/browse/gnome-photos/tree/data/Adwaita.css
520
521
GdMainIconView.content-view {
522
-GdMainIconView-icon-size: 48;
523
524
// Make spinner visible on both dark and bright backgrounds w/o making
525
// it look ugly/weird.
526
// &.cell:active { color: $tertiary_fg_color; }
527
}
528
529
.documents-counter {
530
margin: 8px;
531
border-radius: $circular_radius;
532
box-shadow: $shadow_2;
533
background-color: $accent_color;
534
color: $inverse_fg_color;
535
font-weight: bold;
536
}
537
538
.photos-entry-tag {
539
@extend .documents-entry-tag;
540
}
541
542
.documents-scrolledwin.frame {
543
border-style: none;
544
}
545
546
.photos-icon-bg {
547
}
548
549
.photos-fade-in {
550
opacity: 1;
551
transition: opacity $shorter_duration $deceleration_curve;
552
}
553
554
.photos-fade-out {
555
opacity: 0;
556
transition: opacity $shorter_duration $deceleration_curve;
557
}
558
559
.photos-collection-icon {
560
}
561
562
overlay grid.horizontal > revealer > scrolledwindow.frame {
563
&:dir(ltr) { border-style: none none none solid; }
564
&:dir(rtl) { border-style: none solid none none; }
565
}
566
567
568
/*********
569
* Music *
570
*********/
571
// hard-coded css:
572
// https://git.gnome.org/browse/gnome-music/tree/data/application.css
573
574
.side-panel:dir(ltr) {
575
// border-width: 0 1px 0 0;
576
border-style: solid;
577
border-color: $border_color;
578
}
579
580
.side-panel:dir(rtl) {
581
// border-width: 0 0 0 1px;
582
border-style: solid;
583
border-color: $border_color;
584
}
585
586
.side-panel .view {
587
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.9);
588
background-image: image($lighter_bg_color);
589
590
&:hover { background-image: image(mix($fg_color, $lighter_bg_color, percentage(0.05))); }
591
}
592
593
.side-panel .view:selected {
594
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.5);
595
background-image: image($primary_color);
596
597
&:hover { background-image: image(mix($inverse_fg_color, $primary_color, percentage(0.05))); }
598
}
599
600
.playlists-list {
601
// box-shadow: inset 0 -1px @view_separators;
602
}
603
604
.songs-list {
605
// box-shadow: inset 0 1px shade(@borders, 1.30);
606
// background-color: @theme_bg_color;
607
608
&:hover { background-image: image($row_fill_color); }
609
}
610
611
frame.documents-dropdown {
612
@extend toolbar.osd;
613
614
margin: 8px;
615
616
> border { border: none; }
617
}
618
619
box.vertical:not(.titlebar) > revealer > toolbar.search-bar {
620
border-bottom: 1px solid $border_color;
621
622
button > widget {
623
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
624
// -GtkArrow-arrow-scaling: 1;
625
}
626
}
627
628
629
/*********
630
* To Do *
631
*********/
632
task-row {
633
transition: $shorter_transition;
634
margin: 0 -4px;
635
636
&:hover { transition: none; }
637
638
label { margin: 0 8px; }
639
640
image { margin: 0 4px; }
641
}
642
643
task-list-view > box > revealer > box > button {
644
min-height: $medium_size;
645
margin: -4px;
646
padding: 0 12px;
647
648
label { margin: 0 8px; }
649
650
image { margin: 0 4px; }
651
}
652
653
654
/*******
655
* eog *
656
*******/
657
#eog-thumb-nav {
658
scrolledwindow { border-top: none; }
659
660
button { -gtk-outline-radius: 2px; }
661
}
662
663
664
/*************
665
* Evolution *
666
*************/
667
frame.taskbar > border { border-style: solid none none; }
668
669
box.vertical > paned.horizontal notebook widget .frame { border-style: none; }
670
671
672
/********
673
* gitg *
674
********/
675
frame.commit-frame > border { border-style: solid none none; }
676
677
678
/**************
679
* Characters *
680
**************/
681
box.dialog-vbox scrolledwindow.related { border: 1px solid $border_color; }
682
683
list.categories { background-image: image($lighter_bg_color); }
684
685
686
/**************
687
* Calculator *
688
**************/
689
button.title label { min-height: $medium_size; }
690