Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fbohz committed Jun 24, 2020
1 parent 3c9b90c commit a37e98e
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
14 changes: 14 additions & 0 deletions museo-demo/sass/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@mixin clearfix {
&::after {
content: "";
display: table;
clear: both;
}
}

@mixin absCenter {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
10 changes: 10 additions & 0 deletions museo-demo/sass/abstracts/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// COLORS
$color-primary: #7ed56f;
$color-primary-light: #55c57a;
$color-primary-dark: #28b485;
$color-grey-dark: #777;
$color-white: #FFF;
$color-black: #000;

// FONT
$default-font-size: 1.6rem;


// GRID
$grid-width: 114rem;
$gutter-vertical: 8rem;
$gutter-horizontal: 6rem;
42 changes: 42 additions & 0 deletions museo-demo/sass/layout/_grid.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.row {
max-width: $grid-width;
background-color: #eee;
margin: 0 auto;

// select everything EXCEPT last child
&:not(:last-child) {
margin-bottom: $gutter-vertical;
}

@include clearfix;

.col-1-of-2 {
width: calc((100% - #{$gutter-horizontal}) / 2);
float: left;
background-color: orange;
&:not(:last-child) {
margin-bottom: $gutter-vertical;
}

}

.col-1-of-3 {
width: calc((100% - 2 * #{$gutter-horizontal}) / 3);
}

.col-2-of-3 {
width: calc(2 * ((100% - 2 * #{$gutter-horizontal}) / 3) + #{$gutter-horizontal});
}

.col-1-of-4 {
width: calc((100% - 3 * #{$gutter-horizontal}) / 4);
}

.col-2-of-4 {
width: calc(2 * ((100% - 3 * #{$gutter-horizontal}) / 4) + #{$gutter-horizontal});
}

.col-3-of-4 {
width: calc(3 * ((100% - 3 * #{$gutter-horizontal}) / 4) + 2 * #{$gutter-horizontal});
}
}
1 change: 1 addition & 0 deletions museo-demo/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@import "components/button";
@import "layout/header";

@import "layout/grid";
/* CUSTOM - DELETE MAYBE IN FUTURE */

@media screen and (max-width: 800px) {
Expand Down

0 comments on commit a37e98e

Please sign in to comment.