| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| @mixin clearfix() { |
| &:before, |
| &:after { |
| content: " "; |
| display: table; |
| } |
| &:after { |
| clear: both; |
| } |
| } |
| |
| |
| @mixin tab-focus() { |
| |
| outline: thin dotted |
| |
| outline: 5px auto -webkit-focus-ring-color; |
| outline-offset: -2px; |
| } |
| |
| |
| @mixin center-block() { |
| display: block; |
| margin-left: auto; |
| margin-right: auto; |
| } |
| |
| |
| @mixin size($width, $height) { |
| width: $width; |
| height: $height; |
| } |
| @mixin square($size) { |
| @include size($size, $size); |
| } |
| |
| |
| @mixin placeholder($color: $input-color-placeholder) { |
| &:-moz-placeholder { color: $color; } |
| &::-moz-placeholder { color: $color; } |
| &:-ms-input-placeholder { color: $color; } |
| &::-webkit-input-placeholder { color: $color; } |
| } |
| |
| |
| |
| @mixin text-overflow() { |
| overflow: hidden; |
| text-overflow: ellipsis; |
| white-space: nowrap; |
| } |
| |
| |
| |
| @mixin hide-text() { |
| font: |
| color: transparent; |
| text-shadow: none; |
| background-color: transparent; |
| border: 0; |
| } |
| |
| |
| |
| |
| |
| |
| |
| @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; |
| } |
| |
| |
| @mixin box-shadow($shadow...) { |
| -webkit-box-shadow: $shadow; |
| box-shadow: $shadow; |
| } |
| |
| |
| @mixin transition($transition...) { |
| -webkit-transition: $transition; |
| transition: $transition; |
| } |
| @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; |
| } |
| |
| |
| @mixin rotate($degrees) { |
| -webkit-transform: rotate($degrees); |
| -ms-transform: rotate($degrees); |
| transform: rotate($degrees); |
| } |
| @mixin scale($ratio) { |
| -webkit-transform: scale($ratio); |
| -ms-transform: scale($ratio); |
| transform: scale($ratio); |
| } |
| @mixin translate($x, $y) { |
| -webkit-transform: translate($x, $y); |
| -ms-transform: translate($x, $y); |
| transform: translate($x, $y); |
| } |
| @mixin skew($x, $y) { |
| -webkit-transform: skew($x, $y); |
| -ms-transform: skewX($x) skewY($y); |
| transform: skew($x, $y); |
| } |
| @mixin translate3d($x, $y, $z) { |
| -webkit-transform: translate3d($x, $y, $z); |
| transform: translate3d($x, $y, $z); |
| } |
| |
| |
| |
| |
| |
| @mixin backface-visibility($visibility){ |
| -webkit-backface-visibility: $visibility; |
| -moz-backface-visibility: $visibility; |
| backface-visibility: $visibility; |
| } |
| |
| |
| @mixin box-sizing($boxmodel) { |
| -webkit-box-sizing: $boxmodel; |
| -moz-box-sizing: $boxmodel; |
| box-sizing: $boxmodel; |
| } |
| |
| |
| |
| @mixin user-select($select) { |
| -webkit-user-select: $select; |
| -moz-user-select: $select; |
| -ms-user-select: $select; |
| -o-user-select: $select; |
| user-select: $select; |
| } |
| |
| |
| @mixin resizable($direction) { |
| resize: $direction; |
| overflow: auto; |
| } |
| |
| |
| @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; |
| } |
| |
| |
| @mixin hyphens($mode: auto) { |
| word-wrap: break-word; |
| -webkit-hyphens: $mode; |
| -moz-hyphens: $mode; |
| -ms-hyphens: $mode; |
| -o-hyphens: $mode; |
| hyphens: $mode; |
| } |
| |
| |
| @mixin opacity($opacity) { |
| opacity: $opacity; |
| |
| $opacity-ie: ($opacity * 100); |
| filter: |
| } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| @mixin gradient-horizontal($start-color: |
| background-image: -webkit-gradient(linear, $start-percent top, $end-percent top, from($start-color), to($end-color)); |
| background-image: -webkit-linear-gradient(left, color-stop($start-color $start-percent), color-stop($end-color $end-percent)); |
| background-image: -moz-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); |
| background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); |
| background-repeat: repeat-x; |
| filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); |
| } |
| |
| |
| |
| |
| |
| @mixin gradient-vertical($start-color: |
| background-image: -webkit-gradient(linear, left $start-percent, left $end-percent, from($start-color), to($end-color)); |
| background-image: -webkit-linear-gradient(top, $start-color, $start-percent, $end-color, $end-percent); |
| background-image: -moz-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); |
| background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); |
| background-repeat: repeat-x; |
| filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); |
| } |
| |
| @mixin gradient-directional($start-color: |
| background-repeat: repeat-x; |
| background-image: -webkit-linear-gradient($deg, $start-color, $end-color); |
| background-image: -moz-linear-gradient($deg, $start-color, $end-color); |
| background-image: linear-gradient($deg, $start-color, $end-color); |
| } |
| @mixin gradient-horizontal-three-colors($start-color: |
| 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); |
| } |
| @mixin gradient-vertical-three-colors($start-color: |
| 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); |
| } |
| @mixin gradient-radial($inner-color: |
| 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: |
| background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent)); |
| background-image: -webkit-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); |
| background-image: -moz-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); |
| background-image: linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); |
| } |
| |
| |
| |
| |
| |
| @mixin reset-filter() { |
| filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); |
| } |
| |
| |
| |
| |
| |
| |
| |
| @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; |
| } |
| } |
| |
| |
| |
| |
| |
| |
| @mixin img-responsive($display: block) { |
| display: $display; |
| max-width: 100%; |
| height: auto; |
| } |
| |
| |
| |
| |
| |
| |
| |
| |
| @mixin nav-divider($color: |
| height: 1px; |
| margin: (($line-height-computed / 2) - 1) 0; |
| overflow: hidden; |
| background-color: $color; |
| } |
| |
| |
| |
| @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; |
| } |
| } |
| & > .panel-footer { |
| + .panel-collapse .panel-body { |
| border-bottom-color: $border; |
| } |
| } |
| } |
| |
| |
| |
| @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%); |
| } |
| } |
| |
| |
| |
| @mixin table-row-variant($state, $background, $border) { |
| |
| |
| .table > thead > tr, |
| .table > tbody > tr, |
| .table > tfoot > tr { |
| > td. |
| > th. |
| &. |
| &. |
| background-color: $background; |
| border-color: $border; |
| } |
| } |
| |
| |
| |
| .table-hover > tbody > tr { |
| > td. |
| > th. |
| &. |
| background-color: darken($background, 5%); |
| border-color: darken($border, 5%); |
| } |
| } |
| } |
| |
| |
| |
| |
| |
| @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 |
| } |
| } |
| } |
| |
| |
| |
| @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; |
| } |
| |
| |
| |
| @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); |
| } |
| } |
| } |
| } |
| |
| |
| |
| @mixin label-variant($color) { |
| background-color: $color; |
| &[href] { |
| &:hover, |
| &:focus { |
| background-color: darken($color, 10%); |
| } |
| } |
| } |
| |
| |
| |
| |
| |
| @mixin navbar-vertical-align($element-height) { |
| margin-top: (($navbar-height - $element-height) / 2); |
| margin-bottom: (($navbar-height - $element-height) / 2); |
| } |
| |
| |
| |
| @mixin progress-bar-variant($color) { |
| background-color: $color; |
| .progress-striped & { |
| @include gradient-striped($color); |
| } |
| } |
| |
| |
| |
| |
| |
| @mixin responsive-visibility($parent) { |
| |
| tr |
| th |
| td |
| } |
| |
| |
| @mixin responsive-invisibility($parent) { |
| |
| tr |
| th |
| td |
| } |
| |
| |
| |
| |
| |
| @mixin container-fixed() { |
| margin-right: auto; |
| margin-left: auto; |
| padding-left: ($grid-gutter-width / 2); |
| padding-right: ($grid-gutter-width / 2); |
| @include clearfix(); |
| } |
| |
| |
| @mixin make-row($gutter: $grid-gutter-width) { |
| margin-left: ($gutter / -2); |
| margin-right: ($gutter / -2); |
| @include clearfix(); |
| } |
| |
| |
| @mixin make-xs-column($columns, $gutter: $grid-gutter-width) { |
| position: relative; |
| float: left; |
| width: percentage(($columns / $grid-columns)); |
| |
| min-height: 1px; |
| |
| padding-left: ($gutter / 2); |
| padding-right: ($gutter / 2); |
| } |
| |
| |
| @mixin make-sm-column($columns, $gutter: $grid-gutter-width) { |
| position: relative; |
| |
| min-height: 1px; |
| |
| padding-left: ($gutter / 2); |
| padding-right: ($gutter / 2); |
| |
| |
| @media (min-width: $screen-sm) { |
| float: left; |
| width: percentage(($columns / $grid-columns)); |
| } |
| } |
| |
| |
| @mixin make-sm-column-offset($columns) { |
| @media (min-width: $screen-sm) { |
| margin-left: percentage(($columns / $grid-columns)); |
| } |
| } |
| @mixin make-sm-column-push($columns) { |
| @media (min-width: $screen-sm) { |
| left: percentage(($columns / $grid-columns)); |
| } |
| } |
| @mixin make-sm-column-pull($columns) { |
| @media (min-width: $screen-sm) { |
| right: percentage(($columns / $grid-columns)); |
| } |
| } |
| |
| |
| @mixin make-md-column($columns, $gutter: $grid-gutter-width) { |
| position: relative; |
| |
| min-height: 1px; |
| |
| padding-left: ($gutter / 2); |
| padding-right: ($gutter / 2); |
| |
| |
| @media (min-width: $screen-md) { |
| float: left; |
| width: percentage(($columns / $grid-columns)); |
| } |
| } |
| |
| |
| @mixin make-md-column-offset($columns) { |
| @media (min-width: $screen-md) { |
| 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) { |
| right: percentage(($columns / $grid-columns)); |
| } |
| } |
| |
| |
| @mixin make-lg-column($columns, $gutter: $grid-gutter-width) { |
| position: relative; |
| |
| min-height: 1px; |
| |
| padding-left: ($gutter / 2); |
| padding-right: ($gutter / 2); |
| |
| |
| @media (min-width: $screen-lg) { |
| float: left; |
| width: percentage(($columns / $grid-columns)); |
| } |
| } |
| |
| |
| @mixin make-lg-column-offset($columns) { |
| @media (min-width: $screen-lg) { |
| margin-left: percentage(($columns / $grid-columns)); |
| } |
| } |
| @mixin make-lg-column-push($columns) { |
| @media (min-width: $screen-lg) { |
| left: percentage(($columns / $grid-columns)); |
| } |
| } |
| @mixin make-lg-column-pull($columns) { |
| @media (min-width: $screen-lg) { |
| right: percentage(($columns / $grid-columns)); |
| } |
| } |
| |
| |
| |
| |
| |
| |
| |
| @mixin form-control-validation($text-color: |
| |
| .help-block, |
| .control-label { |
| color: $text-color; |
| } |
| |
| .form-control { |
| border-color: $border-color; |
| @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); |
| &: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); |
| } |
| } |
| |
| .input-group-addon { |
| color: $text-color; |
| border-color: $border-color; |
| background-color: $background-color; |
| } |
| } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| @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); |
| } |
| } |
| |
| |
| |
| |
| |
| |
| |
| |
| @mixin input-size($parent, $input-height, $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; } |
| select |
| height: $input-height; |
| line-height: $input-height; |
| } |
| |
| textarea |
| height: auto; |
| } |
| } |