_gnome.scss
ASCII text
1
/************
2
* Nautilus *
3
************/
4
// based css:
5
// https://gitlab.gnome.org/GNOME/nautilus/blob/master/src/resources/css/Adwaita.css
6
// hard-coded css:
7
// https://gitlab.gnome.org/GNOME/nautilus/blob/master/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
// border-radius: $material_radius;
17
}
18
19
.nautilus-canvas-item.dim-label,
20
.nautilus-list-dim-label {
21
// @extend .dim-label;
22
}
23
24
.nautilus-desktop.nautilus-canvas-item:not(:selected) {
25
// background-color: rgba($black, $lower_opacity);
26
color: $inverse_fg_color;
27
text-shadow: $shadow_1;
28
}
29
30
// Toolbar
31
@keyframes needs_attention_keyframes {
32
to { background-color: $fill_color; }
33
}
34
35
.nautilus-operations-button-needs-attention {
36
animation: needs_attention_keyframes $longer_duration $standard_curve 2 alternate;
37
}
38
39
.nautilus-operations-button-needs-attention-multiple {
40
animation: needs_attention_keyframes $longer_duration $standard_curve 4 alternate;
41
}
42
43
// Floating status bar
44
.nautilus-window .floating-bar {
45
@extend %osd;
46
47
// @extend .toolbar.osd;
48
49
min-height: 32px;
50
padding: 0;
51
border-style: solid solid none;
52
border-width: 1px;
53
border-color: $border_color;
54
border-radius: (2px + 1px) (2px + 1px) 0 0;
55
background-color: $base_color;
56
background-clip: $extra_background_clip;
57
transition: $longer_transition, border-width 0;
58
59
&.bottom.left { // axes left border and border radius
60
margin-right: 8px - 1px;
61
border-left-style: none;
62
border-top-left-radius: 0;
63
}
64
65
&.bottom.right { // axes right border and border radius
66
margin-left: 8px - 1px;
67
border-right-style: none;
68
border-top-right-radius: 0;
69
}
70
71
button {
72
margin: (32px - $small_size) / 2;
73
74
@extend %small_button;
75
}
76
}
77
78
.disk-space-display {
79
// border-style: solid;
80
// border-width: 2px;
81
82
&.unknown { background-color: $warning_color; }
83
84
&.used { background-color: $primary_color; }
85
86
&.free { background-color: $divider_color; }
87
}
88
89
// View
90
// Hide superfluous treeview drop target indication
91
.nautilus-list-view .view:not(.dnd) {
92
// border-bottom: 1px solid $border_color;
93
}
94
95
.documents-entry-tag {
96
@extend .entry-tag;
97
}
98
99
// Workaround for the double border of the searchbar since we use a revealer which
100
// always allocates at least 1 pixel
101
.nautilus-window {
102
searchbar { border-top: 1px solid $border_color; }
103
104
.searchbar-container { margin-top: -1px; }
105
}
106
107
.conflict-row:not(:selected) { background-color: mix($warning_color, $base_color, percentage($lower_opacity)); }
108
109
// Icon view
110
.nautilus-window flowboxchild {
111
// > widget > box > .icon-background { background-color: black; }
112
113
> widget > .icon-item-background {
114
padding: 4px;
115
border-radius: $material_radius;
116
}
117
118
&:selected {
119
background-color: transparent;
120
121
> widget > .icon-item-background { background-color: $primary_color; }
122
}
123
}
124
125
// Batch rename dialog
126
dialog.background > box.dialog-vbox.vertical > grid.horizontal {
127
> scrolledwindow.frame { border-style: none; }
128
129
> box.horizontal:last-child {
130
margin: -6px 0 0 -6px;
131
border-top: 1px solid $border_color;
132
133
> label { margin: 0 8px; }
134
135
> box > button { border-radius: 0; }
136
}
137
}
138
139
// Tweak to fix the messy sizing of the popover menu
140
.nautilus-window > popover.menu:not(:last-child) {
141
padding: 3px;
142
143
> stack > box > box > box {
144
margin-top: -6px;
145
146
> box {
147
margin-bottom: -6px;
148
149
&.linked { margin-top: 1px; }
150
}
151
}
152
153
separator { margin-bottom: -2px; }
154
}
155
156
.nautilus-menu-sort-heading {
157
// min-height: 26px;
158
// padding-left: 5px;
159
// padding-right: 5px;
160
margin: 1px 3px;
161
font-weight: 500;
162
163
&:disabled { color: $hint_fg_color; }
164
}
165
166
// Make operations button circular
167
.nautilus-window headerbar > revealer > button { @extend %circular_button; }
168
169
// Ensure paned separator rendering. See issue #84 for details.
170
.nautilus-window paned > separator { background-color: $bg_color; }
171
172
173
/*********
174
* gedit *
175
*********/
176
// based css:
177
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit.adwaita.css
178
// hard-coded css:
179
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit-style.css
180
181
// Only normal state is handle
182
.open-document-selector-name-label {
183
// font-weight: bold;
184
}
185
186
// Only normal state is handle
187
.open-document-selector-path-label {
188
color: $secondary_fg_color;
189
font-size: smaller;
190
191
&:selected { color: $inverse_secondary_fg_color; }
192
}
193
194
.gedit-document-panel {
195
background-color: $lighter_bg_color;
196
197
// Try to look as the notebook tab close button
198
row button.flat {
199
margin-top: 8px;
200
margin-bottom: 8px;
201
202
@extend %small_button;
203
}
204
}
205
206
.gedit-document-panel-group-row:not(:first-child) {
207
border-top: 1px solid $border_color;
208
}
209
210
.gedit-side-panel-paned statusbar {
211
border-top: 1px solid $border_color;
212
}
213
214
.gedit-search-slider {
215
margin: 4px 4px 8px;
216
217
entry {
218
&:dir(ltr),
219
&:dir(rtl) { // specificity bump
220
border-radius: 2px;
221
222
.gedit-search-entry-occurrences-tag {
223
all: unset;
224
color: $hint_fg_color;
225
}
226
}
227
228
$buttons_width: $small_size * 2 + $container_padding * 3;
229
230
&:dir(ltr) {
231
margin-right: -$buttons_width;
232
padding-right: $buttons_width;
233
234
.gedit-search-entry-occurrences-tag { margin-left: $container_padding; }
235
236
image.right { margin-right: 0; }
237
}
238
239
&:dir(rtl) {
240
margin-left: -$buttons_width;
241
padding-left: $buttons_width;
242
243
.gedit-search-entry-occurrences-tag { margin-right: $container_padding; }
244
245
image.left { margin-left: 0; }
246
}
247
248
&.error ~ button {
249
color: $inverse_secondary_fg_color;
250
251
&:hover, &:active { color: $inverse_fg_color; }
252
253
&:disabled { color: $inverse_disabled_secondary_fg_color; }
254
}
255
}
256
257
button {
258
border: solid $container_padding transparent;
259
260
@extend %simple_flat_button;
261
262
&:dir(ltr),
263
&:dir(rtl) { @extend %small_button; } // specificity bump
264
265
&:last-child:dir(ltr),
266
&:not(:first-child):dir(rtl) { margin-left: -$container_padding / 2; }
267
268
&:first-child:dir(rtl),
269
&:not(:last-child):dir(ltr) { margin-right: -$container_padding / 2; }
270
}
271
}
272
273
frame.gedit-map-frame > border {
274
&:dir(ltr) { border-style: none none none solid; }
275
&:dir(rtl) { border-style: none solid none none; }
276
}
277
278
279
/**************
280
* Tweak Tool *
281
**************/
282
// hard-coded css:
283
// https://git.gnome.org/browse/gnome-tweak-tool/tree/data/shell.css
284
285
// the sidebar
286
.tweak-categories {
287
// padding: 4px 0;
288
// background-color: shade(@theme_bg_color, 0.99);
289
background-image: image($lighter_bg_color);
290
291
separator { @extend %hide_separators; }
292
}
293
294
.tweak {
295
// padding-top: 3px;
296
padding: 3px;
297
298
&.title:hover { box-shadow: none; }
299
}
300
301
.tweak-group-white,
302
.tweak-white,
303
.tweak-white:hover {
304
// background-color: white;
305
background-image: image($base_color);
306
}
307
308
.tweak-startup,
309
.tweak-startup:hover {
310
// background-color: lighter(shade(@theme_bg_color, 0.9));
311
background-image: image($base_color);
312
}
313
314
.tweak-group-startup {
315
// background-color: @view_separators;
316
background-image: image($base_color);
317
border: 1px solid $border_color;
318
}
319
320
//
321
// Workaround for 3.26
322
//
323
324
row#Focus,
325
row#StaticWorkspaceTweak,
326
row#PrimaryWorkspaceTweak {
327
padding: 0;
328
border: 1px solid $border_color;
329
330
row:not(:last-child) { border-bottom: 1px solid $border_color; }
331
}
332
333
// Add more spaces between title and list
334
row#Focus,
335
row#PrimaryWorkspaceTweak {
336
margin-top: 4px;
337
}
338
339
340
/***********
341
* Builder *
342
***********/
343
// based css for 3.22:
344
// https://git.gnome.org/browse/gnome-builder/tree/data/theme?h=gnome-builder-3-22
345
// based css for 3.24:
346
// https://git.gnome.org/browse/gnome-builder/tree/data/theme?h=gnome-builder-3-24
347
// based css for 3.26:
348
// https://git.gnome.org/browse/gnome-builder/tree/data/themes?h=gnome-builder-3-26
349
350
// Layout tab and tab bar tweaks
351
// The following makes the layout stack header look similar to a tab bar.
352
layouttabbar {
353
border-bottom: 1px solid $border_color;
354
background-color: $bg_color;
355
356
button { @extend %flat_button; }
357
358
> box > button {
359
margin: (40px - $medium_size) / 2 0;
360
// border-radius: 0;
361
}
362
}
363
364
layouttab {
365
margin: 0 8px; // not working
366
border-style: none solid;
367
border-width: 1px;
368
border-color: $border_color;
369
box-shadow: inset 0 -2px $primary_color;
370
background-color: $base_color;
371
372
separator.vertical { margin: 8px 4px; }
373
374
button {
375
&.text-button, &.image-button, & {
376
margin-top: 8px;
377
margin-bottom: 8px;
378
padding: 0 4px;
379
}
380
}
381
382
// Close button styling for layouttab.
383
// > box > button.close { @extend %circular_button; }
384
}
385
386
layout {
387
border: 1px solid $border_color;
388
-PnlDockBin-handle-size: 1;
389
}
390
391
entry.search-missing {
392
background-color: $error_color;
393
color: $inverse_fg_color;
394
}
395
396
// tweak icons for treeviews
397
window.workbench treeview.image {
398
color: $secondary_fg_color;
399
400
&:selected { color: $inverse_secondary_fg_color; }
401
}
402
403
popover.popover-selector list {
404
padding: 8px - 2px;
405
406
row {
407
border-radius: 2px;
408
409
image {
410
&:dir(ltr) { margin-right: 6px; }
411
&:dir(rtl) { margin-left: 6px; }
412
}
413
414
.accel {
415
&:dir(ltr) { margin-left: 6px; }
416
&:dir(rtl) { margin-right: 6px; }
417
}
418
}
419
}
420
421
omnibar {
422
&.linked:not(.vertical) entry { border-radius: 2px; }
423
424
&:not(:hover):not(:active) entry { color: $secondary_fg_color; }
425
}
426
427
popover.omnibar list row:not(:last-child) {
428
border-bottom: 1px solid $border_color;
429
}
430
431
entry.preferences-search {
432
@extend %entry.flat;
433
434
box-shadow: inset 0 -1px $border_color;
435
background-color: $base_color;
436
437
// doesn't work properly
438
// &:dir(ltr) { border-right: 1px solid $border_color; }
439
// &:dir(rtl) { border-left: 1px solid $border_color; }
440
}
441
442
preferences stacksidebar.sidebar {
443
list { background-color: $lighter_bg_color; }
444
445
&:dir(ltr),
446
&:dir(rtl) { list { border-style: none; }}
447
448
list separator { @extend %hide_separators; }
449
}
450
451
preferences > box > box {
452
&:dir(ltr) { border-right: 1px solid $border_color; }
453
&:dir(rtl) { border-left: 1px solid $border_color; }
454
}
455
456
popover.messagepopover {
457
&.background { padding: 0; }
458
459
.popover-action-area button {
460
@extend %simple_flat_button;
461
462
padding: 8px 16px;
463
border-top: 1px solid $border_color;
464
border-radius: 0;
465
466
&:first-child { border-bottom-left-radius: 2px; }
467
468
&:last-child { border-bottom-right-radius: 2px; }
469
}
470
471
.popover-content-area { margin: 16px; }
472
}
473
474
popover.transfers list {
475
background-color: transparent;
476
477
row:not(:first-child) { border-top: 1px solid $border_color; }
478
479
row > box { padding: 10px; }
480
}
481
482
dockbin {
483
border: 1px solid $border_color;
484
-PnlDockBin-handle-size: 1;
485
}
486
487
dockpaned {
488
border: 1px solid $border_color;
489
}
490
491
eggsearchbar box.search-bar {
492
padding: 0 8px;
493
border-bottom: 1px solid $border_color;
494
background-color: $bg_color;
495
}
496
497
docktabstrip {
498
padding: 0 8px;
499
border-bottom: 1px solid $border_color;
500
background-color: $bg_color;
501
}
502
503
docktab {
504
transition: $longer_transition,
505
background-size 0,
506
background-image 0;
507
min-height: $small_size;
508
min-width: $small_size;
509
margin-bottom: -1px;
510
padding: $container_padding 6px;
511
512
outline-offset: -6px;
513
514
border-width: 1px; // for reorderable tabs
515
border-color: transparent; //
516
517
background-image: radial-gradient(circle farthest-corner at center,
518
$primary_color 10%,
519
transparent 0%);
520
background-repeat: no-repeat;
521
background-position: center;
522
background-size: 0% 0%;
523
524
color: $secondary_fg_color;
525
font-weight: 500;
526
527
&:hover {
528
box-shadow: inset 0 -2px $track_color;
529
color: $fg_color;
530
}
531
532
&:checked {
533
transition: $longer_transition,
534
background-size $longer_duration $deceleration_curve,
535
background-image $longer_duration + $ripple_duration $deceleration_curve;
536
box-shadow: inset 0 -2px $primary_color;
537
background-image: radial-gradient(circle farthest-corner at center,
538
transparent 10%,
539
transparent 0%);
540
background-size: 1000% 1000%;
541
color: $fg_color;
542
}
543
}
544
545
dockoverlayedge {
546
background-color: $bg_color;
547
548
docktabstrip {
549
padding: 0;
550
border: none;
551
}
552
553
&.left-edge docktab {
554
&:hover { box-shadow: inset -2px 0 $track_color; }
555
&:checked { box-shadow: inset -2px 0 $primary_color; }
556
}
557
558
&.right-edge docktab {
559
&:hover { box-shadow: inset 2px 0 $track_color; }
560
&:checked { box-shadow: inset 2px 0 $primary_color; }
561
}
562
}
563
564
pillbox {
565
background-color: $bg_color;
566
border-radius: 2px;
567
}
568
569
buildperspective row {
570
// padding: 10px;
571
}
572
573
layoutpane entry.search {
574
@extend %entry.flat;
575
576
box-shadow: inset 0 -1px $border_color;
577
background-color: $base_color;
578
}
579
580
editortweak entry.search {
581
@extend %entry.flat;
582
583
margin-bottom: -1px;
584
box-shadow: none;
585
}
586
587
//
588
// let's tweak hard-coded elements
589
//
590
591
.gb-search-entry-occurrences-tag {
592
box-shadow: none;
593
background-color: transparent;
594
}
595
596
// Keep search bar and layouttab height in sync.
597
// layouttabbar > box,
598
// eggsearchbar > revealer > box,
599
docktabstrip {
600
min-height: 39px;
601
}
602
603
eggsearchbar entry {
604
// min-height: 24px;
605
}
606
607
window.workbench preferences preferencesgroup list entry {
608
// background: none;
609
// min-height: 0px;
610
padding-top: 8px;
611
padding-bottom: 8px;
612
}
613
614
button.run-arrow-button {
615
// min-width: 12px;
616
padding-left: ($medium_size - 16px) / 2;
617
padding-right: ($medium_size - 16px) / 2;
618
}
619
620
//
621
// Additional styles for 3.26
622
//
623
624
button.dzlmenubutton image {
625
min-width: $medium_size - 6px;
626
627
&.arrow { min-width: $medium_size - 9px; }
628
}
629
630
button.dzlmenubuttonitem {
631
color: $fg_color;
632
font-weight: normal;
633
634
&:disabled { color: $disabled_fg_color; }
635
}
636
637
idelayoutstackheader {
638
border-bottom: 1px solid $border_color;
639
640
button:checked { color: $fg_color; }
641
}
642
643
// utilities stack switcher
644
ideeditorutilities > dzldockpaned > box > stackswitcher {
645
padding: 8px 0;
646
background-color: $bg_color;
647
648
&:dir(ltr) { border-right: 1px solid $border_color; }
649
650
&:dir(rtl) { border-left: 1px solid $border_color; }
651
652
button {
653
border-radius: 0;
654
outline-offset: -6px;
655
box-shadow: none;
656
background-color: transparent;
657
658
&:active {
659
background-image: radial-gradient(circle farthest-corner at center,
660
rgba($primary_color, 0.7) 10%,
661
transparent 0%);
662
}
663
664
&:checked {
665
background-color: transparent;
666
color: $fg_color;
667
}
668
669
&:dir(ltr) {
670
margin-right: -1px;
671
672
&:hover { box-shadow: inset -2px 0 $track_color; }
673
674
&:active,
675
&:checked { box-shadow: inset -2px 0 $primary_color; }
676
}
677
678
&:dir(rtl) {
679
margin-left: -1px;
680
681
&:hover { box-shadow: inset 2px 0 $track_color; }
682
683
&:active,
684
&:checked { box-shadow: inset 2px 0 $primary_color; }
685
}
686
}
687
}
688
689
// buildui panel
690
ideeditorsidebar notebook header {
691
background: transparent;
692
}
693
694
popover.messagepopover {
695
// padding: 0;
696
697
list {
698
border: 1px solid $border_color;
699
700
row:not(:last-child) { border-bottom: 1px solid $border_color; }
701
}
702
}
703
704
705
/**********
706
* Photos *
707
**********/
708
// based css:
709
// https://git.gnome.org/browse/gnome-photos/tree/data/Adwaita.css
710
711
GdMainIconView.content-view {
712
-GdMainIconView-icon-size: 48;
713
714
// Make spinner visible on both dark and bright backgrounds w/o making
715
// it look ugly/weird.
716
// &.cell:active { color: $hint_fg_color; }
717
}
718
719
.documents-counter {
720
margin: 8px;
721
border-radius: $circular_radius;
722
box-shadow: $shadow_2;
723
background-color: $accent_color;
724
color: $inverse_fg_color;
725
font-weight: bold;
726
}
727
728
.photos-entry-tag {
729
@extend .entry-tag;
730
}
731
732
.documents-scrolledwin.frame {
733
border-style: none;
734
735
frame.content-view > border { border-style: none; }
736
}
737
738
.photos-icon-bg {
739
}
740
741
.photos-fade-in {
742
opacity: 1;
743
transition: opacity $shorter_duration $deceleration_curve;
744
}
745
746
.photos-fade-out {
747
opacity: 0;
748
transition: opacity $shorter_duration $deceleration_curve;
749
}
750
751
.photos-collection-icon {
752
}
753
754
overlay grid.horizontal > revealer > scrolledwindow.frame {
755
&:dir(ltr) { border-style: none none none solid; }
756
&:dir(rtl) { border-style: none solid none none; }
757
}
758
759
760
/*********
761
* Music *
762
*********/
763
// hard-coded css:
764
// https://git.gnome.org/browse/gnome-music/tree/data/application.css
765
766
.side-panel:dir(ltr) {
767
// border-width: 0 1px 0 0;
768
border-style: solid;
769
border-color: $border_color;
770
}
771
772
.side-panel:dir(rtl) {
773
// border-width: 0 0 0 1px;
774
border-style: solid;
775
border-color: $border_color;
776
}
777
778
.side-panel .view {
779
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.9);
780
background-image: image($lighter_bg_color);
781
782
&:hover { background-image: image(mix($fg_color, $lighter_bg_color, percentage(0.05))); }
783
}
784
785
.side-panel .view:selected {
786
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.5);
787
background-image: image($primary_color);
788
789
&:hover { background-image: image(mix($inverse_fg_color, $primary_color, percentage(0.05))); }
790
}
791
792
.songs-list {
793
// box-shadow: inset 0 -1px shade(@borders, 1.30);
794
// background-color: @theme_bg_color;
795
796
&:hover { background-image: image($row_fill_color); }
797
}
798
799
frame.documents-dropdown {
800
@extend toolbar.osd;
801
802
margin: 8px;
803
804
> border { border: none; }
805
}
806
807
box.vertical > revealer > toolbar.search-bar {
808
border-bottom: 1px solid $border_color;
809
background-clip: border-box; // avoid black border
810
811
button > widget {
812
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
813
// -GtkArrow-arrow-scaling: 1;
814
}
815
}
816
817
818
/*********
819
* To Do *
820
*********/
821
taskrow {
822
transition: $shorter_transition;
823
margin: 0 -8px;
824
825
&:hover { transition: none; }
826
827
label { margin: 0 8px; }
828
829
image { min-width: 16px; }
830
}
831
832
task-list-view > box > revealer > box > button {
833
margin: (12px * 2 - $medium_size) / 2;
834
}
835
836
837
/*******
838
* eog *
839
*******/
840
#eog-thumb-nav {
841
scrolledwindow { border-top: none; }
842
843
button { -gtk-outline-radius: 2px; }
844
}
845
846
847
/*************
848
* Evolution *
849
*************/
850
frame.taskbar > border { border-style: solid none none; }
851
852
box.vertical > paned.horizontal notebook widget .frame { border-style: none; }
853
854
855
/********
856
* gitg *
857
********/
858
frame.commit-frame > border { border-style: solid none none; }
859
860
861
/**************
862
* Characters *
863
**************/
864
box.dialog-vbox scrolledwindow.related { border: 1px solid $border_color; }
865
866
list.categories { background-image: image($lighter_bg_color); }
867
868
869
/*********
870
* Boxes *
871
*********/
872
.transparent-bg + stack overlay > label {
873
min-height: 24px;
874
padding: 0 4px;
875
border-radius: $material_radius;
876
background-color: rgba($black, $lower_opacity);
877
color: $inverse_fg_color;
878
}
879
880
881
/**************
882
* Calculator *
883
**************/
884
button.title label { min-height: $medium_size; }
885
886
887
/*********
888
* Geary *
889
*********/
890
// fix a issue that separator seems double
891
.geary-titlebar-left {
892
&:dir(ltr) {
893
margin-right: 5px;
894
padding-right: 0;
895
}
896
897
&:dir(rtl) {
898
margin-left: 5px;
899
padding-left: 0;
900
}
901
902
> separator { background-color: rgba($black, 0.05); }
903
}
904
905
.geary-titlebar-right {
906
&:dir(ltr) { margin-left: -5px; }
907
908
&:dir(rtl) { margin-right: -5px; }
909
}
910