106 lines
1.5 KiB
SCSS
106 lines
1.5 KiB
SCSS
// Helper classes
|
|
// ----------------------------------------------
|
|
|
|
@import './mixins';
|
|
@import '../cdb-variables/colors';
|
|
|
|
/* Margins */
|
|
.u-tSpace {
|
|
margin-top: 4px;
|
|
}
|
|
.u-tSpace--m {
|
|
margin-top: 8px;
|
|
}
|
|
.u-tSpace-xl {
|
|
margin-top: 12px;
|
|
}
|
|
.u-rSpace--s {
|
|
margin-right: 2px;
|
|
}
|
|
.u-rSpace {
|
|
margin-right: 4px;
|
|
}
|
|
.u-rSpace--m {
|
|
margin-right: 8px;
|
|
}
|
|
.u-rSpace--xl {
|
|
margin-right: 12px;
|
|
}
|
|
.u-bSpace {
|
|
margin-bottom: 4px;
|
|
}
|
|
.u-bSpace--m {
|
|
margin-bottom: 8px;
|
|
}
|
|
.u-bSpace--xl {
|
|
margin-bottom: 12px;
|
|
}
|
|
.u-lSpace {
|
|
margin-left: 4px;
|
|
}
|
|
.u-lSpace--xl {
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.u-ellipsis {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
// Colors
|
|
// Main Text Color is default color
|
|
// ----------------------------------------------
|
|
|
|
.u-actionTextColor {
|
|
color: $cBlue;
|
|
}
|
|
.u-mainTextColor {
|
|
color: $cMainText;
|
|
}
|
|
.u-secondaryTextColor {
|
|
color: $cSecondaryText;
|
|
}
|
|
.u-altTextColor {
|
|
color: $cAltText;
|
|
}
|
|
.u-hintTextColor {
|
|
color: $cHintText;
|
|
}
|
|
.u-alertTextColor {
|
|
color: $cAlert;
|
|
}
|
|
|
|
/* Displays */
|
|
.u-iBlock {
|
|
@include inline-block();
|
|
}
|
|
.u-showDesktop {
|
|
display: block !important;
|
|
}
|
|
.u-showMobile {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Decoration */
|
|
.u-upperCase {
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Media queries*/
|
|
@include media-query-mobile() {
|
|
.u-showDesktop {
|
|
display: none !important;
|
|
}
|
|
.u-showMobile {
|
|
display: block !important;
|
|
}
|
|
}
|
|
|
|
/* helper mixins */
|
|
@mixin default-form-error-style() {
|
|
border: 1px solid rgba($cError, 0.48);
|
|
background: rgba($cError, 0.04);
|
|
color: $cError;
|
|
}
|