forked from cosmocode/dokuwiki-plugin-prosemirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customMenu.less
103 lines (83 loc) · 1.94 KB
/
customMenu.less
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
@menuitem_size: 2em;
@menuicon_size: 1.2em;
@menu_padding: 0.1em;
.prosemirror_wrapper {
position: relative;
}
.menubar {
top: 0;
background: @ini_background;
.menuicon {
width: @menuitem_size;
text-align: center;
svg {
width: @menuicon_size;
height: @menuicon_size;
fill: @ini_text;
}
}
.menulabel {
display: none;
min-width: @menuitem_size;
padding: 0 3px;
color: @ini_text;
}
.menuitem {
display: inline-flex;
align-items: center;
box-sizing: border-box;
height: @menuitem_size;
padding: @menu_padding;
border-right: 1px solid fade(@ini_border, 30%);
cursor: pointer;
&:hover {
background-color: fade(@ini_border, 30%);
}
&.dropdown {
position: relative;
.menulabel {
display: block;
}
.dropdown-indicator {
width: 1em;
}
}
&.is-active {
border: 1px solid @ini_link;
> .menuicon svg {
fill: @ini_link;
}
> .menulabel {
color: @ini_link;
}
}
&.is-disabled {
pointer-events: none;
> .menuicon svg,
> .dropdown-indicator svg {
fill: @ini_border;
}
> .menulabel {
color: @ini_border;
}
}
}
.dropdown_content {
position: absolute;
top: @menuitem_size;
left: 0;
max-width: 300px;
white-space: nowrap;
background-color: @ini_background;
outline: 1px dotted @ini_border;
.menuitem {
display: flex;
.menulabel {
display: inline;
}
}
img {
float: left;
}
}
}