discourse/app/assets/stylesheets/common/foundation/helpers.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

86 lines
1.3 KiB
SCSS
Raw Normal View History

2013-02-06 03:16:51 +08:00
// --------------------------------------------------
// Generic helper classes
// --------------------------------------------------
// Floats
// --------------------------------------------------
.pull-left {
float: left;
}
.pull-right {
float: right;
}
// Element visibility
// --------------------------------------------------
.show {
display: block;
}
.hide,
.hidden {
display: none;
2013-02-06 03:16:51 +08:00
}
.invisible {
visibility: hidden;
2013-02-06 03:16:51 +08:00
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
2013-02-06 03:16:51 +08:00
// 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;
}
2017-03-11 00:57:18 +08:00
// Buttons
// ---------------------------------------------------
.disable-no-hover:hover {
background: dark-light-choose($primary-low, $secondary-medium);
2017-03-11 00:57:18 +08:00
color: $primary;
}