xonecas.io
211
Ze

zen / files

zen / css / style.css

8.9 KB
1/*
2  HTML5 ✰ Boilerplate
3
4  style.css contains a reset, font normalization and some base styles.
5
6  credit is left where credit is due.
7  much inspiration was taken from these projects:
8    yui.yahooapis.com/2.8.1/build/base/base.css
9    camendesign.com/design/
10    praegnanz.de/weblog/htmlcssjs-kickstart
11*/
12
13/*
14  html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
15  v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
16  html5doctor.com/html-5-reset-stylesheet/
17*/
18
19html, body, div, span, object, iframe,
20h1, h2, h3, h4, h5, h6, p, blockquote, pre,
21abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
22small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
23fieldset, form, label, legend,
24table, caption, tbody, tfoot, thead, tr, th, td,
25article, aside, canvas, details, figcaption, figure,
26footer, header, hgroup, menu, nav, section, summary,
27time, mark, audio, video {
28  margin:0;
29  padding:0;
30  border:0;
31  font-size:100%;
32  font: inherit;
33  vertical-align:baseline;
34}
35
36article, aside, details, figcaption, figure,
37footer, header, hgroup, menu, nav, section {
38    display:block;
39}
40
41blockquote, q { quotes:none; }
42
43blockquote:before, blockquote:after,
44q:before, q:after { content:''; content:none; }
45
46ins { background-color:#ff9; color:#000; text-decoration:none; }
47
48mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
49
50del { text-decoration: line-through; }
51
52abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }
53
54table { border-collapse:collapse; border-spacing:0; }
55
56hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
57
58input, select { vertical-align:middle; }
59
60/* END RESET CSS */
61
62
63/* font normalization inspired by  from the YUI Library's fonts.css: developer.yahoo.com/yui/ */
64body { font:13px/1.231 sans-serif; *font-size:small; } /* hack retained to preserve specificity */
65select, input, textarea, button { font:99% sans-serif; }
66
67/* normalize monospace sizing
68 * en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
69pre, code, kbd, samp { font-family: monospace, sans-serif; }
70
71/*
72 * minimal base styles
73 */
74
75
76body, select, input, textarea {
77  /* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */
78  color: #000; background-color: #444;
79  /* set your base font here, to apply evenly */
80  /* font-family: Georgia, serif;  */
81}
82
83/* headers (h1,h2,etc) have no default font-size or margin. define those yourself. */
84h1,h2,h3,h4,h5,h6 { font-weight: bold; }
85
86/* always force a scrollbar in non-IE: */
87html { overflow-y: scroll; }
88
89
90/* accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
91a:hover, a:active { outline: none; }
92
93a, a:active, a:visited { color: #607890; }
94a:hover { color: #036; }
95
96
97ul, ol { margin-left: 2em; }
98ol { list-style-type: decimal; }
99
100/* remove margins for navigation lists */
101nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
102
103small { font-size: 85%; }
104strong, th { font-weight: bold; }
105
106td { vertical-align: top; }
107
108/* set sub, sup without affecting line-height: gist.github.com/413930 */
109sub, sup { font-size: 75%; line-height: 0; position: relative; }
110sup { top: -0.5em; }
111sub { bottom: -0.25em; }
112
113pre {
114  /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
115  white-space: pre; white-space: pre-wrap; white-space: pre-line; word-wrap: break-word;
116  padding: 15px;
117}
118
119textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
120
121.ie6 legend, .ie7 legend { margin-left: -7px; } /* thnx ivannikolic! */
122
123/* align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
124input[type="radio"] { vertical-align: text-bottom; }
125input[type="checkbox"] { vertical-align: bottom; }
126.ie7 input[type="checkbox"] { vertical-align: baseline; }
127.ie6 input { vertical-align: text-bottom; }
128
129/* hand cursor on clickable input elements */
130label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
131
132/* webkit browsers add a 2px margin outside the chrome of form elements */
133button, input, select, textarea { margin: 0; }
134
135/* colors for form validity */
136input:valid, textarea:valid   {  }
137input:invalid, textarea:invalid {
138      border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;
139}
140.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
141
142
143/* These selection declarations have to be separate.
144   No text-shadow: twitter.com/miketaylr/status/12228805301
145   Also: hot pink. */
146::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
147::selection { background:#FF5E99; color:#fff; text-shadow: none; }
148
149/*  j.mp/webkit-tap-highlight-color */
150a:link { -webkit-tap-highlight-color: #FF5E99; }
151
152/* make buttons play nice in IE:
153   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
154button {  width: auto; overflow: visible; }
155
156/* bicubic resizing for non-native sized IMG:
157   code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
158.ie7 img { -ms-interpolation-mode: bicubic; }
159
160/* Generated by Font Squirrel (http://www.fontsquirrel.com) on January 25, 2011 12:30:41 PM America/New_York */
161@font-face {
162	font-family: 'oxy';
163	src: url('oxygen/OXYGENE1-webfont.eot');
164	src: local('☺'), url('oxygen/OXYGENE1-webfont.woff') format('woff'), 
165      url('oxygen/OXYGENE1-webfont.ttf') format('truetype'), 
166      url('oxygen/OXYGENE1-webfont.svg#webfontqiEEoX6p') format('svg');
167	font-weight: normal;
168	font-style: normal;
169}
170
171 /* Primary Styles
172    Author: xonecas
173 */
174
175
176#fontLoader {
177   width: 200px;
178   margin: 50px auto;
179   font-family: 'oxy';
180   font-size: 1.846153846em; /* 24px/13px */
181}
182
183#imageLoader {
184   display: none;
185}
186
187canvas {
188   position: absolute;
189   top: 0; left: 0;
190}
191
192.ie8 #main,
193.ie7 #main,
194.ie6 #main {
195   position: absolute;
196   top: 0;
197   left: 0;
198   width: 100%;
199   height: 100%;
200   font-family: 'oxy';
201}
202
203.ie8 #main div,
204.ie7 #main div,
205.ie6 #main div {
206   font-size:2.923076923em; /* 38px/13px */
207   position: absolute;
208}
209
210
211
212
213
214
215
216
217
218
219
220
221
222/*
223 * Non-semantic helper classes: please define your styles before this section.
224 */
225
226/* for image replacement */
227.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
228
229/* Hide for both screenreaders and browsers
230   css-discuss.incutio.com/wiki/Screenreader_Visibility */
231.hidden { display: none; visibility: hidden; }
232
233/* Hide only visually, but have it available for screenreaders: by Jon Neal
234  www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
235.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
236
237/* Hide visually and from screenreaders, but maintain layout */
238.invisible { visibility: hidden; }
239
240/* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
241.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; visibility: hidden; }
242.clearfix:after { clear: both; }
243/* fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
244.clearfix { zoom: 1; }
245
246
247
248/*
249 * media queries for responsive design
250 * these follow after primary styles so they will successfully override.
251 */
252
253@media all and (orientation:portrait) {
254  /* style adjustments for portrait mode goes here */
255
256}
257
258@media all and (orientation:landscape) {
259  /* style adjustments for landscape mode goes here */
260
261}
262
263/* Grade-A Mobile Browsers (Opera Mobile, Mobile Safari, Android Chrome)
264   consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
265@media screen and (max-device-width: 480px) {
266
267
268  /* uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you
269     j.mp/textsizeadjust
270  html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
271}
272
273/*
274 * print styles
275 * inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/
276 */
277@media print {
278  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
279  -ms-filter: none !important; } /* black prints faster: sanbeiji.com/archives/953 */
280  a, a:visited { color: #444 !important; text-decoration: underline; }
281  a[href]:after { content: " (" attr(href) ")"; }
282  abbr[title]:after { content: " (" attr(title) ")"; }
283  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* don't show links for images, or javascript/internal links */
284  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
285  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
286  tr, img { page-break-inside: avoid; }
287  @page { margin: 0.5cm; }
288  p, h2, h3 { orphans: 3; widows: 3; }
289  h2, h3{ page-break-after: avoid; }
290}
291