-
-
Notifications
You must be signed in to change notification settings - Fork 190
/
_native_menu.scss
73 lines (66 loc) · 1.31 KB
/
_native_menu.scss
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
@use "mode";
@use "option" as *;
@use "os" as *;
@mixin NativeToolkitMenu() {
@include Option("widget.macos.native-context-menus", "widget.gtk.native-context-menus") {
@content;
}
}
@mixin NativeMenuPopup() {
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup),
menupopup:not([placespopup="true"]) {
@content;
}
}
@mixin _WinMedia($win-media: false) {
@if $win-media {
@include OS($win) {
@content;
}
}
@else {
@content;
}
}
@mixin NativeMenu($win-media: false) {
@include WinNativeMenu($win-media) {
@content;
}
@include NotOption("userChrome.theme.non_native_menu") {
@include OS($linux) {
@content;
}
}
}
@mixin NonNativeMenu($win-media: false) {
@include WinNonNativeMenu($win-media) {
@content;
}
@include Option("userChrome.theme.non_native_menu") {
@include OS($linux) {
@content;
}
}
}
@mixin WinNativeMenu($win-media: false) {
@if mode.isESR() {
@media not (-moz-windows-non-native-menus) {
@include _WinMedia($win-media) {
@content;
}
}
}
}
@mixin WinNonNativeMenu($win-media: false) {
@if mode.isESR() {
@media (-moz-windows-non-native-menus) {
@include _WinMedia($win-media) {
@content;
}
}
} @else {
@include _WinMedia(true) {
@content;
}
}
}