mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 10:44:50 +08:00
5a34c7cc9e
This commit adds the `!important` declaration to `.hidden` utility/helper class. Without the `!important` declaration, it is not applied correctly across the site.
79 lines
1.1 KiB
SCSS
79 lines
1.1 KiB
SCSS
// --------------------------------------------------
|
|
// Generic helper classes
|
|
// --------------------------------------------------
|
|
|
|
// Floats
|
|
// --------------------------------------------------
|
|
|
|
.pull-left {
|
|
float: left;
|
|
}
|
|
|
|
.pull-right {
|
|
float: right;
|
|
}
|
|
|
|
// Element visibility
|
|
// --------------------------------------------------
|
|
|
|
.show {
|
|
display: block;
|
|
}
|
|
|
|
.hide,
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.invisible {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
border: 0;
|
|
}
|
|
|
|
// Affix
|
|
// --------------------------------------------------
|
|
|
|
.affix {
|
|
position: fixed;
|
|
}
|
|
|
|
// Contain floats
|
|
// --------------------------------------------------
|
|
|
|
.clearfix {
|
|
&:before,
|
|
&:after {
|
|
display: table;
|
|
content: " ";
|
|
}
|
|
&:after {
|
|
clear: both;
|
|
}
|
|
}
|
|
|
|
// Overflow
|
|
// --------------------------------------------------
|
|
|
|
.overflow-ellipsis {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
// Clickable elements
|
|
// --------------------------------------------------
|
|
|
|
.clickable {
|
|
cursor: pointer;
|
|
}
|