discourse/app/assets/stylesheets/common/foundation/helpers.scss
2013-10-10 15:23:14 +11:00

60 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;
}