styles.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. /*
  2. Google HTML5 slides template
  3. Authors: Luke Mah?? (code)
  4. Marcin Wichary (code and design)
  5. Dominic Mazzoni (browser compatibility)
  6. Charles Chen (ChromeVox support)
  7. URL: http://code.google.com/p/html5slides/
  8. */
  9. /* Framework */
  10. @import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono);
  11. article p{
  12. text-align:justify;
  13. }
  14. html {
  15. height: 100%;
  16. }
  17. body {
  18. margin: 0;
  19. padding: 0;
  20. display: block !important;
  21. height: 100%;
  22. min-height: 740px;
  23. overflow-x: hidden;
  24. overflow-y: auto;
  25. background: rgb(215, 215, 215);
  26. background: -o-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
  27. background: -moz-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
  28. background: -webkit-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
  29. background: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 500, from(rgb(240, 240, 240)), to(rgb(190, 190, 190)));
  30. -webkit-font-smoothing: antialiased;
  31. }
  32. .slides {
  33. width: 100%;
  34. height: 100%;
  35. left: 0;
  36. top: 0;
  37. position: absolute;
  38. -webkit-transform: translate3d(0, 0, 0);
  39. }
  40. .slides > article {
  41. display: block;
  42. position: absolute;
  43. overflow: hidden;
  44. width: 900px;
  45. height: 700px;
  46. left: 50%;
  47. top: 50%;
  48. margin-left: -450px;
  49. margin-top: -350px;
  50. padding: 40px 60px;
  51. box-sizing: border-box;
  52. -o-box-sizing: border-box;
  53. -moz-box-sizing: border-box;
  54. -webkit-box-sizing: border-box;
  55. border-radius: 10px;
  56. -o-border-radius: 10px;
  57. -moz-border-radius: 10px;
  58. -webkit-border-radius: 10px;
  59. background-color: white;
  60. box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  61. border: 1px solid rgba(0, 0, 0, .3);
  62. transition: transform .3s ease-out;
  63. -o-transition: -o-transform .3s ease-out;
  64. -moz-transition: -moz-transform .3s ease-out;
  65. -webkit-transition: -webkit-transform .3s ease-out;
  66. }
  67. .slides.layout-widescreen > article {
  68. margin-left: -550px;
  69. width: 1100px;
  70. }
  71. .slides.layout-faux-widescreen > article {
  72. margin-left: -550px;
  73. width: 1100px;
  74. padding: 40px 160px;
  75. }
  76. .slides.template-default > article:not(.nobackground):not(.biglogo) {
  77. /* background: url(images/slidify-logo-small.png) 765px 650px no-repeat; */
  78. background-color: white;
  79. }
  80. .slides.template-io2011 > article:not(.nobackground):not(.biglogo) {
  81. /*background: url(images/colorbar.png) 0 600px repeat-x,
  82. url(images/googleio-logo.png) 640px 625px no-repeat;*/
  83. background-size: 100%, 225px;
  84. background-color: white;
  85. }
  86. .slides.layout-widescreen > article:not(.nobackground):not(.biglogo),
  87. .slides.layout-faux-widescreen > article:not(.nobackground):not(.biglogo) {
  88. background-position-x: 0, 840px;
  89. }
  90. /* Clickable/tappable areas */
  91. .slide-area {
  92. z-index: 1000;
  93. position: absolute;
  94. left: 0;
  95. top: 0;
  96. width: 150px;
  97. height: 700px;
  98. left: 50%;
  99. top: 50%;
  100. cursor: pointer;
  101. margin-top: -350px;
  102. tap-highlight-color: transparent;
  103. -o-tap-highlight-color: transparent;
  104. -moz-tap-highlight-color: transparent;
  105. -webkit-tap-highlight-color: transparent;
  106. }
  107. #prev-slide-area {
  108. margin-left: -550px;
  109. }
  110. #next-slide-area {
  111. margin-left: 400px;
  112. }
  113. .slides.layout-widescreen #prev-slide-area,
  114. .slides.layout-faux-widescreen #prev-slide-area {
  115. margin-left: -650px;
  116. }
  117. .slides.layout-widescreen #next-slide-area,
  118. .slides.layout-faux-widescreen #next-slide-area {
  119. margin-left: 500px;
  120. }
  121. /* Slide styles */
  122. .slides.template-default article.biglogo {
  123. background: white url(images/slidify-logo.jpg) 50% 50% no-repeat;
  124. }
  125. .slides.template-io2011 article.biglogo {
  126. background: white url(images/googleio-logo.png) 50% 50% no-repeat;
  127. background-size: 600px;
  128. }
  129. /* Slides */
  130. .slides > article {
  131. display: none;
  132. }
  133. .slides > article.far-past {
  134. display: block;
  135. transform: translate(-2040px);
  136. -o-transform: translate(-2040px);
  137. -moz-transform: translate(-2040px);
  138. -webkit-transform: translate3d(-2040px, 0, 0);
  139. }
  140. .slides > article.past {
  141. display: block;
  142. transform: translate(-1020px);
  143. -o-transform: translate(-1020px);
  144. -moz-transform: translate(-1020px);
  145. -webkit-transform: translate3d(-1020px, 0, 0);
  146. }
  147. .slides > article.current {
  148. display: block;
  149. transform: translate(0);
  150. -o-transform: translate(0);
  151. -moz-transform: translate(0);
  152. -webkit-transform: translate3d(0, 0, 0);
  153. }
  154. .slides > article.next {
  155. display: block;
  156. transform: translate(1020px);
  157. -o-transform: translate(1020px);
  158. -moz-transform: translate(1020px);
  159. -webkit-transform: translate3d(1020px, 0, 0);
  160. }
  161. .slides > article.far-next {
  162. display: block;
  163. transform: translate(2040px);
  164. -o-transform: translate(2040px);
  165. -moz-transform: translate(2040px);
  166. -webkit-transform: translate3d(2040px, 0, 0);
  167. }
  168. .slides.layout-widescreen > article.far-past,
  169. .slides.layout-faux-widescreen > article.far-past {
  170. display: block;
  171. transform: translate(-2260px);
  172. -o-transform: translate(-2260px);
  173. -moz-transform: translate(-2260px);
  174. -webkit-transform: translate3d(-2260px, 0, 0);
  175. }
  176. .slides.layout-widescreen > article.past,
  177. .slides.layout-faux-widescreen > article.past {
  178. display: block;
  179. transform: translate(-1130px);
  180. -o-transform: translate(-1130px);
  181. -moz-transform: translate(-1130px);
  182. -webkit-transform: translate3d(-1130px, 0, 0);
  183. }
  184. .slides.layout-widescreen > article.current,
  185. .slides.layout-faux-widescreen > article.current {
  186. display: block;
  187. transform: translate(0);
  188. -o-transform: translate(0);
  189. -moz-transform: translate(0);
  190. -webkit-transform: translate3d(0, 0, 0);
  191. }
  192. .slides.layout-widescreen > article.next,
  193. .slides.layout-faux-widescreen > article.next {
  194. display: block;
  195. transform: translate(1130px);
  196. -o-transform: translate(1130px);
  197. -moz-transform: translate(1130px);
  198. -webkit-transform: translate3d(1130px, 0, 0);
  199. }
  200. .slides.layout-widescreen > article.far-next,
  201. .slides.layout-faux-widescreen > article.far-next {
  202. display: block;
  203. transform: translate(2260px);
  204. -o-transform: translate(2260px);
  205. -moz-transform: translate(2260px);
  206. -webkit-transform: translate3d(2260px, 0, 0);
  207. }
  208. /* Styles for slides */
  209. .slides > article {
  210. font-family: 'Open Sans', Arial, sans-serif;
  211. color: rgb(102, 102, 102);
  212. /* text-shadow: 0 1px 1px rgba(0, 0, 0, .1);
  213. */
  214. font-size: 30px;
  215. line-height: 36px;
  216. letter-spacing: -1px;
  217. }
  218. b {
  219. font-weight: 600;
  220. }
  221. .blue {
  222. color: rgb(0, 102, 204);
  223. }
  224. .yellow {
  225. color: rgb(255, 211, 25);
  226. }
  227. .green {
  228. color: rgb(0, 138, 53);
  229. }
  230. .red {
  231. color: rgb(255, 0, 0);
  232. }
  233. .black {
  234. color: black;
  235. }
  236. .white {
  237. color: white;
  238. }
  239. a {
  240. color: rgb(0, 102, 204);
  241. }
  242. a:visited {
  243. color: rgba(0, 102, 204, .75);
  244. }
  245. a:hover {
  246. color: black;
  247. }
  248. p {
  249. margin: 0;
  250. padding: 0;
  251. margin-top: 20px;
  252. }
  253. p:first-child {
  254. margin-top: 0;
  255. }
  256. h1 {
  257. font-size: 60px;
  258. line-height: 60px;
  259. padding: 0;
  260. margin: 0;
  261. margin-top: 200px;
  262. padding-right: 40px;
  263. font-weight: 600;
  264. letter-spacing: -3px;
  265. color: rgb(51, 51, 51);
  266. }
  267. h2 {
  268. font-size: 45px;
  269. line-height: 45px;
  270. position: absolute;
  271. bottom: 150px;
  272. padding: 0;
  273. margin: 0;
  274. padding-right: 40px;
  275. font-weight: 600;
  276. letter-spacing: -2px;
  277. color: rgb(51, 51, 51);
  278. }
  279. h3 {
  280. font-size: 30px;
  281. line-height: 36px;
  282. padding: 0;
  283. margin: 0;
  284. padding-right: 40px;
  285. font-weight: 600;
  286. letter-spacing: -1px;
  287. color: rgb(51, 51, 51);
  288. }
  289. article.fill h3 {
  290. background: rgba(255, 255, 255, .75);
  291. padding-top: .2em;
  292. padding-bottom: .3em;
  293. margin-top: -.2em;
  294. margin-left: -60px;
  295. padding-left: 60px;
  296. margin-right: -60px;
  297. padding-right: 60px;
  298. }
  299. ul {
  300. list-style: square;
  301. margin: 0;
  302. padding: 2;
  303. margin-top: 40px;
  304. margin-left: .75em;
  305. }
  306. ul:first-child {
  307. margin-top: 0;
  308. }
  309. ul ul {
  310. margin-top: .5em;
  311. }
  312. li {
  313. padding: 0;
  314. margin: 0;
  315. margin-bottom: .5em;
  316. }
  317. li::before {
  318. content: '';
  319. width: .75em;
  320. margin-left: -.75em;
  321. position: absolute;
  322. }
  323. pre {
  324. font-family: "Consolas", Monaco, monospace;
  325. font-size: 18px;
  326. line-height: 20px;
  327. /* padding: 5px 10px;*/
  328. /* letter-spacing: -1px;*/
  329. /* margin-top: 40px;
  330. margin-bottom: 40px;*/
  331. color: black;
  332. /* background: rgb(240, 240, 240);*/
  333. /* border: 1px solid rgb(224, 224, 224);*/
  334. /* box-shadow: inset 0 2px 6px rgba(0, 0, 0, .1);*/
  335. -webkit-border-radius:6px;
  336. -moz-border-radius:6px;
  337. border-radius:10px;
  338. overflow: hidden;
  339. }
  340. code {
  341. font-size: 1em;
  342. font-family: Consolas, monospace;
  343. color: black;
  344. }
  345. iframe {
  346. width: 100%;
  347. height: 620px;
  348. background: white;
  349. border: 1px solid rgb(192, 192, 192);
  350. margin: -1px;
  351. /*box-shadow: inset 0 2px 6px rgba(0, 0, 0, .1);*/
  352. }
  353. h3 + iframe {
  354. margin-top: 40px;
  355. height: 540px;
  356. }
  357. article.fill iframe {
  358. position: absolute;
  359. left: 0;
  360. top: 0;
  361. width: 100%;
  362. height: 100%;
  363. border: 0;
  364. margin: 0;
  365. border-radius: 10px;
  366. -o-border-radius: 10px;
  367. -moz-border-radius: 10px;
  368. -webkit-border-radius: 10px;
  369. z-index: -1;
  370. }
  371. article.fill img {
  372. position: absolute;
  373. left: 0;
  374. top: 0;
  375. min-width: 100%;
  376. min-height: 100%;
  377. border-radius: 10px;
  378. -o-border-radius: 10px;
  379. -moz-border-radius: 10px;
  380. -webkit-border-radius: 10px;
  381. z-index: -1;
  382. }
  383. img.centered {
  384. margin: 0 auto;
  385. display: block;
  386. }
  387. table {
  388. width: 100%;
  389. border-collapse: collapse;
  390. margin-top: 40px;
  391. }
  392. th {
  393. font-weight: 600;
  394. text-align: left;
  395. }
  396. td,
  397. th {
  398. border: 1px solid rgb(224, 224, 224);
  399. padding: 5px 10px;
  400. vertical-align: top;
  401. }
  402. /*.source {
  403. position: absolute;
  404. left: 60px;
  405. top: 644px;
  406. padding-right: 175px;
  407. font-size: 15px;
  408. letter-spacing: 0;
  409. line-height: 18px;
  410. }*/
  411. q {
  412. display: block;
  413. font-size: 60px;
  414. line-height: 72px;
  415. margin-left: 20px;
  416. margin-top: 100px;
  417. margin-right: 150px;
  418. }
  419. q::before {
  420. content: '“';
  421. position: absolute;
  422. display: inline-block;
  423. margin-left: -2.1em;
  424. width: 2em;
  425. text-align: right;
  426. font-size: 90px;
  427. color: rgb(192, 192, 192);
  428. }
  429. q::after {
  430. content: '”';
  431. position: absolute;
  432. margin-left: .1em;
  433. font-size: 90px;
  434. color: rgb(192, 192, 192);
  435. }
  436. div.author {
  437. text-align: right;
  438. font-size: 40px;
  439. margin-top: 20px;
  440. margin-right: 150px;
  441. }
  442. div.author::before {
  443. content: '—';
  444. }
  445. /* Size variants */
  446. article.smaller p,
  447. article.smaller ul {
  448. font-size: 20px;
  449. line-height: 24px;
  450. letter-spacing: 0;
  451. }
  452. article.smaller table {
  453. font-size: 20px;
  454. line-height: 24px;
  455. letter-spacing: 0;
  456. }
  457. article.smaller pre {
  458. font-size: 15px;
  459. line-height: 20px;
  460. letter-spacing: 0;
  461. }
  462. article.smaller q {
  463. font-size: 40px;
  464. line-height: 48px;
  465. }
  466. article.smaller q::before,
  467. article.smaller q::after {
  468. font-size: 60px;
  469. }
  470. /* Builds */
  471. .build > * {
  472. transition: opacity 0.5s ease-in-out 0.2s;
  473. -o-transition: opacity 0.5s ease-in-out 0.2s;
  474. -moz-transition: opacity 0.5s ease-in-out 0.2s;
  475. -webkit-transition: opacity 0.5s ease-in-out 0.2s;
  476. }
  477. .to-build {
  478. opacity: 0;
  479. }
  480. /* Pretty print */
  481. .prettyprint .str, /* string content */
  482. .prettyprint .atv { /* a markup attribute value */
  483. color: rgb(0, 138, 53);
  484. }
  485. .prettyprint .kwd, /* a keyword */
  486. .prettyprint .tag { /* a markup tag name */
  487. color: rgb(0, 102, 204);
  488. }
  489. .prettyprint .com { /* a comment */
  490. color: rgb(127, 127, 127);
  491. font-style: italic;
  492. }
  493. .prettyprint .lit { /* a literal value */
  494. color: rgb(127, 0, 0);
  495. }
  496. .prettyprint .pun, /* punctuation, lisp open bracket, lisp close bracket */
  497. .prettyprint .opn,
  498. .prettyprint .clo {
  499. color: rgb(127, 127, 127);
  500. }
  501. .prettyprint .typ, /* a type name */
  502. .prettyprint .atn, /* a markup attribute name */
  503. .prettyprint .dec,
  504. .prettyprint .var { /* a declaration; a variable name */
  505. color: rgb(127, 0, 127);
  506. }