barebones/assets/styles/utils/_helpers.scss

82 lines
1.1 KiB
SCSS
Raw Normal View History

2015-10-14 14:03:16 +02:00
/**
* Clearing and floating
*/
2015-10-15 18:24:32 +02:00
.alignleft,
2015-10-14 14:03:16 +02:00
.float-left {
float: left;
img & {
margin-right: $base-spacing-unit;
}
}
2015-10-15 18:24:32 +02:00
.alignright,
2015-10-14 14:03:16 +02:00
.float-right {
float: right;
img & {
margin-left : $base-spacing-unit;
}
}
2015-10-15 18:24:32 +02:00
.aligncenter,
2015-10-14 14:03:16 +02:00
.float-center {
display: block;
margin: {
left: auto;
right: auto;
}
img & {
margin-bottom: $base-spacing-unit;
}
}
.clearfix {
2016-04-29 14:01:43 +02:00
@include clearfix();
2015-10-14 14:03:16 +02:00
}
/**
* Text aligments
*/
2016-04-29 14:01:43 +02:00
.align-text-left {
text-align: left;
2015-04-01 18:32:10 +02:00
}
2016-04-29 14:01:43 +02:00
.align-text-right {
text-align: right;
2015-04-01 18:32:10 +02:00
}
2016-04-29 14:01:43 +02:00
.align-text-center {
text-align: center;
2015-04-01 18:32:10 +02:00
}
2015-10-14 14:03:16 +02:00
/**
* Elements visibility
*/
2015-10-14 15:58:18 +02:00
.visible-on-mobile {
2015-10-14 14:03:16 +02:00
display: none !important;
@include resp-max($breakpoint-sm) {
display: block !important;
}
2015-04-01 18:32:10 +02:00
}
2015-10-14 15:58:18 +02:00
.visible-on-tablet {
2015-10-14 14:03:16 +02:00
display: none !important;
@include resp-max($breakpoint-md) {
display: block !important;
}
2016-01-14 14:22:17 +01:00
@include resp-max($breakpoint-sm) {
display: none !important;
}
2015-04-01 18:32:10 +02:00
}
2016-04-29 14:01:43 +02:00
.visible-on-desktop {
2015-10-14 14:03:16 +02:00
@include resp-max($breakpoint-md) {
display: none !important;
}
2015-12-14 18:33:14 +01:00
}