_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
// 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: $tertiary_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: gtkalpha(currentColor, $tertiary_opacity);
189
font-size: smaller;
190
191
// @extend .dim-label;
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: $tertiary_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: $secondary_inverse_fg_color;
250
251
&:hover, &:active { color: $inverse_fg_color; }
252
253
&:disabled { color: $disabled_secondary_inverse_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
/***********
322
* Builder *
323
***********/
324
// based css:
325
// https://git.gnome.org/browse/gnome-builder/tree/data/theme
326
// hard-coded css:
327
// https://git.gnome.org/browse/gnome-builder/tree/data/theme/shared.css
328
329
// Layout tab and tab bar tweaks
330
// The following makes the layout stack header look similar to a tab bar.
331
layouttabbar {
332
border-bottom: 1px solid $border_color;
333
background-color: $bg_color;
334
335
button { @extend %flat_button; }
336
337
> box > button {
338
margin: (40px - $medium_size) / 2 0;
339
// border-radius: 0;
340
}
341
}
342
343
layouttab {
344
margin: 0 8px; // not working
345
border-style: none solid;
346
border-width: 1px;
347
border-color: $border_color;
348
box-shadow: inset 0 -2px $primary_color;
349
background-color: $base_color;
350
351
separator.vertical { margin: 8px 4px; }
352
353
button {
354
&.text-button, &.image-button, & {
355
margin-top: 8px;
356
margin-bottom: 8px;
357
padding: 0 4px;
358
}
359
}
360
361
// Close button styling for layouttab.
362
// > box > button.close { @extend %circular_button; }
363
}
364
365
layout {
366
border: 1px solid $border_color;
367
-PnlDockBin-handle-size: 1;
368
}
369
370
entry.search-missing {
371
background-color: $error_color;
372
color: $inverse_fg_color;
373
}
374
375
// tweak icons for treeviews
376
window.workbench treeview.image {
377
color: $tertiary_fg_color;
378
379
&:selected { color: $tertiary_inverse_fg_color; }
380
}
381
382
popover.popover-selector list {
383
padding: 8px - 2px;
384
385
row {
386
border-radius: 2px;
387
388
image {
389
&:dir(ltr) { margin-right: 6px; }
390
&:dir(rtl) { margin-left: 6px; }
391
}
392
393
.accel {
394
&:dir(ltr) { margin-left: 6px; }
395
&:dir(rtl) { margin-right: 6px; }
396
}
397
}
398
}
399
400
omnibar {
401
&.linked:not(.vertical) entry { border-radius: 2px; }
402
403
&:not(:hover):not(:active) entry { color: $secondary_fg_color; }
404
}
405
406
popover.omnibar list row:not(:last-child) {
407
border-bottom: 1px solid $border_color;
408
}
409
410
entry.preferences-search {
411
@extend %entry.flat;
412
413
box-shadow: inset 0 -1px $border_color;
414
background-color: $base_color;
415
416
// doesn't work properly
417
// &:dir(ltr) { border-right: 1px solid $border_color; }
418
// &:dir(rtl) { border-left: 1px solid $border_color; }
419
}
420
421
preferences stacksidebar.sidebar {
422
list { background-color: $lighter_bg_color; }
423
424
&:dir(ltr),
425
&:dir(rtl) { list { border-style: none; }}
426
427
list separator { @extend %hide_separators; }
428
}
429
430
preferences > box > box {
431
&:dir(ltr) { border-right: 1px solid $border_color; }
432
&:dir(rtl) { border-left: 1px solid $border_color; }
433
}
434
435
popover.messagepopover {
436
&.background { padding: 0; }
437
438
.popover-action-area button {
439
@extend %simple_flat_button;
440
441
padding: 8px 16px;
442
border-top: 1px solid $border_color;
443
border-radius: 0;
444
445
&:first-child { border-bottom-left-radius: 2px; }
446
447
&:last-child { border-bottom-right-radius: 2px; }
448
}
449
450
.popover-content-area { margin: 16px; }
451
}
452
453
popover.transfers list {
454
background-color: transparent;
455
456
row:not(:first-child) { border-top: 1px solid $border_color; }
457
458
row > box { padding: 10px; }
459
}
460
461
dockbin {
462
border: 1px solid $border_color;
463
-PnlDockBin-handle-size: 1;
464
}
465
466
dockpaned {
467
border: 1px solid $border_color;
468
}
469
470
eggsearchbar box.search-bar {
471
padding: 0 8px;
472
border-bottom: 1px solid $border_color;
473
background-color: $bg_color;
474
}
475
476
docktabstrip {
477
padding: 0 8px;
478
border-bottom: 1px solid $border_color;
479
background-color: $bg_color;
480
}
481
482
docktab {
483
transition: $longer_transition,
484
background-size 0,
485
background-image 0;
486
min-height: $small_size;
487
min-width: $small_size;
488
margin-bottom: -1px;
489
padding: $container_padding 6px;
490
491
outline-offset: -6px;
492
493
border-width: 1px; // for reorderable tabs
494
border-color: transparent; //
495
496
background-image: radial-gradient(circle farthest-corner at center,
497
$primary_color 10%,
498
transparent 0%);
499
background-repeat: no-repeat;
500
background-position: center;
501
background-size: 0% 0%;
502
503
color: $secondary_fg_color;
504
font-weight: 500;
505
506
&:hover {
507
box-shadow: inset 0 -2px $track_color;
508
color: $fg_color;
509
}
510
511
&:checked {
512
transition: $longer_transition,
513
background-size $longer_duration $deceleration_curve,
514
background-image $longer_duration + $ripple_duration $deceleration_curve;
515
box-shadow: inset 0 -2px $primary_color;
516
background-image: radial-gradient(circle farthest-corner at center,
517
transparent 10%,
518
transparent 0%);
519
background-size: 1000% 1000%;
520
color: $fg_color;
521
}
522
}
523
524
dockoverlayedge {
525
background-color: $bg_color;
526
527
docktabstrip {
528
padding: 0;
529
border: none;
530
}
531
532
&.left-edge docktab {
533
&:hover { box-shadow: inset -2px 0 $track_color; }
534
&:checked { box-shadow: inset -2px 0 $primary_color; }
535
}
536
537
&.right-edge docktab {
538
&:hover { box-shadow: inset 2px 0 $track_color; }
539
&:checked { box-shadow: inset 2px 0 $primary_color; }
540
}
541
}
542
543
pillbox {
544
background-color: $bg_color;
545
border-radius: 2px;
546
}
547
548
buildperspective row {
549
// padding: 10px;
550
}
551
552
layoutpane entry.search {
553
@extend %entry.flat;
554
555
box-shadow: inset 0 -1px $border_color;
556
background-color: $base_color;
557
}
558
559
editortweak entry.search {
560
@extend %entry.flat;
561
562
margin-bottom: -1px;
563
box-shadow: none;
564
}
565
566
//
567
// let's tweak hard-coded elements
568
//
569
570
.gb-search-entry-occurrences-tag {
571
box-shadow: none;
572
background-color: transparent;
573
}
574
575
// Keep search bar and layouttab height in sync.
576
// layouttabbar > box,
577
// eggsearchbar > revealer > box,
578
docktabstrip {
579
min-height: 39px;
580
}
581
582
eggsearchbar entry {
583
// min-height: 24px;
584
}
585
586
window.workbench preferences preferencesgroup list entry {
587
// background: none;
588
// min-height: 0px;
589
padding-top: 8px;
590
padding-bottom: 8px;
591
}
592
593
button.run-arrow-button {
594
// min-width: 12px;
595
padding-left: ($medium_size - 16px) / 2;
596
padding-right: ($medium_size - 16px) / 2;
597
}
598
599
600
/**********
601
* Photos *
602
**********/
603
// based css:
604
// https://git.gnome.org/browse/gnome-photos/tree/data/Adwaita.css
605
606
GdMainIconView.content-view {
607
-GdMainIconView-icon-size: 48;
608
609
// Make spinner visible on both dark and bright backgrounds w/o making
610
// it look ugly/weird.
611
// &.cell:active { color: $tertiary_fg_color; }
612
}
613
614
.documents-counter {
615
margin: 8px;
616
border-radius: $circular_radius;
617
box-shadow: $shadow_2;
618
background-color: $accent_color;
619
color: $inverse_fg_color;
620
font-weight: bold;
621
}
622
623
.photos-entry-tag {
624
@extend .entry-tag;
625
}
626
627
.documents-scrolledwin.frame {
628
border-style: none;
629
630
frame.content-view > border { border-style: none; }
631
}
632
633
.photos-icon-bg {
634
}
635
636
.photos-fade-in {
637
opacity: 1;
638
transition: opacity $shorter_duration $deceleration_curve;
639
}
640
641
.photos-fade-out {
642
opacity: 0;
643
transition: opacity $shorter_duration $deceleration_curve;
644
}
645
646
.photos-collection-icon {
647
}
648
649
overlay grid.horizontal > revealer > scrolledwindow.frame {
650
&:dir(ltr) { border-style: none none none solid; }
651
&:dir(rtl) { border-style: none solid none none; }
652
}
653
654
655
/*********
656
* Music *
657
*********/
658
// hard-coded css:
659
// https://git.gnome.org/browse/gnome-music/tree/data/application.css
660
661
.side-panel:dir(ltr) {
662
// border-width: 0 1px 0 0;
663
border-style: solid;
664
border-color: $border_color;
665
}
666
667
.side-panel:dir(rtl) {
668
// border-width: 0 0 0 1px;
669
border-style: solid;
670
border-color: $border_color;
671
}
672
673
.side-panel .view {
674
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.9);
675
background-image: image($lighter_bg_color);
676
677
&:hover { background-image: image(mix($fg_color, $lighter_bg_color, percentage(0.05))); }
678
}
679
680
.side-panel .view:selected {
681
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.5);
682
background-image: image($primary_color);
683
684
&:hover { background-image: image(mix($inverse_fg_color, $primary_color, percentage(0.05))); }
685
}
686
687
.songs-list {
688
// box-shadow: inset 0 -1px shade(@borders, 1.30);
689
// background-color: @theme_bg_color;
690
691
&:hover { background-image: image($row_fill_color); }
692
}
693
694
frame.documents-dropdown {
695
@extend toolbar.osd;
696
697
margin: 8px;
698
699
> border { border: none; }
700
}
701
702
box.vertical > revealer > toolbar.search-bar {
703
border-bottom: 1px solid $border_color;
704
background-clip: border-box; // avoid black border
705
706
button > widget {
707
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
708
// -GtkArrow-arrow-scaling: 1;
709
}
710
}
711
712
713
/*********
714
* To Do *
715
*********/
716
taskrow {
717
transition: $shorter_transition;
718
margin: 0 -8px;
719
720
&:hover { transition: none; }
721
722
label { margin: 0 8px; }
723
724
image { min-width: 16px; }
725
}
726
727
task-list-view > box > revealer > box > button {
728
margin: (12px * 2 - $medium_size) / 2;
729
}
730
731
732
/*******
733
* eog *
734
*******/
735
#eog-thumb-nav {
736
scrolledwindow { border-top: none; }
737
738
button { -gtk-outline-radius: 2px; }
739
}
740
741
742
/*************
743
* Evolution *
744
*************/
745
frame.taskbar > border { border-style: solid none none; }
746
747
box.vertical > paned.horizontal notebook widget .frame { border-style: none; }
748
749
750
/********
751
* gitg *
752
********/
753
frame.commit-frame > border { border-style: solid none none; }
754
755
756
/**************
757
* Characters *
758
**************/
759
box.dialog-vbox scrolledwindow.related { border: 1px solid $border_color; }
760
761
list.categories { background-image: image($lighter_bg_color); }
762
763
764
/*********
765
* Boxes *
766
*********/
767
.transparent-bg + stack overlay > label {
768
min-height: 24px;
769
padding: 0 4px;
770
border-radius: $material_radius;
771
background-color: rgba($black, $lower_opacity);
772
color: $inverse_fg_color;
773
}
774
775
776
/**************
777
* Calculator *
778
**************/
779
button.title label { min-height: $medium_size; }
780