mirror of
https://github.com/pierre42100/comunic
synced 2025-09-22 15:29:07 +00:00
First commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
@import "breakpoints";
|
||||
@import "utilities";
|
@@ -0,0 +1,30 @@
|
||||
// Breakpoints
|
||||
@mixin breakpoint($breakpoints, $media: all) {
|
||||
@each $breakpoint in $breakpoints {
|
||||
@if $breakpoint == large-desktop-range {
|
||||
@media only #{$media} and (min-width: $large-desktop-container) { @content; }
|
||||
}
|
||||
@else if $breakpoint == desktop-range {
|
||||
@media only #{$media} and (min-width: $desktop-container) and (max-width: $large-desktop-container - 0.062) { @content; }
|
||||
}
|
||||
@else if $breakpoint == tablet-range {
|
||||
@media only #{$media} and (min-width: $tablet-container) and (max-width: $desktop-container - 0.062) { @content; }
|
||||
}
|
||||
@else if $breakpoint == large-mobile-range {
|
||||
@media only #{$media} and (min-width: $large-mobile-container + 0.063) and (max-width: $tablet-container - 0.062) { @content; }
|
||||
}
|
||||
@else if $breakpoint == small-mobile-range {
|
||||
@media only #{$media} and (max-width: $large-mobile-container) { @content; }
|
||||
}
|
||||
@else if $breakpoint == no-mobile {
|
||||
@media only #{$media} and (min-width: $tablet-container) { @content; }
|
||||
}
|
||||
@else if $breakpoint == mobile-only {
|
||||
@media only #{$media} and (max-width: $tablet-container - 0.062) { @content; }
|
||||
}
|
||||
@else if $breakpoint == desktop-only {
|
||||
@media only #{$media} and (max-width: $desktop-container - 0.062) { @content; }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
|
||||
|
||||
// List Reset
|
||||
%list-reset {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
// Vertical Centering
|
||||
%vertical-align {
|
||||
position: relative;
|
||||
top: 50%;
|
||||
-webkit-transform: translateY(-50%);
|
||||
-moz-transform: translateY(-50%);
|
||||
-o-transform: translateY(-50%);
|
||||
-ms-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
// Columns
|
||||
@mixin columns($columns) {
|
||||
width: percentage(1/$columns);
|
||||
}
|
||||
|
||||
// Float with margin variable
|
||||
@mixin float($direction, $margin: 0) {
|
||||
float: $direction;
|
||||
margin-#{opposite-direction($direction)}: $margin;
|
||||
}
|
Reference in New Issue
Block a user