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