A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 _menu.scss

View raw Download
text/plain • 2.68 kiB
ASCII text
        
            
1
/* Popovers/Menus */
2
3
$popover_arrow_height: 12px;
4
5
//.the popover itself
6
.popup-menu-boxpointer {
7
-arrow-border-radius: $base_border_radius+4;
8
-arrow-background-color: $bg_color;
9
-arrow-border-width: 1px;
10
-arrow-border-color: $borders_color;
11
-arrow-base: $popover_arrow_height * 2;
12
-arrow-rise: $popover_arrow_height;
13
-arrow-box-shadow: 0 1px 3px rgba(0,0,0,0.5); // dreaming bugzilla #689995
14
}
15
16
// container of the popover menu
17
.popup-menu {
18
min-width: 15em;
19
color: $fg_color;
20
21
//.popup-status-menu-item { font-weight: normal; color: pink; } //dunno what that is
22
&.panel-menu {
23
-boxpointer-gap: $base_margin; // distance from the panel
24
margin-bottom: 1.75em;
25
}
26
}
27
28
.popup-menu-content {
29
padding: $base_padding * 2 + $base_margin 0;
30
}
31
32
// menu items
33
.popup-menu-item {
34
spacing: $base_padding;
35
padding: $base_padding;
36
37
&:ltr { padding-right:1.75em; padding-left: 0; }
38
&:rtl { padding-right: 0; padding-left:1.75em; }
39
40
&:checked {
41
background-color: lighten($bg_color, 2%);
42
box-shadow: none;
43
}
44
45
&.selected {
46
background-color: transparentize(white, if($variant=='light', 0.2, 0.9));
47
color: $fg_color;
48
}
49
50
&:active {
51
background-color: $selected_bg_color;
52
color: $selected_fg_color;
53
}
54
55
&:insensitive { color: transparentize($fg_color,0.5);}
56
}
57
58
// all icons and other graphical elements
59
.popup-inactive-menu-item {
60
color: $fg_color;
61
62
&:insensitive { color: transparentize($fg_color,0.5); }
63
}
64
65
// symbolic icons in popover
66
.popup-menu-arrow,
67
.popup-menu-icon { icon-size: $base_icon_size; }
68
69
// popover submenus
70
.popup-sub-menu {
71
background-color: darken($bg_color, 3%);
72
box-shadow: none;
73
border-top: 1px solid transparentize($borders_color, 0.2);
74
border-bottom: 1px solid transparentize($borders_color, 0.2);
75
}
76
77
// container for radio and check boxes
78
.popup-menu-ornament {
79
text-align: right;
80
width: 1.2em;
81
}
82
83
// separator
84
.popup-separator-menu-item {
85
//-margin-horizontal: 24px;
86
height: 1px; //not really the whole box
87
margin: 6px 64px;
88
background-color: lighten($borders_color, 2%);
89
}
90
91
// desktop background menu
92
.background-menu {
93
-boxpointer-gap: $base_margin;
94
-arrow-rise: 0px; // hide the beak on the menu
95
}
96
97
// system status menu
98
.aggregate-menu {
99
min-width: 21em;
100
101
// lock screen, shutdown, etc. buttons
102
.popup-menu-icon {
103
padding:0;
104
margin: 0 $base_margin;
105
-st-icon-style: symbolic;
106
}
107
108
.popup-sub-menu .popup-menu-item > :first-child {
109
// account for icons in submenus with padding
110
&:ltr {
111
padding-left: $base_padding + $base_margin * 2;
112
margin-left: $base_icon_size;
113
}
114
&:rtl {
115
padding-right: $base_padding + $base_margin * 2; ;
116
margin-right: $base_icon_size;
117
}
118
}
119
}
120