summaryrefslogtreecommitdiff
path: root/twentyeleven-fix.scss
diff options
context:
space:
mode:
Diffstat (limited to 'twentyeleven-fix.scss')
-rw-r--r--twentyeleven-fix.scss71
1 files changed, 71 insertions, 0 deletions
diff --git a/twentyeleven-fix.scss b/twentyeleven-fix.scss
new file mode 100644
index 0000000..bbfa208
--- /dev/null
+++ b/twentyeleven-fix.scss
@@ -0,0 +1,71 @@
+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 {
+ @include searchform_wide(1px);
+ }
+ #access {
+ ul, div {
+ margin: 0;
+ padding: 0;
+ }
+ ul {
+ li {
+ float: none;
+ display: block;
+ width: 50%;
+ ul {
+ left: 100%;
+ top: 0;
+ }
+ ul {
+ width: 100%;
+ li, a {
+ width: auto;
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
+#ie6 {
+ body #page header#branding #searchform {
+ @include searchform_wide(1px);
+ }
+}