Skip to content

Commit 30b1e70

Browse files
committed
Contextual menu restyling
1 parent 791980c commit 30b1e70

1 file changed

Lines changed: 42 additions & 10 deletions

File tree

‎src/skins/vector/css/common.css‎

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,27 +96,59 @@ input[type=text]:focus, textarea:focus {
9696
}
9797

9898
.mx_ContextualMenu {
99-
border: 1px solid #a4a4a4;
100-
border-radius: 8px;
101-
background-color: #fff;
102-
color: #747474;
99+
border: solid 1px rgba(187, 187, 187, 0.5);
100+
border-radius: 4px;
101+
background-color: #f6f6f6;
102+
color: #4a4a4a;
103103
position: fixed;
104104
z-index: 2001;
105105
padding: 6px;
106106
}
107107

108108
.mx_ContextualMenu_chevron_right {
109-
padding: 12px;
110109
position: absolute;
111-
right: -21px;
112-
top: 0px;
110+
right: -8px;
111+
top: 10px;
112+
width: 0;
113+
height: 0;
114+
border-top: 8px solid transparent;
115+
border-left: 8px solid rgba(187, 187, 187, 0.5);
116+
border-bottom: 8px solid transparent;
117+
}
118+
119+
.mx_ContextualMenu_chevron_right:after{
120+
content:'';
121+
width: 0;
122+
height: 0;
123+
border-top: 7px solid transparent;
124+
border-left: 7px solid #f6f6f6;
125+
border-bottom: 7px solid transparent;
126+
position:absolute;
127+
top: -7px;
128+
right: 1px;
113129
}
114130

115131
.mx_ContextualMenu_chevron_left {
116-
padding: 12px;
117132
position: absolute;
118-
left: -21px;
119-
top: 0px;
133+
left: -8px;
134+
top: 10px;
135+
width: 0;
136+
height: 0;
137+
border-top: 8px solid transparent;
138+
border-right: 8px solid rgba(187, 187, 187, 0.5);
139+
border-bottom: 8px solid transparent;
140+
}
141+
142+
.mx_ContextualMenu_chevron_left:after{
143+
content:'';
144+
width: 0;
145+
height: 0;
146+
border-top: 7px solid transparent;
147+
border-right: 7px solid #f6f6f6;
148+
border-bottom: 7px solid transparent;
149+
position:absolute;
150+
top: -7px;
151+
left: 1px;
120152
}
121153

122154
.mx_ContextualMenu_field {

0 commit comments

Comments
 (0)