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