.container:before,
.container:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.container:after {
.row:before,
.row:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.row:after {
.dl-horizontal:before,
.dl-horizontal:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.dl-horizontal:after {
.controls-row:before,
.controls-row:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.controls-row:after {
.form-actions:before,
.form-actions:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.form-actions:after {
.form-horizontal .control-group:before,
.form-horizontal .control-group:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.form-horizontal .control-group:after {
.nav:before,
.nav:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.nav:after {
.tabbable:before,
.tabbable:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.tabbable:after {
.navbar:before,
.navbar:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.navbar:after {
.navbar-form:before,
.navbar-form:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.navbar-form:after {
.pager:before,
.pager:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.pager:after {
.modal-footer:before,
.modal-footer:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.modal-footer:after {
line-height: 30px;
}
-.clear:before,
-.clear:after {
+.clearfix:before,
+.clearfix:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
-.clear:after {
+.clearfix:after {
clear: both;
}
.row:before,
.row:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.row:after {
clear: both;
.row:before,
.row:after {
display: table;
- line-height: 0;
- content: "";
+ content: " ";
}
.row:after {
clear: both;
// --------------------------------------------------
-// UTILITY MIXINS
-// --------------------------------------------------
+// Utilities
+// -------------------------
// Clearfix
-// --------
-// For clearing floats like a boss h5bp.com/q
-.clearfix() {
+// Source: http://nicolasgallagher.com/micro-clearfix-hack/
+//
+// For modern browsers
+// 1. The space content is one way to avoid an Opera bug when the
+// contenteditable attribute is included anywhere else in the document.
+// Otherwise it causes space to appear at the top and bottom of elements
+// that are clearfixed.
+// 2. The use of `table` rather than `block` is only necessary if using
+// `:before` to contain the top-margins of child elements.
+.clear_float() {
&:before,
&:after {
- display: table;
- content: "";
- // Fixes Opera/contenteditable bug:
- // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
- line-height: 0;
+ content: " "; /* 1 */
+ display: table; /* 2 */
}
&:after {
clear: both;
}
// Webkit-style focus
-// ------------------
.tab-focus() {
// Default
outline: thin dotted #333;
}
// Center-align a block level element
-// ----------------------------------
.center-block() {
display: block;
margin-left: auto;
}
// Sizing shortcuts
-// -------------------------
.size(@width, @height) {
width: @width;
height: @height;
}
// Placeholder text
-// -------------------------
.placeholder(@color: @input-color-placeholder) {
&:-moz-placeholder {
color: @color;
}
// Text overflow
-// -------------------------
// Requires inline-block or block for proper styling
.text-overflow() {
overflow: hidden;
}
// CSS image replacement
-// -------------------------
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
.hide-text() {
font: 0/0 a;