summarylogtreecommitdiffstats
path: root/gtk.css
blob: 249ad655088f29db94354a904d87dbd841c63a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* https://www.reddit.com/r/elementaryos/comments/eulr2p/pure_black_overlay_on_elementary_dark_theme/ */
/* elementary-gtk black */
@define-color base_color mix (@BLACK_900, @BLACK_500, 0.5);
@define-color bg_color shade (@base_color, 0.1);
@define-color titlebar_color shade (@bg_color, 0.1);
@define-color decoration_border_color alpha (white, 0.15);

/* distinguish dialogs */
dialog decoration,
messagedialog decoration {
  box-shadow: 0 0 0 1px @decoration_border_color;
}
/* distinguish buttons & entries */
button, checkbutton, radiobutton, entry {
  box-shadow: 0 0 0 1px @decoration_border_color;
}

/* boldest font on active tab */
notebook tab:checked label {
  font-weight: 900;
}

/* https://www.reddit.com/r/gnome/comments/eojq1r/what_css_property_controls_this_1px_square_border/fedlzxy/ */
/* Rounded corners */
decoration {
 border-radius: 8px;
}

window, window.background {
 border-radius: 0 0 4px 4px;
}

/* https://wiki.archlinux.org/index.php/GTK#Client-side_decorations */
/* Reduce CSD gaps and shadows */
.window-frame, .window-frame:backdrop {
 box-shadow: 0 0 0 black;
 border-style: none;
 margin: 0;
 border-radius: 0;
}

.window-frame.csd.popup {
 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13);
}

.header-bar {
 background-image: none;
 box-shadow: none;
}

GtkLabel.title {
 opacity: 0;
}

/* https://ogbe.net/blog/gnome_titles.html*/
/* shrink headerbars */
headerbar {
 min-height: 0px;
 padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
 padding-right: 2px;
}

headerbar * {
 margin-top: 0px; /* same as headerbar side padding for nicer proportions */
 margin-bottom: 0px;
 padding: 0px;
}

/* shrink ssd titlebars */
.default-decoration {
 min-height: 0; /* let the entry and button drive the titlebar size */
 padding: 0px;
}

.default-decoration .titlebutton {
 min-height: 0px; /* tweak these two props to reduce button size */
 min-width: 0px;
}

window.ssd headerbar.titlebar {
 padding-top: 0px;
 padding-bottom: 0px;
 min-height: 0;
}

window.ssd headerbar.titlebar button.titlebutton {
 padding-top: 0px;
 padding-bottom:0px;
 min-height: 0;
}

/* https://wiki.archlinux.org/index.php/Pantheon#Wingpanel_transparency */
/* wingpanel */
.panel {
/* background-color: transparent;*/
/* background-color: black;*/
 background-color: rgba(0,0,0,0.5);
 transition: all 1s ease-in-out;
}

.panel.maximized {
 background-color: #000;
}