From eaae7b43a67bb826d514f966d00cef0137ab6367 Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:27:37 +0800 Subject: separate utilities scss --- sass/_base.scss | 3 ++- sass/base/_layout.scss | 25 ------------------------- sass/base/_utilities.scss | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 sass/base/_utilities.scss diff --git a/sass/_base.scss b/sass/_base.scss index e9707e2..dfb3b40 100644 --- a/sass/_base.scss +++ b/sass/_base.scss @@ -1,3 +1,4 @@ @import "base/color"; @import "base/font"; -@import "base/layout"; \ No newline at end of file +@import "base/layout"; +@import "base/utilities"; \ No newline at end of file diff --git a/sass/base/_layout.scss b/sass/base/_layout.scss index da9ad8a..3d164eb 100644 --- a/sass/base/_layout.scss +++ b/sass/base/_layout.scss @@ -1,30 +1,5 @@ $max-width: 1000px; -@mixin square($property){ - width: $property; - height: $property; -} -@mixin user-select($select){ - -moz-user-select: $select; - -khtml-user-select: $select; - -webkit-user-select: $select; - -o-user-select: $select; - user-select: $select; -} -@mixin border-shadow($top: $gray05, $bottom: $gray04){ - 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; padding: 0; diff --git a/sass/base/_utilities.scss b/sass/base/_utilities.scss new file mode 100644 index 0000000..1a3ed2f --- /dev/null +++ b/sass/base/_utilities.scss @@ -0,0 +1,24 @@ +@mixin square($property){ + width: $property; + height: $property; +} +@mixin user-select($select){ + -moz-user-select: $select; + -khtml-user-select: $select; + -webkit-user-select: $select; + -o-user-select: $select; + user-select: $select; +} +@mixin border-shadow($top: $gray05, $bottom: $gray04){ + 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; +} \ No newline at end of file -- cgit v1.1-2-g2b99