1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/less/_utilities.less

82 lines
1,014 B
Text
Raw Normal View History

2012-06-29 00:46:45 -04:00
//
// Utility classes
// --------------------------------------------------
// Floats
// -------------------------
.clearfix {
.clearfix();
}
.center-block {
.center-block();
}
.pull-right {
2013-07-28 02:05:47 -04:00
float: right !important;
}
.pull-left {
2013-07-28 02:05:47 -04:00
float: left !important;
}
2014-07-14 11:48:26 -04:00
// 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;
}
2014-07-14 12:03:21 -04:00
// Positioning
.pos-f-t {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: @zindex-navbar-fixed;
}
2014-07-14 11:48:26 -04:00
// Toggling content
// -------------------------
.show {
display: block !important;
}
.invisible {
visibility: hidden;
}
.text-hide {
.text-hide();
}
2012-07-22 21:28:39 -04:00
// Hide from screenreaders and browsers
//
// Credit: HTML5 Boilerplate
.hidden {
display: none !important;
visibility: hidden !important;
}
// For Affix plugin
// -------------------------
2012-07-22 21:28:39 -04:00
.affix {
position: fixed;
}