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