scratch-www/src/components/dropdown/dropdown.scss

96 lines
1.9 KiB
SCSS
Raw Normal View History

@import "../../colors";
2017-04-26 23:14:50 -04:00
@import "../../frameless";
2015-09-11 20:29:12 -04:00
.dropdown {
2015-09-24 19:27:50 -04:00
display: none;
2015-09-11 20:29:12 -04:00
position: absolute;
right: 0;
border: 1px solid $active-gray;
2015-09-24 19:27:50 -04:00
border-radius: 0 0 5px 5px;
background-color: $ui-blue;
2015-09-24 19:27:50 -04:00
padding: 10px;
2015-09-21 09:18:00 -04:00
max-width: 260px;
overflow: visible;
color: $type-white;
2015-09-24 19:27:50 -04:00
font-size: .8125rem;
2015-09-11 20:29:12 -04:00
font-weight: normal;
2016-06-30 18:06:17 -04:00
&.staging {
background-color: $ui-orange;
}
2015-09-11 20:29:12 -04:00
&.open {
display: block;
}
a {
&:link,
&:visited,
&:active {
background-color: transparent;
color: $type-white;
}
2015-09-11 20:29:12 -04:00
}
input {
// 100% minus border and padding
2015-09-21 09:18:00 -04:00
margin-bottom: 12px;
2015-09-24 19:27:50 -04:00
width: calc(100% - 30px);
2015-09-11 20:29:12 -04:00
}
label {
display: block;
2015-09-24 19:27:50 -04:00
margin-bottom: 5px;
2015-09-11 20:29:12 -04:00
}
2015-09-24 19:27:50 -04:00
2015-09-11 20:29:12 -04:00
> li {
display: block;
line-height: 30px;
&.divider {
margin-top: 10px;
border-top: 1px solid $active-gray;
2015-09-11 20:29:12 -04:00
}
a {
display: block;
padding: 0 10px;
&:hover {
background-color: $active-gray;
2015-09-21 13:27:21 -04:00
text-decoration: none;
2015-09-11 20:29:12 -04:00
}
}
2016-06-30 18:06:17 -04:00
}
2015-09-11 20:29:12 -04:00
&.with-arrow {
2015-09-21 09:18:00 -04:00
$arrow-border-width: 14px;
2015-09-11 20:29:12 -04:00
margin-top: $arrow-border-width;
2015-09-21 09:18:00 -04:00
border-radius: 5px;
overflow: visible;
2015-09-24 19:27:50 -04:00
2016-06-30 18:06:17 -04:00
&:before {
display: block;
2015-09-24 19:27:50 -04:00
position: absolute;
top: -$arrow-border-width / 2;
right: 10%;
2016-06-30 18:06:17 -04:00
transform: rotate(45deg);
2015-09-24 19:27:50 -04:00
border-top: 1px solid $active-gray;
border-left: 1px solid $active-gray;
border-radius: 5px;
2015-09-24 19:27:50 -04:00
background-color: $ui-blue;
2015-09-24 19:27:50 -04:00
width: $arrow-border-width;
height: $arrow-border-width;
content: "";
2015-09-11 20:29:12 -04:00
}
}
2017-05-03 15:58:14 -04:00
2017-05-08 10:10:24 -04:00
@media only screen and (max-width: $tablet - 1) {
2017-05-03 15:58:14 -04:00
min-width: 160px;
}
2017-04-26 23:13:24 -04:00
}