datat.fi/_sass/basically-basic/utilities/_align.scss

50 lines
925 B
SCSS
Raw Normal View History

2017-03-07 23:12:17 +02:00
//
2017-03-09 16:35:42 +02:00
// Text Alignment
2017-03-07 23:12:17 +02:00
//
.align-baseline { vertical-align: baseline !important; } // Browser default
.align-top { vertical-align: top !important; }
.align-middle { vertical-align: middle !important; }
.align-bottom { vertical-align: bottom !important; }
.align-text-bottom { vertical-align: text-bottom !important; }
.align-text-top { vertical-align: text-top !important; }
2017-03-09 16:35:42 +02:00
//
// Image Alignment
//
.align-center,
div.align-center,
a img.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
.align-right,
a img.align-right {
float: right;
margin-left: 1rem;
margin-bottom: 1rem;
}
.align-left,
a img.align-left {
float: left;
margin-right: 1rem;
margin-bottom: 1rem;
}
//
// Sidebar pusher
//
2017-03-07 23:12:17 +02:00
.is--pushed {
@include breakpoint($medium) {
padding-left: $sidebar-width;
}
@include breakpoint($large) {
padding-left: (1.5 * $sidebar-width);
}
}