2013-11-18 22:09:20 +01:00
|
|
|
/////////////////////////////////////
|
|
|
|
// MIXINS
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
// Dimmed Text
|
|
|
|
/////////////////////////////////////
|
2014-07-02 15:11:05 +02:00
|
|
|
.dimmed {
|
2013-11-18 22:09:20 +01:00
|
|
|
color: @text-color-dimmed;
|
|
|
|
p { color: @text-color-dimmed; }
|
|
|
|
li { color: @text-color-dimmed; }
|
|
|
|
}
|
|
|
|
|
2013-11-24 17:55:57 +01:00
|
|
|
// Text overflow
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
2014-07-02 15:11:05 +02:00
|
|
|
.ellipsis {
|
2013-11-24 17:55:57 +01:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden
|
|
|
|
}
|
|
|
|
|
2013-11-18 22:09:20 +01:00
|
|
|
// Dashed Dividers
|
|
|
|
/////////////////////////////////////
|
2013-11-24 00:13:48 +01:00
|
|
|
|
|
|
|
.divider-top,
|
|
|
|
.divider-bottom {
|
|
|
|
position: relative;
|
2014-07-02 15:11:05 +02:00
|
|
|
|
2013-11-24 00:13:48 +01:00
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
height: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-18 22:09:20 +01:00
|
|
|
.divider-top {
|
|
|
|
border-top: 1px dashed #afc3cb;
|
|
|
|
padding-top: 1em;
|
2014-07-02 15:11:05 +02:00
|
|
|
|
2013-11-18 22:09:20 +01:00
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
2013-11-24 00:13:48 +01:00
|
|
|
height: 1px;
|
2013-11-18 22:09:20 +01:00
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
border-top: 1px dashed #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.divider-bottom {
|
|
|
|
border-bottom: 1px dashed #afc3cb;
|
|
|
|
padding-bottom: 1em;
|
2014-07-02 15:11:05 +02:00
|
|
|
|
2013-11-24 00:13:48 +01:00
|
|
|
&:before {
|
2013-11-18 22:09:20 +01:00
|
|
|
bottom: -2px;
|
|
|
|
width: 100%;
|
|
|
|
border-bottom: 1px dashed #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Heading band
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
2014-07-02 15:11:05 +02:00
|
|
|
.heading-band {
|
2013-11-18 22:09:20 +01:00
|
|
|
display: inline-block;
|
|
|
|
clear: both;
|
|
|
|
background: rgba(255,255,255,.55);
|
|
|
|
padding: @line-height-computed/2 @line-height-computed @line-height-computed/2 100%;
|
|
|
|
margin-left: -100%;
|
|
|
|
.border-right-radius(@border-radius-base);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-12-08 16:27:33 +01:00
|
|
|
// Lead paragraph
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
|
|
|
.lead {
|
|
|
|
font-size: @font-size-large;
|
2013-12-08 16:52:54 +01:00
|
|
|
line-height: @line-height-computed*1.15
|
2013-12-08 16:27:33 +01:00
|
|
|
}
|
|
|
|
|
2013-11-18 22:09:20 +01:00
|
|
|
/////////////////////////////////////
|
|
|
|
// CSS3 PROPERTIES
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
2013-11-24 00:13:48 +01:00
|
|
|
// Border Radius
|
|
|
|
.border-radius(@radius: @border-radius-base) {
|
|
|
|
border-radius: @radius;
|
|
|
|
background-clip: padding-box;
|
|
|
|
}
|
|
|
|
|
2013-11-18 22:09:20 +01:00
|
|
|
// Single side border-radius
|
2013-11-30 17:13:19 +01:00
|
|
|
.border-top-radius(@radius: @border-radius-base) {
|
2013-11-18 22:09:20 +01:00
|
|
|
border-top-right-radius: @radius;
|
|
|
|
border-top-left-radius: @radius;
|
|
|
|
}
|
2013-11-30 17:13:19 +01:00
|
|
|
.border-right-radius(@radius: @border-radius-base) {
|
2013-11-18 22:09:20 +01:00
|
|
|
border-bottom-right-radius: @radius;
|
|
|
|
border-top-right-radius: @radius;
|
|
|
|
}
|
2013-11-30 17:13:19 +01:00
|
|
|
.border-bottom-radius(@radius: @border-radius-base) {
|
2013-11-18 22:09:20 +01:00
|
|
|
border-bottom-right-radius: @radius;
|
|
|
|
border-bottom-left-radius: @radius;
|
|
|
|
}
|
2013-11-30 17:13:19 +01:00
|
|
|
.border-left-radius(@radius: @border-radius-base) {
|
2013-11-18 22:09:20 +01:00
|
|
|
border-bottom-left-radius: @radius;
|
|
|
|
border-top-left-radius: @radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Drop shadows
|
|
|
|
.box-shadow(@shadow) {
|
|
|
|
-webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
|
|
|
|
box-shadow: @shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Transitions
|
|
|
|
.transition(@transition: all .2s ease-in-out 0s) {
|
|
|
|
-webkit-transition: @transition;
|
|
|
|
transition: @transition;
|
|
|
|
}
|
|
|
|
.transition-delay(@transition-delay) {
|
|
|
|
-webkit-transition-delay: @transition-delay;
|
|
|
|
transition-delay: @transition-delay;
|
|
|
|
}
|
|
|
|
.transition-duration(@transition-duration) {
|
|
|
|
-webkit-transition-duration: @transition-duration;
|
|
|
|
transition-duration: @transition-duration;
|
|
|
|
}
|
|
|
|
.transition-property(@property) {
|
|
|
|
-webkit-transition-property: @property;
|
|
|
|
transition-property: @property;
|
|
|
|
}
|
|
|
|
|
2013-11-24 00:13:48 +01:00
|
|
|
// Animations
|
|
|
|
.animation(@animation) {
|
|
|
|
-webkit-animation: @animation;
|
|
|
|
animation: @animation;
|
|
|
|
}
|
|
|
|
.animation-delay(@delay) {
|
|
|
|
-webkit-animation-delay: @delay;
|
|
|
|
animation-delay: @delay;
|
|
|
|
}
|
|
|
|
|
2013-11-18 22:09:20 +01:00
|
|
|
// Transformations
|
|
|
|
.rotate(@degrees) {
|
|
|
|
-webkit-transform: rotate(@degrees);
|
|
|
|
-ms-transform: rotate(@degrees);
|
|
|
|
transform: rotate(@degrees);
|
|
|
|
}
|
|
|
|
.scale(@ratio) {
|
|
|
|
-webkit-transform: scale(@ratio);
|
|
|
|
-ms-transform: scale(@ratio);
|
|
|
|
transform: scale(@ratio);
|
|
|
|
}
|
|
|
|
.translate(@x, @y) {
|
|
|
|
-webkit-transform: translate(@x, @y);
|
|
|
|
-ms-transform: translate(@x, @y);
|
|
|
|
transform: translate(@x, @y);
|
|
|
|
}
|
|
|
|
.skew(@x, @y) {
|
|
|
|
-webkit-transform: skew(@x, @y);
|
|
|
|
-ms-transform: skewX(@x) skewY(@y); // See https://github.com/twitter/bootstrap/issues/4885
|
|
|
|
transform: skew(@x, @y);
|
|
|
|
}
|
|
|
|
.translate3d(@x, @y, @z) {
|
|
|
|
-webkit-transform: translate3d(@x, @y, @z);
|
|
|
|
transform: translate3d(@x, @y, @z);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Backface visibility
|
|
|
|
// Prevent browsers from flickering when using CSS 3D transforms.
|
|
|
|
// Default value is `visible`, but can be changed to `hidden
|
|
|
|
// See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples
|
|
|
|
.backface-visibility(@visibility){
|
|
|
|
-webkit-backface-visibility: @visibility;
|
|
|
|
-moz-backface-visibility: @visibility;
|
|
|
|
backface-visibility: @visibility;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Background clipping
|
|
|
|
.background-clip(@clip) {
|
|
|
|
-webkit-background-clip: @clip;
|
|
|
|
-moz-background-clip: @clip;
|
|
|
|
background-clip: @clip;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Box sizing
|
|
|
|
.box-sizing(@boxmodel) {
|
|
|
|
-webkit-box-sizing: @boxmodel;
|
|
|
|
-moz-box-sizing: @boxmodel;
|
|
|
|
box-sizing: @boxmodel;
|
|
|
|
}
|
|
|
|
|
|
|
|
// User select
|
|
|
|
// For selecting text on the page
|
|
|
|
.user-select(@select) {
|
|
|
|
-webkit-user-select: @select;
|
|
|
|
-moz-user-select: @select;
|
|
|
|
-ms-user-select: @select;
|
|
|
|
user-select: @select;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Resize anything
|
|
|
|
.resizable(@direction) {
|
|
|
|
resize: @direction; // Options: horizontal, vertical, both
|
|
|
|
overflow: auto; // Safari fix
|
|
|
|
}
|
|
|
|
|
|
|
|
// CSS3 Content Columns
|
|
|
|
.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
|
|
|
|
.hyphens(@mode: auto) {
|
|
|
|
word-wrap: break-word;
|
|
|
|
-webkit-hyphens: @mode;
|
|
|
|
-moz-hyphens: @mode;
|
|
|
|
-ms-hyphens: @mode;
|
|
|
|
hyphens: @mode;
|
|
|
|
}
|
|
|
|
|
|
|
|
// GRADIENTS
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
|
|
|
#gradient {
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
.horizontal(@start-color: #555; @start-percent: 0%; @end-color: #333; @end-percent: 100%) {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
.vertical(@start-color: #555; @start-percent: 0%; @end-color: #333; @end-percent: 100%) {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|