diff options
Diffstat (limited to 'twentyeleven-fix.scss')
-rw-r--r-- | twentyeleven-fix.scss | 59 |
1 files changed, 36 insertions, 23 deletions
diff --git a/twentyeleven-fix.scss b/twentyeleven-fix.scss index 7c1d44d..bbfa208 100644 --- a/twentyeleven-fix.scss +++ b/twentyeleven-fix.scss @@ -1,35 +1,42 @@ -body #page header#branding #access { - ul { - :hover > ul, - :hover + ul, - :active > ul, - :active + ul, - :focus > ul, - :focus + ul { - display: block; +body { + padding: 0; + #page header#branding #access { + ul { + :hover > ul, + :hover + ul, + :active > ul, + :active + ul, + :focus > ul, + :focus + ul { + display: block; + } } } } +@mixin searchform_wide($border_width) { + position: relative !important; + top: auto !important; + bottom: auto !important; + left: auto !important; + right: auto !important; + width: 100%; + max-width: none; + .field { + float: none; + width: 100%; + display: block; + margin-left: -$border_width; + } +} + @media (max-width: 800px) { body #page header#branding { .only-search, #searchform { padding-right: 10px+28px;// matches twentyeleven values } #searchform { - position: relative !important; - top: auto !important; - bottom: auto !important; - left: auto !important; - right: auto !important; - width: 100%; - max-width: none; - .field { - float: none; - width: 100%; - display: block; - margin-left: -1px; // match border width - } + @include searchform_wide(1px); } #access { ul, div { @@ -55,4 +62,10 @@ body #page header#branding #access { } } } -}
\ No newline at end of file +} + +#ie6 { + body #page header#branding #searchform { + @include searchform_wide(1px); + } +} |