summaryrefslogtreecommitdiff
path: root/twentyeleven-fix.scss
blob: bbfa20805aedad43170c7c4428a1c32a73d45c38 (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
59
60
61
62
63
64
65
66
67
68
69
70
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);
	}
}