summaryrefslogtreecommitdiffstats
path: root/sass/base/_layout.scss
diff options
context:
space:
mode:
authorSkyArrow <tommy351@gmail.com>2012-01-24 18:17:31 +0100
committerSkyArrow <tommy351@gmail.com>2012-01-24 18:17:31 +0100
commita9a4bf51f0597ec616fa7e3345ac6f4203f0a273 (patch)
treef5edc2fce5ffee2cbb46b8bc0e8faef3796c4910 /sass/base/_layout.scss
parent29e9aa4d923db3c9703d1b7288f709534c1d39fe (diff)
downloadoctopress-theme-jeyzu-a9a4bf51f0597ec616fa7e3345ac6f4203f0a273.zip
octopress-theme-jeyzu-a9a4bf51f0597ec616fa7e3345ac6f4203f0a273.tar.gz
add library
Diffstat (limited to 'sass/base/_layout.scss')
-rw-r--r--sass/base/_layout.scss9
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;