Skip to content

Commit

Permalink
Use extends and bracing for readablity in base-ie7
Browse files Browse the repository at this point in the history
Introduced wb-ie-clip-rect-1 class to use in extends, but namespacing
should shelter it from conflicts
  • Loading branch information
nschonni committed Dec 27, 2012
1 parent 1afce8e commit 81af294
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/base/sass/_base-ie7.scss
Expand Up @@ -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 {
Expand Down

0 comments on commit 81af294

Please sign in to comment.