Created
January 9, 2014 12:27
-
-
Save marrs/8333355 to your computer and use it in GitHub Desktop.
Example sass project used to test styledocco. Tests styledocco's ability to parse SCSS and deal with dependencies between multiple files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Mixins | |
// -------------------------------------------------- | |
// Utilities | |
// ------------------------- | |
// Clearfix | |
// Source: http://nicolasgallagher.com/micro-clearfix-hack/ | |
// | |
// For modern browsers | |
// 1. The space content is one way to avoid an Opera bug when the | |
// contenteditable attribute is included anywhere else in the document. | |
// Otherwise it causes space to appear at the top and bottom of elements | |
// that are clearfixed. | |
// 2. The use of `table` rather than `block` is only necessary if using | |
// `:before` to contain the top-margins of child elements. | |
@mixin clearfix() { | |
&:before, | |
&:after { | |
content: " "; /* 1 */ | |
display: table; /* 2 */ | |
} | |
&:after { | |
clear: both; | |
} | |
} | |
// WebKit-style focus | |
@mixin tab-focus() { | |
// Default | |
outline: thin dotted #333; | |
// WebKit | |
outline: 5px auto -webkit-focus-ring-color; | |
outline-offset: -2px; | |
} | |
// Center-align a block level element | |
@mixin center-block() { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
// Sizing shortcuts | |
@mixin size($width, $height) { | |
width: $width; | |
height: $height; | |
} | |
@mixin square($size) { | |
@include size($size, $size); | |
} | |
// Placeholder text | |
@mixin placeholder($color: $input-color-placeholder) { | |
&:-moz-placeholder { color: $color; } // Firefox 4-18 | |
&::-moz-placeholder { color: $color; } // Firefox 19+ | |
&:-ms-input-placeholder { color: $color; } // Internet Explorer 10+ | |
&::-webkit-input-placeholder { color: $color; } // Safari and Chrome | |
} | |
// Text overflow | |
// Requires inline-block or block for proper styling | |
@mixin text-overflow() { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
// CSS image replacement | |
// | |
// Heads up! v3 launched with with only `.hide-text()`, but per our pattern for | |
// mixins being reused as classes with the same name, this doesn't hold up. As | |
// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. Note | |
// that we cannot chain the mixins together in Less, so they are repeated. | |
// | |
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 | |
// Deprecated as of v3.0.1 (will be removed in v4) | |
@mixin hide-text() { | |
font: #{0/0} a; | |
color: transparent; | |
text-shadow: none; | |
background-color: transparent; | |
border: 0; | |
} | |
// New mixin to use as of v3.0.1 | |
@mixin text-hide() { | |
font: #{0/0} a; | |
color: transparent; | |
text-shadow: none; | |
background-color: transparent; | |
border: 0; | |
} | |
// CSS3 PROPERTIES | |
// -------------------------------------------------- | |
// Single side border-radius | |
@mixin border-top-radius($radius) { | |
border-top-right-radius: $radius; | |
border-top-left-radius: $radius; | |
} | |
@mixin border-right-radius($radius) { | |
border-bottom-right-radius: $radius; | |
border-top-right-radius: $radius; | |
} | |
@mixin border-bottom-radius($radius) { | |
border-bottom-right-radius: $radius; | |
border-bottom-left-radius: $radius; | |
} | |
@mixin border-left-radius($radius) { | |
border-bottom-left-radius: $radius; | |
border-top-left-radius: $radius; | |
} | |
// Drop shadows | |
@mixin box-shadow($shadow...) { | |
-webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1 | |
box-shadow: $shadow; | |
} | |
// Transitions | |
@mixin transition($transition...) { | |
-webkit-transition: $transition; | |
transition: $transition; | |
} | |
@mixin transition-property($transition-property) { | |
-webkit-transition-property: $transition-property; | |
transition-property: $transition-property; | |
} | |
@mixin transition-delay($transition-delay) { | |
-webkit-transition-delay: $transition-delay; | |
transition-delay: $transition-delay; | |
} | |
@mixin transition-duration($transition-duration) { | |
-webkit-transition-duration: $transition-duration; | |
transition-duration: $transition-duration; | |
} | |
@mixin transition-transform($transition...) { | |
-webkit-transition: -webkit-transform $transition; | |
-moz-transition: -moz-transform $transition; | |
-o-transition: -o-transform $transition; | |
transition: transform $transition; | |
} | |
// Transformations | |
@mixin rotate($degrees) { | |
-webkit-transform: rotate($degrees); | |
-ms-transform: rotate($degrees); // IE9+ | |
transform: rotate($degrees); | |
} | |
@mixin scale($ratio) { | |
-webkit-transform: scale($ratio); | |
-ms-transform: scale($ratio); // IE9+ | |
transform: scale($ratio); | |
} | |
@mixin translate($x, $y) { | |
-webkit-transform: translate($x, $y); | |
-ms-transform: translate($x, $y); // IE9+ | |
transform: translate($x, $y); | |
} | |
@mixin skew($x, $y) { | |
-webkit-transform: skew($x, $y); | |
-ms-transform: skewX($x) skewY($y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+ | |
transform: skew($x, $y); | |
} | |
@mixin translate3d($x, $y, $z) { | |
-webkit-transform: translate3d($x, $y, $z); | |
transform: translate3d($x, $y, $z); | |
} | |
@mixin rotateX($degrees) { | |
-webkit-transform: rotateX($degrees); | |
-ms-transform: rotateX($degrees); // IE9+ | |
transform: rotateX($degrees); | |
} | |
@mixin rotateY($degrees) { | |
-webkit-transform: rotateY($degrees); | |
-ms-transform: rotateY($degrees); // IE9+ | |
transform: rotateY($degrees); | |
} | |
@mixin perspective($perspective) { | |
-webkit-perspective: $perspective; | |
-moz-perspective: $perspective; | |
perspective: $perspective; | |
} | |
@mixin perspective-origin($perspective) { | |
-webkit-perspective-origin: $perspective; | |
-moz-perspective-origin: $perspective; | |
perspective-origin: $perspective; | |
} | |
@mixin transform-origin($origin) { | |
-webkit-transform-origin: $origin; | |
-moz-transform-origin: $origin; | |
transform-origin: $origin; | |
} | |
// Animations | |
@mixin animation($animation) { | |
-webkit-animation: $animation; | |
animation: $animation; | |
} | |
// Backface visibility | |
// Prevent browsers from flickering when using CSS 3D transforms. | |
// Default value is `visible`, but can be changed to `hidden` | |
@mixin backface-visibility($visibility){ | |
-webkit-backface-visibility: $visibility; | |
-moz-backface-visibility: $visibility; | |
backface-visibility: $visibility; | |
} | |
// Box sizing | |
@mixin box-sizing($boxmodel) { | |
-webkit-box-sizing: $boxmodel; | |
-moz-box-sizing: $boxmodel; | |
box-sizing: $boxmodel; | |
} | |
// User select | |
// For selecting text on the page | |
@mixin user-select($select) { | |
-webkit-user-select: $select; | |
-moz-user-select: $select; | |
-ms-user-select: $select; // IE10+ | |
-o-user-select: $select; | |
user-select: $select; | |
} | |
// Resize anything | |
@mixin resizable($direction) { | |
resize: $direction; // Options: horizontal, vertical, both | |
overflow: auto; // Safari fix | |
} | |
// CSS3 Content Columns | |
@mixin content-columns($column-count, $column-gap: $grid-gutter-width) { | |
-webkit-column-count: $column-count; | |
-moz-column-count: $column-count; | |
column-count: $column-count; | |
-webkit-column-gap: $column-gap; | |
-moz-column-gap: $column-gap; | |
column-gap: $column-gap; | |
} | |
// Optional hyphenation | |
@mixin hyphens($mode: auto) { | |
word-wrap: break-word; | |
-webkit-hyphens: $mode; | |
-moz-hyphens: $mode; | |
-ms-hyphens: $mode; // IE10+ | |
-o-hyphens: $mode; | |
hyphens: $mode; | |
} | |
// Opacity | |
@mixin opacity($opacity) { | |
opacity: $opacity; | |
// IE8 filter | |
$opacity-ie: ($opacity * 100); | |
filter: #{alpha(opacity=$opacity-ie)}; | |
} | |
// GRADIENTS | |
// -------------------------------------------------- | |
// Horizontal gradient, from left to right | |
// | |
// 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. | |
@mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) { | |
background-image: -webkit-gradient(linear, $start-percent top, $end-percent top, from($start-color), to($end-color)); // Safari 4+, Chrome 2+ | |
background-image: -webkit-linear-gradient(left, color-stop($start-color $start-percent), color-stop($end-color $end-percent)); // Safari 5.1+, Chrome 10+ | |
background-image: -moz-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // FF 3.6+ | |
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10 | |
background-repeat: repeat-x; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down | |
} | |
// Vertical gradient, from top to bottom | |
// | |
// 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. | |
@mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) { | |
background-image: -webkit-gradient(linear, left $start-percent, left $end-percent, from($start-color), to($end-color)); // Safari 4+, Chrome 2+ | |
background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1+, Chrome 10+ | |
background-image: -moz-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // FF 3.6+ | |
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10 | |
background-repeat: repeat-x; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down | |
} | |
@mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) { | |
background-repeat: repeat-x; | |
background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1+, Chrome 10+ | |
background-image: -moz-linear-gradient($deg, $start-color, $end-color); // FF 3.6+ | |
background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10 | |
} | |
@mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) { | |
background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from($start-color), color-stop($color-stop, $mid-color), to($end-color)); | |
background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color); | |
background-image: -moz-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-repeat: no-repeat; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback | |
} | |
@mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) { | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($start-color), color-stop($color-stop, $mid-color), to($end-color)); | |
background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color); | |
background-image: -moz-linear-gradient(top, $start-color, $mid-color $color-stop, $end-color); | |
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color); | |
background-repeat: no-repeat; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback | |
} | |
@mixin gradient-radial($inner-color: #555, $outer-color: #333) { | |
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($inner-color), to($outer-color)); | |
background-image: -webkit-radial-gradient(circle, $inner-color, $outer-color); | |
background-image: -moz-radial-gradient(circle, $inner-color, $outer-color); | |
background-image: radial-gradient(circle, $inner-color, $outer-color); | |
background-repeat: no-repeat; | |
} | |
@mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) { | |
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, $color), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, $color), color-stop(.75, $color), color-stop(.75, transparent), to(transparent)); | |
background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent); | |
background-image: -moz-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent); | |
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent); | |
} | |
// Reset filters for IE | |
// | |
// When you need to remove a gradient background, do not forget to use this to reset | |
// the IE filter for IE9 and below. | |
@mixin reset-filter() { | |
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); | |
} | |
// Retina images | |
// | |
// Short retina mixin for setting background-image and -size | |
@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) { | |
background-image: image-url("#{$file-1x}"); | |
@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) { | |
background-image: image-url("#{$file-2x}"); | |
background-size: $width-1x $height-1x; | |
} | |
} | |
// Responsive image | |
// | |
// Keep images from scaling beyond the width of their parents. | |
@mixin img-responsive($display: block) { | |
display: $display; | |
max-width: 100%; // Part 1: Set a maximum relative to the parent | |
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching | |
} | |
// COMPONENT MIXINS | |
// -------------------------------------------------- | |
// Horizontal dividers | |
// ------------------------- | |
// Dividers (basically an hr) within dropdowns and nav lists | |
@mixin nav-divider($color: #e5e5e5) { | |
height: 1px; | |
margin: (($line-height-computed / 2) - 1) 0; | |
overflow: hidden; | |
background-color: $color; | |
} | |
// Panels | |
// ------------------------- | |
@mixin panel-variant($border, $heading-text-color, $heading-bg-color, $heading-border) { | |
border-color: $border; | |
& > .panel-heading { | |
color: $heading-text-color; | |
background-color: $heading-bg-color; | |
border-color: $heading-border; | |
+ .panel-collapse .panel-body { | |
border-top-color: $border; | |
} | |
& > .dropdown .caret { | |
border-color: $heading-text-color transparent; | |
} | |
} | |
& > .panel-footer { | |
+ .panel-collapse .panel-body { | |
border-bottom-color: $border; | |
} | |
} | |
} | |
// Alerts | |
// ------------------------- | |
@mixin alert-variant($background, $border, $text-color) { | |
background-color: $background; | |
border-color: $border; | |
color: $text-color; | |
hr { | |
border-top-color: darken($border, 5%); | |
} | |
.alert-link { | |
color: darken($text-color, 10%); | |
} | |
} | |
// Tables | |
// ------------------------- | |
@mixin table-row-variant($state, $background, $border) { | |
// Exact selectors below required to override `.table-striped` and prevent | |
// inheritance to nested tables. | |
.table > thead > tr, | |
.table > tbody > tr, | |
.table > tfoot > tr { | |
> td.#{$state}, | |
> th.#{$state}, | |
&.#{$state} > td, | |
&.#{$state} > th { | |
background-color: $background; | |
} | |
} | |
// Hover states for `.table-hover` | |
// Note: this is not available for cells or rows within `thead` or `tfoot`. | |
.table-hover > tbody > tr { | |
> td.#{$state}:hover, | |
> th.#{$state}:hover, | |
&.#{$state}:hover > td, | |
&.#{$state}:hover > th { | |
background-color: darken($background, 5%); | |
} | |
} | |
} | |
// Button variants | |
// ------------------------- | |
// Easily pump out default styles, as well as :hover, :focus, :active, | |
// and disabled options for all buttons | |
@mixin button-variant($color, $background, $border) { | |
color: $color; | |
background-color: $background; | |
border-color: $border; | |
&:hover, | |
&:focus, | |
&:active, | |
&.active { | |
color: $color; | |
background-color: darken($background, 8%); | |
border-color: darken($border, 12%); | |
} | |
.open & { &.dropdown-toggle { | |
color: $color; | |
background-color: darken($background, 8%); | |
border-color: darken($border, 12%); | |
} } | |
&:active, | |
&.active { | |
background-image: none; | |
} | |
.open & { &.dropdown-toggle { | |
background-image: none; | |
} } | |
&.disabled, | |
&[disabled], | |
fieldset[disabled] & { | |
&, | |
&:hover, | |
&:focus, | |
&:active, | |
&.active { | |
background-color: $background; | |
border-color: $border; | |
} | |
} | |
} | |
// Button sizes | |
// ------------------------- | |
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) { | |
padding: $padding-vertical $padding-horizontal; | |
font-size: $font-size; | |
line-height: $line-height; | |
border-radius: $border-radius; | |
} | |
// Pagination | |
// ------------------------- | |
@mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) { | |
> li { | |
> a, | |
> span { | |
padding: $padding-vertical $padding-horizontal; | |
font-size: $font-size; | |
} | |
&:first-child { | |
> a, | |
> span { | |
@include border-left-radius($border-radius); | |
} | |
} | |
&:last-child { | |
> a, | |
> span { | |
@include border-right-radius($border-radius); | |
} | |
} | |
} | |
} | |
// Labels | |
// ------------------------- | |
@mixin label-variant($color) { | |
background-color: $color; | |
&[href] { | |
&:hover, | |
&:focus { | |
background-color: darken($color, 10%); | |
} | |
} | |
} | |
// Navbar vertical align | |
// ------------------------- | |
// Vertically center elements in the navbar. | |
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin. | |
@mixin navbar-vertical-align($element-height) { | |
margin-top: (($navbar-height - $element-height) / 2); | |
margin-bottom: (($navbar-height - $element-height) / 2); | |
} | |
// Progress bars | |
// ------------------------- | |
@mixin progress-bar-variant($color) { | |
background-color: $color; | |
.progress-striped & { | |
@include gradient-striped(); | |
} | |
} | |
// Responsive utilities | |
// ------------------------- | |
// More easily include all the states for responsive-utilities.less. | |
// [converter] $parent hack | |
@mixin responsive-visibility($parent) { | |
#{$parent} { display: block !important; } | |
tr#{$parent} { display: table-row !important; } | |
th#{$parent}, | |
td#{$parent} { display: table-cell !important; } | |
} | |
// [converter] $parent hack | |
@mixin responsive-invisibility($parent) { | |
#{$parent}, | |
tr#{$parent}, | |
th#{$parent}, | |
td#{$parent} { display: none !important; } | |
} | |
// Grid System | |
// ----------- | |
// Centered container element | |
@mixin container-fixed() { | |
margin-right: auto; | |
margin-left: auto; | |
padding-left: ($grid-gutter-width / 2); | |
padding-right: ($grid-gutter-width / 2); | |
@include clearfix(); | |
} | |
// Creates a wrapper for a series of columns | |
@mixin make-row($gutter: $grid-gutter-width) { | |
margin-left: ($gutter / -2); | |
margin-right: ($gutter / -2); | |
@include clearfix(); | |
} | |
// Generate the extra small columns | |
@mixin make-xs-column($columns, $gutter: $grid-gutter-width) { | |
position: relative; | |
float: left; | |
width: percentage(($columns / $grid-columns)); | |
// Prevent columns from collapsing when empty | |
min-height: 1px; | |
// Inner gutter via padding | |
padding-left: ($gutter / 2); | |
padding-right: ($gutter / 2); | |
} | |
// Generate the small columns | |
@mixin make-sm-column($columns, $gutter: $grid-gutter-width) { | |
position: relative; | |
// Prevent columns from collapsing when empty | |
min-height: 1px; | |
// Inner gutter via padding | |
padding-left: ($gutter / 2); | |
padding-right: ($gutter / 2); | |
// Calculate width based on number of columns available | |
@media (min-width: $screen-sm-min) { | |
float: left; | |
width: percentage(($columns / $grid-columns)); | |
} | |
} | |
// Generate the small column offsets | |
@mixin make-sm-column-offset($columns) { | |
@media (min-width: $screen-sm-min) { | |
margin-left: percentage(($columns / $grid-columns)); | |
} | |
} | |
@mixin make-sm-column-push($columns) { | |
@media (min-width: $screen-sm-min) { | |
left: percentage(($columns / $grid-columns)); | |
} | |
} | |
@mixin make-sm-column-pull($columns) { | |
@media (min-width: $screen-sm-min) { | |
right: percentage(($columns / $grid-columns)); | |
} | |
} | |
// Generate the medium columns | |
@mixin make-md-column($columns, $gutter: $grid-gutter-width) { | |
position: relative; | |
// Prevent columns from collapsing when empty | |
min-height: 1px; | |
// Inner gutter via padding | |
padding-left: ($gutter / 2); | |
padding-right: ($gutter / 2); | |
// Calculate width based on number of columns available | |
@media (min-width: $screen-md-min) { | |
float: left; | |
width: percentage(($columns / $grid-columns)); | |
} | |
} | |
// Generate the medium column offsets | |
@mixin make-md-column-offset($columns) { | |
@media (min-width: $screen-md-min) { | |
margin-left: percentage(($columns / $grid-columns)); | |
} | |
} | |
@mixin make-md-column-push($columns) { | |
@media (min-width: $screen-md) { | |
left: percentage(($columns / $grid-columns)); | |
} | |
} | |
@mixin make-md-column-pull($columns) { | |
@media (min-width: $screen-md-min) { | |
right: percentage(($columns / $grid-columns)); | |
} | |
} | |
// Generate the large columns | |
@mixin make-lg-column($columns, $gutter: $grid-gutter-width) { | |
position: relative; | |
// Prevent columns from collapsing when empty | |
min-height: 1px; | |
// Inner gutter via padding | |
padding-left: ($gutter / 2); | |
padding-right: ($gutter / 2); | |
// Calculate width based on number of columns available | |
@media (min-width: $screen-lg-min) { | |
float: left; | |
width: percentage(($columns / $grid-columns)); | |
} | |
} | |
// Generate the large column offsets | |
@mixin make-lg-column-offset($columns) { | |
@media (min-width: $screen-lg-min) { | |
margin-left: percentage(($columns / $grid-columns)); | |
} | |
} | |
@mixin make-lg-column-push($columns) { | |
@media (min-width: $screen-lg-min) { | |
left: percentage(($columns / $grid-columns)); | |
} | |
} | |
@mixin make-lg-column-pull($columns) { | |
@media (min-width: $screen-lg-min) { | |
right: percentage(($columns / $grid-columns)); | |
} | |
} | |
// Framework grid generation | |
// | |
// Used only by Bootstrap to generate the correct number of grid classes given | |
// any value of `$grid-columns`. | |
// [converter] Grid converted to use SASS cycles (LESS uses recursive nested mixin defs not supported by SASS) | |
@mixin make-grid-columns() { | |
$list: ''; | |
$i: 1; | |
$list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}"; | |
@for $i from 2 through $grid-columns { | |
$list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}, #{$list}"; | |
} | |
#{$list} { | |
position: relative; | |
// Prevent columns from collapsing when empty | |
min-height: 1px; | |
// Inner gutter via padding | |
padding-left: ($grid-gutter-width / 2); | |
padding-right: ($grid-gutter-width / 2); | |
} | |
} | |
// [converter] Grid converted to use SASS cycles (LESS uses recursive nested mixin defs not supported by SASS) | |
@mixin make-grid-columns-float($class) { | |
$list: ''; | |
$i: 1; | |
$list: ".col-#{$class}-#{$i}"; | |
@for $i from 2 through $grid-columns { | |
$list: ".col-#{$class}-#{$i}, #{$list}"; | |
} | |
#{$list} { | |
float: left; | |
} | |
} | |
@mixin calc-grid($index, $class, $type) { | |
@if ($type == width) and ($index > 0) { | |
.col-#{$class}-#{$index} { | |
width: percentage(($index / $grid-columns)); | |
} | |
} | |
@if ($type == push) { | |
.col-#{$class}-push-#{$index} { | |
left: percentage(($index / $grid-columns)); | |
} | |
} | |
@if ($type == pull) { | |
.col-#{$class}-pull-#{$index} { | |
right: percentage(($index / $grid-columns)); | |
} | |
} | |
@if ($type == offset) { | |
.col-#{$class}-offset-#{$index} { | |
margin-left: percentage(($index / $grid-columns)); | |
} | |
} | |
} | |
// [converter] This is defined recursively in LESS, but SASS supports real loops | |
@mixin make-grid($columns, $class, $type) { | |
@for $i from 0 through $columns { | |
@include calc-grid($i, $class, $type); | |
} | |
} | |
// Form validation states | |
// | |
// Used in forms.less to generate the form validation CSS for warnings, errors, | |
// and successes. | |
@mixin form-control-validation($text-color: #555, $border-color: #ccc, $background-color: #f5f5f5) { | |
// Color the label and help text | |
.help-block, | |
.control-label, | |
.radio, | |
.checkbox, | |
.radio-inline, | |
.checkbox-inline { | |
color: $text-color; | |
} | |
// Set the border and box shadow on specific inputs to match | |
.form-control { | |
border-color: $border-color; | |
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work | |
&:focus { | |
border-color: darken($border-color, 10%); | |
$shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($border-color, 20%); | |
@include box-shadow($shadow); | |
} | |
} | |
// Set validation states also for addons | |
.input-group-addon { | |
color: $text-color; | |
border-color: $border-color; | |
background-color: $background-color; | |
} | |
} | |
// Form control focus state | |
// | |
// Generate a customized focus state and for any input with the specified color, | |
// which defaults to the `$input-focus-border` variable. | |
// | |
// We highly encourage you to not customize the default value, but instead use | |
// this to tweak colors on an as-needed basis. This aesthetic change is based on | |
// WebKit's default styles, but applicable to a wider range of browsers. Its | |
// usability and accessibility should be taken into account with any change. | |
// | |
// Example usage: change the default blue border and shadow to white for better | |
// contrast against a dark gray background. | |
@mixin form-control-focus($color: $input-border-focus) { | |
$color-rgba: rgba(red($color), green($color), blue($color), .6); | |
&:focus { | |
border-color: $color; | |
outline: 0; | |
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px $color-rgba); | |
} | |
} | |
// Form control sizing | |
// | |
// Relative text size, padding, and border-radii changes for form controls. For | |
// horizontal sizing, wrap controls in the predefined grid classes. `<select>` | |
// element gets special love because it's special, and that's a fact! | |
// [converter] $parent hack | |
@mixin input-size($parent, $input-height, $padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) { | |
#{$parent} { height: $input-height; | |
padding: $padding-vertical $padding-horizontal; | |
font-size: $font-size; | |
line-height: $line-height; | |
border-radius: $border-radius; } | |
select#{$parent} { | |
height: $input-height; | |
line-height: $input-height; | |
} | |
textarea#{$parent} { | |
height: auto; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Variables | |
// -------------------------------------------------- | |
// Global values | |
// -------------------------------------------------- | |
// Grays | |
// ------------------------- | |
$gray-darker: lighten(#000, 13.5%) !default; // #222 | |
$gray-dark: lighten(#000, 20%) !default; // #333 | |
$gray: lighten(#000, 33.5%) !default; // #555 | |
$gray-light: lighten(#000, 60%) !default; // #999 | |
$gray-lighter: lighten(#000, 93.5%) !default; // #eee | |
// Brand colors | |
// ------------------------- | |
$brand-primary: #428bca !default; | |
$brand-success: #5cb85c !default; | |
$brand-warning: #f0ad4e !default; | |
$brand-danger: #d9534f !default; | |
$brand-info: #5bc0de !default; | |
// Scaffolding | |
// ------------------------- | |
$body-bg: #fff !default; | |
$text-color: $gray-dark !default; | |
// Links | |
// ------------------------- | |
$link-color: $brand-primary !default; | |
$link-hover-color: darken($link-color, 15%) !default; | |
// Typography | |
// ------------------------- | |
$font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif !default; | |
$font-family-serif: Georgia, "Times New Roman", Times, serif !default; | |
$font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace !default; | |
$font-family-base: $font-family-sans-serif !default; | |
$font-size-base: 14px !default; | |
$font-size-large: ceil($font-size-base * 1.25) !default; // ~18px | |
$font-size-small: ceil($font-size-base * 0.85) !default; // ~12px | |
$font-size-h1: floor($font-size-base * 2.6) !default; // ~36px | |
$font-size-h2: floor($font-size-base * 2.15) !default; // ~30px | |
$font-size-h3: ceil($font-size-base * 1.7) !default; // ~24px | |
$font-size-h4: ceil($font-size-base * 1.25) !default; // ~18px | |
$font-size-h5: $font-size-base !default; | |
$font-size-h6: ceil($font-size-base * 0.85) !default; // ~12px | |
$line-height-base: 1.428571429 !default; // 20/14 | |
$line-height-computed: floor($font-size-base * $line-height-base) !default; // ~20px | |
$headings-font-family: $font-family-base !default; | |
$headings-font-weight: 500 !default; | |
$headings-line-height: 1.1 !default; | |
$headings-color: inherit !default; | |
// Iconography | |
// ------------------------- | |
$icon-font-path: "../fonts/" !default; | |
$icon-font-name: "glyphicons-halflings-regular" !default; | |
// Components | |
// ------------------------- | |
// Based on 14px font-size and 1.428 line-height (~20px to start) | |
$padding-base-vertical: 6px !default; | |
$padding-base-horizontal: 12px !default; | |
$padding-large-vertical: 10px !default; | |
$padding-large-horizontal: 16px !default; | |
$padding-small-vertical: 5px !default; | |
$padding-small-horizontal: 10px !default; | |
$line-height-large: 1.33 !default; | |
$line-height-small: 1.5 !default; | |
$border-radius-base: 4px !default; | |
$border-radius-large: 6px !default; | |
$border-radius-small: 3px !default; | |
$component-active-color: #fff !default; | |
$component-active-bg: $brand-primary !default; | |
$caret-width-base: 4px !default; | |
$caret-width-large: 5px !default; | |
// Tables | |
// ------------------------- | |
$table-cell-padding: 8px !default; | |
$table-condensed-cell-padding: 5px !default; | |
$table-bg: transparent !default; // overall background-color | |
$table-bg-accent: #f9f9f9 !default; // for striping | |
$table-bg-hover: #f5f5f5 !default; | |
$table-bg-active: $table-bg-hover !default; | |
$table-border-color: #ddd !default; // table and cell border | |
// Buttons | |
// ------------------------- | |
$btn-font-weight: normal !default; | |
$btn-default-color: #333 !default; | |
$btn-default-bg: #fff !default; | |
$btn-default-border: #ccc !default; | |
$btn-primary-color: #fff !default; | |
$btn-primary-bg: $brand-primary !default; | |
$btn-primary-border: darken($btn-primary-bg, 5%) !default; | |
$btn-success-color: #fff !default; | |
$btn-success-bg: $brand-success !default; | |
$btn-success-border: darken($btn-success-bg, 5%) !default; | |
$btn-warning-color: #fff !default; | |
$btn-warning-bg: $brand-warning !default; | |
$btn-warning-border: darken($btn-warning-bg, 5%) !default; | |
$btn-danger-color: #fff !default; | |
$btn-danger-bg: $brand-danger !default; | |
$btn-danger-border: darken($btn-danger-bg, 5%) !default; | |
$btn-info-color: #fff !default; | |
$btn-info-bg: $brand-info !default; | |
$btn-info-border: darken($btn-info-bg, 5%) !default; | |
$btn-link-disabled-color: $gray-light !default; | |
// Forms | |
// ------------------------- | |
$input-bg: #fff !default; | |
$input-bg-disabled: $gray-lighter !default; | |
$input-color: $gray !default; | |
$input-border: #ccc !default; | |
$input-border-radius: $border-radius-base !default; | |
$input-border-focus: #66afe9 !default; | |
$input-color-placeholder: $gray-light !default; | |
$input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default; | |
$input-height-large: (floor($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 2) !default; | |
$input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2) !default; | |
$legend-color: $gray-dark !default; | |
$legend-border-color: #e5e5e5 !default; | |
$input-group-addon-bg: $gray-lighter !default; | |
$input-group-addon-border-color: $input-border !default; | |
// Dropdowns | |
// ------------------------- | |
$dropdown-bg: #fff !default; | |
$dropdown-border: rgba(0,0,0,.15) !default; | |
$dropdown-fallback-border: #ccc !default; | |
$dropdown-divider-bg: #e5e5e5 !default; | |
$dropdown-link-color: $gray-dark !default; | |
$dropdown-link-hover-color: darken($gray-dark, 5%) !default; | |
$dropdown-link-hover-bg: #f5f5f5 !default; | |
$dropdown-link-active-color: $component-active-color !default; | |
$dropdown-link-active-bg: $component-active-bg !default; | |
$dropdown-link-disabled-color: $gray-light !default; | |
$dropdown-header-color: $gray-light !default; | |
$dropdown-caret-color: #000 !default; | |
// COMPONENT VARIABLES | |
// -------------------------------------------------- | |
// Z-index master list | |
// ------------------------- | |
// Used for a bird's eye view of components dependent on the z-axis | |
// Try to avoid customizing these :) | |
$zindex-navbar: 1000 !default; | |
$zindex-dropdown: 1000 !default; | |
$zindex-popover: 1010 !default; | |
$zindex-tooltip: 1030 !default; | |
$zindex-navbar-fixed: 1030 !default; | |
$zindex-modal-background: 1040 !default; | |
$zindex-modal: 1050 !default; | |
// Media queries breakpoints | |
// -------------------------------------------------- | |
// Extra small screen / phone | |
// Note: Deprecated $screen-xs and $screen-phone as of v3.0.1 | |
$screen-xs: 480px !default; | |
$screen-xs-min: $screen-xs !default; | |
$screen-phone: $screen-xs-min !default; | |
// Small screen / tablet | |
// Note: Deprecated $screen-sm and $screen-tablet as of v3.0.1 | |
$screen-sm: 768px !default; | |
$screen-sm-min: $screen-sm !default; | |
$screen-tablet: $screen-sm-min !default; | |
// Medium screen / desktop | |
// Note: Deprecated $screen-md and $screen-desktop as of v3.0.1 | |
$screen-md: 992px !default; | |
$screen-md-min: $screen-md !default; | |
$screen-desktop: $screen-md-min !default; | |
// Large screen / wide desktop | |
// Note: Deprecated $screen-lg and $screen-lg-desktop as of v3.0.1 | |
$screen-lg: 1200px !default; | |
$screen-lg-min: $screen-lg !default; | |
$screen-lg-desktop: $screen-lg-min !default; | |
// So media queries don't overlap when required, provide a maximum | |
$screen-xs-max: ($screen-sm-min - 1) !default; | |
$screen-sm-max: ($screen-md-min - 1) !default; | |
$screen-md-max: ($screen-lg-min - 1) !default; | |
// Grid system | |
// -------------------------------------------------- | |
// Number of columns in the grid system | |
$grid-columns: 12 !default; | |
// Padding, to be divided by two and applied to the left and right of all columns | |
$grid-gutter-width: 30px !default; | |
// Point at which the navbar stops collapsing | |
$grid-float-breakpoint: $screen-sm-min !default; | |
// Navbar | |
// ------------------------- | |
// Basics of a navbar | |
$navbar-height: 50px !default; | |
$navbar-margin-bottom: $line-height-computed !default; | |
$navbar-border-radius: $border-radius-base !default; | |
$navbar-padding-horizontal: floor($grid-gutter-width / 2) !default; | |
$navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2) !default; | |
$navbar-default-color: #777 !default; | |
$navbar-default-bg: #f8f8f8 !default; | |
$navbar-default-border: darken($navbar-default-bg, 6.5%) !default; | |
// Navbar links | |
$navbar-default-link-color: #777 !default; | |
$navbar-default-link-hover-color: #333 !default; | |
$navbar-default-link-hover-bg: transparent !default; | |
$navbar-default-link-active-color: #555 !default; | |
$navbar-default-link-active-bg: darken($navbar-default-bg, 6.5%) !default; | |
$navbar-default-link-disabled-color: #ccc !default; | |
$navbar-default-link-disabled-bg: transparent !default; | |
// Navbar brand label | |
$navbar-default-brand-color: $navbar-default-link-color !default; | |
$navbar-default-brand-hover-color: darken($navbar-default-brand-color, 10%) !default; | |
$navbar-default-brand-hover-bg: transparent !default; | |
// Navbar toggle | |
$navbar-default-toggle-hover-bg: #ddd !default; | |
$navbar-default-toggle-icon-bar-bg: #ccc !default; | |
$navbar-default-toggle-border-color: #ddd !default; | |
// Inverted navbar | |
// | |
// Reset inverted navbar basics | |
$navbar-inverse-color: $gray-light !default; | |
$navbar-inverse-bg: #222 !default; | |
$navbar-inverse-border: darken($navbar-inverse-bg, 10%) !default; | |
// Inverted navbar links | |
$navbar-inverse-link-color: $gray-light !default; | |
$navbar-inverse-link-hover-color: #fff !default; | |
$navbar-inverse-link-hover-bg: transparent !default; | |
$navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default; | |
$navbar-inverse-link-active-bg: darken($navbar-inverse-bg, 10%) !default; | |
$navbar-inverse-link-disabled-color: #444 !default; | |
$navbar-inverse-link-disabled-bg: transparent !default; | |
// Inverted navbar brand label | |
$navbar-inverse-brand-color: $navbar-inverse-link-color !default; | |
$navbar-inverse-brand-hover-color: #fff !default; | |
$navbar-inverse-brand-hover-bg: transparent !default; | |
// Inverted navbar toggle | |
$navbar-inverse-toggle-hover-bg: #333 !default; | |
$navbar-inverse-toggle-icon-bar-bg: #fff !default; | |
$navbar-inverse-toggle-border-color: #333 !default; | |
// Navs | |
// ------------------------- | |
$nav-link-padding: 10px 15px !default; | |
$nav-link-hover-bg: $gray-lighter !default; | |
$nav-disabled-link-color: $gray-light !default; | |
$nav-disabled-link-hover-color: $gray-light !default; | |
$nav-open-link-hover-color: #fff !default; | |
$nav-open-caret-border-color: #fff !default; | |
// Tabs | |
$nav-tabs-border-color: #ddd !default; | |
$nav-tabs-link-hover-border-color: $gray-lighter !default; | |
$nav-tabs-active-link-hover-bg: $body-bg !default; | |
$nav-tabs-active-link-hover-color: $gray !default; | |
$nav-tabs-active-link-hover-border-color: #ddd !default; | |
$nav-tabs-justified-link-border-color: #ddd !default; | |
$nav-tabs-justified-active-link-border-color: $body-bg !default; | |
// Pills | |
$nav-pills-border-radius: $border-radius-base !default; | |
$nav-pills-active-link-hover-bg: $component-active-bg !default; | |
$nav-pills-active-link-hover-color: $component-active-color !default; | |
// Pagination | |
// ------------------------- | |
$pagination-bg: #fff !default; | |
$pagination-border: #ddd !default; | |
$pagination-hover-bg: $gray-lighter !default; | |
$pagination-active-bg: $brand-primary !default; | |
$pagination-active-color: #fff !default; | |
$pagination-disabled-color: $gray-light !default; | |
// Pager | |
// ------------------------- | |
$pager-border-radius: 15px !default; | |
$pager-disabled-color: $gray-light !default; | |
// Jumbotron | |
// ------------------------- | |
$jumbotron-padding: 30px !default; | |
$jumbotron-color: inherit !default; | |
$jumbotron-bg: $gray-lighter !default; | |
$jumbotron-heading-color: inherit !default; | |
$jumbotron-font-size: ceil($font-size-base * 1.5) !default; | |
// Form states and alerts | |
// ------------------------- | |
$state-success-text: #468847 !default; | |
$state-success-bg: #dff0d8 !default; | |
$state-success-border: darken(adjust-hue($state-success-bg, -10), 5%) !default; | |
$state-info-text: #3a87ad !default; | |
$state-info-bg: #d9edf7 !default; | |
$state-info-border: darken(adjust-hue($state-info-bg, -10), 7%) !default; | |
$state-warning-text: #c09853 !default; | |
$state-warning-bg: #fcf8e3 !default; | |
$state-warning-border: darken(adjust-hue($state-warning-bg, -10), 5%) !default; | |
$state-danger-text: #b94a48 !default; | |
$state-danger-bg: #f2dede !default; | |
$state-danger-border: darken(adjust-hue($state-danger-bg, -10), 5%) !default; | |
// Tooltips | |
// ------------------------- | |
$tooltip-max-width: 200px !default; | |
$tooltip-color: #fff !default; | |
$tooltip-bg: #000 !default; | |
$tooltip-arrow-width: 5px !default; | |
$tooltip-arrow-color: $tooltip-bg !default; | |
// Popovers | |
// ------------------------- | |
$popover-bg: #fff !default; | |
$popover-max-width: 276px !default; | |
$popover-border-color: rgba(0,0,0,.2) !default; | |
$popover-fallback-border-color: #ccc !default; | |
$popover-title-bg: darken($popover-bg, 3%) !default; | |
$popover-arrow-width: 10px !default; | |
$popover-arrow-color: #fff !default; | |
$popover-arrow-outer-width: ($popover-arrow-width + 1) !default; | |
$popover-arrow-outer-color: rgba(0,0,0,.25) !default; | |
$popover-arrow-outer-fallback-color: #999 !default; | |
// Labels | |
// ------------------------- | |
$label-default-bg: $gray-light !default; | |
$label-primary-bg: $brand-primary !default; | |
$label-success-bg: $brand-success !default; | |
$label-info-bg: $brand-info !default; | |
$label-warning-bg: $brand-warning !default; | |
$label-danger-bg: $brand-danger !default; | |
$label-color: #fff !default; | |
$label-link-hover-color: #fff !default; | |
// Modals | |
// ------------------------- | |
$modal-inner-padding: 20px !default; | |
$modal-title-padding: 15px !default; | |
$modal-title-line-height: $line-height-base !default; | |
$modal-content-bg: #fff !default; | |
$modal-content-border-color: rgba(0,0,0,.2) !default; | |
$modal-content-fallback-border-color: #999 !default; | |
$modal-backdrop-bg: #000 !default; | |
$modal-header-border-color: #e5e5e5 !default; | |
$modal-footer-border-color: $modal-header-border-color !default; | |
// Alerts | |
// ------------------------- | |
$alert-padding: 15px !default; | |
$alert-border-radius: $border-radius-base !default; | |
$alert-link-font-weight: bold !default; | |
$alert-success-bg: $state-success-bg !default; | |
$alert-success-text: $state-success-text !default; | |
$alert-success-border: $state-success-border !default; | |
$alert-info-bg: $state-info-bg !default; | |
$alert-info-text: $state-info-text !default; | |
$alert-info-border: $state-info-border !default; | |
$alert-warning-bg: $state-warning-bg !default; | |
$alert-warning-text: $state-warning-text !default; | |
$alert-warning-border: $state-warning-border !default; | |
$alert-danger-bg: $state-danger-bg !default; | |
$alert-danger-text: $state-danger-text !default; | |
$alert-danger-border: $state-danger-border !default; | |
// Progress bars | |
// ------------------------- | |
$progress-bg: #f5f5f5 !default; | |
$progress-bar-color: #fff !default; | |
$progress-bar-bg: $brand-primary !default; | |
$progress-bar-success-bg: $brand-success !default; | |
$progress-bar-warning-bg: $brand-warning !default; | |
$progress-bar-danger-bg: $brand-danger !default; | |
$progress-bar-info-bg: $brand-info !default; | |
// List group | |
// ------------------------- | |
$list-group-bg: #fff !default; | |
$list-group-border: #ddd !default; | |
$list-group-border-radius: $border-radius-base !default; | |
$list-group-hover-bg: #f5f5f5 !default; | |
$list-group-active-color: $component-active-color !default; | |
$list-group-active-bg: $component-active-bg !default; | |
$list-group-active-border: $list-group-active-bg !default; | |
$list-group-link-color: #555 !default; | |
$list-group-link-heading-color: #333 !default; | |
// Panels | |
// ------------------------- | |
$panel-bg: #fff !default; | |
$panel-inner-border: #ddd !default; | |
$panel-border-radius: $border-radius-base !default; | |
$panel-footer-bg: #f5f5f5 !default; | |
$panel-default-text: $gray-dark !default; | |
$panel-default-border: #ddd !default; | |
$panel-default-heading-bg: #f5f5f5 !default; | |
$panel-primary-text: #fff !default; | |
$panel-primary-border: $brand-primary !default; | |
$panel-primary-heading-bg: $brand-primary !default; | |
$panel-success-text: $state-success-text !default; | |
$panel-success-border: $state-success-border !default; | |
$panel-success-heading-bg: $state-success-bg !default; | |
$panel-warning-text: $state-warning-text !default; | |
$panel-warning-border: $state-warning-border !default; | |
$panel-warning-heading-bg: $state-warning-bg !default; | |
$panel-danger-text: $state-danger-text !default; | |
$panel-danger-border: $state-danger-border !default; | |
$panel-danger-heading-bg: $state-danger-bg !default; | |
$panel-info-text: $state-info-text !default; | |
$panel-info-border: $state-info-border !default; | |
$panel-info-heading-bg: $state-info-bg !default; | |
// Thumbnails | |
// ------------------------- | |
$thumbnail-padding: 4px !default; | |
$thumbnail-bg: $body-bg !default; | |
$thumbnail-border: #ddd !default; | |
$thumbnail-border-radius: $border-radius-base !default; | |
$thumbnail-caption-color: $text-color !default; | |
$thumbnail-caption-padding: 9px !default; | |
// Wells | |
// ------------------------- | |
$well-bg: #f5f5f5 !default; | |
// Badges | |
// ------------------------- | |
$badge-color: #fff !default; | |
$badge-link-hover-color: #fff !default; | |
$badge-bg: $gray-light !default; | |
$badge-active-color: $link-color !default; | |
$badge-active-bg: #fff !default; | |
$badge-font-weight: bold !default; | |
$badge-line-height: 1 !default; | |
$badge-border-radius: 10px !default; | |
// Breadcrumbs | |
// ------------------------- | |
$breadcrumb-bg: #f5f5f5 !default; | |
$breadcrumb-color: #ccc !default; | |
$breadcrumb-active-color: $gray-light !default; | |
$breadcrumb-separator: "/" !default; | |
// Carousel | |
// ------------------------ | |
$carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6) !default; | |
$carousel-control-color: #fff !default; | |
$carousel-control-width: 15% !default; | |
$carousel-control-opacity: .5 !default; | |
$carousel-control-font-size: 20px !default; | |
$carousel-indicator-active-bg: #fff !default; | |
$carousel-indicator-border-color: #fff !default; | |
$carousel-caption-color: #fff !default; | |
// Close | |
// ------------------------ | |
$close-font-weight: bold !default; | |
$close-color: #000 !default; | |
$close-text-shadow: 0 1px 0 #fff !default; | |
// Code | |
// ------------------------ | |
$code-color: #c7254e !default; | |
$code-bg: #f9f2f4 !default; | |
$pre-bg: #f5f5f5 !default; | |
$pre-color: $gray-dark !default; | |
$pre-border-color: #ccc !default; | |
$pre-scrollable-max-height: 340px !default; | |
// Type | |
// ------------------------ | |
$text-muted: $gray-light !default; | |
$abbr-border-color: $gray-light !default; | |
$headings-small-color: $gray-light !default; | |
$blockquote-small-color: $gray-light !default; | |
$blockquote-border-color: $gray-lighter !default; | |
$page-header-border-color: $gray-lighter !default; | |
// Miscellaneous | |
// ------------------------- | |
// Hr border color | |
$hr-border: $gray-lighter !default; | |
// Horizontal forms & lists | |
$component-offset-horizontal: 180px !default; | |
// Container sizes | |
// -------------------------------------------------- | |
// Small screen / tablet | |
$container-tablet: ((720px + $grid-gutter-width)) !default; | |
$container-sm: $container-tablet !default; | |
// Medium screen / desktop | |
$container-desktop: ((940px + $grid-gutter-width)) !default; | |
$container-md: $container-desktop !default; | |
// Large screen / wide desktop | |
$container-large-desktop: ((1140px + $grid-gutter-width)) !default; | |
$container-lg: $container-large-desktop !default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Core variables and mixins | |
@import "variables"; | |
@import "mixins"; | |
// Core CSS | |
@import "buttons"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment