mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
93 lines
1.3 KiB
Plaintext
93 lines
1.3 KiB
Plaintext
//
|
|
// Utility classes
|
|
// --------------------------------------------------
|
|
|
|
|
|
// Floats
|
|
// -------------------------
|
|
|
|
.clearfix {
|
|
.clearfix();
|
|
}
|
|
.center-block {
|
|
.center-block();
|
|
}
|
|
.pull-right {
|
|
float: right !important;
|
|
}
|
|
.pull-left {
|
|
float: left !important;
|
|
}
|
|
|
|
|
|
// Toggling content
|
|
// -------------------------
|
|
|
|
// Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
|
|
.hide {
|
|
display: none !important;
|
|
}
|
|
.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;
|
|
}
|
|
|
|
|
|
// Embeds responsive
|
|
// -------------------------
|
|
|
|
// Credit: Nicolas Gallagher
|
|
|
|
.embed-responsive {
|
|
position: relative;
|
|
display: block;
|
|
height: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
|
|
.embed-responsive-item,
|
|
iframe,
|
|
embed,
|
|
object {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
// Modifier class for 16:9 aspect ratio
|
|
&.embed-responsive-16by9 {
|
|
padding-bottom: 56.25%;
|
|
}
|
|
|
|
// Modifier class for 4:3 aspect ratio
|
|
&.embed-responsive-4by3 {
|
|
padding-bottom: 75%;
|
|
}
|
|
}
|