_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
.conflict-row:not(:selected) { background-color: mix($warning_color, $base_color, percentage($lower_opacity)); }
137
138
// Icon view
139
.nautilus-window flowboxchild {
140
// > widget > box > .icon-background { background-color: black; }
141
142
> widget > .icon-item-background {
143
padding: 4px;
144
border-radius: $material_radius;
145
}
146
147
&:selected {
148
background-color: transparent;
149
150
> widget > .icon-item-background { background-color: $primary_color; }
151
}
152
}
153
154
// Batch rename dialog
155
dialog.background > box.dialog-vbox.vertical > grid.horizontal {
156
> scrolledwindow.frame { border-style: none; }
157
158
> box.horizontal:last-child {
159
margin: -6px 0 0 -6px;
160
border-top: 1px solid $border_color;
161
162
> label { margin: 0 8px; }
163
164
> box > button { border-radius: 0; }
165
}
166
}
167
168
// Tweak to fix the messy sizing of the popover menu
169
.nautilus-window > popover.menu:not(:last-child) {
170
padding: 3px;
171
172
> stack > box > box > box {
173
margin-top: -6px;
174
175
> box {
176
margin-bottom: -6px;
177
178
&.linked { margin-top: 1px; }
179
}
180
}
181
182
separator { margin-bottom: -2px; }
183
}
184
185
.nautilus-menu-sort-heading {
186
// min-height: 26px;
187
// padding-left: 5px;
188
// padding-right: 5px;
189
margin: 1px 3px;
190
font-weight: 500;
191
192
&:disabled { color: $tertiary_fg_color; }
193
}
194
195
// Make operations button circular
196
.nautilus-window headerbar > revealer > button { @extend %circular_button; }
197
198
// Ensure paned separator rendering. See issue #84 for details.
199
.nautilus-window paned > separator { background-color: $bg_color; }
200
201
202
/*********
203
* gedit *
204
*********/
205
// based css:
206
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit.adwaita.css
207
// hard-coded css:
208
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit-style.css
209
210
// Only normal state is handle
211
.open-document-selector-name-label {
212
font-weight: bold;
213
}
214
215
// Only normal state is handle
216
.open-document-selector-path-label {
217
color: gtkalpha(currentColor, $tertiary_opacity);
218
font-size: smaller;
219
220
// @extend .dim-label;
221
}
222
223
.gedit-document-panel {
224
background-color: $lighter_bg_color;
225
226
// Try to look as the notebook tab close button
227
row button.flat {
228
margin-top: 8px;
229
margin-bottom: 8px;
230
231
@extend %small_button;
232
}
233
}
234
235
.gedit-document-panel-group-row:not(:first-child) {
236
border-top: 1px solid $border_color;
237
}
238
239
.gedit-side-panel-paned statusbar {
240
border-top: 1px solid $border_color;
241
}
242
243
.gedit-search-slider {
244
margin: 4px 4px 8px;
245
246
entry {
247
&:dir(ltr),
248
&:dir(rtl) { // specificity bump
249
border-radius: 2px;
250
251
.gedit-search-entry-occurrences-tag {
252
all: unset;
253
color: gtkalpha(currentColor, $tertiary_opacity);
254
}
255
}
256
257
$buttons_width: $small_size * 2 + $container_padding * 3;
258
259
&:dir(ltr) {
260
margin-right: -$buttons_width;
261
padding-right: $buttons_width;
262
263
.gedit-search-entry-occurrences-tag { margin-left: $container_padding; }
264
265
image.right { margin-right: 0; }
266
}
267
268
&:dir(rtl) {
269
margin-left: -$buttons_width;
270
padding-left: $buttons_width;
271
272
.gedit-search-entry-occurrences-tag { margin-right: $container_padding; }
273
274
image.left { margin-left: 0; }
275
}
276
277
&.error ~ button {
278
color: $secondary_inverse_fg_color;
279
280
&:hover, &:active { color: $inverse_fg_color; }
281
282
&:disabled { color: $disabled_secondary_inverse_fg_color; }
283
}
284
}
285
286
button {
287
border: solid $container_padding transparent;
288
289
@extend %simple_flat_button;
290
291
&:dir(ltr),
292
&:dir(rtl) { @extend %small_button; } // specificity bump
293
294
&:last-child:dir(ltr),
295
&:not(:first-child):dir(rtl) { margin-left: -$container_padding / 2; }
296
297
&:first-child:dir(rtl),
298
&:not(:last-child):dir(ltr) { margin-right: -$container_padding / 2; }
299
}
300
}
301
302
frame.gedit-map-frame > border {
303
&:dir(ltr) { border-style: none none none solid; }
304
&:dir(rtl) { border-style: none solid none none; }
305
}
306
307
308
/**************
309
* Tweak Tool *
310
**************/
311
// hard-coded css:
312
// https://git.gnome.org/browse/gnome-tweak-tool/tree/data/shell.css
313
314
// the sidebar
315
.tweak-categories {
316
// padding: 4px 0;
317
// background-color: shade(@theme_bg_color, 0.99);
318
background-image: image($lighter_bg_color);
319
320
separator { @extend %hide_separators; }
321
}
322
323
.tweak {
324
// padding-top: 3px;
325
padding: 3px;
326
327
&.title:hover { box-shadow: none; }
328
}
329
330
.tweak-group-white,
331
.tweak-white,
332
.tweak-white:hover {
333
// background-color: white;
334
background-image: image($base_color);
335
}
336
337
.tweak-startup,
338
.tweak-startup:hover {
339
// background-color: lighter(shade(@theme_bg_color, 0.9));
340
background-image: image($base_color);
341
}
342
343
.tweak-group-startup {
344
// background-color: @view_separators;
345
background-image: image($base_color);
346
border: 1px solid $border_color;
347
}
348
349
350
/***********
351
* Builder *
352
***********/
353
// based css:
354
// https://git.gnome.org/browse/gnome-builder/tree/data/theme
355
// hard-coded css:
356
// https://git.gnome.org/browse/gnome-builder/tree/data/theme/shared.css
357
358
// Layout tab and tab bar tweaks
359
// The following makes the layout stack header look similar to a tab bar.
360
layouttabbar {
361
border-bottom: 1px solid $border_color;
362
background-color: $bg_color;
363
364
button { @extend %flat_button; }
365
366
> box > button {
367
margin: (40px - $medium_size) / 2 0;
368
// border-radius: 0;
369
}
370
}
371
372
layouttab {
373
margin: 0 8px; // not working
374
border-style: none solid;
375
border-width: 1px;
376
border-color: $border_color;
377
box-shadow: inset 0 -2px $primary_color;
378
background-color: $base_color;
379
380
separator.vertical { margin: 8px 4px; }
381
382
button {
383
&.text-button, &.image-button, & {
384
margin-top: 8px;
385
margin-bottom: 8px;
386
padding: 0 4px;
387
}
388
}
389
390
// Close button styling for layouttab.
391
// > box > button.close { @extend %circular_button; }
392
}
393
394
layout {
395
border: 1px solid $border_color;
396
-PnlDockBin-handle-size: 1;
397
}
398
399
entry.search-missing {
400
background-color: $error_color;
401
color: $inverse_fg_color;
402
}
403
404
// tweak icons for treeviews
405
window.workbench treeview.image {
406
color: gtkalpha(currentColor, $tertiary_opacity);
407
408
&:selected { color: $tertiary_inverse_fg_color; }
409
}
410
411
popover.popover-selector list {
412
padding: 8px - 2px;
413
414
row {
415
border-radius: 2px;
416
417
image {
418
&:dir(ltr) { margin-right: 6px; }
419
&:dir(rtl) { margin-left: 6px; }
420
}
421
422
.accel {
423
&:dir(ltr) { margin-left: 6px; }
424
&:dir(rtl) { margin-right: 6px; }
425
}
426
}
427
}
428
429
omnibar {
430
&.linked:not(.vertical) entry { border-radius: 2px; }
431
432
&:not(:hover):not(:active) entry { color: $secondary_fg_color; }
433
}
434
435
popover.omnibar list row:not(:last-child) {
436
border-bottom: 1px solid $border_color;
437
}
438
439
entry.preferences-search {
440
@extend %entry.flat;
441
442
box-shadow: inset 0 -1px $border_color;
443
background-color: $base_color;
444
445
// doesn't work properly
446
// &:dir(ltr) { border-right: 1px solid $border_color; }
447
// &:dir(rtl) { border-left: 1px solid $border_color; }
448
}
449
450
preferences stacksidebar.sidebar {
451
list { background-color: $lighter_bg_color; }
452
453
&:dir(ltr),
454
&:dir(rtl) { list { border-style: none; }}
455
456
list separator { @extend %hide_separators; }
457
}
458
459
preferences > box > box {
460
&:dir(ltr) { border-right: 1px solid $border_color; }
461
&:dir(rtl) { border-left: 1px solid $border_color; }
462
}
463
464
popover.messagepopover {
465
&.background { padding: 0; }
466
467
.popover-action-area button {
468
@extend %simple_flat_button;
469
470
padding: 8px 16px;
471
border-top: 1px solid $border_color;
472
border-radius: 0;
473
474
&:first-child { border-bottom-left-radius: 2px; }
475
476
&:last-child { border-bottom-right-radius: 2px; }
477
}
478
479
.popover-content-area { margin: 16px; }
480
}
481
482
popover.transfers list {
483
background-color: transparent;
484
485
row:not(:first-child) { border-top: 1px solid $border_color; }
486
487
row > box { padding: 10px; }
488
}
489
490
dockbin {
491
border: 1px solid $border_color;
492
-PnlDockBin-handle-size: 1;
493
}
494
495
dockpaned {
496
border: 1px solid $border_color;
497
}
498
499
eggsearchbar box.search-bar {
500
padding: 0 8px;
501
border-bottom: 1px solid $border_color;
502
background-color: $bg_color;
503
}
504
505
docktabstrip {
506
padding: 0 8px;
507
border-bottom: 1px solid $border_color;
508
background-color: $bg_color;
509
}
510
511
docktab {
512
transition: $longer_transition,
513
background-size 0,
514
background-image 0;
515
min-height: $small_size;
516
min-width: $small_size;
517
margin-bottom: -1px;
518
padding: $container_padding 6px;
519
520
outline-offset: -6px;
521
522
border-width: 1px; // for reorderable tabs
523
border-color: transparent; //
524
525
background-image: radial-gradient(circle farthest-corner at center,
526
$primary_color 10%,
527
transparent 0%);
528
background-repeat: no-repeat;
529
background-position: center;
530
background-size: 0% 0%;
531
532
color: $secondary_fg_color;
533
font-weight: 500;
534
535
&:hover {
536
box-shadow: inset 0 -2px $fill_color;
537
color: $fg_color;
538
}
539
540
&:checked {
541
transition: $longer_transition,
542
background-size $longer_duration $deceleration_curve,
543
background-image $longer_duration + $ripple_duration $deceleration_curve;
544
box-shadow: inset 0 -2px $primary_color;
545
background-image: radial-gradient(circle farthest-corner at center,
546
transparent 10%,
547
transparent 0%);
548
background-size: 1000% 1000%;
549
color: $fg_color;
550
}
551
}
552
553
dockoverlayedge {
554
background-color: $bg_color;
555
556
docktabstrip {
557
padding: 0;
558
border: none;
559
}
560
561
&.left-edge docktab {
562
&:hover { box-shadow: inset -2px 0 $fill_color; }
563
&:checked { box-shadow: inset -2px 0 $primary_color; }
564
}
565
566
&.right-edge docktab {
567
&:hover { box-shadow: inset 2px 0 $fill_color; }
568
&:checked { box-shadow: inset 2px 0 $primary_color; }
569
}
570
}
571
572
pillbox {
573
background-color: $bg_color;
574
border-radius: 2px;
575
}
576
577
buildperspective row {
578
// padding: 10px;
579
}
580
581
layoutpane entry.search {
582
@extend %entry.flat;
583
584
box-shadow: inset 0 -1px $border_color;
585
background-color: $base_color;
586
}
587
588
editortweak entry.search {
589
@extend %entry.flat;
590
591
margin-bottom: -1px;
592
box-shadow: none;
593
}
594
595
//
596
// let's tweak hard-coded elements
597
//
598
599
.gb-search-entry-occurrences-tag {
600
box-shadow: none;
601
background-color: transparent;
602
}
603
604
// Keep search bar and layouttab height in sync.
605
// layouttabbar > box,
606
// eggsearchbar > revealer > box,
607
docktabstrip {
608
min-height: 39px;
609
}
610
611
eggsearchbar entry {
612
// min-height: 24px;
613
}
614
615
window.workbench preferences preferencesgroup list entry {
616
// background: none;
617
// min-height: 0px;
618
padding-top: 8px;
619
padding-bottom: 8px;
620
}
621
622
button.run-arrow-button {
623
// min-width: 12px;
624
padding-left: ($medium_size - 16px) / 2;
625
padding-right: ($medium_size - 16px) / 2;
626
}
627
628
629
/**********
630
* Photos *
631
**********/
632
// based css:
633
// https://git.gnome.org/browse/gnome-photos/tree/data/Adwaita.css
634
635
GdMainIconView.content-view {
636
-GdMainIconView-icon-size: 48;
637
638
// Make spinner visible on both dark and bright backgrounds w/o making
639
// it look ugly/weird.
640
// &.cell:active { color: $tertiary_fg_color; }
641
}
642
643
.documents-counter {
644
margin: 8px;
645
border-radius: $circular_radius;
646
box-shadow: $shadow_2;
647
background-color: $accent_color;
648
color: $inverse_fg_color;
649
font-weight: bold;
650
}
651
652
.photos-entry-tag {
653
@extend .documents-entry-tag;
654
}
655
656
.documents-scrolledwin.frame {
657
border-style: none;
658
659
frame.content-view > border { border-style: none; }
660
}
661
662
.photos-icon-bg {
663
}
664
665
.photos-fade-in {
666
opacity: 1;
667
transition: opacity $shorter_duration $deceleration_curve;
668
}
669
670
.photos-fade-out {
671
opacity: 0;
672
transition: opacity $shorter_duration $deceleration_curve;
673
}
674
675
.photos-collection-icon {
676
}
677
678
overlay grid.horizontal > revealer > scrolledwindow.frame {
679
&:dir(ltr) { border-style: none none none solid; }
680
&:dir(rtl) { border-style: none solid none none; }
681
}
682
683
684
/*********
685
* Music *
686
*********/
687
// hard-coded css:
688
// https://git.gnome.org/browse/gnome-music/tree/data/application.css
689
690
.side-panel:dir(ltr) {
691
// border-width: 0 1px 0 0;
692
border-style: solid;
693
border-color: $border_color;
694
}
695
696
.side-panel:dir(rtl) {
697
// border-width: 0 0 0 1px;
698
border-style: solid;
699
border-color: $border_color;
700
}
701
702
.side-panel .view {
703
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.9);
704
background-image: image($lighter_bg_color);
705
706
&:hover { background-image: image(mix($fg_color, $lighter_bg_color, percentage(0.05))); }
707
}
708
709
.side-panel .view:selected {
710
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.5);
711
background-image: image($primary_color);
712
713
&:hover { background-image: image(mix($inverse_fg_color, $primary_color, percentage(0.05))); }
714
}
715
716
.songs-list {
717
// box-shadow: inset 0 -1px shade(@borders, 1.30);
718
// background-color: @theme_bg_color;
719
720
&:hover { background-image: image($row_fill_color); }
721
}
722
723
frame.documents-dropdown {
724
@extend toolbar.osd;
725
726
margin: 8px;
727
728
> border { border: none; }
729
}
730
731
box.vertical > revealer > toolbar.search-bar {
732
border-bottom: 1px solid $border_color;
733
background-clip: border-box; // avoid black border
734
735
button > widget {
736
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
737
// -GtkArrow-arrow-scaling: 1;
738
}
739
}
740
741
742
/*********
743
* To Do *
744
*********/
745
taskrow {
746
transition: $shorter_transition;
747
margin: 0 -8px;
748
749
&:hover { transition: none; }
750
751
label { margin: 0 8px; }
752
753
image { min-width: 16px; }
754
}
755
756
task-list-view > box > revealer > box > button {
757
margin: (12px * 2 - $medium_size) / 2;
758
}
759
760
761
/*******
762
* eog *
763
*******/
764
#eog-thumb-nav {
765
scrolledwindow { border-top: none; }
766
767
button { -gtk-outline-radius: 2px; }
768
}
769
770
771
/*************
772
* Evolution *
773
*************/
774
frame.taskbar > border { border-style: solid none none; }
775
776
box.vertical > paned.horizontal notebook widget .frame { border-style: none; }
777
778
779
/********
780
* gitg *
781
********/
782
frame.commit-frame > border { border-style: solid none none; }
783
784
785
/**************
786
* Characters *
787
**************/
788
box.dialog-vbox scrolledwindow.related { border: 1px solid $border_color; }
789
790
list.categories { background-image: image($lighter_bg_color); }
791
792
793
/*********
794
* Boxes *
795
*********/
796
.transparent-bg + stack overlay > label {
797
min-height: 24px;
798
padding: 0 4px;
799
border-radius: $material_radius;
800
background-color: scale-alpha($black, $lower_opacity);
801
color: $white;
802
}
803
804
805
/**************
806
* Calculator *
807
**************/
808
button.title label { min-height: $medium_size; }
809