xonecas.io
49
Do

dotter / files

dotter / css / style.css

10.1 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  color: #fff;
78  /* set your base font here, to apply evenly */
79  /* font-family: Georgia, serif;  */
80}
81
82/* headers (h1,h2,etc) have no default font-size or margin. define those yourself. */
83h1,h2,h3,h4,h5,h6 { font-weight: bold; }
84
85/* always force a scrollbar in non-IE: */
86html { overflow-y: scroll; }
87
88
89/* accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
90a:hover, a:active { outline: none; }
91
92a, a:active, a:visited { color: #3366ff; }
93a:hover { color: #2255cc; }
94
95
96ul, ol { margin-left: 2em; }
97ol { list-style-type: decimal; }
98
99/* remove margins for navigation lists */
100nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
101
102small { font-size: 85%; }
103strong, th { font-weight: bold; }
104
105td { vertical-align: top; }
106
107/* set sub, sup without affecting line-height: gist.github.com/413930 */
108sub, sup { font-size: 75%; line-height: 0; position: relative; }
109sup { top: -0.5em; }
110sub { bottom: -0.25em; }
111
112pre {
113  /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
114  white-space: pre; white-space: pre-wrap; white-space: pre-line; word-wrap: break-word;
115  padding: 15px;
116}
117
118textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
119
120.ie6 legend, .ie7 legend { margin-left: -7px; } /* thnx ivannikolic! */
121
122/* align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
123input[type="radio"] { vertical-align: text-bottom; }
124input[type="checkbox"] { vertical-align: bottom; }
125.ie7 input[type="checkbox"] { vertical-align: baseline; }
126.ie6 input { vertical-align: text-bottom; }
127
128/* hand cursor on clickable input elements */
129label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
130
131/* webkit browsers add a 2px margin outside the chrome of form elements */
132button, input, select, textarea { margin: 0; }
133
134/* colors for form validity */
135input:valid, textarea:valid   {  }
136input:invalid, textarea:invalid {
137      border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;
138}
139.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
140
141
142/* These selection declarations have to be separate.
143   No text-shadow: twitter.com/miketaylr/status/12228805301
144   Also: hot pink. */
145::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
146::selection { background:#FF5E99; color:#fff; text-shadow: none; }
147
148/*  j.mp/webkit-tap-highlight-color */
149a:link { -webkit-tap-highlight-color: #FF5E99; }
150
151/* make buttons play nice in IE:
152   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
153button {  width: auto; overflow: visible; }
154
155/* bicubic resizing for non-native sized IMG:
156   code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
157.ie7 img { -ms-interpolation-mode: bicubic; }
158
159
160 /* Primary Styles
161    Author:
162 */
163
164html, body {
165   background-color: #444;
166}
167h1 {
168   margin: 5px 10px; font-size: 26px; font-family: 'Carter One', arial, serif;
169   text-shadow: 0px 1px 1px #000; color: #eee; 
170}
171p { margin-bottom: 1em;}
172em {font-style: italic;}
173#container {position: relative;}
174#about {
175   width: 250px;
176   display:none; position: absolute; top: 5px; right: 10px;z-index: 2;
177   background-color: #333; padding: 10px;
178   -moz-border-radius: 12px; 
179   -webkit-border-radius: 12px; 
180   border-radius: 12px; 
181   -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; 
182   -moz-box-shadow: 0px 0px 4px #000; 
183   -webkit-box-shadow: 0px 0px 4px #000; 
184   box-shadow: 0px 0px 4px #000; 
185}
186.handle {float: right;margin: 5px 15px 0 0;}
187.button {
188   padding: 2px 10px; cursor: pointer;
189   -moz-border-radius: 20px; 
190   -webkit-border-radius: 20px; 
191   border-radius: 20px; 
192   -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; 
193   color: #fff !important; text-decoration: none !important;
194   background-color: #3366ff;
195   background-image: -webkit-gradient(linear, left top, left bottom, from(#3366ff), to(#335599)); 
196   background-image: -webkit-linear-gradient(top, #3366ff, #335599); 
197   background-image: -moz-linear-gradient(top, #3366ff, #335599); 
198   background-image: -ms-linear-gradient(top, #3366ff, #335599); 
199   background-image: -o-linear-gradient(top, #3366ff, #335599); 
200   background-image: linear-gradient(top, #3366ff, #335599);
201   filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#3366ff', EndColorStr='#335599'); 
202}
203.button:hover {
204   background-color: #335599;
205   background-image: -webkit-gradient(linear, left top, left bottom, from(#335599), to(#3366ff)); 
206   background-image: -webkit-linear-gradient(top, #335599, #3366ff); 
207   background-image: -moz-linear-gradient(top, #335599, #3366ff); 
208   background-image: -ms-linear-gradient(top, #335599, #3366ff); 
209   background-image: -o-linear-gradient(top, #335599, #3366ff); 
210   background-image: linear-gradient(top, #335599, #3366ff);
211            filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#335599', EndColorStr='#3366ff'); 
212   
213}
214
215
216
217
218
219
220
221
222
223
224
225
226/*
227 * Non-semantic helper classes: please define your styles before this section.
228 */
229
230/* for image replacement */
231.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
232
233/* Hide for both screenreaders and browsers
234   css-discuss.incutio.com/wiki/Screenreader_Visibility */
235.hidden { display: none; visibility: hidden; }
236
237/* Hide only visually, but have it available for screenreaders: by Jon Neal
238  www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
239.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
240
241/* Hide visually and from screenreaders, but maintain layout */
242.invisible { visibility: hidden; }
243
244/* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
245.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; visibility: hidden; }
246.clearfix:after { clear: both; }
247/* fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
248.clearfix { zoom: 1; }
249
250
251
252/*
253 * media queries for responsive design
254 * these follow after primary styles so they will successfully override.
255 */
256
257@media all and (orientation:portrait) {
258  /* style adjustments for portrait mode goes here */
259
260}
261
262@media all and (orientation:landscape) {
263  /* style adjustments for landscape mode goes here */
264
265}
266
267/* Grade-A Mobile Browsers (Opera Mobile, Mobile Safari, Android Chrome)
268   consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
269@media screen and (max-device-width: 480px) {
270
271
272  /* uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you
273     j.mp/textsizeadjust
274  html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
275}
276
277/*
278 * print styles
279 * inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/
280 */
281@media print {
282  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
283  -ms-filter: none !important; } /* black prints faster: sanbeiji.com/archives/953 */
284  a, a:visited { color: #444 !important; text-decoration: underline; }
285  a[href]:after { content: " (" attr(href) ")"; }
286  abbr[title]:after { content: " (" attr(title) ")"; }
287  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* don't show links for images, or javascript/internal links */
288  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
289  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
290  tr, img { page-break-inside: avoid; }
291  @page { margin: 0.5cm; }
292  p, h2, h3 { orphans: 3; widows: 3; }
293  h2, h3{ page-break-after: avoid; }
294}
295