5 Responsive helper classes to assist you in quickly doing basic formatting and layout.
14 $block-selector: '[class*="grid-block"]';
16 @mixin show-for($size, $prop: block) {
18 display: none !important;
19 @include breakpoint($size) {
20 display: $prop !important;
25 @mixin show-for-only($size, $prop: block) {
27 display: none !important;
28 @include breakpoint($size only) {
29 display: $prop !important;
34 @mixin hide-for($size, $prop: block) {
36 display: $prop !important;
37 @include breakpoint($size) {
38 display: none !important;
43 @mixin hide-for-only($size, $prop: block) {
45 display: $prop !important;
46 @include breakpoint($size only) {
47 display: none !important;
52 @include exports(utilities) {
57 justify-content: space-between;
65 @each $orient in (top, center, bottom) {
67 align-self: map-get($align-values, $orient);
71 @each $size in $breakpoint-classes {
72 @each $orient in (top, center, bottom) {
73 @include breakpoint($size) {
74 .#{$size}-align-#{$orient} {
75 align-self: map-get($align-values, $orient);
83 .hide { display: none !important; }
85 .invisible { visibility: hidden; }
87 @each $size in $breakpoint-classes {
89 @include hide-for($size);
90 &#{$block-selector} { @include hide-for($size, flex); }
94 @include show-for($size);
95 &#{$block-selector} { @include show-for($size, flex); }
98 .hide-for-#{$size}-only {
99 @include hide-for-only($size);
100 &#{$block-selector} { @include hide-for-only($size, flex); }
103 .show-for-#{$size}-only {
104 @include show-for-only($size);
105 &#{$block-selector} { @include show-for-only($size, flex); }
109 @each $orientation in (portrait, landscape) {
110 .hide-for-#{$orientation} {
111 @include breakpoint($orientation) {
112 display: none !important;
113 &#{$block-selector} { display: flex !important; }
117 .show-for-#{$orientation} {
118 display: none !important;
120 @include breakpoint($orientation) {
121 display: block !important;
122 &#{$block-selector} { display: flex !important; }
130 @each $align in (left, right, center, justify) {
135 @each $size in $breakpoint-classes {
136 @include breakpoint($size) {
137 .#{$size}-text-#{$align} {
142 @include breakpoint($size only) {
143 .#{$size}-only-text-#{$align} {
153 .clearfix { @include clearfix; }
155 @each $float in (left, right, none) {