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