mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-11 16:21:04 -05:00
590f505a61
This reverts commit1b1b396e92
, reversing changes made toa144bab0e6
.
95 lines
1.9 KiB
SCSS
95 lines
1.9 KiB
SCSS
@import "../../colors";
|
|
@import "../../frameless";
|
|
|
|
.dropdown {
|
|
display: none;
|
|
position: absolute;
|
|
right: 0;
|
|
border: 1px solid $active-gray;
|
|
border-radius: 0 0 5px 5px;
|
|
background-color: $ui-blue;
|
|
padding: 10px;
|
|
max-width: 260px;
|
|
overflow: visible;
|
|
color: $type-white;
|
|
font-size: .8125rem;
|
|
font-weight: normal;
|
|
|
|
&.staging {
|
|
background-color: $ui-orange;
|
|
}
|
|
|
|
&.open {
|
|
display: block;
|
|
}
|
|
|
|
a {
|
|
&:link,
|
|
&:visited,
|
|
&:active {
|
|
background-color: transparent;
|
|
color: $type-white;
|
|
}
|
|
}
|
|
|
|
input {
|
|
// 100% minus border and padding
|
|
margin-bottom: 12px;
|
|
width: calc(100% - 30px);
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
> li {
|
|
display: block;
|
|
line-height: 30px;
|
|
|
|
&.divider {
|
|
margin-top: 10px;
|
|
border-top: 1px solid $active-gray;
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
padding: 0 10px;
|
|
|
|
&:hover {
|
|
background-color: $active-gray;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.with-arrow {
|
|
$arrow-border-width: 14px;
|
|
margin-top: $arrow-border-width;
|
|
border-radius: 5px;
|
|
overflow: visible;
|
|
|
|
&:before {
|
|
display: block;
|
|
position: absolute;
|
|
top: -$arrow-border-width / 2;
|
|
right: 10%;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
border-top: 1px solid $active-gray;
|
|
border-left: 1px solid $active-gray;
|
|
border-radius: 5px;
|
|
|
|
background-color: $ui-blue;
|
|
width: $arrow-border-width;
|
|
height: $arrow-border-width;
|
|
|
|
content: "";
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: $tablet - 1) {
|
|
min-width: 160px;
|
|
}
|
|
}
|