summaryrefslogtreecommitdiff
path: root/twentyeleven-fix.scss
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2011-10-06 20:48:19 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2011-10-06 20:48:19 -0700
commitdab2c8b55c4cad26e935ec9a453a1af1c6698457 (patch)
tree4a155f56cc0b1d82bb4c68102525c5b75831c1a8 /twentyeleven-fix.scss
parent6ea094abf5a8019cf862e5ec0ffcef3cabdacccf (diff)
I ran magit to make my small commit, but noticed that apparently I hadn't commited in a while. So here.
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);
+ }
+}