Update Bootstrap to v3.1.1
This commit is contained in:
@@ -38,7 +38,8 @@
|
|||||||
// Optional: Group multiple button groups together for a toolbar
|
// Optional: Group multiple button groups together for a toolbar
|
||||||
.btn-toolbar {
|
.btn-toolbar {
|
||||||
margin-left: -5px; // Offset the first child's margin
|
margin-left: -5px; // Offset the first child's margin
|
||||||
&:extend(.clearfix all);
|
&:extend(.clearfix all)
|
||||||
|
;
|
||||||
|
|
||||||
.btn-group,
|
.btn-group,
|
||||||
.input-group {
|
.input-group {
|
||||||
@@ -62,6 +63,7 @@
|
|||||||
.border-right-radius(0);
|
.border-right-radius(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
||||||
.btn-group > .btn:last-child:not(:first-child),
|
.btn-group > .btn:last-child:not(:first-child),
|
||||||
.btn-group > .dropdown-toggle:not(:first-child) {
|
.btn-group > .dropdown-toggle:not(:first-child) {
|
||||||
@@ -72,15 +74,18 @@
|
|||||||
.btn-group > .btn-group {
|
.btn-group > .btn-group {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group > .btn-group:first-child {
|
.btn-group > .btn-group:first-child {
|
||||||
> .btn:last-child,
|
> .btn:last-child,
|
||||||
> .dropdown-toggle {
|
> .dropdown-toggle {
|
||||||
.border-right-radius(0);
|
.border-right-radius(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group > .btn-group:last-child > .btn:first-child {
|
.btn-group > .btn-group:last-child > .btn:first-child {
|
||||||
.border-left-radius(0);
|
.border-left-radius(0);
|
||||||
}
|
}
|
||||||
@@ -91,15 +96,24 @@
|
|||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Sizing
|
// Sizing
|
||||||
//
|
//
|
||||||
// Remix the default button sizing classes into new ones for easier manipulation.
|
// Remix the default button sizing classes into new ones for easier manipulation.
|
||||||
|
|
||||||
.btn-group-xs > .btn { .btn-xs(); }
|
.btn-group-xs > .btn {
|
||||||
.btn-group-sm > .btn { .btn-sm(); }
|
&:extend(.btn-xs)
|
||||||
.btn-group-lg > .btn { .btn-lg(); }
|
;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-group-sm > .btn {
|
||||||
|
&:extend(.btn-sm)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-group-lg > .btn {
|
||||||
|
&:extend(.btn-lg)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
// Split button dropdowns
|
// Split button dropdowns
|
||||||
// ----------------------
|
// ----------------------
|
||||||
@@ -109,6 +123,7 @@
|
|||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group > .btn-lg + .dropdown-toggle {
|
.btn-group > .btn-lg + .dropdown-toggle {
|
||||||
padding-left: 12px;
|
padding-left: 12px;
|
||||||
padding-right: 12px;
|
padding-right: 12px;
|
||||||
@@ -117,7 +132,7 @@
|
|||||||
// The clickable button for toggling the menu
|
// The clickable button for toggling the menu
|
||||||
// Remove the gradient and set the same inset shadow as the :active state
|
// Remove the gradient and set the same inset shadow as the :active state
|
||||||
.btn-group.open .dropdown-toggle {
|
.btn-group.open .dropdown-toggle {
|
||||||
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
.box-shadow(inset 0 3px 5px rgba(0, 0, 0, .125));
|
||||||
|
|
||||||
// Show no shadow for `.btn-link` since it has no other button styles.
|
// Show no shadow for `.btn-link` since it has no other button styles.
|
||||||
&.btn-link {
|
&.btn-link {
|
||||||
@@ -125,22 +140,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Reposition the caret
|
// Reposition the caret
|
||||||
.btn .caret {
|
.btn .caret {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Carets in other button sizes
|
// Carets in other button sizes
|
||||||
.btn-lg .caret {
|
.btn-lg .caret {
|
||||||
border-width: @caret-width-large @caret-width-large 0;
|
border-width: @caret-width-large @caret-width-large 0;
|
||||||
border-bottom-width: 0;
|
border-bottom-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Upside down carets for .dropup
|
// Upside down carets for .dropup
|
||||||
.dropup .btn-lg .caret {
|
.dropup .btn-lg .caret {
|
||||||
border-width: 0 @caret-width-large @caret-width-large;
|
border-width: 0 @caret-width-large @caret-width-large;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Vertical button groups
|
// Vertical button groups
|
||||||
// ----------------------
|
// ----------------------
|
||||||
|
|
||||||
@@ -156,7 +171,8 @@
|
|||||||
|
|
||||||
// Clear floats so dropdown menus can be properly placed
|
// Clear floats so dropdown menus can be properly placed
|
||||||
> .btn-group {
|
> .btn-group {
|
||||||
&:extend(.clearfix all);
|
&:extend(.clearfix all)
|
||||||
|
;
|
||||||
> .btn {
|
> .btn {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
@@ -184,21 +200,22 @@
|
|||||||
.border-top-radius(0);
|
.border-top-radius(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group-vertical > .btn-group:first-child:not(:last-child) {
|
.btn-group-vertical > .btn-group:first-child:not(:last-child) {
|
||||||
> .btn:last-child,
|
> .btn:last-child,
|
||||||
> .dropdown-toggle {
|
> .dropdown-toggle {
|
||||||
.border-bottom-radius(0);
|
.border-bottom-radius(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
||||||
.border-top-radius(0);
|
.border-top-radius(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Justified button groups
|
// Justified button groups
|
||||||
// ----------------------
|
// ----------------------
|
||||||
|
|
||||||
@@ -218,7 +235,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Checkbox and radio options
|
// Checkbox and radio options
|
||||||
[data-toggle="buttons"] > .btn > input[type="radio"],
|
[data-toggle="buttons"] > .btn > input[type="radio"],
|
||||||
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Buttons
|
// Buttons
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Base styles
|
// Base styles
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
@@ -19,8 +18,12 @@
|
|||||||
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
|
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
|
||||||
.user-select(none);
|
.user-select(none);
|
||||||
|
|
||||||
&:focus {
|
&,
|
||||||
.tab-focus();
|
&:active,
|
||||||
|
&.active {
|
||||||
|
&:focus {
|
||||||
|
.tab-focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
@@ -33,7 +36,7 @@
|
|||||||
&.active {
|
&.active {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
.box-shadow(inset 0 3px 5px rgba(0, 0, 0, .125));
|
||||||
}
|
}
|
||||||
|
|
||||||
&.disabled,
|
&.disabled,
|
||||||
@@ -46,34 +49,37 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Alternate buttons
|
// Alternate buttons
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
.btn-default {
|
.btn-default {
|
||||||
.button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
|
.button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
.button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
|
.button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Success appears as green
|
// Success appears as green
|
||||||
.btn-success {
|
.btn-success {
|
||||||
.button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
|
.button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info appears as blue-green
|
// Info appears as blue-green
|
||||||
.btn-info {
|
.btn-info {
|
||||||
.button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
|
.button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Warning appears as orange
|
// Warning appears as orange
|
||||||
.btn-warning {
|
.btn-warning {
|
||||||
.button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
|
.button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Danger and error appear as red
|
// Danger and error appear as red
|
||||||
.btn-danger {
|
.btn-danger {
|
||||||
.button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
|
.button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Link buttons
|
// Link buttons
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
@@ -113,7 +119,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Button Sizes
|
// Button Sizes
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
@@ -121,15 +126,16 @@
|
|||||||
// line-height: ensure even-numbered height of button next to large input
|
// line-height: ensure even-numbered height of button next to large input
|
||||||
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-sm {
|
.btn-sm {
|
||||||
// line-height: ensure proper height of button next to small input
|
// line-height: ensure proper height of button next to small input
|
||||||
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-xs {
|
.btn-xs {
|
||||||
.button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
.button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Block button
|
// Block button
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Carousel
|
// Carousel
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Wrapper for the slide container and indicators
|
// Wrapper for the slide container and indicators
|
||||||
.carousel {
|
.carousel {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -21,14 +20,17 @@
|
|||||||
// Account for jankitude on images
|
// Account for jankitude on images
|
||||||
> img,
|
> img,
|
||||||
> a > img {
|
> a > img {
|
||||||
.img-responsive();
|
&:extend(.img-responsive)
|
||||||
|
;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .active,
|
> .active,
|
||||||
> .next,
|
> .next,
|
||||||
> .prev { display: block; }
|
> .prev {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
> .active {
|
> .active {
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -117,7 +119,7 @@
|
|||||||
}
|
}
|
||||||
.icon-prev,
|
.icon-prev,
|
||||||
.icon-next {
|
.icon-next {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
margin-left: -10px;
|
margin-left: -10px;
|
||||||
@@ -126,12 +128,12 @@
|
|||||||
|
|
||||||
.icon-prev {
|
.icon-prev {
|
||||||
&:before {
|
&:before {
|
||||||
content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
|
content: '\2039'; // SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.icon-next {
|
.icon-next {
|
||||||
&:before {
|
&:before {
|
||||||
content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
|
content: '\203a'; // SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -154,7 +156,7 @@
|
|||||||
|
|
||||||
li {
|
li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
text-indent: -999px;
|
text-indent: -999px;
|
||||||
@@ -171,11 +173,11 @@
|
|||||||
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
|
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
|
||||||
// set alpha transparency for the best results possible.
|
// set alpha transparency for the best results possible.
|
||||||
background-color: #000 \9; // IE8
|
background-color: #000 \9; // IE8
|
||||||
background-color: rgba(0,0,0,0); // IE9
|
background-color: rgba(0, 0, 0, 0); // IE9
|
||||||
}
|
}
|
||||||
.active {
|
.active {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
background-color: @carousel-indicator-active-bg;
|
background-color: @carousel-indicator-active-bg;
|
||||||
}
|
}
|
||||||
@@ -200,14 +202,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Scale up controls for tablets and up
|
// Scale up controls for tablets and up
|
||||||
@media screen and (min-width: @screen-sm-min) {
|
@media screen and (min-width: @screen-sm-min) {
|
||||||
|
|
||||||
// Scale up the controls a smidge
|
// Scale up the controls a smidge
|
||||||
.carousel-control {
|
.carousel-control {
|
||||||
.glyphicons-chevron-left,
|
.glyphicon-chevron-left,
|
||||||
.glyphicons-chevron-right,
|
.glyphicon-chevron-right,
|
||||||
.icon-prev,
|
.icon-prev,
|
||||||
.icon-next {
|
.icon-next {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Forms
|
// Forms
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Normalize non-controls
|
// Normalize non-controls
|
||||||
//
|
//
|
||||||
// Restyle and baseline non-control form elements.
|
// Restyle and baseline non-control form elements.
|
||||||
@@ -35,7 +34,6 @@ label {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Normalize form controls
|
// Normalize form controls
|
||||||
//
|
//
|
||||||
// While most of our form styles require extra classes, some basic normalization
|
// While most of our form styles require extra classes, some basic normalization
|
||||||
@@ -88,7 +86,6 @@ output {
|
|||||||
color: @input-color;
|
color: @input-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Common form controls
|
// Common form controls
|
||||||
//
|
//
|
||||||
// Shared size and type resets for form controls. Apply `.form-control` to any
|
// Shared size and type resets for form controls. Apply `.form-control` to any
|
||||||
@@ -123,7 +120,7 @@ output {
|
|||||||
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
||||||
border: 1px solid @input-border;
|
border: 1px solid @input-border;
|
||||||
border-radius: @input-border-radius;
|
border-radius: @input-border-radius;
|
||||||
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
|
.box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075));
|
||||||
.transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s");
|
.transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s");
|
||||||
|
|
||||||
// Customize the `:focus` state to imitate native WebKit styles.
|
// Customize the `:focus` state to imitate native WebKit styles.
|
||||||
@@ -133,9 +130,10 @@ output {
|
|||||||
.placeholder();
|
.placeholder();
|
||||||
|
|
||||||
// Disabled and read-only inputs
|
// Disabled and read-only inputs
|
||||||
// Note: HTML5 says that controls under a fieldset > legend:first-child won't
|
//
|
||||||
// be disabled if the fieldset is disabled. Due to implementation difficulty,
|
// HTML5 says that controls under a fieldset > legend:first-child won't be
|
||||||
// we don't honor that edge case; we style them as disabled anyway.
|
// disabled if the fieldset is disabled. Due to implementation difficulty, we
|
||||||
|
// don't honor that edge case; we style them as disabled anyway.
|
||||||
&[disabled],
|
&[disabled],
|
||||||
&[readonly],
|
&[readonly],
|
||||||
fieldset[disabled] & {
|
fieldset[disabled] & {
|
||||||
@@ -150,15 +148,26 @@ output {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Search inputs in iOS
|
||||||
|
//
|
||||||
|
// This overrides the extra rounded corners on search inputs in iOS so that our
|
||||||
|
// `.form-control` class can properly style them. Note that this cannot simply
|
||||||
|
// be added to `.form-control` as it's not specific enough. For details, see
|
||||||
|
// https://github.com/twbs/bootstrap/issues/11586.
|
||||||
|
|
||||||
|
input[type="search"] {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
// Special styles for iOS date input
|
// Special styles for iOS date input
|
||||||
//
|
//
|
||||||
// In Mobile Safari, date inputs require a pixel line-height that matches the
|
// In Mobile Safari, date inputs require a pixel line-height that matches the
|
||||||
// given height of the input.
|
// given height of the input.
|
||||||
|
|
||||||
input[type="date"] {
|
input[type="date"] {
|
||||||
line-height: @input-height-base;
|
line-height: @input-height-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Form groups
|
// Form groups
|
||||||
//
|
//
|
||||||
// Designed to help with the organization and spacing of vertical forms. For
|
// Designed to help with the organization and spacing of vertical forms. For
|
||||||
@@ -168,7 +177,6 @@ input[type="date"] {
|
|||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Checkboxes and radios
|
// Checkboxes and radios
|
||||||
//
|
//
|
||||||
// Indent the labels to position radios/checkboxes as hanging controls.
|
// Indent the labels to position radios/checkboxes as hanging controls.
|
||||||
@@ -186,6 +194,7 @@ input[type="date"] {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio input[type="radio"],
|
.radio input[type="radio"],
|
||||||
.radio-inline input[type="radio"],
|
.radio-inline input[type="radio"],
|
||||||
.checkbox input[type="checkbox"],
|
.checkbox input[type="checkbox"],
|
||||||
@@ -193,6 +202,7 @@ input[type="date"] {
|
|||||||
float: left;
|
float: left;
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio + .radio,
|
.radio + .radio,
|
||||||
.checkbox + .checkbox {
|
.checkbox + .checkbox {
|
||||||
margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
|
margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
|
||||||
@@ -208,6 +218,7 @@ input[type="date"] {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-inline + .radio-inline,
|
.radio-inline + .radio-inline,
|
||||||
.checkbox-inline + .checkbox-inline {
|
.checkbox-inline + .checkbox-inline {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
@@ -229,7 +240,6 @@ input[type="checkbox"],
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Form control sizing
|
// Form control sizing
|
||||||
//
|
//
|
||||||
// Build on `.form-control` with modifier classes to decrease or increase the
|
// Build on `.form-control` with modifier classes to decrease or increase the
|
||||||
@@ -243,7 +253,6 @@ input[type="checkbox"],
|
|||||||
.input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
.input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Form control feedback states
|
// Form control feedback states
|
||||||
//
|
//
|
||||||
// Apply contextual and semantic states to individual form controls.
|
// Apply contextual and semantic states to individual form controls.
|
||||||
@@ -274,14 +283,15 @@ input[type="checkbox"],
|
|||||||
.has-success {
|
.has-success {
|
||||||
.form-control-validation(@state-success-text; @state-success-text; @state-success-bg);
|
.form-control-validation(@state-success-text; @state-success-text; @state-success-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.has-warning {
|
.has-warning {
|
||||||
.form-control-validation(@state-warning-text; @state-warning-text; @state-warning-bg);
|
.form-control-validation(@state-warning-text; @state-warning-text; @state-warning-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.has-error {
|
.has-error {
|
||||||
.form-control-validation(@state-danger-text; @state-danger-text; @state-danger-bg);
|
.form-control-validation(@state-danger-text; @state-danger-text; @state-danger-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Static form control text
|
// Static form control text
|
||||||
//
|
//
|
||||||
// Apply class to a `p` element to make any string of text align with labels in
|
// Apply class to a `p` element to make any string of text align with labels in
|
||||||
@@ -291,7 +301,6 @@ input[type="checkbox"],
|
|||||||
margin-bottom: 0; // Remove default margin from `p`
|
margin-bottom: 0; // Remove default margin from `p`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Help text
|
// Help text
|
||||||
//
|
//
|
||||||
// Apply to any element you wish to create light text for placement immediately
|
// Apply to any element you wish to create light text for placement immediately
|
||||||
@@ -304,8 +313,6 @@ input[type="checkbox"],
|
|||||||
color: lighten(@text-color, 25%); // lighten the text some for contrast
|
color: lighten(@text-color, 25%); // lighten the text some for contrast
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Inline forms
|
// Inline forms
|
||||||
//
|
//
|
||||||
// Make forms appear inline(-block) by adding the `.form-inline` class. Inline
|
// Make forms appear inline(-block) by adding the `.form-inline` class. Inline
|
||||||
@@ -335,6 +342,11 @@ input[type="checkbox"],
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Input groups need that 100% width though
|
||||||
|
.input-group > .form-control {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.control-label {
|
.control-label {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@@ -351,6 +363,7 @@ input[type="checkbox"],
|
|||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio input[type="radio"],
|
.radio input[type="radio"],
|
||||||
.checkbox input[type="checkbox"] {
|
.checkbox input[type="checkbox"] {
|
||||||
float: none;
|
float: none;
|
||||||
@@ -367,7 +380,6 @@ input[type="checkbox"],
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Horizontal forms
|
// Horizontal forms
|
||||||
//
|
//
|
||||||
// Horizontal forms are built on grid classes and allow you to create forms with
|
// Horizontal forms are built on grid classes and allow you to create forms with
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Grid system
|
// Grid system
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Container widths
|
// Container widths
|
||||||
//
|
//
|
||||||
// Set the container width, and override it for fixed navbars in media queries.
|
// Set the container width, and override it for fixed navbars in media queries.
|
||||||
@@ -21,7 +20,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Fluid container
|
// Fluid container
|
||||||
//
|
//
|
||||||
// Utilizes the mixin meant for fixed width containers, but without any defined
|
// Utilizes the mixin meant for fixed width containers, but without any defined
|
||||||
@@ -31,7 +29,6 @@
|
|||||||
.container-fixed();
|
.container-fixed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Row
|
// Row
|
||||||
//
|
//
|
||||||
// Rows contain and clear the floats of your columns.
|
// Rows contain and clear the floats of your columns.
|
||||||
@@ -40,25 +37,18 @@
|
|||||||
.make-row();
|
.make-row();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Columns
|
// Columns
|
||||||
//
|
//
|
||||||
// Common styles for small and large grid columns
|
// Common styles for small and large grid columns
|
||||||
|
|
||||||
.make-grid-columns();
|
.make-grid-columns();
|
||||||
|
|
||||||
|
|
||||||
// Extra small grid
|
// Extra small grid
|
||||||
//
|
//
|
||||||
// Columns, offsets, pushes, and pulls for extra small devices like
|
// Columns, offsets, pushes, and pulls for extra small devices like
|
||||||
// smartphones.
|
// smartphones.
|
||||||
|
|
||||||
.make-grid-columns-float(xs);
|
.make-grid(xs);
|
||||||
.make-grid(@grid-columns, xs, width);
|
|
||||||
.make-grid(@grid-columns, xs, pull);
|
|
||||||
.make-grid(@grid-columns, xs, push);
|
|
||||||
.make-grid(@grid-columns, xs, offset);
|
|
||||||
|
|
||||||
|
|
||||||
// Small grid
|
// Small grid
|
||||||
//
|
//
|
||||||
@@ -66,35 +56,21 @@
|
|||||||
// to tablets.
|
// to tablets.
|
||||||
|
|
||||||
@media (min-width: @screen-sm-min) {
|
@media (min-width: @screen-sm-min) {
|
||||||
.make-grid-columns-float(sm);
|
.make-grid(sm);
|
||||||
.make-grid(@grid-columns, sm, width);
|
|
||||||
.make-grid(@grid-columns, sm, pull);
|
|
||||||
.make-grid(@grid-columns, sm, push);
|
|
||||||
.make-grid(@grid-columns, sm, offset);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Medium grid
|
// Medium grid
|
||||||
//
|
//
|
||||||
// Columns, offsets, pushes, and pulls for the desktop device range.
|
// Columns, offsets, pushes, and pulls for the desktop device range.
|
||||||
|
|
||||||
@media (min-width: @screen-md-min) {
|
@media (min-width: @screen-md-min) {
|
||||||
.make-grid-columns-float(md);
|
.make-grid(md);
|
||||||
.make-grid(@grid-columns, md, width);
|
|
||||||
.make-grid(@grid-columns, md, pull);
|
|
||||||
.make-grid(@grid-columns, md, push);
|
|
||||||
.make-grid(@grid-columns, md, offset);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Large grid
|
// Large grid
|
||||||
//
|
//
|
||||||
// Columns, offsets, pushes, and pulls for the large desktop device range.
|
// Columns, offsets, pushes, and pulls for the large desktop device range.
|
||||||
|
|
||||||
@media (min-width: @screen-lg-min) {
|
@media (min-width: @screen-lg-min) {
|
||||||
.make-grid-columns-float(lg);
|
.make-grid(lg);
|
||||||
.make-grid(@grid-columns, lg, width);
|
|
||||||
.make-grid(@grid-columns, lg, pull);
|
|
||||||
.make-grid(@grid-columns, lg, push);
|
|
||||||
.make-grid(@grid-columns, lg, offset);
|
|
||||||
}
|
}
|
||||||
|
@@ -17,6 +17,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
|
// Ensure that the input is always above the *appended* addon button for
|
||||||
|
// proper border colors.
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
|
||||||
// IE9 fubars the placeholder attribute in text inputs and the arrows on
|
// IE9 fubars the placeholder attribute in text inputs and the arrows on
|
||||||
// select elements in input groups. To fix it, we float the input. Details:
|
// select elements in input groups. To fix it, we float the input. Details:
|
||||||
// https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855
|
// https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855
|
||||||
@@ -34,11 +39,15 @@
|
|||||||
|
|
||||||
.input-group-lg > .form-control,
|
.input-group-lg > .form-control,
|
||||||
.input-group-lg > .input-group-addon,
|
.input-group-lg > .input-group-addon,
|
||||||
.input-group-lg > .input-group-btn > .btn { .input-lg(); }
|
.input-group-lg > .input-group-btn > .btn {
|
||||||
|
.input-lg();
|
||||||
|
}
|
||||||
|
|
||||||
.input-group-sm > .form-control,
|
.input-group-sm > .form-control,
|
||||||
.input-group-sm > .input-group-addon,
|
.input-group-sm > .input-group-addon,
|
||||||
.input-group-sm > .input-group-btn > .btn { .input-sm(); }
|
.input-group-sm > .input-group-btn > .btn {
|
||||||
|
.input-sm();
|
||||||
|
}
|
||||||
|
|
||||||
// Display as table-cell
|
// Display as table-cell
|
||||||
// -------------------------
|
// -------------------------
|
||||||
@@ -51,6 +60,7 @@
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Addon and addon wrapper for buttons
|
// Addon and addon wrapper for buttons
|
||||||
.input-group-addon,
|
.input-group-addon,
|
||||||
.input-group-btn {
|
.input-group-btn {
|
||||||
@@ -101,9 +111,11 @@
|
|||||||
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
|
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
|
||||||
.border-right-radius(0);
|
.border-right-radius(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-addon:first-child {
|
.input-group-addon:first-child {
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group .form-control:last-child,
|
.input-group .form-control:last-child,
|
||||||
.input-group-addon:last-child,
|
.input-group-addon:last-child,
|
||||||
.input-group-btn:last-child > .btn,
|
.input-group-btn:last-child > .btn,
|
||||||
@@ -113,6 +125,7 @@
|
|||||||
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
|
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
|
||||||
.border-left-radius(0);
|
.border-left-radius(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-addon:last-child {
|
.input-group-addon:last-child {
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
}
|
}
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Mixins
|
// Mixins
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Utilities
|
// Utilities
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
@@ -48,17 +47,26 @@
|
|||||||
width: @width;
|
width: @width;
|
||||||
height: @height;
|
height: @height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.square(@size) {
|
.square(@size) {
|
||||||
.size(@size; @size);
|
.size(@size; @size);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Placeholder text
|
// Placeholder text
|
||||||
.placeholder(@color: @input-color-placeholder) {
|
.placeholder(@color: @input-color-placeholder) {
|
||||||
&:-moz-placeholder { color: @color; } // Firefox 4-18
|
&::-moz-placeholder {
|
||||||
&::-moz-placeholder { color: @color; // Firefox 19+
|
color: @color; // Firefox
|
||||||
opacity: 1; } // See https://github.com/twbs/bootstrap/pull/11526
|
opacity: 1;
|
||||||
&:-ms-input-placeholder { color: @color; } // Internet Explorer 10+
|
}
|
||||||
&::-webkit-input-placeholder { color: @color; } // Safari and Chrome
|
// See https://github.com/twbs/bootstrap/pull/11526
|
||||||
|
&:-ms-input-placeholder {
|
||||||
|
color: @color;
|
||||||
|
}
|
||||||
|
// Internet Explorer 10+
|
||||||
|
&::-webkit-input-placeholder {
|
||||||
|
color: @color;
|
||||||
|
}
|
||||||
|
// Safari and Chrome
|
||||||
}
|
}
|
||||||
|
|
||||||
// Text overflow
|
// Text overflow
|
||||||
@@ -86,32 +94,34 @@
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// New mixin to use as of v3.0.1
|
// New mixin to use as of v3.0.1
|
||||||
.text-hide() {
|
.text-hide() {
|
||||||
.hide-text();
|
.hide-text();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// CSS3 PROPERTIES
|
// CSS3 PROPERTIES
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// Single side border-radius
|
// Single side border-radius
|
||||||
.border-top-radius(@radius) {
|
.border-top-radius(@radius) {
|
||||||
border-top-right-radius: @radius;
|
border-top-right-radius: @radius;
|
||||||
border-top-left-radius: @radius;
|
border-top-left-radius: @radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border-right-radius(@radius) {
|
.border-right-radius(@radius) {
|
||||||
border-bottom-right-radius: @radius;
|
border-bottom-right-radius: @radius;
|
||||||
border-top-right-radius: @radius;
|
border-top-right-radius: @radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border-bottom-radius(@radius) {
|
.border-bottom-radius(@radius) {
|
||||||
border-bottom-right-radius: @radius;
|
border-bottom-right-radius: @radius;
|
||||||
border-bottom-left-radius: @radius;
|
border-bottom-left-radius: @radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border-left-radius(@radius) {
|
.border-left-radius(@radius) {
|
||||||
border-bottom-left-radius: @radius;
|
border-bottom-left-radius: @radius;
|
||||||
border-top-left-radius: @radius;
|
border-top-left-radius: @radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Drop shadows
|
// Drop shadows
|
||||||
@@ -121,140 +131,157 @@
|
|||||||
// standard `box-shadow` property.
|
// standard `box-shadow` property.
|
||||||
.box-shadow(@shadow) {
|
.box-shadow(@shadow) {
|
||||||
-webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
|
-webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
|
||||||
box-shadow: @shadow;
|
box-shadow: @shadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transitions
|
// Transitions
|
||||||
.transition(@transition) {
|
.transition(@transition) {
|
||||||
-webkit-transition: @transition;
|
-webkit-transition: @transition;
|
||||||
transition: @transition;
|
transition: @transition;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transition-property(@transition-property) {
|
.transition-property(@transition-property) {
|
||||||
-webkit-transition-property: @transition-property;
|
-webkit-transition-property: @transition-property;
|
||||||
transition-property: @transition-property;
|
transition-property: @transition-property;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transition-delay(@transition-delay) {
|
.transition-delay(@transition-delay) {
|
||||||
-webkit-transition-delay: @transition-delay;
|
-webkit-transition-delay: @transition-delay;
|
||||||
transition-delay: @transition-delay;
|
transition-delay: @transition-delay;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transition-duration(@transition-duration) {
|
.transition-duration(@transition-duration) {
|
||||||
-webkit-transition-duration: @transition-duration;
|
-webkit-transition-duration: @transition-duration;
|
||||||
transition-duration: @transition-duration;
|
transition-duration: @transition-duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transition-transform(@transition) {
|
.transition-transform(@transition) {
|
||||||
-webkit-transition: -webkit-transform @transition;
|
-webkit-transition: -webkit-transform @transition;
|
||||||
-moz-transition: -moz-transform @transition;
|
-moz-transition: -moz-transform @transition;
|
||||||
-o-transition: -o-transform @transition;
|
-o-transition: -o-transform @transition;
|
||||||
transition: transform @transition;
|
transition: transform @transition;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transformations
|
// Transformations
|
||||||
.rotate(@degrees) {
|
.rotate(@degrees) {
|
||||||
-webkit-transform: rotate(@degrees);
|
-webkit-transform: rotate(@degrees);
|
||||||
-ms-transform: rotate(@degrees); // IE9 only
|
-ms-transform: rotate(@degrees); // IE9 only
|
||||||
transform: rotate(@degrees);
|
transform: rotate(@degrees);
|
||||||
}
|
}
|
||||||
|
|
||||||
.scale(@ratio; @ratio-y...) {
|
.scale(@ratio; @ratio-y...) {
|
||||||
-webkit-transform: scale(@ratio, @ratio-y);
|
-webkit-transform: scale(@ratio, @ratio-y);
|
||||||
-ms-transform: scale(@ratio, @ratio-y); // IE9 only
|
-ms-transform: scale(@ratio, @ratio-y); // IE9 only
|
||||||
transform: scale(@ratio, @ratio-y);
|
transform: scale(@ratio, @ratio-y);
|
||||||
}
|
}
|
||||||
|
|
||||||
.translate(@x; @y) {
|
.translate(@x; @y) {
|
||||||
-webkit-transform: translate(@x, @y);
|
-webkit-transform: translate(@x, @y);
|
||||||
-ms-transform: translate(@x, @y); // IE9 only
|
-ms-transform: translate(@x, @y); // IE9 only
|
||||||
transform: translate(@x, @y);
|
transform: translate(@x, @y);
|
||||||
}
|
}
|
||||||
|
|
||||||
.skew(@x; @y) {
|
.skew(@x; @y) {
|
||||||
-webkit-transform: skew(@x, @y);
|
-webkit-transform: skew(@x, @y);
|
||||||
-ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
|
-ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
|
||||||
transform: skew(@x, @y);
|
transform: skew(@x, @y);
|
||||||
}
|
}
|
||||||
|
|
||||||
.translate3d(@x; @y; @z) {
|
.translate3d(@x; @y; @z) {
|
||||||
-webkit-transform: translate3d(@x, @y, @z);
|
-webkit-transform: translate3d(@x, @y, @z);
|
||||||
transform: translate3d(@x, @y, @z);
|
transform: translate3d(@x, @y, @z);
|
||||||
}
|
}
|
||||||
|
|
||||||
.rotateX(@degrees) {
|
.rotateX(@degrees) {
|
||||||
-webkit-transform: rotateX(@degrees);
|
-webkit-transform: rotateX(@degrees);
|
||||||
-ms-transform: rotateX(@degrees); // IE9 only
|
-ms-transform: rotateX(@degrees); // IE9 only
|
||||||
transform: rotateX(@degrees);
|
transform: rotateX(@degrees);
|
||||||
}
|
}
|
||||||
|
|
||||||
.rotateY(@degrees) {
|
.rotateY(@degrees) {
|
||||||
-webkit-transform: rotateY(@degrees);
|
-webkit-transform: rotateY(@degrees);
|
||||||
-ms-transform: rotateY(@degrees); // IE9 only
|
-ms-transform: rotateY(@degrees); // IE9 only
|
||||||
transform: rotateY(@degrees);
|
transform: rotateY(@degrees);
|
||||||
}
|
}
|
||||||
|
|
||||||
.perspective(@perspective) {
|
.perspective(@perspective) {
|
||||||
-webkit-perspective: @perspective;
|
-webkit-perspective: @perspective;
|
||||||
-moz-perspective: @perspective;
|
-moz-perspective: @perspective;
|
||||||
perspective: @perspective;
|
perspective: @perspective;
|
||||||
}
|
}
|
||||||
|
|
||||||
.perspective-origin(@perspective) {
|
.perspective-origin(@perspective) {
|
||||||
-webkit-perspective-origin: @perspective;
|
-webkit-perspective-origin: @perspective;
|
||||||
-moz-perspective-origin: @perspective;
|
-moz-perspective-origin: @perspective;
|
||||||
perspective-origin: @perspective;
|
perspective-origin: @perspective;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transform-origin(@origin) {
|
.transform-origin(@origin) {
|
||||||
-webkit-transform-origin: @origin;
|
-webkit-transform-origin: @origin;
|
||||||
-moz-transform-origin: @origin;
|
-moz-transform-origin: @origin;
|
||||||
-ms-transform-origin: @origin; // IE9 only
|
-ms-transform-origin: @origin; // IE9 only
|
||||||
transform-origin: @origin;
|
transform-origin: @origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Animations
|
// Animations
|
||||||
.animation(@animation) {
|
.animation(@animation) {
|
||||||
-webkit-animation: @animation;
|
-webkit-animation: @animation;
|
||||||
animation: @animation;
|
animation: @animation;
|
||||||
}
|
}
|
||||||
|
|
||||||
.animation-name(@name) {
|
.animation-name(@name) {
|
||||||
-webkit-animation-name: @name;
|
-webkit-animation-name: @name;
|
||||||
animation-name: @name;
|
animation-name: @name;
|
||||||
}
|
}
|
||||||
|
|
||||||
.animation-duration(@duration) {
|
.animation-duration(@duration) {
|
||||||
-webkit-animation-duration: @duration;
|
-webkit-animation-duration: @duration;
|
||||||
animation-duration: @duration;
|
animation-duration: @duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
.animation-timing-function(@timing-function) {
|
.animation-timing-function(@timing-function) {
|
||||||
-webkit-animation-timing-function: @timing-function;
|
-webkit-animation-timing-function: @timing-function;
|
||||||
animation-timing-function: @timing-function;
|
animation-timing-function: @timing-function;
|
||||||
}
|
}
|
||||||
|
|
||||||
.animation-delay(@delay) {
|
.animation-delay(@delay) {
|
||||||
-webkit-animation-delay: @delay;
|
-webkit-animation-delay: @delay;
|
||||||
animation-delay: @delay;
|
animation-delay: @delay;
|
||||||
}
|
}
|
||||||
|
|
||||||
.animation-iteration-count(@iteration-count) {
|
.animation-iteration-count(@iteration-count) {
|
||||||
-webkit-animation-iteration-count: @iteration-count;
|
-webkit-animation-iteration-count: @iteration-count;
|
||||||
animation-iteration-count: @iteration-count;
|
animation-iteration-count: @iteration-count;
|
||||||
}
|
}
|
||||||
|
|
||||||
.animation-direction(@direction) {
|
.animation-direction(@direction) {
|
||||||
-webkit-animation-direction: @direction;
|
-webkit-animation-direction: @direction;
|
||||||
animation-direction: @direction;
|
animation-direction: @direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backface visibility
|
// Backface visibility
|
||||||
// Prevent browsers from flickering when using CSS 3D transforms.
|
// Prevent browsers from flickering when using CSS 3D transforms.
|
||||||
// Default value is `visible`, but can be changed to `hidden`
|
// Default value is `visible`, but can be changed to `hidden`
|
||||||
.backface-visibility(@visibility){
|
.backface-visibility(@visibility) {
|
||||||
-webkit-backface-visibility: @visibility;
|
-webkit-backface-visibility: @visibility;
|
||||||
-moz-backface-visibility: @visibility;
|
-moz-backface-visibility: @visibility;
|
||||||
backface-visibility: @visibility;
|
backface-visibility: @visibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Box sizing
|
// Box sizing
|
||||||
.box-sizing(@boxmodel) {
|
.box-sizing(@boxmodel) {
|
||||||
-webkit-box-sizing: @boxmodel;
|
-webkit-box-sizing: @boxmodel;
|
||||||
-moz-box-sizing: @boxmodel;
|
-moz-box-sizing: @boxmodel;
|
||||||
box-sizing: @boxmodel;
|
box-sizing: @boxmodel;
|
||||||
}
|
}
|
||||||
|
|
||||||
// User select
|
// User select
|
||||||
// For selecting text on the page
|
// For selecting text on the page
|
||||||
.user-select(@select) {
|
.user-select(@select) {
|
||||||
-webkit-user-select: @select;
|
-webkit-user-select: @select;
|
||||||
-moz-user-select: @select;
|
-moz-user-select: @select;
|
||||||
-ms-user-select: @select; // IE10+
|
-ms-user-select: @select; // IE10+
|
||||||
-o-user-select: @select;
|
user-select: @select;
|
||||||
user-select: @select;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resize anything
|
// Resize anything
|
||||||
@@ -266,21 +293,21 @@
|
|||||||
// CSS3 Content Columns
|
// CSS3 Content Columns
|
||||||
.content-columns(@column-count; @column-gap: @grid-gutter-width) {
|
.content-columns(@column-count; @column-gap: @grid-gutter-width) {
|
||||||
-webkit-column-count: @column-count;
|
-webkit-column-count: @column-count;
|
||||||
-moz-column-count: @column-count;
|
-moz-column-count: @column-count;
|
||||||
column-count: @column-count;
|
column-count: @column-count;
|
||||||
-webkit-column-gap: @column-gap;
|
-webkit-column-gap: @column-gap;
|
||||||
-moz-column-gap: @column-gap;
|
-moz-column-gap: @column-gap;
|
||||||
column-gap: @column-gap;
|
column-gap: @column-gap;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Optional hyphenation
|
// Optional hyphenation
|
||||||
.hyphens(@mode: auto) {
|
.hyphens(@mode: auto) {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
-webkit-hyphens: @mode;
|
-webkit-hyphens: @mode;
|
||||||
-moz-hyphens: @mode;
|
-moz-hyphens: @mode;
|
||||||
-ms-hyphens: @mode; // IE10+
|
-ms-hyphens: @mode; // IE10+
|
||||||
-o-hyphens: @mode;
|
-o-hyphens: @mode;
|
||||||
hyphens: @mode;
|
hyphens: @mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Opacity
|
// Opacity
|
||||||
@@ -291,8 +318,6 @@
|
|||||||
filter: ~"alpha(opacity=@{opacity-ie})";
|
filter: ~"alpha(opacity=@{opacity-ie})";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// GRADIENTS
|
// GRADIENTS
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
@@ -304,9 +329,9 @@
|
|||||||
// Color stops are not available in IE9 and below.
|
// Color stops are not available in IE9 and below.
|
||||||
.horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
.horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
||||||
background-image: -webkit-linear-gradient(left, color-stop(@start-color @start-percent), color-stop(@end-color @end-percent)); // Safari 5.1-6, Chrome 10+
|
background-image: -webkit-linear-gradient(left, color-stop(@start-color @start-percent), color-stop(@end-color @end-percent)); // Safari 5.1-6, Chrome 10+
|
||||||
background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color), argb(@end-color))); // IE9 and down
|
||||||
}
|
}
|
||||||
|
|
||||||
// Vertical gradient, from top to bottom
|
// Vertical gradient, from top to bottom
|
||||||
@@ -314,10 +339,10 @@
|
|||||||
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||||
// Color stops are not available in IE9 and below.
|
// Color stops are not available in IE9 and below.
|
||||||
.vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
.vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
||||||
background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
|
background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
|
||||||
background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color), argb(@end-color))); // IE9 and down
|
||||||
}
|
}
|
||||||
|
|
||||||
.directional(@start-color: #555; @end-color: #333; @deg: 45deg) {
|
.directional(@start-color: #555; @end-color: #333; @deg: 45deg) {
|
||||||
@@ -329,13 +354,13 @@
|
|||||||
background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
|
background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
|
||||||
background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
|
background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color), argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
|
||||||
}
|
}
|
||||||
.vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
|
.vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
|
||||||
background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
||||||
background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color), argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
|
||||||
}
|
}
|
||||||
.radial(@inner-color: #555; @outer-color: #333) {
|
.radial(@inner-color: #555; @outer-color: #333) {
|
||||||
background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);
|
background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);
|
||||||
@@ -356,8 +381,6 @@
|
|||||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Retina images
|
// Retina images
|
||||||
//
|
//
|
||||||
// Short retina mixin for setting background-image and -size
|
// Short retina mixin for setting background-image and -size
|
||||||
@@ -365,19 +388,12 @@
|
|||||||
.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
|
.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
|
||||||
background-image: url("@{file-1x}");
|
background-image: url("@{file-1x}");
|
||||||
|
|
||||||
@media
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and ( min--moz-device-pixel-ratio: 2), only screen and ( -o-min-device-pixel-ratio: 2/1), only screen and ( min-device-pixel-ratio: 2), only screen and ( min-resolution: 192dpi), only screen and ( min-resolution: 2dppx) {
|
||||||
only screen and (-webkit-min-device-pixel-ratio: 2),
|
|
||||||
only screen and ( min--moz-device-pixel-ratio: 2),
|
|
||||||
only screen and ( -o-min-device-pixel-ratio: 2/1),
|
|
||||||
only screen and ( min-device-pixel-ratio: 2),
|
|
||||||
only screen and ( min-resolution: 192dpi),
|
|
||||||
only screen and ( min-resolution: 2dppx) {
|
|
||||||
background-image: url("@{file-2x}");
|
background-image: url("@{file-2x}");
|
||||||
background-size: @width-1x @height-1x;
|
background-size: @width-1x @height-1x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Responsive image
|
// Responsive image
|
||||||
//
|
//
|
||||||
// Keep images from scaling beyond the width of their parents.
|
// Keep images from scaling beyond the width of their parents.
|
||||||
@@ -388,7 +404,6 @@
|
|||||||
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
|
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// COMPONENT MIXINS
|
// COMPONENT MIXINS
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
@@ -476,7 +491,9 @@
|
|||||||
a& {
|
a& {
|
||||||
color: @color;
|
color: @color;
|
||||||
|
|
||||||
.list-group-item-heading { color: inherit; }
|
.list-group-item-heading {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
@@ -507,14 +524,14 @@
|
|||||||
&:focus,
|
&:focus,
|
||||||
&:active,
|
&:active,
|
||||||
&.active,
|
&.active,
|
||||||
.open .dropdown-toggle& {
|
.open .dropdown-toggle & {
|
||||||
color: @color;
|
color: @color;
|
||||||
background-color: darken(@background, 8%);
|
background-color: darken(@background, 8%);
|
||||||
border-color: darken(@border, 12%);
|
border-color: darken(@border, 12%);
|
||||||
}
|
}
|
||||||
&:active,
|
&:active,
|
||||||
&.active,
|
&.active,
|
||||||
.open .dropdown-toggle& {
|
.open .dropdown-toggle & {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
}
|
}
|
||||||
&.disabled,
|
&.disabled,
|
||||||
@@ -526,7 +543,7 @@
|
|||||||
&:active,
|
&:active,
|
||||||
&.active {
|
&.active {
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
border-color: @border;
|
border-color: @border;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -622,20 +639,22 @@
|
|||||||
// More easily include all the states for responsive-utilities.less.
|
// More easily include all the states for responsive-utilities.less.
|
||||||
.responsive-visibility() {
|
.responsive-visibility() {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
table& { display: table; }
|
table& {
|
||||||
tr& { display: table-row !important; }
|
display: table;
|
||||||
|
}
|
||||||
|
tr& {
|
||||||
|
display: table-row !important;
|
||||||
|
}
|
||||||
th&,
|
th&,
|
||||||
td& { display: table-cell !important; }
|
td& {
|
||||||
|
display: table-cell !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.responsive-invisibility() {
|
.responsive-invisibility() {
|
||||||
&,
|
display: none !important;
|
||||||
tr&,
|
|
||||||
th&,
|
|
||||||
td& { display: none !important; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Grid System
|
// Grid System
|
||||||
// -----------
|
// -----------
|
||||||
|
|
||||||
@@ -643,16 +662,18 @@
|
|||||||
.container-fixed() {
|
.container-fixed() {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
padding-left: (@grid-gutter-width / 2);
|
padding-left: (@grid-gutter-width / 2);
|
||||||
padding-right: (@grid-gutter-width / 2);
|
padding-right: (@grid-gutter-width / 2);
|
||||||
&:extend(.clearfix all);
|
&:extend(.clearfix all)
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a wrapper for a series of columns
|
// Creates a wrapper for a series of columns
|
||||||
.make-row(@gutter: @grid-gutter-width) {
|
.make-row(@gutter: @grid-gutter-width) {
|
||||||
margin-left: (@gutter / -2);
|
margin-left: (@gutter / -2);
|
||||||
margin-right: (@gutter / -2);
|
margin-right: (@gutter / -2);
|
||||||
&:extend(.clearfix all);
|
&:extend(.clearfix all)
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate the extra small columns
|
// Generate the extra small columns
|
||||||
@@ -661,31 +682,33 @@
|
|||||||
float: left;
|
float: left;
|
||||||
width: percentage((@columns / @grid-columns));
|
width: percentage((@columns / @grid-columns));
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
padding-left: (@gutter / 2);
|
padding-left: (@gutter / 2);
|
||||||
padding-right: (@gutter / 2);
|
padding-right: (@gutter / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-xs-column-offset(@columns) {
|
.make-xs-column-offset(@columns) {
|
||||||
@media (min-width: @screen-xs-min) {
|
@media (min-width: @screen-xs-min) {
|
||||||
margin-left: percentage((@columns / @grid-columns));
|
margin-left: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-xs-column-push(@columns) {
|
.make-xs-column-push(@columns) {
|
||||||
@media (min-width: @screen-xs-min) {
|
@media (min-width: @screen-xs-min) {
|
||||||
left: percentage((@columns / @grid-columns));
|
left: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-xs-column-pull(@columns) {
|
.make-xs-column-pull(@columns) {
|
||||||
@media (min-width: @screen-xs-min) {
|
@media (min-width: @screen-xs-min) {
|
||||||
right: percentage((@columns / @grid-columns));
|
right: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Generate the small columns
|
// Generate the small columns
|
||||||
.make-sm-column(@columns; @gutter: @grid-gutter-width) {
|
.make-sm-column(@columns; @gutter: @grid-gutter-width) {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
padding-left: (@gutter / 2);
|
padding-left: (@gutter / 2);
|
||||||
padding-right: (@gutter / 2);
|
padding-right: (@gutter / 2);
|
||||||
|
|
||||||
@media (min-width: @screen-sm-min) {
|
@media (min-width: @screen-sm-min) {
|
||||||
@@ -693,28 +716,30 @@
|
|||||||
width: percentage((@columns / @grid-columns));
|
width: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-sm-column-offset(@columns) {
|
.make-sm-column-offset(@columns) {
|
||||||
@media (min-width: @screen-sm-min) {
|
@media (min-width: @screen-sm-min) {
|
||||||
margin-left: percentage((@columns / @grid-columns));
|
margin-left: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-sm-column-push(@columns) {
|
.make-sm-column-push(@columns) {
|
||||||
@media (min-width: @screen-sm-min) {
|
@media (min-width: @screen-sm-min) {
|
||||||
left: percentage((@columns / @grid-columns));
|
left: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-sm-column-pull(@columns) {
|
.make-sm-column-pull(@columns) {
|
||||||
@media (min-width: @screen-sm-min) {
|
@media (min-width: @screen-sm-min) {
|
||||||
right: percentage((@columns / @grid-columns));
|
right: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Generate the medium columns
|
// Generate the medium columns
|
||||||
.make-md-column(@columns; @gutter: @grid-gutter-width) {
|
.make-md-column(@columns; @gutter: @grid-gutter-width) {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
padding-left: (@gutter / 2);
|
padding-left: (@gutter / 2);
|
||||||
padding-right: (@gutter / 2);
|
padding-right: (@gutter / 2);
|
||||||
|
|
||||||
@media (min-width: @screen-md-min) {
|
@media (min-width: @screen-md-min) {
|
||||||
@@ -722,28 +747,30 @@
|
|||||||
width: percentage((@columns / @grid-columns));
|
width: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-md-column-offset(@columns) {
|
.make-md-column-offset(@columns) {
|
||||||
@media (min-width: @screen-md-min) {
|
@media (min-width: @screen-md-min) {
|
||||||
margin-left: percentage((@columns / @grid-columns));
|
margin-left: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-md-column-push(@columns) {
|
.make-md-column-push(@columns) {
|
||||||
@media (min-width: @screen-md-min) {
|
@media (min-width: @screen-md-min) {
|
||||||
left: percentage((@columns / @grid-columns));
|
left: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-md-column-pull(@columns) {
|
.make-md-column-pull(@columns) {
|
||||||
@media (min-width: @screen-md-min) {
|
@media (min-width: @screen-md-min) {
|
||||||
right: percentage((@columns / @grid-columns));
|
right: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Generate the large columns
|
// Generate the large columns
|
||||||
.make-lg-column(@columns; @gutter: @grid-gutter-width) {
|
.make-lg-column(@columns; @gutter: @grid-gutter-width) {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
padding-left: (@gutter / 2);
|
padding-left: (@gutter / 2);
|
||||||
padding-right: (@gutter / 2);
|
padding-right: (@gutter / 2);
|
||||||
|
|
||||||
@media (min-width: @screen-lg-min) {
|
@media (min-width: @screen-lg-min) {
|
||||||
@@ -751,23 +778,25 @@
|
|||||||
width: percentage((@columns / @grid-columns));
|
width: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-lg-column-offset(@columns) {
|
.make-lg-column-offset(@columns) {
|
||||||
@media (min-width: @screen-lg-min) {
|
@media (min-width: @screen-lg-min) {
|
||||||
margin-left: percentage((@columns / @grid-columns));
|
margin-left: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-lg-column-push(@columns) {
|
.make-lg-column-push(@columns) {
|
||||||
@media (min-width: @screen-lg-min) {
|
@media (min-width: @screen-lg-min) {
|
||||||
left: percentage((@columns / @grid-columns));
|
left: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-lg-column-pull(@columns) {
|
.make-lg-column-pull(@columns) {
|
||||||
@media (min-width: @screen-lg-min) {
|
@media (min-width: @screen-lg-min) {
|
||||||
right: percentage((@columns / @grid-columns));
|
right: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Framework grid generation
|
// Framework grid generation
|
||||||
//
|
//
|
||||||
// Used only by Bootstrap to generate the correct number of grid classes given
|
// Used only by Bootstrap to generate the correct number of grid classes given
|
||||||
@@ -775,37 +804,43 @@
|
|||||||
|
|
||||||
.make-grid-columns() {
|
.make-grid-columns() {
|
||||||
// Common styles for all sizes of grid columns, widths 1-12
|
// Common styles for all sizes of grid columns, widths 1-12
|
||||||
.col(@index) when (@index = 1) { // initial
|
.col(@index) when (@index = 1) {
|
||||||
|
// initial
|
||||||
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
||||||
.col((@index + 1), @item);
|
.col((@index + 1), @item);
|
||||||
}
|
}
|
||||||
.col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
|
.col(@index, @list) when (@index =< @grid-columns) {
|
||||||
|
// general; "=<" isn't a typo
|
||||||
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
||||||
.col((@index + 1), ~"@{list}, @{item}");
|
.col((@index + 1), ~"@{list}, @{item}");
|
||||||
}
|
}
|
||||||
.col(@index, @list) when (@index > @grid-columns) { // terminal
|
.col(@index, @list) when (@index > @grid-columns) {
|
||||||
|
// terminal
|
||||||
@{list} {
|
@{list} {
|
||||||
position: relative;
|
position: relative;
|
||||||
// Prevent columns from collapsing when empty
|
// Prevent columns from collapsing when empty
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
// Inner gutter via padding
|
// Inner gutter via padding
|
||||||
padding-left: (@grid-gutter-width / 2);
|
padding-left: (@grid-gutter-width / 2);
|
||||||
padding-right: (@grid-gutter-width / 2);
|
padding-right: (@grid-gutter-width / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.col(1); // kickstart it
|
.col(1); // kickstart it
|
||||||
}
|
}
|
||||||
|
|
||||||
.make-grid-columns-float(@class) {
|
.float-grid-columns(@class) {
|
||||||
.col(@index) when (@index = 1) { // initial
|
.col(@index) when (@index = 1) {
|
||||||
|
// initial
|
||||||
@item: ~".col-@{class}-@{index}";
|
@item: ~".col-@{class}-@{index}";
|
||||||
.col((@index + 1), @item);
|
.col((@index + 1), @item);
|
||||||
}
|
}
|
||||||
.col(@index, @list) when (@index =< @grid-columns) { // general
|
.col(@index, @list) when (@index =< @grid-columns) {
|
||||||
|
// general
|
||||||
@item: ~".col-@{class}-@{index}";
|
@item: ~".col-@{class}-@{index}";
|
||||||
.col((@index + 1), ~"@{list}, @{item}");
|
.col((@index + 1), ~"@{list}, @{item}");
|
||||||
}
|
}
|
||||||
.col(@index, @list) when (@index > @grid-columns) { // terminal
|
.col(@index, @list) when (@index > @grid-columns) {
|
||||||
|
// terminal
|
||||||
@{list} {
|
@{list} {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
@@ -813,34 +848,45 @@
|
|||||||
.col(1); // kickstart it
|
.col(1); // kickstart it
|
||||||
}
|
}
|
||||||
|
|
||||||
.calc-grid(@index, @class, @type) when (@type = width) and (@index > 0) {
|
.calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {
|
||||||
.col-@{class}-@{index} {
|
.col-@{class}-@{index} {
|
||||||
width: percentage((@index / @grid-columns));
|
width: percentage((@index / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.calc-grid(@index, @class, @type) when (@type = push) {
|
|
||||||
|
.calc-grid-column(@index, @class, @type) when (@type = push) {
|
||||||
.col-@{class}-push-@{index} {
|
.col-@{class}-push-@{index} {
|
||||||
left: percentage((@index / @grid-columns));
|
left: percentage((@index / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.calc-grid(@index, @class, @type) when (@type = pull) {
|
|
||||||
|
.calc-grid-column(@index, @class, @type) when (@type = pull) {
|
||||||
.col-@{class}-pull-@{index} {
|
.col-@{class}-pull-@{index} {
|
||||||
right: percentage((@index / @grid-columns));
|
right: percentage((@index / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.calc-grid(@index, @class, @type) when (@type = offset) {
|
|
||||||
|
.calc-grid-column(@index, @class, @type) when (@type = offset) {
|
||||||
.col-@{class}-offset-@{index} {
|
.col-@{class}-offset-@{index} {
|
||||||
margin-left: percentage((@index / @grid-columns));
|
margin-left: percentage((@index / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Basic looping in LESS
|
// Basic looping in LESS
|
||||||
.make-grid(@index, @class, @type) when (@index >= 0) {
|
.loop-grid-columns(@index, @class, @type) when (@index >= 0) {
|
||||||
.calc-grid(@index, @class, @type);
|
.calc-grid-column(@index, @class, @type);
|
||||||
// next iteration
|
// next iteration
|
||||||
.make-grid((@index - 1), @class, @type);
|
.loop-grid-columns((@index - 1), @class, @type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create grid for specific class
|
||||||
|
.make-grid(@class) {
|
||||||
|
.float-grid-columns(@class);
|
||||||
|
.loop-grid-columns(@grid-columns, @class, width);
|
||||||
|
.loop-grid-columns(@grid-columns, @class, pull);
|
||||||
|
.loop-grid-columns(@grid-columns, @class, push);
|
||||||
|
.loop-grid-columns(@grid-columns, @class, offset);
|
||||||
|
}
|
||||||
|
|
||||||
// Form validation states
|
// Form validation states
|
||||||
//
|
//
|
||||||
@@ -854,16 +900,16 @@
|
|||||||
.radio,
|
.radio,
|
||||||
.checkbox,
|
.checkbox,
|
||||||
.radio-inline,
|
.radio-inline,
|
||||||
.checkbox-inline {
|
.checkbox-inline {
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
}
|
}
|
||||||
// Set the border and box shadow on specific inputs to match
|
// Set the border and box shadow on specific inputs to match
|
||||||
.form-control {
|
.form-control {
|
||||||
border-color: @border-color;
|
border-color: @border-color;
|
||||||
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
|
.box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075)); // Redeclare so transitions work
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: darken(@border-color, 10%);
|
border-color: darken(@border-color, 10%);
|
||||||
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
|
@shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px lighten(@border-color, 20%);
|
||||||
.box-shadow(@shadow);
|
.box-shadow(@shadow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -920,7 +966,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
textarea&,
|
textarea&,
|
||||||
select[multiple]& {
|
select[multiple] & {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -34,7 +34,9 @@
|
|||||||
.translate(0, -25%);
|
.translate(0, -25%);
|
||||||
.transition-transform(~"0.3s ease-out");
|
.transition-transform(~"0.3s ease-out");
|
||||||
}
|
}
|
||||||
&.in .modal-dialog { .translate(0, 0)}
|
&.in .modal-dialog {
|
||||||
|
.translate(0, 0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shell div to position the modal with bottom padding
|
// Shell div to position the modal with bottom padding
|
||||||
@@ -51,7 +53,7 @@
|
|||||||
border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
|
border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
|
||||||
border: 1px solid @modal-content-border-color;
|
border: 1px solid @modal-content-border-color;
|
||||||
border-radius: @border-radius-large;
|
border-radius: @border-radius-large;
|
||||||
.box-shadow(0 3px 9px rgba(0,0,0,.5));
|
.box-shadow(0 3px 9px rgba(0, 0, 0, .5));
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
// Remove focus outline from opened modal
|
// Remove focus outline from opened modal
|
||||||
outline: none;
|
outline: none;
|
||||||
@@ -67,8 +69,12 @@
|
|||||||
z-index: @zindex-modal-background;
|
z-index: @zindex-modal-background;
|
||||||
background-color: @modal-backdrop-bg;
|
background-color: @modal-backdrop-bg;
|
||||||
// Fade for backdrop
|
// Fade for backdrop
|
||||||
&.fade { .opacity(0); }
|
&.fade {
|
||||||
&.in { .opacity(@modal-backdrop-opacity); }
|
.opacity(0);
|
||||||
|
}
|
||||||
|
&.in {
|
||||||
|
.opacity(@modal-backdrop-opacity);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modal header
|
// Modal header
|
||||||
@@ -78,6 +84,7 @@
|
|||||||
border-bottom: 1px solid @modal-header-border-color;
|
border-bottom: 1px solid @modal-header-border-color;
|
||||||
min-height: (@modal-title-padding + @modal-title-line-height);
|
min-height: (@modal-title-padding + @modal-title-line-height);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close icon
|
// Close icon
|
||||||
.modal-header .close {
|
.modal-header .close {
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
@@ -102,7 +109,8 @@
|
|||||||
padding: (@modal-inner-padding - 1) @modal-inner-padding @modal-inner-padding;
|
padding: (@modal-inner-padding - 1) @modal-inner-padding @modal-inner-padding;
|
||||||
text-align: right; // right align buttons
|
text-align: right; // right align buttons
|
||||||
border-top: 1px solid @modal-footer-border-color;
|
border-top: 1px solid @modal-footer-border-color;
|
||||||
&:extend(.clearfix all); // clear it in case folks use .pull-* classes on buttons
|
&:extend(.clearfix all)
|
||||||
|
; // clear it in case folks use .pull-* classes on buttons
|
||||||
|
|
||||||
// Properly space out buttons
|
// Properly space out buttons
|
||||||
.btn + .btn {
|
.btn + .btn {
|
||||||
@@ -121,18 +129,24 @@
|
|||||||
|
|
||||||
// Scale up the modal
|
// Scale up the modal
|
||||||
@media (min-width: @screen-sm-min) {
|
@media (min-width: @screen-sm-min) {
|
||||||
|
|
||||||
// Automatically set modal's width for larger viewports
|
// Automatically set modal's width for larger viewports
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
width: @modal-md;
|
width: @modal-md;
|
||||||
margin: 30px auto;
|
margin: 30px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
.box-shadow(0 5px 15px rgba(0,0,0,.5));
|
.box-shadow(0 5px 15px rgba(0, 0, 0, .5));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modal sizes
|
// Modal sizes
|
||||||
.modal-sm { width: @modal-sm; }
|
.modal-sm {
|
||||||
.modal-lg { width: @modal-lg; }
|
width: @modal-sm;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: @screen-md-min) {
|
||||||
|
.modal-lg {
|
||||||
|
width: @modal-lg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Navbars
|
// Navbars
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Wrapper and base class
|
// Wrapper and base class
|
||||||
//
|
//
|
||||||
// Provide a static navbar from which we expand to create full-width, fixed, and
|
// Provide a static navbar from which we expand to create full-width, fixed, and
|
||||||
@@ -15,28 +14,28 @@
|
|||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
|
|
||||||
// Prevent floats from breaking the navbar
|
// Prevent floats from breaking the navbar
|
||||||
&:extend(.clearfix all);
|
&:extend(.clearfix all)
|
||||||
|
;
|
||||||
|
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
@media (min-width: @grid-float-breakpoint) {
|
||||||
border-radius: @navbar-border-radius;
|
border-radius: @navbar-border-radius;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Navbar heading
|
// Navbar heading
|
||||||
//
|
//
|
||||||
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
||||||
// styling of responsive aspects.
|
// styling of responsive aspects.
|
||||||
|
|
||||||
.navbar-header {
|
.navbar-header {
|
||||||
&:extend(.clearfix all);
|
&:extend(.clearfix all)
|
||||||
|
;
|
||||||
|
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
@media (min-width: @grid-float-breakpoint) {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Navbar collapse (body)
|
// Navbar collapse (body)
|
||||||
//
|
//
|
||||||
// Group your navbar content into this for easy collapsing and expanding across
|
// Group your navbar content into this for easy collapsing and expanding across
|
||||||
@@ -51,10 +50,11 @@
|
|||||||
max-height: @navbar-collapse-max-height;
|
max-height: @navbar-collapse-max-height;
|
||||||
overflow-x: visible;
|
overflow-x: visible;
|
||||||
padding-right: @navbar-padding-horizontal;
|
padding-right: @navbar-padding-horizontal;
|
||||||
padding-left: @navbar-padding-horizontal;
|
padding-left: @navbar-padding-horizontal;
|
||||||
border-top: 1px solid transparent;
|
border-top: 1px solid transparent;
|
||||||
box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
|
||||||
&:extend(.clearfix all);
|
&:extend(.clearfix all)
|
||||||
|
;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
&.in {
|
&.in {
|
||||||
@@ -88,7 +88,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Both navbar header and collapse
|
// Both navbar header and collapse
|
||||||
//
|
//
|
||||||
// When a container is present, change the behavior of the header and collapse.
|
// When a container is present, change the behavior of the header and collapse.
|
||||||
@@ -98,16 +97,15 @@
|
|||||||
> .navbar-header,
|
> .navbar-header,
|
||||||
> .navbar-collapse {
|
> .navbar-collapse {
|
||||||
margin-right: -@navbar-padding-horizontal;
|
margin-right: -@navbar-padding-horizontal;
|
||||||
margin-left: -@navbar-padding-horizontal;
|
margin-left: -@navbar-padding-horizontal;
|
||||||
|
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
@media (min-width: @grid-float-breakpoint) {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Navbar alignment options
|
// Navbar alignment options
|
||||||
//
|
//
|
||||||
@@ -137,17 +135,18 @@
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-fixed-top {
|
.navbar-fixed-top {
|
||||||
top: 0;
|
top: 0;
|
||||||
border-width: 0 0 1px;
|
border-width: 0 0 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-fixed-bottom {
|
.navbar-fixed-bottom {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
margin-bottom: 0; // override .navbar defaults
|
margin-bottom: 0; // override .navbar defaults
|
||||||
border-width: 1px 0 0;
|
border-width: 1px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Brand/project name
|
// Brand/project name
|
||||||
|
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
@@ -155,7 +154,7 @@
|
|||||||
padding: @navbar-padding-vertical @navbar-padding-horizontal;
|
padding: @navbar-padding-vertical @navbar-padding-horizontal;
|
||||||
font-size: @font-size-large;
|
font-size: @font-size-large;
|
||||||
line-height: @line-height-computed;
|
line-height: @line-height-computed;
|
||||||
height: @line-height-computed;
|
height: @navbar-height;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
@@ -170,7 +169,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Navbar toggle
|
// Navbar toggle
|
||||||
//
|
//
|
||||||
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
||||||
@@ -209,7 +207,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Navbar nav links
|
// Navbar nav links
|
||||||
//
|
//
|
||||||
// Builds on top of the `.nav` components with its own modifier class to make
|
// Builds on top of the `.nav` components with its own modifier class to make
|
||||||
@@ -219,7 +216,7 @@
|
|||||||
margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;
|
margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;
|
||||||
|
|
||||||
> li > a {
|
> li > a {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
line-height: @line-height-computed;
|
line-height: @line-height-computed;
|
||||||
}
|
}
|
||||||
@@ -256,7 +253,7 @@
|
|||||||
> li {
|
> li {
|
||||||
float: left;
|
float: left;
|
||||||
> a {
|
> a {
|
||||||
padding-top: @navbar-padding-vertical;
|
padding-top: @navbar-padding-vertical;
|
||||||
padding-bottom: @navbar-padding-vertical;
|
padding-bottom: @navbar-padding-vertical;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -267,7 +264,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Component alignment
|
// Component alignment
|
||||||
//
|
//
|
||||||
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
||||||
@@ -275,10 +271,14 @@
|
|||||||
// though so that navbar contents properly stack and align in mobile.
|
// though so that navbar contents properly stack and align in mobile.
|
||||||
|
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
@media (min-width: @grid-float-breakpoint) {
|
||||||
.navbar-left { .pull-left(); }
|
.navbar-left {
|
||||||
.navbar-right { .pull-right(); }
|
.pull-left();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-right {
|
||||||
|
.pull-right();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Navbar form
|
// Navbar form
|
||||||
//
|
//
|
||||||
@@ -291,7 +291,7 @@
|
|||||||
padding: 10px @navbar-padding-horizontal;
|
padding: 10px @navbar-padding-horizontal;
|
||||||
border-top: 1px solid transparent;
|
border-top: 1px solid transparent;
|
||||||
border-bottom: 1px solid transparent;
|
border-bottom: 1px solid transparent;
|
||||||
@shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
@shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
|
||||||
.box-shadow(@shadow);
|
.box-shadow(@shadow);
|
||||||
|
|
||||||
// Mixin behavior for optimum display
|
// Mixin behavior for optimum display
|
||||||
@@ -323,7 +323,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Dropdown menus
|
// Dropdown menus
|
||||||
|
|
||||||
// Menu position and menu carets
|
// Menu position and menu carets
|
||||||
@@ -331,12 +330,12 @@
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
.border-top-radius(0);
|
.border-top-radius(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Menu position and menu caret support for dropups via extra dropup class
|
// Menu position and menu caret support for dropups via extra dropup class
|
||||||
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
||||||
.border-bottom-radius(0);
|
.border-bottom-radius(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Buttons in navbars
|
// Buttons in navbars
|
||||||
//
|
//
|
||||||
// Vertically center a button within a navbar (when *not* in a form).
|
// Vertically center a button within a navbar (when *not* in a form).
|
||||||
@@ -352,7 +351,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Text in navbars
|
// Text in navbars
|
||||||
//
|
//
|
||||||
// Add a class to make any element properly align itself vertically within the navbars.
|
// Add a class to make any element properly align itself vertically within the navbars.
|
||||||
@@ -480,7 +478,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Links in navbars
|
// Links in navbars
|
||||||
//
|
//
|
||||||
// Add a class to ensure links outside the navbar nav are colored correctly.
|
// Add a class to ensure links outside the navbar nav are colored correctly.
|
||||||
|
@@ -2,22 +2,52 @@
|
|||||||
// Panels
|
// Panels
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Base class
|
// Base class
|
||||||
.panel {
|
.panel {
|
||||||
margin-bottom: @line-height-computed;
|
margin-bottom: @line-height-computed;
|
||||||
background-color: @panel-bg;
|
background-color: @panel-bg;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: @panel-border-radius;
|
border-radius: @panel-border-radius;
|
||||||
.box-shadow(0 1px 1px rgba(0,0,0,.05));
|
.box-shadow(0 1px 1px rgba(0, 0, 0, .05));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Panel contents
|
// Panel contents
|
||||||
.panel-body {
|
.panel-body {
|
||||||
padding: @panel-body-padding;
|
padding: @panel-body-padding;
|
||||||
&:extend(.clearfix all);
|
&:extend(.clearfix all)
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Optional heading
|
||||||
|
.panel-heading {
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
.border-top-radius((@panel-border-radius - 1));
|
||||||
|
|
||||||
|
> .dropdown .dropdown-toggle {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Within heading, strip any `h*` tag of its default margins for spacing.
|
||||||
|
.panel-title {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: ceil((@font-size-base * 1.125));
|
||||||
|
color: inherit;
|
||||||
|
|
||||||
|
> a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Optional footer (stays gray in every modifier class)
|
||||||
|
.panel-footer {
|
||||||
|
padding: 10px 15px;
|
||||||
|
background-color: @panel-footer-bg;
|
||||||
|
border-top: 1px solid @panel-inner-border;
|
||||||
|
.border-bottom-radius((@panel-border-radius - 1));
|
||||||
|
}
|
||||||
|
|
||||||
// List groups in panels
|
// List groups in panels
|
||||||
//
|
//
|
||||||
@@ -27,30 +57,29 @@
|
|||||||
.panel {
|
.panel {
|
||||||
> .list-group {
|
> .list-group {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
.list-group-item {
|
.list-group-item {
|
||||||
border-width: 1px 0;
|
border-width: 1px 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
&:first-child {
|
|
||||||
border-top: 0;
|
|
||||||
}
|
|
||||||
&:last-child {
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add border top radius for first one
|
// Add border top radius for first one
|
||||||
&:first-child {
|
&:first-child {
|
||||||
.list-group-item:first-child {
|
.list-group-item:first-child {
|
||||||
|
border-top: 0;
|
||||||
.border-top-radius((@panel-border-radius - 1));
|
.border-top-radius((@panel-border-radius - 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Add border bottom radius for last one
|
// Add border bottom radius for last one
|
||||||
&:last-child {
|
&:last-child {
|
||||||
.list-group-item:last-child {
|
.list-group-item:last-child {
|
||||||
|
border-bottom: 0;
|
||||||
.border-bottom-radius((@panel-border-radius - 1));
|
.border-bottom-radius((@panel-border-radius - 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Collapse space between when there's no additional content.
|
// Collapse space between when there's no additional content.
|
||||||
.panel-heading + .list-group {
|
.panel-heading + .list-group {
|
||||||
.list-group-item:first-child {
|
.list-group-item:first-child {
|
||||||
@@ -58,7 +87,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Tables in panels
|
// Tables in panels
|
||||||
//
|
//
|
||||||
// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
|
// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
|
||||||
@@ -72,6 +100,8 @@
|
|||||||
// Add border top radius for first one
|
// Add border top radius for first one
|
||||||
> .table:first-child,
|
> .table:first-child,
|
||||||
> .table-responsive:first-child > .table:first-child {
|
> .table-responsive:first-child > .table:first-child {
|
||||||
|
.border-top-radius((@panel-border-radius - 1));
|
||||||
|
|
||||||
> thead:first-child,
|
> thead:first-child,
|
||||||
> tbody:first-child {
|
> tbody:first-child {
|
||||||
> tr:first-child {
|
> tr:first-child {
|
||||||
@@ -89,6 +119,8 @@
|
|||||||
// Add border bottom radius for last one
|
// Add border bottom radius for last one
|
||||||
> .table:last-child,
|
> .table:last-child,
|
||||||
> .table-responsive:last-child > .table:last-child {
|
> .table-responsive:last-child > .table:last-child {
|
||||||
|
.border-bottom-radius((@panel-border-radius - 1));
|
||||||
|
|
||||||
> tbody:last-child,
|
> tbody:last-child,
|
||||||
> tfoot:last-child {
|
> tfoot:last-child {
|
||||||
> tr:last-child {
|
> tr:last-child {
|
||||||
@@ -126,12 +158,22 @@
|
|||||||
> td:last-child {
|
> td:last-child {
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
&:first-child > th,
|
}
|
||||||
&:first-child > td {
|
}
|
||||||
border-top: 0;
|
> thead,
|
||||||
|
> tbody {
|
||||||
|
> tr:first-child {
|
||||||
|
> td,
|
||||||
|
> th {
|
||||||
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
&:last-child > th,
|
}
|
||||||
&:last-child > td {
|
}
|
||||||
|
> tbody,
|
||||||
|
> tfoot {
|
||||||
|
> tr:last-child {
|
||||||
|
> td,
|
||||||
|
> th {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -143,39 +185,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Optional heading
|
|
||||||
.panel-heading {
|
|
||||||
padding: 10px 15px;
|
|
||||||
border-bottom: 1px solid transparent;
|
|
||||||
.border-top-radius((@panel-border-radius - 1));
|
|
||||||
|
|
||||||
> .dropdown .dropdown-toggle {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Within heading, strip any `h*` tag of its default margins for spacing.
|
|
||||||
.panel-title {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
font-size: ceil((@font-size-base * 1.125));
|
|
||||||
color: inherit;
|
|
||||||
|
|
||||||
> a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Optional footer (stays gray in every modifier class)
|
|
||||||
.panel-footer {
|
|
||||||
padding: 10px 15px;
|
|
||||||
background-color: @panel-footer-bg;
|
|
||||||
border-top: 1px solid @panel-inner-border;
|
|
||||||
.border-bottom-radius((@panel-border-radius - 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Collapsable panels (aka, accordion)
|
// Collapsable panels (aka, accordion)
|
||||||
//
|
//
|
||||||
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
||||||
@@ -208,23 +217,27 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Contextual variations
|
// Contextual variations
|
||||||
.panel-default {
|
.panel-default {
|
||||||
.panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);
|
.panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-primary {
|
.panel-primary {
|
||||||
.panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);
|
.panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-success {
|
.panel-success {
|
||||||
.panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);
|
.panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-info {
|
.panel-info {
|
||||||
.panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);
|
.panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-warning {
|
.panel-warning {
|
||||||
.panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);
|
.panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-danger {
|
.panel-danger {
|
||||||
.panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);
|
.panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);
|
||||||
}
|
}
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Popovers
|
// Popovers
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
.popover {
|
.popover {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -17,16 +16,24 @@
|
|||||||
border: 1px solid @popover-fallback-border-color;
|
border: 1px solid @popover-fallback-border-color;
|
||||||
border: 1px solid @popover-border-color;
|
border: 1px solid @popover-border-color;
|
||||||
border-radius: @border-radius-large;
|
border-radius: @border-radius-large;
|
||||||
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
.box-shadow(0 5px 10px rgba(0, 0, 0, .2));
|
||||||
|
|
||||||
// Overrides for proper insertion
|
// Overrides for proper insertion
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
|
|
||||||
// Offset the popover to account for the popover arrow
|
// Offset the popover to account for the popover arrow
|
||||||
&.top { margin-top: -10px; }
|
&.top {
|
||||||
&.right { margin-left: 10px; }
|
margin-top: -@popover-arrow-width;
|
||||||
&.bottom { margin-top: 10px; }
|
}
|
||||||
&.left { margin-left: -10px; }
|
&.right {
|
||||||
|
margin-left: @popover-arrow-width;
|
||||||
|
}
|
||||||
|
&.bottom {
|
||||||
|
margin-top: @popover-arrow-width;
|
||||||
|
}
|
||||||
|
&.left {
|
||||||
|
margin-left: -@popover-arrow-width;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-title {
|
.popover-title {
|
||||||
@@ -48,7 +55,7 @@
|
|||||||
//
|
//
|
||||||
// .arrow is outer, .arrow:after is inner
|
// .arrow is outer, .arrow:after is inner
|
||||||
|
|
||||||
.popover .arrow {
|
.popover > .arrow {
|
||||||
&,
|
&,
|
||||||
&:after {
|
&:after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -59,16 +66,18 @@
|
|||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.popover .arrow {
|
|
||||||
|
.popover > .arrow {
|
||||||
border-width: @popover-arrow-outer-width;
|
border-width: @popover-arrow-outer-width;
|
||||||
}
|
}
|
||||||
.popover .arrow:after {
|
|
||||||
|
.popover > .arrow:after {
|
||||||
border-width: @popover-arrow-width;
|
border-width: @popover-arrow-width;
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover {
|
.popover {
|
||||||
&.top .arrow {
|
&.top > .arrow {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -@popover-arrow-outer-width;
|
margin-left: -@popover-arrow-outer-width;
|
||||||
border-bottom-width: 0;
|
border-bottom-width: 0;
|
||||||
@@ -83,7 +92,7 @@
|
|||||||
border-top-color: @popover-arrow-color;
|
border-top-color: @popover-arrow-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.right .arrow {
|
&.right > .arrow {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: -@popover-arrow-outer-width;
|
left: -@popover-arrow-outer-width;
|
||||||
margin-top: -@popover-arrow-outer-width;
|
margin-top: -@popover-arrow-outer-width;
|
||||||
@@ -98,7 +107,7 @@
|
|||||||
border-right-color: @popover-arrow-color;
|
border-right-color: @popover-arrow-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.bottom .arrow {
|
&.bottom > .arrow {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -@popover-arrow-outer-width;
|
margin-left: -@popover-arrow-outer-width;
|
||||||
border-top-width: 0;
|
border-top-width: 0;
|
||||||
@@ -114,7 +123,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.left .arrow {
|
&.left > .arrow {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
right: -@popover-arrow-outer-width;
|
right: -@popover-arrow-outer-width;
|
||||||
margin-top: -@popover-arrow-outer-width;
|
margin-top: -@popover-arrow-outer-width;
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Responsive: Utility classes
|
// Responsive: Utility classes
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// IE10 in Windows (Phone) 8
|
// IE10 in Windows (Phone) 8
|
||||||
//
|
//
|
||||||
// Support for responsive views via media queries is kind of borked in IE10, for
|
// Support for responsive views via media queries is kind of borked in IE10, for
|
||||||
@@ -21,32 +20,33 @@
|
|||||||
width: device-width;
|
width: device-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Visibility utilities
|
// Visibility utilities
|
||||||
.visible-xs {
|
.visible-xs,
|
||||||
|
.visible-sm,
|
||||||
|
.visible-md,
|
||||||
|
.visible-lg {
|
||||||
.responsive-invisibility();
|
.responsive-invisibility();
|
||||||
|
}
|
||||||
|
|
||||||
|
.visible-xs {
|
||||||
@media (max-width: @screen-xs-max) {
|
@media (max-width: @screen-xs-max) {
|
||||||
.responsive-visibility();
|
.responsive-visibility();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.visible-sm {
|
|
||||||
.responsive-invisibility();
|
|
||||||
|
|
||||||
|
.visible-sm {
|
||||||
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
||||||
.responsive-visibility();
|
.responsive-visibility();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.visible-md {
|
|
||||||
.responsive-invisibility();
|
|
||||||
|
|
||||||
|
.visible-md {
|
||||||
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
|
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
|
||||||
.responsive-visibility();
|
.responsive-visibility();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.visible-lg {
|
|
||||||
.responsive-invisibility();
|
|
||||||
|
|
||||||
|
.visible-lg {
|
||||||
@media (min-width: @screen-lg-min) {
|
@media (min-width: @screen-lg-min) {
|
||||||
.responsive-visibility();
|
.responsive-visibility();
|
||||||
}
|
}
|
||||||
@@ -57,23 +57,25 @@
|
|||||||
.responsive-invisibility();
|
.responsive-invisibility();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden-sm {
|
.hidden-sm {
|
||||||
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
||||||
.responsive-invisibility();
|
.responsive-invisibility();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden-md {
|
.hidden-md {
|
||||||
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
|
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
|
||||||
.responsive-invisibility();
|
.responsive-invisibility();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden-lg {
|
.hidden-lg {
|
||||||
@media (min-width: @screen-lg-min) {
|
@media (min-width: @screen-lg-min) {
|
||||||
.responsive-invisibility();
|
.responsive-invisibility();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Print utilities
|
// Print utilities
|
||||||
//
|
//
|
||||||
// Media queries are placed on the inside to be mixin-friendly.
|
// Media queries are placed on the inside to be mixin-friendly.
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Thumbnails
|
// Thumbnails
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Mixin and adjust the regular image class
|
// Mixin and adjust the regular image class
|
||||||
.thumbnail {
|
.thumbnail {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -16,7 +15,8 @@
|
|||||||
|
|
||||||
> img,
|
> img,
|
||||||
a > img {
|
a > img {
|
||||||
.img-responsive();
|
&:extend(.img-responsive)
|
||||||
|
;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
// Typography
|
// Typography
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Headings
|
// Headings
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
@@ -32,6 +31,7 @@ h3, .h3 {
|
|||||||
font-size: 65%;
|
font-size: 65%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h4, .h4,
|
h4, .h4,
|
||||||
h5, .h5,
|
h5, .h5,
|
||||||
h6, .h6 {
|
h6, .h6 {
|
||||||
@@ -44,13 +44,29 @@ h6, .h6 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, .h1 { font-size: @font-size-h1; }
|
h1, .h1 {
|
||||||
h2, .h2 { font-size: @font-size-h2; }
|
font-size: @font-size-h1;
|
||||||
h3, .h3 { font-size: @font-size-h3; }
|
}
|
||||||
h4, .h4 { font-size: @font-size-h4; }
|
|
||||||
h5, .h5 { font-size: @font-size-h5; }
|
|
||||||
h6, .h6 { font-size: @font-size-h6; }
|
|
||||||
|
|
||||||
|
h2, .h2 {
|
||||||
|
font-size: @font-size-h2;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3, .h3 {
|
||||||
|
font-size: @font-size-h3;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4, .h4 {
|
||||||
|
font-size: @font-size-h4;
|
||||||
|
}
|
||||||
|
|
||||||
|
h5, .h5 {
|
||||||
|
font-size: @font-size-h5;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6, .h6 {
|
||||||
|
font-size: @font-size-h6;
|
||||||
|
}
|
||||||
|
|
||||||
// Body text
|
// Body text
|
||||||
// -------------------------
|
// -------------------------
|
||||||
@@ -70,39 +86,58 @@ p {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Emphasis & misc
|
// Emphasis & misc
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
// Ex: 14px base font * 85% = about 12px
|
// Ex: 14px base font * 85% = about 12px
|
||||||
small,
|
small,
|
||||||
.small { font-size: 85%; }
|
.small {
|
||||||
|
font-size: 85%;
|
||||||
|
}
|
||||||
|
|
||||||
// Undo browser default styling
|
// Undo browser default styling
|
||||||
cite { font-style: normal; }
|
cite {
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
// Alignment
|
// Alignment
|
||||||
.text-left { text-align: left; }
|
.text-left {
|
||||||
.text-right { text-align: right; }
|
text-align: left;
|
||||||
.text-center { text-align: center; }
|
}
|
||||||
.text-justify { text-align: justify; }
|
|
||||||
|
.text-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-justify {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
// Contextual colors
|
// Contextual colors
|
||||||
.text-muted {
|
.text-muted {
|
||||||
color: @text-muted;
|
color: @text-muted;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-primary {
|
.text-primary {
|
||||||
.text-emphasis-variant(@brand-primary);
|
.text-emphasis-variant(@brand-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-success {
|
.text-success {
|
||||||
.text-emphasis-variant(@state-success-text);
|
.text-emphasis-variant(@state-success-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-info {
|
.text-info {
|
||||||
.text-emphasis-variant(@state-info-text);
|
.text-emphasis-variant(@state-info-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-warning {
|
.text-warning {
|
||||||
.text-emphasis-variant(@state-warning-text);
|
.text-emphasis-variant(@state-warning-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-danger {
|
.text-danger {
|
||||||
.text-emphasis-variant(@state-danger-text);
|
.text-emphasis-variant(@state-danger-text);
|
||||||
}
|
}
|
||||||
@@ -116,20 +151,23 @@ cite { font-style: normal; }
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
.bg-variant(@brand-primary);
|
.bg-variant(@brand-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-success {
|
.bg-success {
|
||||||
.bg-variant(@state-success-bg);
|
.bg-variant(@state-success-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-info {
|
.bg-info {
|
||||||
.bg-variant(@state-info-bg);
|
.bg-variant(@state-info-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-warning {
|
.bg-warning {
|
||||||
.bg-variant(@state-warning-bg);
|
.bg-variant(@state-warning-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-danger {
|
.bg-danger {
|
||||||
.bg-variant(@state-danger-bg);
|
.bg-variant(@state-danger-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Page header
|
// Page header
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
@@ -139,7 +177,6 @@ cite { font-style: normal; }
|
|||||||
border-bottom: 1px solid @page-header-border-color;
|
border-bottom: 1px solid @page-header-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Lists
|
// Lists
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
@@ -165,15 +202,12 @@ ol {
|
|||||||
// Inline turns list items into inline-block
|
// Inline turns list items into inline-block
|
||||||
.list-inline {
|
.list-inline {
|
||||||
.list-unstyled();
|
.list-unstyled();
|
||||||
|
margin-left: -5px;
|
||||||
|
|
||||||
> li {
|
> li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
|
|
||||||
&:first-child {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,13 +216,16 @@ dl {
|
|||||||
margin-top: 0; // Remove browser default
|
margin-top: 0; // Remove browser default
|
||||||
margin-bottom: @line-height-computed;
|
margin-bottom: @line-height-computed;
|
||||||
}
|
}
|
||||||
|
|
||||||
dt,
|
dt,
|
||||||
dd {
|
dd {
|
||||||
line-height: @line-height-base;
|
line-height: @line-height-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
dt {
|
dt {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
dd {
|
dd {
|
||||||
margin-left: 0; // Undo browser default
|
margin-left: 0; // Undo browser default
|
||||||
}
|
}
|
||||||
@@ -209,7 +246,8 @@ dd {
|
|||||||
}
|
}
|
||||||
dd {
|
dd {
|
||||||
margin-left: @component-offset-horizontal;
|
margin-left: @component-offset-horizontal;
|
||||||
&:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
|
&:extend(.clearfix all)
|
||||||
|
; // Clear the floated `dt` if an empty `dd` is present
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -219,11 +257,12 @@ dd {
|
|||||||
|
|
||||||
// Abbreviations and acronyms
|
// Abbreviations and acronyms
|
||||||
abbr[title],
|
abbr[title],
|
||||||
// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
|
// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
|
||||||
abbr[data-original-title] {
|
abbr[data-original-title] {
|
||||||
cursor: help;
|
cursor: help;
|
||||||
border-bottom: 1px dotted @abbr-border-color;
|
border-bottom: 1px dotted @abbr-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.initialism {
|
.initialism {
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@@ -233,7 +272,7 @@ abbr[data-original-title] {
|
|||||||
blockquote {
|
blockquote {
|
||||||
padding: (@line-height-computed / 2) @line-height-computed;
|
padding: (@line-height-computed / 2) @line-height-computed;
|
||||||
margin: 0 0 @line-height-computed;
|
margin: 0 0 @line-height-computed;
|
||||||
font-size: (@font-size-base * 1.25);
|
font-size: @blockquote-font-size;
|
||||||
border-left: 5px solid @blockquote-border-color;
|
border-left: 5px solid @blockquote-border-color;
|
||||||
|
|
||||||
p,
|
p,
|
||||||
@@ -275,7 +314,9 @@ blockquote.pull-right {
|
|||||||
footer,
|
footer,
|
||||||
small,
|
small,
|
||||||
.small {
|
.small {
|
||||||
&:before { content: ''; }
|
&:before {
|
||||||
|
content: '';
|
||||||
|
}
|
||||||
&:after {
|
&:after {
|
||||||
content: '\00A0 \2014'; // nbsp, em dash
|
content: '\00A0 \2014'; // nbsp, em dash
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user