0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00
Bootstrap/less/_utilities.less

82 lines
1014 B
Plaintext

//
// Utility classes
// --------------------------------------------------
// Floats
// -------------------------
.clearfix {
.clearfix();
}
.center-block {
.center-block();
}
.pull-right {
float: right !important;
}
.pull-left {
float: left !important;
}
// Inverse
.inverse {
color: @gray-lighter;
background-color: @gray-dark;
}
// Spacing
.p-a {
padding: @spacer;
}
.p-h {
padding-left: @spacer;
padding-right: @spacer;
}
.p-v {
padding-top: @spacer;
padding-bottom: @spacer;
}
// Positioning
.pos-f-t {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: @zindex-navbar-fixed;
}
// Toggling content
// -------------------------
.show {
display: block !important;
}
.invisible {
visibility: hidden;
}
.text-hide {
.text-hide();
}
// Hide from screenreaders and browsers
//
// Credit: HTML5 Boilerplate
.hidden {
display: none !important;
visibility: hidden !important;
}
// For Affix plugin
// -------------------------
.affix {
position: fixed;
}