aboutsummaryrefslogtreecommitdiff
path: root/.themes/oomox-Awkward/cinnamon/scss/sections/_menu.scss
blob: c4e45be8e14e00f39b9ad58da5b8734e21b38fc4 (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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
.menu {
    @extend %shared-menu;

    min-width: 100px;
    margin: 4px;
}
// scale view right click menu
.popup-combo-menu {
    @extend %shared-menu;
}
.popup-menu-arrow {
    icon-size: 1.14em;
}
// applet submenus
// the margin here causes the 'bounce' on opening the sub menu
// does StScrollBar need to be here? No as long as it isnt themed differently to staging
.popup-sub-menu {
    @extend %bg-grad-to-bottom;

    border: 1px solid $interior_border;
    border-radius: $roundness;
    padding: 8px;
}
.popup-menu-content {
    padding: 0;
}
// individual menu entries are themed here
.popup-menu-item {
    @extend %menu-buttons-shared;

    color: $dark_fg_color;
    spacing: .5em;
    &:active {
        background-color: $selected_bg_color;
        border-radius: $roundness;
        color: $selected_fg_color;
    }
    &:insensitive {
        font-style: italic;
    }
}
.popup-combobox-item {
    @extend %menu-buttons-shared;
}
// sliders and separators in menus
.popup-separator-menu-item {
    @extend %separator-shared;

    -gradient-direction: horizontal;
}
.popup-slider-menu-item {
    @extend %slider-shared;
}
.popup-device-menu-item {
    spacing: .5em;
}
.popup-inactive-menu-item {
    font-style: italic;
    color: $dark_fg_color;
}
.popup-subtitle-menu-item {
    font-weight: bold;
    font-size: 1em;
}
.popup-menu-icon {
    icon-size: 1.14em;
}
.popup-menu-item-dot {
}
.popup-submenu-menu-item:open {
}
.popup-alternating-menu-item:alternate {
    font-weight: bold;
}
// toggles in menus
.toggle-switch {
    width: 64px;
    height: 22px;
}
.toggle-switch-us {
    background-image: url(assets/toggle-off-us.svg);
    &:checked {
        background-image: url(assets/toggle-on-us.svg);
    }
}
.toggle-switch-intl {
    background-image: url(assets/toggle-off-intl.svg);
    &:checked {
        background-image: url(assets/toggle-on-intl.svg);
    }
}
.nm-menu-item-icons {
    spacing: .5em;
    icon-size: 1.14em;
}
// all the remaining code is for the main menu applet
.menu-favorites-box {
    @extend %bg-grad-to-right;

    padding: 0.8em;
    border: 1px solid $interior_border;
    border-radius: $roundness;
    transition-duration: 150;
    spacing: 1em;
}
// This is for the stock menu in Cinnamon 4.0.2 and later - adds more vfade to the scrollable favorites box and fakes a seperator from the system buttons with a bottom border.
.menu-favorites-scrollbox {
    padding-bottom: 1em;
    border-bottom: 1px solid;
    border-color: $interior_border;
    &.vfade {
        -st-vfade-offset: 136px;
    }   
}
.menu-favorites-button {
    @extend %menu-buttons-shared;

    &:hover {
        background-color: $selected_bg_color;
        border-radius: $roundness;
        color: $selected_fg_color;
    }
}
.menu-categories-box {
    padding: 0.8em;
}
.menu-applications-inner-box {
    @extend %bg-grad-to-right;

    padding: 0.8em;
    border-radius: $roundness;
    border: 1px solid $interior_border;
    StScrollView {
        @extend %menu-context-shared;
    }
}
.menu-applications-outer-box {
    @extend %bg-grad-to-right;

    padding: 0.8em;
    border: 1px solid $interior_border;
    border-radius: $roundness;
}
.menu-application-button {
    @extend %menu-buttons-shared;

    &:highlighted {
        font-weight: bold;
    }
}
.menu-application-button-selected {
    @extend %menu-buttons-shared;

    background-color: $selected_bg_color;
    border-radius: $roundness;
    color: $selected_fg_color;
    &:highlighted {
        font-weight: bold;
    }
}
.menu-application-button-label {
    @extend %menu-button-label-shared;
}
.menu-category-button {
	@extend %menu-buttons-shared;
}
.menu-category-button-greyed {
    @extend %menu-buttons-shared;

    color: $dark_fg_color;
    font-style: italic;
}
.menu-category-button-selected {
    @extend %menu-buttons-shared;

    background-color: $selected_bg_color;
    border-radius: $roundness;
    color: $selected_fg_color;
    &:hover {
    }
}
.menu-category-button-label {
    @extend %menu-button-label-shared;
}
// in the stock menu app descriptions are shown at the base of the menu
.menu-selected-app-box {
    padding: 2px 8px;
    text-align: right;
    &:rtl {
        text-align: left;
    }
}
.menu-selected-app-title {
    font-weight: bold;
    font-size: 0.8em;
}
.menu-selected-app-description {
    max-width: 150px;
    font-size: 0.8em;
}
// the menus search box
.menu-search-box {
    &:ltr {
        padding-left: 30px;
        padding-bottom: 5px;
        padding-top: 5px;
    }
    &:rtl {
        padding-right: 30px;
        padding-bottom: 5px;
        padding-top: 5px;
    }
}
#menu-search-entry {
    @extend %dialog-entry;

    margin-bottom: 0.5em;
    &:focus {
        border: 1px solid $selected_border;
    }
    &:hover {
    }
}
.menu-search-entry-icon {
    icon-size: 1em;
    color: $tooltip_fg_color;
}
// new styleclasses for the Cinnamon 4.0.0 stock menu - note this menu was dropped in Cinnamon 4.0.1 but retain styling in case it's revived.
.menu-top-box {
  spacing: 10px; }
.menu-systembuttons-box {
  padding-bottom: 12px;
  padding-top: 12px;
  margin-bottom: 0.5em; }
// cinnVIIstark menu right click favourites context menu
.starkmenu-favorites-box .menu-context-menu, .menu-context-menu {
        @extend %menu-context-shared;
}