You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/assets/stylesheets/components/_settings.scss

147 lines
2.3 KiB

//
// Settings
//
._settings {
display: none;
position: absolute;
top: 0;
bottom: 0;
z-index: $headerZ;
&._in { display: block; }
._sidebar {
bottom: $headerHeight;
._sidebar-hidden & { display: block; }
}
._header {
justify-content: space-between;
}
}
._settings-fieldset {
display: flex;
margin: 1.5rem 0;
line-height: 1.5rem;
}
._settings-legend {
flex: 0 1 10rem;
margin: 0;
padding-right: .5rem;
line-height: inherit;
font-size: inherit;
font-weight: $boldFontWeight;
text-align: right;
@extend %border-box;
}
._settings-inputs {
flex: 1 1 20rem;
}
._settings-label {
margin: 0 0 .375rem;
> small {
display: block;
color: $textColorLight;
margin-left: 1.75rem;
}
input[type=checkbox] {
display: inline-block;
vertical-align: top;
margin: .25rem .375rem;
}
}
@media (max-width: $maxWidth) {
._settings-max-width { display: none; }
}
._settings-link {
display: inline-block;
vertical-align: top;
margin-left: .375rem;
&[data-behavior=reset] {
font-size: .75rem;
color: $textColorRed;
}
}
._footer {
position: absolute;
z-index: $headerZ;
bottom: 0;
left: 0;
width: $sidebarWidth;
height: $headerHeight;
background: $noteGreenBackground;
border-top: 1px solid $noteGreenBorder;
border-right: 1px solid $noteGreenBorder;
@extend %border-box;
@extend %user-select-none;
@media #{$mediumScreen} { width: $sidebarMediumWidth; }
}
._settings-btn {
display: block;
height: 100%;
line-height: 1.5rem;
padding: 0 .75rem;
font-size: .875rem;
font-weight: $boldFontWeight;
color: inherit;
text-align: left;
cursor: pointer;
@extend %border-box;
> svg {
display: inline-block;
vertical-align: top;
width: 1.5rem;
height: 1.5rem;
margin-right: .125rem;
fill: currentColor;
pointer-events: none;
}
}
._save-btn { width: 100%; }
//
// Header tabs
//
._settings-tabs {
display: none; // mobile only
margin-right: .5rem;
line-height: $headerHeight;
}
._settings-tab {
position: relative;
display: inline-block;
vertical-align: top;
padding: 0 .75rem;
cursor: pointer;
&, &:hover {
color: $textColorLight;
text-decoration: none;
}
&.active {
color: $textColor;
font-weight: $boldFontWeight;
text-decoration: none;
box-shadow: inset 0 -2px $linkColor;
}
}