Merge similar properties and apply arrow to menu class

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-01-26 15:50:18 +01:00
parent ce240a45e6
commit 3017bae892
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
1 changed files with 15 additions and 23 deletions

View File

@ -20,6 +20,21 @@
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
/* Dropdown menu arrow */
&.menu:after,
.menu:after {
border: 10px solid transparent;
border-color: transparent;
border-bottom-color: #fff;
bottom: 100%;
content: ' ';
height: 0;
width: 0;
position: absolute;
pointer-events: none;
margin-left: -10px;
}
} }
/* removed until content-focusing issue is fixed */ /* removed until content-focusing issue is fixed */
@ -194,21 +209,8 @@
border-top-right-radius: 0; border-top-right-radius: 0;
display: none; display: none;
box-sizing: border-box; box-sizing: border-box;
/*overflow-y: auto;
overflow-x: hidden;*/
z-index: 2000; z-index: 2000;
&:after { &:after {
bottom: 100%;
border: solid transparent;
content: ' ';
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(0, 0, 0, 0);
border-bottom-color: rgba(255, 255, 255, 0.97);
border-width: 10px;
margin-left: -10px;
left: 47%; left: 47%;
} }
* { * {
@ -381,16 +383,6 @@
&:after { &:after {
/* position of dropdown arrow */ /* position of dropdown arrow */
right: 15px; right: 15px;
border: 10px solid transparent;
border-color: transparent;
border-bottom-color: #fff;
bottom: 100%;
content: ' ';
height: 0;
width: 0;
position: absolute;
pointer-events: none;
margin-left: -10px;
} }
a { a {
display: block; display: block;