/samples/scalate-presentation/src/styles/w3c-red.css

http://github.com/scalate/scalate · CSS · 491 lines · 398 code · 68 blank · 25 comment · 0 complexity · 10b6afaa80641dbc01f7e51e2c4690fc MD5 · raw file

  1. <% attributes("layout") = "" %>
  2. /* based on w3c-blue.css
  3. Copyright (c) 2005-2010 W3C (MIT, ERCIM, Keio), All Rights Reserved.
  4. W3C liability, trademark, document use and software licensing
  5. rules apply, see:
  6. http://www.w3.org/Consortium/Legal/copyright-documents
  7. http://www.w3.org/Consortium/Legal/copyright-software
  8. */
  9. body
  10. {
  11. margin: 0 0 0 0;
  12. padding: 0 0 0 0;
  13. width: 100%;
  14. height: 100%;
  15. color: black;
  16. background-color: white;
  17. font-family: "Gill Sans MT", "Gill Sans", GillSans, sans-serif;
  18. font-size: 14pt;
  19. }
  20. div.slide.titlepage {
  21. text-align: center;
  22. }
  23. div.slide.titlepage h1 {
  24. padding-top: 40%;
  25. }
  26. div.slide {
  27. z-index: 20;
  28. margin: 0 0 0 0;
  29. padding: 0;
  30. border-width: 0;
  31. top: 0;
  32. bottom: 0;
  33. left: 0;
  34. right: 0;
  35. line-height: 120%;
  36. background-color: transparent;
  37. }
  38. div.background {
  39. z-index: 1;
  40. position: absolute;
  41. vertical-align: bottom;
  42. left: 0;
  43. right: 0;
  44. top: 0;
  45. bottom: auto;
  46. height: 4.1em;
  47. padding: 0 0 0 0.2em;
  48. margin: 0 0 0 0;
  49. border-width: 0;
  50. background-color: #010101;
  51. }
  52. div.background img {
  53. height: 4em;
  54. }
  55. /* this rule is hidden from IE which doesn't support + selector */
  56. div.slide + div[class].slide { page-break-before: always;}
  57. div.slide h1 {
  58. padding-left: 3em;
  59. padding-right: 3em;
  60. padding-top: 0.1em;
  61. margin-bottom: 0.8em;
  62. margin-top: -0.05em;
  63. margin-left: 0;
  64. margin-right: 0;
  65. min-height: 2.3em;
  66. color: white;
  67. height: 2.2em;
  68. font-size: 160%;
  69. line-height: 1.1em;
  70. }
  71. div.slide h1 a {
  72. color: white;
  73. text-decoration: none;
  74. }
  75. div.slide h1 a:link {
  76. color: white;
  77. text-decoration: none;
  78. }
  79. div.slide h1 a:visited {
  80. color: white;
  81. text-decoration: none;
  82. }
  83. div.slide h1 a:hover {
  84. color: white;
  85. text-decoration: underline;
  86. }
  87. div.slide h1 a:active {
  88. color: red;
  89. text-decoration: underline;
  90. }
  91. #head-icon {
  92. margin-top: 0.5em;
  93. margin-bottom: 0;
  94. margin-left: 0;
  95. margin-right: 1em;
  96. background: #010101;
  97. border-width: 0;
  98. height: 3em;
  99. max-width: 3em;
  100. z-index: 2;
  101. float: left;
  102. }
  103. #head-logo {
  104. margin: 0;
  105. margin-top: 0.25em;
  106. padding-top: 0.25em;
  107. padding-bottom: 0.2em;
  108. padding-left: 0;
  109. padding-right: 0;
  110. height: 3.2em;
  111. width: 4.8em;
  112. float: right;
  113. z-index: 2;
  114. background: #010101;
  115. }
  116. #head-logo-fallback {
  117. margin: 0;
  118. padding: 0;
  119. margin-top: -0.8em;
  120. width: 4.8em;
  121. float: right;
  122. z-index: 2;
  123. }
  124. /* the next two classes support vertical and horizontal centering */
  125. div.vbox {
  126. float: left;
  127. height: 40%;
  128. width: 50%;
  129. margin-top: -240px;
  130. }
  131. div.hbox {
  132. width:60%;
  133. margin-top: 0;
  134. margin-left:auto;
  135. margin-right:auto;
  136. height: 60%;
  137. border:1px solid silver;
  138. background:#F0F0F0;
  139. overflow:auto;
  140. text-align:left;
  141. clear:both;
  142. }
  143. /* styling for named background */
  144. div.background.slanty {
  145. z-index: 2;
  146. bottom: 0;
  147. height: 100%;
  148. background: transparent;
  149. }
  150. div.background.slanty img { margin-top: 4em; width: 100%; height: 80% }
  151. /* the following makes the pre background translucent */
  152. /* opacity is a CSS3 property but supported by Mozilla family */
  153. /* filter is an IE specific feature that also requires width */
  154. div.slide.slanty pre {
  155. width: 93%; /* needed for IE filter to work */
  156. opacity: .8;
  157. filter: alpha(opacity=80);
  158. }
  159. img.withBorder {
  160. border: 2px solid #c60;
  161. padding: 4px;
  162. }
  163. li pre { margin-left: 0; }
  164. @media print { pre { font-size: 60% } }
  165. blockquote { font-style: italic }
  166. img { background-color: transparent }
  167. p.copyright { font-size: smaller }
  168. .center { text-align: center }
  169. .footnote { font-size: smaller; margin-left: 2em; }
  170. a img { border-width: 0; border-style: none }
  171. a:visited { color: navy }
  172. a:link { color: navy }
  173. a:hover { color: red; text-decoration: underline }
  174. a:active { color: red; text-decoration: underline }
  175. a {text-decoration: none}
  176. .navbar a:link {color: white}
  177. .navbar a:visited {color: yellow}
  178. .navbar a:active {color: red}
  179. .navbar a:hover {color: red}
  180. ul { list-style-type: square; }
  181. ul ul { list-style-type: disc; }
  182. ul ul ul { list-style-type: circle; }
  183. ul ul ul ul { list-style-type: disc; }
  184. li { margin-left: 0.5em; margin-top: 0.5em; }
  185. li li { font-size: 85%; font-style: italic }
  186. li li li { font-size: 85%; font-style: normal }
  187. div dt
  188. {
  189. margin-left: 0;
  190. margin-top: 1em;
  191. margin-bottom: 0.5em;
  192. font-weight: bold;
  193. }
  194. div dd
  195. {
  196. margin-left: 2em;
  197. margin-bottom: 0.5em;
  198. }
  199. p,pre,ul,ol,blockquote,h2,h3,h4,h5,h6,dl,table {
  200. margin-left: 1em;
  201. margin-right: 1em;
  202. }
  203. p.subhead { font-weight: bold; margin-top: 2em; }
  204. div.cover p.explanation {
  205. font-style: italic;
  206. margin-top: 3em;
  207. }
  208. .smaller { font-size: smaller }
  209. td,th { padding: 0.2em }
  210. ul {
  211. margin: 0.5em 1.5em 0.5em 1.5em;
  212. padding: 0;
  213. }
  214. ol {
  215. margin: 0.5em 1.5em 0.5em 1.5em;
  216. padding: 0;
  217. }
  218. ul { list-style-type: square; }
  219. ul ul { list-style-type: disc; }
  220. ul ul ul { list-style-type: circle; }
  221. ul ul ul ul { list-style-type: disc; }
  222. li { margin-left: 0.5em; margin-top: 0.5em; }
  223. li li { font-size: 85%; font-style: italic }
  224. li li li { font-size: 85%; font-style: normal }
  225. ul li {
  226. list-style: none;
  227. background: transparent url(../graphics/bullet.png) no-repeat 0em .45em;
  228. background-size: .6em; -webkit-background-size: .6em; -o-background-size: .6em; -khtml-background-size: .6em;
  229. padding: 0 0 0 1.2em;
  230. }
  231. /* workaround IE's failure to support background on li for print media */
  232. @media print { ul li { list-style: disc; padding-left: 0; background: none; } }
  233. ol li {
  234. margin: 0.1em 0em 0.6em 1.5em;
  235. padding: 0 0 0 0px;
  236. line-height: 140%;
  237. }
  238. li li {
  239. font-size: 85%;
  240. font-style: italic;
  241. list-style-type: disc;
  242. background: transparent;
  243. padding: 0 0 0 0;
  244. }
  245. li li li {
  246. font-size: 85%;
  247. font-style: normal;
  248. list-style-type: circle;
  249. background: transparent;
  250. padding: 0 0 0 0;
  251. }
  252. li li li li {
  253. list-style-type: disc;
  254. background: transparent;
  255. padding: 0 0 0 0;
  256. }
  257. /* rectangular blue bullet + unfold/nofold/fold widget */
  258. /*
  259. setting class="outline on ol or ul makes it behave as an
  260. ouline list where blocklevel content in li elements is
  261. hidden by default and can be expanded or collapsed with
  262. mouse click. Set class="expand" on li to override default
  263. */
  264. ol.outline li:hover { cursor: pointer }
  265. ol.outline li.nofold:hover { cursor: default }
  266. ul.outline li:hover { cursor: pointer }
  267. ul.outline li.nofold:hover { cursor: default }
  268. ol.outline { list-style:decimal; }
  269. ol.outline ol { list-style-type:lower-alpha }
  270. ol.outline li.nofold {
  271. padding: 0 0 0 20px;
  272. background: transparent url(../graphics/nofold-dim.gif) no-repeat 0px 0.3em;
  273. }
  274. ol.outline li.unfolded {
  275. padding: 0 0 0 20px;
  276. background: transparent url(../graphics/fold-dim.gif) no-repeat 0px 0.3em;
  277. }
  278. ol.outline li.folded {
  279. padding: 0 0 0 20px;
  280. background: transparent url(../graphics/unfold-dim.gif) no-repeat 0px 0.3em;
  281. }
  282. ol.outline li.unfolded:hover {
  283. padding: 0 0 0 20px;
  284. background: transparent url(../graphics/fold.gif) no-repeat 0px 0.3em;
  285. }
  286. ol.outline li.folded:hover {
  287. padding: 0 0 0 20px;
  288. background: transparent url(../graphics/unfold.gif) no-repeat 0px 0.3em;
  289. }
  290. ul.outline li.nofold {
  291. padding: 0 0 0 52px;
  292. background: transparent url(../graphics/bullet-nofold-dim.gif) no-repeat 5px 0.3em;
  293. }
  294. ul.outline li.unfolded {
  295. padding: 0 0 0 52px;
  296. background: transparent url(../graphics/bullet-fold-dim.gif) no-repeat 5px 0.3em;
  297. }
  298. ul.outline li.folded {
  299. padding: 0 0 0 52px;
  300. background: transparent url(../graphics/bullet-unfold-dim.gif) no-repeat 5px 0.3em;
  301. }
  302. ul.outline li.unfolded:hover {
  303. padding: 0 0 0 52px;
  304. background: transparent url(../graphics/bullet-fold.gif) no-repeat 5px 0.3em;
  305. }
  306. ul.outline li.folded:hover {
  307. padding: 0 0 0 52px;
  308. background: transparent url(../graphics/bullet-unfold.gif) no-repeat 5px 0.3em;
  309. }
  310. li ul.outline li.nofold {
  311. padding: 0 0 0 21px;
  312. background: transparent url(../graphics/nofold-dim.gif) no-repeat 5px 0.3em;
  313. }
  314. li ul.outline li.unfolded {
  315. padding: 0 0 0 21px;
  316. background: transparent url(../graphics/fold-dim.gif) no-repeat 5px 0.3em;
  317. }
  318. li ul.outline li.folded {
  319. padding: 0 0 0 21px;
  320. background: transparent url(../graphics/unfold-dim.gif) no-repeat 5px 0.3em;
  321. }
  322. li ul.outline li.unfolded:hover {
  323. padding: 0 0 0 21px;
  324. background: transparent url(../graphics/fold.gif) no-repeat 5px 0.3em;
  325. }
  326. li ul.outline li.folded:hover {
  327. padding: 0 0 0 21px;
  328. background: transparent url(../graphics/unfold.gif) no-repeat 5px 0.3em;
  329. }
  330. img.withBorder {
  331. border: 2px solid #c60;
  332. padding: 4px;
  333. }
  334. div.header {
  335. position: absolute;
  336. z-index: 2;
  337. left: 0;
  338. right: 0;
  339. top: 0;
  340. bottom: auto;
  341. height: 2.95em;
  342. width: 100%;
  343. padding: 0 0 0 0;
  344. margin: 0 0 0 0;
  345. border-width: 0;
  346. border-style: solid;
  347. background-color: #005A9C;
  348. border-bottom-width: thick;
  349. border-bottom-color: #95ABD0;
  350. }
  351. div.footer {
  352. position: absolute;
  353. z-index: 80;
  354. left: 0;
  355. right: 0;
  356. top: auto;
  357. bottom: 0;
  358. height: 3.5em;
  359. margin: 0;
  360. font-size: 80%;
  361. font-weight: bold;
  362. padding-left: 1em;
  363. padding-right: 0;
  364. padding-top: 0.3em;
  365. padding-bottom: 0;
  366. color: #003366;
  367. background-color: #95ABD0;
  368. }
  369. /* this is a hack to hide property from IE6 and below */
  370. div[class="footer"] {
  371. position: fixed;
  372. }
  373. #hidden-bullet {
  374. visibility: hidden;
  375. display: none;
  376. }
  377. div.slide.cover {
  378. color: white;
  379. background-color: #010101;
  380. padding-top: 0;
  381. padding-right: 0;
  382. padding-left: 3em;
  383. height: 100%;
  384. }
  385. div.slide.cover h1 {
  386. margin: 0;
  387. padding: 0.5em;
  388. color: white;
  389. height: auto;
  390. }
  391. div.slide.cover h2 {
  392. color: white;
  393. }
  394. div.slide.cover a {
  395. color: white;
  396. }
  397. div.slide.cover a:visited { color: white }
  398. div.slide.cover a:link { color: white }
  399. div.slide.cover a:hover { color: yellow; text-decoration: underline }
  400. div.slide.cover a:active { color: yellow; text-decoration: underline }
  401. div.slide.cover a:hover, div.slide.cover a:active {
  402. color: yellow; text-decoration: underline;
  403. }
  404. div.slide.cover img.cover {
  405. margin: 0 0 0 0;
  406. float: right;
  407. padding-bottom: 4em;
  408. width: 50%;
  409. overflow: hidden;
  410. }
  411. div.slide.cover a:hover, div.slide.cover a:active {
  412. color: yellow; text-decoration: underline;
  413. }
  414. /* for Bert as an ardent user of the old W3C slidemaker tool */
  415. div.comment { display: none; visibility: hidden }
  416. @media print {
  417. div.slide h1 { background: transparent; color: black }
  418. div.slide.cover { background: transparent; color: black }
  419. div.slide.cover h1 { background: transparent; color: black }
  420. div.comment { display: block; visibility: visible }
  421. }