2012-06-29 06:46:45 +02:00
|
|
|
//
|
|
|
|
// Utility classes
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-01-09 00:38:57 +01:00
|
|
|
|
2012-09-26 17:59:57 +02:00
|
|
|
// Floats
|
2012-12-20 02:49:20 +01:00
|
|
|
.clearfix {
|
2013-03-30 21:23:18 +01:00
|
|
|
.clearfix();
|
2012-09-26 17:59:57 +02:00
|
|
|
}
|
2013-09-01 11:20:58 +02:00
|
|
|
.center-block {
|
|
|
|
.center-block();
|
|
|
|
}
|
2012-01-09 00:38:57 +01:00
|
|
|
.pull-right {
|
2013-07-28 08:05:47 +02:00
|
|
|
float: right !important;
|
2012-01-09 00:38:57 +01:00
|
|
|
}
|
|
|
|
.pull-left {
|
2013-07-28 08:05:47 +02:00
|
|
|
float: left !important;
|
2012-01-09 00:38:57 +01:00
|
|
|
}
|
|
|
|
|
2012-09-26 17:59:57 +02:00
|
|
|
|
2014-07-14 17:48:26 +02:00
|
|
|
// Inverse
|
|
|
|
.inverse {
|
|
|
|
color: @gray-lighter;
|
|
|
|
background-color: @gray-dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Spacing
|
|
|
|
.p-a {
|
|
|
|
padding: @spacer;
|
|
|
|
}
|
|
|
|
.p-h {
|
|
|
|
padding-left: @spacer;
|
|
|
|
padding-right: @spacer;
|
|
|
|
}
|
|
|
|
.p-v {
|
|
|
|
padding-top: @spacer;
|
|
|
|
padding-bottom: @spacer;
|
|
|
|
}
|
|
|
|
|
2014-07-14 18:03:21 +02:00
|
|
|
// Positioning
|
|
|
|
.pos-f-t {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: @zindex-navbar-fixed;
|
|
|
|
}
|
|
|
|
|
2014-07-14 17:48:26 +02:00
|
|
|
|
2012-01-09 00:38:57 +01:00
|
|
|
// Toggling content
|
|
|
|
.show {
|
2012-12-20 22:53:38 +01:00
|
|
|
display: block !important;
|
2012-01-09 00:38:57 +01:00
|
|
|
}
|
|
|
|
.invisible {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2012-09-26 17:59:57 +02:00
|
|
|
.text-hide {
|
2013-08-24 07:11:41 +02:00
|
|
|
.text-hide();
|
2012-09-26 17:59:57 +02:00
|
|
|
}
|
|
|
|
|
2012-07-23 03:28:39 +02:00
|
|
|
|
2013-10-14 04:59:42 +02:00
|
|
|
// Hide from screenreaders and browsers
|
|
|
|
//
|
|
|
|
// Credit: HTML5 Boilerplate
|
|
|
|
.hidden {
|
|
|
|
display: none !important;
|
|
|
|
visibility: hidden !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-08-20 06:12:52 +02:00
|
|
|
// For Affix plugin
|
2012-07-23 03:28:39 +02:00
|
|
|
.affix {
|
|
|
|
position: fixed;
|
2012-08-20 06:12:52 +02:00
|
|
|
}
|
2014-09-19 04:15:01 +02:00
|
|
|
|
|
|
|
// Alignment
|
|
|
|
.text-left { text-align: left; }
|
|
|
|
.text-right { text-align: right; }
|
|
|
|
.text-center { text-align: center; }
|
|
|
|
.text-justify { text-align: justify; }
|
|
|
|
.text-nowrap { white-space: nowrap; }
|
|
|
|
|
|
|
|
// Transformation
|
|
|
|
.text-lowercase { text-transform: lowercase; }
|
|
|
|
.text-uppercase { text-transform: uppercase; }
|
|
|
|
.text-capitalize { text-transform: capitalize; }
|
|
|
|
|
|
|
|
// Contextual colors
|
|
|
|
.text-muted {
|
|
|
|
color: @text-muted;
|
|
|
|
}
|
|
|
|
.text-primary {
|
|
|
|
.text-emphasis-variant(@brand-primary);
|
|
|
|
}
|
|
|
|
.text-success {
|
|
|
|
.text-emphasis-variant(@state-success-text);
|
|
|
|
}
|
|
|
|
.text-info {
|
|
|
|
.text-emphasis-variant(@state-info-text);
|
|
|
|
}
|
|
|
|
.text-warning {
|
|
|
|
.text-emphasis-variant(@state-warning-text);
|
|
|
|
}
|
|
|
|
.text-danger {
|
|
|
|
.text-emphasis-variant(@state-danger-text);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Contextual backgrounds
|
|
|
|
// For now we'll leave these alongside the text classes until v4 when we can
|
|
|
|
// safely shift things around (per SemVer rules).
|
|
|
|
.bg-primary {
|
|
|
|
// Given the contrast here, this is the only class to have its color inverted
|
|
|
|
// automatically.
|
|
|
|
color: #fff;
|
|
|
|
.bg-variant(@brand-primary);
|
|
|
|
}
|
|
|
|
.bg-success {
|
|
|
|
.bg-variant(@state-success-bg);
|
|
|
|
}
|
|
|
|
.bg-info {
|
|
|
|
.bg-variant(@state-info-bg);
|
|
|
|
}
|
|
|
|
.bg-warning {
|
|
|
|
.bg-variant(@state-warning-bg);
|
|
|
|
}
|
|
|
|
.bg-danger {
|
|
|
|
.bg-variant(@state-danger-bg);
|
|
|
|
}
|
|
|
|
.bg-gray-dark {
|
|
|
|
.bg-variant(@gray-dark);
|
|
|
|
}
|