summaryrefslogtreecommitdiff
path: root/twentyeleven-fix.scss
blob: 0e3f7059f97fba2a5668b29804e59c95364dbf18 (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
72
73
74
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);
	}
	* {
		text-shadow: none !important;
	}
}