/
cross_browser.css
211 lines (173 loc) · 5.61 KB
/
cross_browser.css
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/* ----------------------------------------------------------------- */
/* This CSS file will make your Firefox OS app using Building Blocks */
/* compatible with: ie 9, Firefox 18, Chrome 24, Safari 5.1 */
/* By Arnau March - @rnowm */
/* ----------------------------------------------------------------- */
/* Action menu */
form[role="dialog"][data-type="action"] > header:first-child,
form[role="dialog"][data-type="object"] > header:first-child {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
/* Buttons */
button,
a[role="button"],
.button {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
button.danger:active,
a[role="button"].danger:active,
.button.danger:active {
background-image: none;
}
/* Confirm */
form[role="dialog"][data-type="confirm"] > section {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
form[role="dialog"][data-type="confirm"] menu {
display: inline-block;
width: 100%;
}
form[role="dialog"][data-type="confirm"] menu button,
form[role="dialog"][data-type="edit"] menu button {
width: 48%;
}
/* Edit mode */
form[role="dialog"][data-type="edit"] header menu[type="toolbar"] button {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
/* headers */
section[role="region"] > header:first-child input[type="text"] {
box-sizing: border-box;
-webkit-box-sizing: border-box;
line-height: 3rem;
}
section[role="region"] > header:first-child menu[type="toolbar"] a,
section[role="region"] > header:first-child menu[type="toolbar"] button {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
section[role="region"] > header:first-child menu[type="toolbar"] a:last-child,
section[role="region"] > header:first-child menu[type="toolbar"] button:last-child {
background: url(style/headers/images/ui/separator.png) no-repeat left center;
background-size: auto 3.4rem;
}
section[role="region"] > header:first-child form button[type="reset"] {
background: url(style/headers/images/icons/clear.png) no-repeat center center;
background-size: 1.7rem auto;
}
section[role="region"] > header:first-child > button,
section[role="region"] > header:first-child > a {
background: url(style/headers/images/ui/separator-large.png) no-repeat 2rem center;
background-size: auto 4.8rem;
}
section[role="region"] > header:first-child .icon {
background: transparent no-repeat center center;
background-size: 3.5rem auto; /* 3rem RBE */
}
section[role="region"] > header:first-child > button .icon:after,
section[role="region"] > header:first-child > a .icon:after {
background: #9d3d26 url(style/headers/images/ui/negative.png) repeat-x left bottom;
background-size: auto 100%;
}
section[role="region"] header h2 {
background: url(style/headers/images/ui/subheader.png) repeat 0 100%;
background-size: auto 100%;
}
/* Input areas */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
fieldset legend {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
form[role="search"] p {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
form[role="search"] p input {
line-height: 3rem;
}
/* Switches */
label input[type="checkbox"][data-type="switch"] + span {
-moz-transition: background 0.2s ease, border 0.2s ease;
-webkit-transition: background 0.2s ease, border 0.2s ease;
}
label input[type="checkbox"][data-type="switch"].uninit + span {
-moz-transform: none;
-webkit-transform: none;
}
/* Drawer */
section[role="region"]:target {
-moz-transform: translateX(80%);
-webkit-transform: translateX(80%);
}
section[data-type="sidebar"] > header menu[type="toolbar"] a,
section[data-type="sidebar"] > header menu[type="toolbar"] button {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
section[data-type="sidebar"] > header {
background: url(style_unstable/drawer/images/ui/header.png) repeat-x left bottom;
background-size: 100% auto;
}
section[data-type="sidebar"] + section[role="region"] > header:first-child > button,
section[data-type="sidebar"] + section[role="region"] > header:first-child > a {
background-position: 5rem center; /* 4rem RBE */
}
section[data-type="sidebar"] > header menu[type="toolbar"] a:last-child,
section[data-type="sidebar"] > header menu[type="toolbar"] button:last-child {
background: url(style_unstable/drawer/images/ui/separator.png) no-repeat left center;
background-size: auto 3.1rem;
}
section[data-type="sidebar"] > header .icon {
background: transparent no-repeat center center;
background-size: 100% auto;
}
section[data-type="sidebar"] > nav > ul > li > a {
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
/* Progress and activity */
progress {
-webkit-appearance: none;
}
progress:not([value]) {
-webkit-animation: 0.9s rotate infinite steps(30);
}
progress:not([value])::-webkit-progress-bar {
background-color: transparent;
}
progress[value]::-webkit-progress-bar {
background: #333;
}
progress[value]::-webkit-progress-value {
background: #01c5ed;
}
progress[value].pack-activity::-webkit-progress-bar {
background-image: url(style_unstable/progress_activity/images/ui/activity.png);
-webkit-animation: 0.5s move infinite steps(15);
}
progress[value].pack-activity.light::-webkit-progress-bar {
background-color: #f4f4f4;
}
@-webkit-keyframes rotate {
from { -webkit-transform: rotate(1deg); }
to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes move {
from { background-position: 0 0; }
to { background-position: 1rem 0; }
}