Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dldx/hpstr-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '_sass/_grid.scss')
-rw-r--r--_sass/_grid.scss7
1 files changed, 7 insertions, 0 deletions
diff --git a/_sass/_grid.scss b/_sass/_grid.scss
index ffb89e7..1ae5df3 100644
--- a/_sass/_grid.scss
+++ b/_sass/_grid.scss
@@ -1,3 +1,7 @@
+/* ==========================================================================
+ Grid
+ ========================================================================== */
+
// Defining number of columns in the grid.
// Common Values would be 12, 16 or 24
$width: 100%;
@@ -23,14 +27,17 @@ $margin: 0;
@mixin prefix($grid:$def_grid,$cols:''){
margin-left:(100%/$grid * $cols);
}
+
// Allows for padding after element
@mixin suffix($grid:$def_grid,$cols:''){
margin-right:(100%/$grid * $cols);
}
+
// Removes left margin
@mixin first(){
margin-left:0;
}
+
// Removes right margin
@mixin last(){
margin-right:0;