From 13a3ff43ed309fe737e3fc925235a160bf6d2247 Mon Sep 17 00:00:00 2001 From: James Hu Date: Thu, 9 Feb 2012 20:12:48 -0800 Subject: [PATCH] Added cleared mixin which helps clear the element it is mixed into --- app/assets/stylesheets/css3/_cleared.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/assets/stylesheets/css3/_cleared.scss diff --git a/app/assets/stylesheets/css3/_cleared.scss b/app/assets/stylesheets/css3/_cleared.scss new file mode 100644 index 000000000..b8af54226 --- /dev/null +++ b/app/assets/stylesheets/css3/_cleared.scss @@ -0,0 +1,10 @@ +@mixin cleared ($clear: both) { + &:after { + clear: $clear; + display: block; + content: " "; + font-size: 0; + height: 0; + visibility: hidden; + } +} \ No newline at end of file