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/global/_classes.scss

156 lines
2.6 KiB

11 years ago
//
// Utilities
//
%border-box {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
%user-select-none {
-webkit-user-select: none;
-moz-user-select: -moz-none;
11 years ago
-ms-user-select: none;
user-select: none;
}
%hide-text {
white-space: nowrap;
overflow: hidden;
9 years ago
text-indent: 100%;
word-wrap: normal;
overflow-wrap: normal;
@extend %user-select-none;
}
%truncate-text {
overflow: hidden;
white-space: nowrap;
word-wrap: normal;
overflow-wrap: normal;
text-overflow: ellipsis;
}
11 years ago
//
// Boxes
//
%box {
10 years ago
background: $boxBackground;
border: 1px solid $boxBorder;
11 years ago
border-radius: 3px;
}
%heading-box {
9 years ago
color: $boxHeaderColor;
10 years ago
background: $boxHeaderBackground;
border: 1px solid $boxBorder;
11 years ago
border-radius: 3px;
}
%block-heading {
line-height: 1.25rem;
margin: 2em 0 1em;
padding: .5em .75em;
font-size: 1rem;
overflow: hidden;
@extend %heading-box;
}
%pre-heading {
margin: 0;
padding: .375rem .625rem;
font-size: inherit;
font-weight: normal;
line-height: 1.5;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
@extend %heading-box;
+ pre {
border-top-left-radius: 0;
border-top-right-radius: 0;
border-top: 0;
margin-top: 0;
}
}
11 years ago
//
// Notes
//
%note {
margin: 1.5rem 0;
padding: .5rem .875rem;
10 years ago
background: $noteBackground;
border: 1px solid $noteBorder;
11 years ago
border-radius: 3px;
}
%label {
margin: 0 1px;
10 years ago
padding: 1px 4px 2px;
background: $labelBackground;
border-radius: 3px;
11 years ago
}
%block-label {
display: block;
11 years ago
line-height: 1.375rem;
11 years ago
margin: 2em 0 1em;
padding-left: .5em;
padding-right: .5em;
overflow: hidden;
11 years ago
font-size: inherit;
9 years ago
color: $boxHeaderColor;
10 years ago
border: 1px solid $boxBorder;
border-radius: 2px;
11 years ago
@extend %label;
}
%label-yellow {
background: $noteBackground;
border-color: $noteBorder;
}
10 years ago
%note-green, %label-green {
background: $noteGreenBackground;
border-color: $noteGreenBorder;
}
10 years ago
%note-blue, %label-blue {
background: $noteBlueBackground;
border-color: $noteBlueBorder;
11 years ago
}
10 years ago
%note-orange, %label-orange {
background: $noteOrangeBackground;
border-color: $noteOrangeBorder;
11 years ago
}
10 years ago
%note-red, %label-red {
background: $noteRedBackground;
border-color: $noteRedBorder;
11 years ago
}
//
// External links
//
%external-link {
&:after {
display: inline-block;
width: .5rem;
height: .4375rem;
margin: .125rem 0 0 .0625rem;
vertical-align: top;
@if $style == 'dark' {
@extend %icon, %icon-link-white;
} @else {
@extend %icon, %icon-link;
}
11 years ago
}
}
%internal-link:after { content: none !important; }