mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 10:33:43 +08:00
61 lines
887 B
SCSS
61 lines
887 B
SCSS
// --------------------------------------------------
|
|
// Generic helper classes
|
|
// --------------------------------------------------
|
|
|
|
// Floats
|
|
// --------------------------------------------------
|
|
|
|
.pull-left {
|
|
float: left;
|
|
}
|
|
|
|
.pull-right {
|
|
float: right;
|
|
}
|
|
|
|
// Element visibility
|
|
// --------------------------------------------------
|
|
|
|
.show {
|
|
display: block;
|
|
}
|
|
|
|
.hide,
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.invisible {
|
|
visibility: hidden;
|
|
}
|
|
|
|
// 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;
|
|
}
|