diff options
Diffstat (limited to 'sass/base')
-rw-r--r-- | sass/base/_layout.scss | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sass/base/_layout.scss b/sass/base/_layout.scss index 0ccdb0d..1d11880 100644 --- a/sass/base/_layout.scss +++ b/sass/base/_layout.scss @@ -15,6 +15,15 @@ $max-width: 1000px; border-top: 1px solid $top; border-bottom: 1px solid $bottom; } +@mixin center($width, $height){ + position: absolute; + top: 50%; + left: 50%; + margin-left: $width/(-2); + margin-top: $height/(-2); + width: $width; + height: $height; +} *{ margin: 0; |