From 81af294ade8c7a8ca91c61ac460ff96ec3a66f13 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Thu, 27 Dec 2012 17:04:10 -0500 Subject: [PATCH] Use extends and bracing for readablity in base-ie7 Introduced wb-ie-clip-rect-1 class to use in extends, but namespacing should shelter it from conflicts --- src/base/sass/_base-ie7.scss | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/base/sass/_base-ie7.scss b/src/base/sass/_base-ie7.scss index de0be85e213..d8d8d0f6c53 100644 --- a/src/base/sass/_base-ie7.scss +++ b/src/base/sass/_base-ie7.scss @@ -6,13 +6,28 @@ select, button { font-size: 100%; } - .wb-invisible, .wb-show-onfocus, #wb-skip a:link, #wb-skip a:visited, #wb-sec h2, #wb-sup h2, #wb-foot h2 { + .wb-ie-clip-rect-1 + { clip: rect(1px 1px 1px 1px); } - .wb-invisible, .wb-show-onfocus, #wb-foot h2 { + #wb-skip { + a { + &:link, &:visited { + @extend .wb-ie-clip-rect-1; + } + } + } + + #wb-sec, #wb-sup { + h2 { + @extend .wb-ie-clip-rect-1; + } + } + .wb-invisible, .wb-show-onfocus { position: relative; float: left; margin-bottom: -1px !important; + @extend .wb-ie-clip-rect-1; } .wb-show-onfocus, #wb-skip a { &:focus, &:active {