summaryrefslogtreecommitdiff
path: root/twentyeleven-fix.scss
blob: 7c1d44d9c5c43c8f121f471bde3f7a7e7759282e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
body #page header#branding #access {
	ul {
		:hover > ul,
		:hover + ul,
		:active > ul,
		:active + ul,
		:focus > ul,
		:focus + ul {
			display: block;
		}
	}
}

@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
			}
		}
		#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;
						}
					}
				}
			}
		}
	}
}