From a9a4bf51f0597ec616fa7e3345ac6f4203f0a273 Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:17:31 +0800 Subject: add library --- sass/base/_layout.scss | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- cgit v1.1-2-g2b99