style.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. /* Start: Recommended Isotope styles */
  2. /**** Isotope Filtering ****/
  3. .isotope-item {
  4. z-index: 2;
  5. }
  6. .isotope-hidden.isotope-item {
  7. pointer-events: none;
  8. z-index: 1;
  9. }
  10. /**** Isotope CSS3 transitions ****/
  11. .isotope,
  12. .isotope .isotope-item {
  13. -webkit-transition-duration: 0.8s;
  14. -moz-transition-duration: 0.8s;
  15. transition-duration: 0.8s;
  16. }
  17. .isotope {
  18. -webkit-transition-property: height, width;
  19. -moz-transition-property: height, width;
  20. transition-property: height, width;
  21. }
  22. .isotope .isotope-item {
  23. -webkit-transition-property: -webkit-transform, opacity;
  24. -moz-transition-property: -moz-transform, opacity;
  25. transition-property: transform, opacity;
  26. }
  27. /**** disabling Isotope CSS3 transitions ****/
  28. .isotope.no-transition,
  29. .isotope.no-transition .isotope-item,
  30. .isotope .isotope-item.no-transition {
  31. -webkit-transition-duration: 0s;
  32. -moz-transition-duration: 0s;
  33. transition-duration: 0s;
  34. }
  35. /* End: Recommended Isotope styles */
  36. /* disable CSS transitions for containers with infinite scrolling*/
  37. .isotope.infinite-scrolling {
  38. -webkit-transition: none;
  39. -moz-transition: none;
  40. transition: none;
  41. }
  42. /**** Base styles ****/
  43. html, body, div, span, object, iframe,
  44. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  45. abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
  46. small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
  47. fieldset, form, label, legend,
  48. table, caption, tbody, tfoot, thead, tr, th, td,
  49. article, aside, canvas, details, figcaption, figure,
  50. footer, header, hgroup, menu, nav, section, summary,
  51. time, mark, audio, video {
  52. margin: 0;
  53. padding: 0;
  54. border: 0;
  55. font-size: 100%;
  56. font: inherit;
  57. vertical-align: baseline;
  58. }
  59. article, aside, details, figcaption, figure,
  60. footer, header, hgroup, menu, nav, section {
  61. display: block;
  62. }
  63. body {
  64. padding: 20px;
  65. font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Arial, sans-serif;
  66. font-size: 13px;
  67. line-height: 1.7em;
  68. background: #1F1E1D;
  69. color: #FFF;
  70. }
  71. h1, h2, h3, p, ul, ol, pre, dl {
  72. margin-bottom: 1.0em;
  73. }
  74. h1, h2, #super-list, .element, .tagline, #index-list,
  75. .super-list .link {
  76. font-family: 'Helvetica Neue', Arial, sans-serif;
  77. }
  78. h1, h2, h3 { font-weight: bold; }
  79. h1 {
  80. font-size: 32px;
  81. line-height: 1.1em;
  82. }
  83. h2 {
  84. font-size: 24px;
  85. line-height: 1.1em;
  86. }
  87. ul, ol {
  88. margin-left: 1.5em;
  89. }
  90. a,
  91. a code {
  92. color: #FB4;
  93. text-decoration: none;
  94. }
  95. a:hover,
  96. a:hover code {
  97. color: #4BF;
  98. }
  99. a:active,
  100. a:active code {
  101. color: #1FB;
  102. background: black;
  103. }
  104. a img { border: none; }
  105. em { font-style: italic; }
  106. strong { font-weight: bold; }
  107. blockquote {
  108. padding-left: 1.0em;
  109. margin-left: 1.0em;
  110. border-left: 1px solid #333;
  111. font-style: italic;
  112. }
  113. /**** Isotope styles ****/
  114. /* required for containers to inherit vertical size from window */
  115. html,
  116. body {
  117. height: 100%;
  118. }
  119. #container {
  120. border: 1px solid #666;
  121. padding: 5px;
  122. margin-bottom: 20px;
  123. }
  124. .element {
  125. width: 110px;
  126. height: 110px;
  127. margin: 5px;
  128. float: left;
  129. overflow: hidden;
  130. position: relative;
  131. background: #888;
  132. color: #222;
  133. -webkit-border-top-right-radius: 1.2em;
  134. -moz-border-radius-topright: 1.2em;
  135. border-top-right-radius: 1.2em;
  136. }
  137. .element.alkali { background: #F00; background: hsl( 0, 100%, 50%); }
  138. .element.alkaline-earth { background: #F80; background: hsl( 36, 100%, 50%); }
  139. .element.lanthanoid { background: #FF0; background: hsl( 72, 100%, 50%); }
  140. .element.actinoid { background: #0F0; background: hsl( 108, 100%, 50%); }
  141. .element.transition { background: #0F8; background: hsl( 144, 100%, 50%); }
  142. .element.post-transition { background: #0FF; background: hsl( 180, 100%, 50%); }
  143. .element.metalloid { background: #08F; background: hsl( 216, 100%, 50%); }
  144. .element.other.nonmetal { background: #00F; background: hsl( 252, 100%, 50%); }
  145. .element.halogen { background: #F0F; background: hsl( 288, 100%, 50%); }
  146. .element.noble-gas { background: #F08; background: hsl( 324, 100%, 50%); }
  147. .element * {
  148. position: absolute;
  149. margin: 0;
  150. }
  151. .element .symbol {
  152. left: 0.2em;
  153. top: 0.4em;
  154. font-size: 3.8em;
  155. line-height: 1.0em;
  156. color: #FFF;
  157. }
  158. .element.large .symbol {
  159. font-size: 4.5em;
  160. }
  161. .element.fake .symbol {
  162. color: #000;
  163. }
  164. .element .name {
  165. left: 0.5em;
  166. bottom: 1.6em;
  167. font-size: 1.05em;
  168. }
  169. .element .weight {
  170. font-size: 0.9em;
  171. left: 0.5em;
  172. bottom: 0.5em;
  173. }
  174. .element .number {
  175. font-size: 1.25em;
  176. font-weight: bold;
  177. color: hsla(0,0%,0%,.5);
  178. right: 0.5em;
  179. top: 0.5em;
  180. }
  181. .variable-sizes .element.width2 { width: 230px; }
  182. .variable-sizes .element.height2 { height: 230px; }
  183. .variable-sizes .element.width2.height2 {
  184. font-size: 2.0em;
  185. }
  186. .element.large,
  187. .variable-sizes .element.large,
  188. .variable-sizes .element.large.width2.height2 {
  189. font-size: 3.0em;
  190. width: 350px;
  191. height: 350px;
  192. z-index: 100;
  193. }
  194. .clickable .element:hover {
  195. cursor: pointer;
  196. }
  197. .clickable .element:hover h3 {
  198. text-shadow:
  199. 0 0 10px white,
  200. 0 0 10px white
  201. ;
  202. }
  203. .clickable .element:hover h2 {
  204. color: white;
  205. }
  206. /**** Example Options ****/
  207. #options {
  208. padding-bottom: 1.0em;
  209. }
  210. #options h3 {
  211. margin-bottom: 0.2em;
  212. font-size: 15px;
  213. }
  214. #options h4 {
  215. font-weight: bold;
  216. }
  217. #options ul {
  218. margin: 0;
  219. list-style: none;
  220. }
  221. #options ul ul {
  222. margin-left: 1.5em;
  223. }
  224. #options li {
  225. float: left;
  226. margin-bottom: 0.2em;
  227. }
  228. #options li a {
  229. display: block;
  230. padding: 0.4em 0.5em;
  231. background-color: #DDD;
  232. color: #222;
  233. font-weight: bold;
  234. text-shadow: 0 1px hsla( 0, 0%, 100%, 0.5 );
  235. background-image: -moz-linear-gradient( -90deg,
  236. hsla( 0, 0%, 100%, 0.5 ) ,
  237. hsla( 0, 0%, 100%, 0.0 )
  238. );
  239. background-image: -webkit-gradient(linear, 0 top, 0 bottom,
  240. from( hsla( 0, 0%, 100%, 0.5 ) ),
  241. to( hsla( 0, 0%, 100%, 0.0 ) )
  242. );
  243. background-image: -o-linear-gradient( -90deg,
  244. hsla( 0, 0%, 100%, 0.5 ) ,
  245. hsla( 0, 0%, 100%, 0.0 )
  246. );
  247. }
  248. #options li a:hover {
  249. background-color: #5BF;
  250. }
  251. #options li a:active {
  252. background-color: #39D;
  253. -webkit-box-shadow: inset 0 2px 8px hsla( 0, 0%, 0%, 0.6 );
  254. -moz-box-shadow: inset 0 2px 8px hsla( 0, 0%, 0%, 0.6 );
  255. -o-box-shadow: inset 0 2px 8px hsla( 0, 0%, 0%, 0.6 );
  256. box-shadow: inset 0 2px 8px hsla( 0, 0%, 0%, 0.6 );
  257. }
  258. #options li a {
  259. border-left: 1px solid hsla( 0, 0%, 100%, 0.3 );
  260. border-right: 1px solid hsla( 0, 0%, 0%, 0.2 );
  261. }
  262. #options li:first-child a {
  263. border-radius: 7px 0 0 7px;
  264. border-left: none;
  265. }
  266. #options li:last-child a {
  267. border-radius: 0 7px 7px 0;
  268. }
  269. #options li a.selected {
  270. background-color: #13F;
  271. text-shadow: none;
  272. color: white;
  273. }
  274. /* Combination filter options*/
  275. #options .option-combo {
  276. display: inline-block;
  277. float: left;
  278. margin-right: 10px;
  279. }
  280. #options .option-combo ul {
  281. margin-right: 20px;
  282. display: inline-block;
  283. }
  284. #options .option-combo h2,
  285. #options .option-combo h4 {
  286. line-height: 34px;
  287. margin-bottom: 0;
  288. margin-right: 5px;
  289. display: inline-block;
  290. vertical-align: top;
  291. }
  292. /* Color shapes */
  293. .color-shape {
  294. width: 70px;
  295. height: 70px;
  296. margin: 5px;
  297. float: left;
  298. }
  299. .color-shape.round {
  300. -webkit-border-radius: 35px;
  301. -moz-border-radius: 35px;
  302. border-radius: 35px;
  303. }
  304. .color-shape.big.round {
  305. -webkit-border-radius: 75px;
  306. -moz-border-radius: 75px;
  307. border-radius: 75px;
  308. }
  309. .color-shape.red { background: red; }
  310. .color-shape.blue { background: blue; }
  311. .color-shape.yellow { background: yellow; }
  312. .color-shape.wide, .color-shape.big { width: 150px; }
  313. .color-shape.tall, .color-shape.big { height: 150px; }
  314. .color-shape a {
  315. display: block;
  316. height: 100%;
  317. }
  318. .color-shape a:hover {
  319. background: white;
  320. background: hsla( 0, 0%, 100%, 0.5 );
  321. }
  322. /**** Horizontal ****/
  323. .horizontal #container {
  324. height: 80%;
  325. }
  326. #copy {
  327. max-width: 640px;
  328. }
  329. /**** Photo demo ****/
  330. .photos .photo {
  331. width: 320px;
  332. margin: 5px;
  333. float: left;
  334. }
  335. .photos .photo img {
  336. display: block;
  337. width: 100%;
  338. }
  339. #content {
  340. margin-left: 210px;
  341. }
  342. .demos #content {
  343. height: 100%;
  344. }
  345. /**** Docs ****/
  346. .docs #content {
  347. max-width: 640px;
  348. }
  349. .docs #content a:hover {
  350. border-bottom: 1px dotted;
  351. }
  352. /**** Doc page nav ****/
  353. #site-nav {
  354. width: 200px;
  355. position: absolute;
  356. left: 10px;
  357. top: 0px;
  358. padding-top: 20px;
  359. font-size: 12px;
  360. }
  361. #site-nav h1 {
  362. font-size: 24px;
  363. margin-bottom: 0.5em;
  364. margin-top: 0;
  365. font-weight: bold;
  366. font-family: 'Helvetica Neue', Arial, sans-serif;
  367. }
  368. #site-nav h2 {
  369. font-size: 17px;
  370. font-weight: normal;
  371. margin: 0 0 0.3em;
  372. border-top: none;
  373. }
  374. #site-nav h1 a { color: #4FB; }
  375. #site-nav h1 a:hover { color: #4BF; }
  376. #site-nav ul {
  377. list-style: none;
  378. margin: 0 0 1.0em;
  379. font-weight: bold;
  380. }
  381. #site-nav ul ul { margin-bottom: 0; }
  382. #site-nav ul a {
  383. display: block;
  384. border: none;
  385. padding: 1px 5px;
  386. }
  387. #site-nav ul .current a {
  388. background: hsla( 0, 0%, 0%, 0.3 );
  389. color: #1BF;
  390. }
  391. #site-nav ul a:hover,
  392. #site-nav ul .current a:hover { color: white; }
  393. #site-nav ul .current .toc a {
  394. font-size: 12px;
  395. padding-left: 1.2em;
  396. font-weight: normal;
  397. }
  398. /**** Doc content ****/
  399. .docs #content h2 {
  400. border-top: 1px solid #333;
  401. padding-top: 0.8em;
  402. margin-bottom: 0.8em;
  403. }
  404. .docs #content h2:target {
  405. padding: 10px;
  406. background: white;
  407. color: #222;
  408. }
  409. .docs #content h3 {
  410. color: #FEC;
  411. background: hsla( 0, 0%, 75%, 0.05 );
  412. padding: 2px 0.5em;
  413. margin-bottom: 0.5em;
  414. font-size: 1.15em;
  415. }
  416. .docs #content h4 {
  417. margin-bottom: 0.5em;
  418. font-size: 14px;
  419. }
  420. footer {
  421. font-size: 12px;
  422. font-style: italic;
  423. border-top: 1px solid #333;
  424. padding: 0.8em 0;
  425. }
  426. pre {
  427. padding: 10px;
  428. }
  429. pre, code {
  430. background: black;
  431. color: white;
  432. font-family: 'Monaco', monospace, sans-serif;
  433. }
  434. #content code {
  435. font-size: 12px;
  436. }
  437. #content pre {
  438. line-height: 1.6em;
  439. }
  440. h3#options {
  441. padding-bottom: 0;
  442. }
  443. .option-def dl dt,
  444. .option-def dl dd {
  445. float: left;
  446. padding: 0 1.2em;;
  447. background: #161616;
  448. line-height: 36px;
  449. height: 36px;
  450. }
  451. .option-def dl.header dt,
  452. .option-def dl.header dd {
  453. background: #444;
  454. }
  455. .option-def dl .option-type {
  456. font-size: 13px;
  457. color: #AAA;
  458. font-style: italic;
  459. }
  460. .option-def dl dd {
  461. border-left: 1px solid #222;
  462. }
  463. /* Tagline */
  464. .docs .tagline {
  465. font-size: 22px;
  466. font-weight: 300;
  467. }
  468. /* as-is from MIT */
  469. .docs .as-is {
  470. font-size: 95%;
  471. }
  472. /* Commercial license blurb */
  473. .docs #commercial {
  474. background: white;
  475. padding: 10px;
  476. font-size: 14px;
  477. color: #1F1F1D;
  478. }
  479. .docs #commercial a { font-weight: bold;}
  480. /**** Pygments ****/
  481. code .s1,
  482. code .s { color: #78BD55; } /* string */
  483. code .mi, /* integer */
  484. code .cp, /* doctype */
  485. code .kc { color: #5298D4; } /*boolean*/
  486. code .k { color: #E39B79; } /* keyword */
  487. code .kd, /* storage */
  488. code .na { color: #A9D866; } /* markup attribute */
  489. code .p { color: #EDB; } /* punctuation */
  490. code .o { color: #F63; } /* operator */
  491. code .nb { color: #AA97AC;} /* support */
  492. /* comment */
  493. code .c,
  494. code .c1 { color: #666; font-style: italic; }
  495. code .nt { color: #A0C8FC; } /* Markup open tag */
  496. code .nf { color: #9EA8B8; } /* css id */
  497. code .nc { color: #A78352; } /* CSS class */
  498. code .m { color: #DE8E50; } /* CSS value */
  499. code .nd { color: #9FAD7E; } /* CSS pseudo selector */
  500. /**** Super list ****/
  501. /**** Sites using Isotope ****/
  502. #sites h2 {
  503. display: none;
  504. padding: 0.4em;
  505. line-height: 32px;
  506. margin-bottom: 0.4em;
  507. -webkit-transition: background-color 0.8s;
  508. -moz-transition: background-color 0.8s;
  509. -o-transition: background-color 0.8s;
  510. transition: background-color 0.8s;
  511. }
  512. #sites h2 img {
  513. display: inline-block;
  514. margin-right: 0.4em;
  515. vertical-align: bottom;
  516. }
  517. #sites h2.loading {
  518. background: white;
  519. color: #222;
  520. }
  521. #sites h2.error {
  522. background: red;
  523. color: #222;
  524. }
  525. #sites ul {
  526. margin: 0;
  527. }
  528. .super-list .example {
  529. list-style: none;
  530. float: left;
  531. width: 230px;
  532. margin: 5px;
  533. }
  534. .super-list .example a,
  535. .super-list .example b,
  536. .super-list .example img {
  537. display: block;
  538. }
  539. .super-list .example img { width: 100%; }
  540. .super-list .example a {
  541. background: #1F1E1D;
  542. }
  543. .super-list .example a:hover {
  544. background: white;
  545. color: #111;
  546. }
  547. .super-list .example b {
  548. font-weight: bold;
  549. line-height: 1.3em;
  550. padding: 3px;
  551. padding-top: 8px;
  552. }
  553. .super-list .link {
  554. float: left;
  555. position: relative;
  556. font-size: 24px;
  557. line-height: 1.2em;
  558. font-weight: 300;
  559. margin: 5px;
  560. }
  561. .super-list .link {
  562. width: 230px;
  563. height: 110px;
  564. }
  565. .super-list .link a {
  566. display: block;
  567. padding: 10px;
  568. padding-left: 65px;
  569. height: 90px;
  570. background: #1F1E1D;
  571. color: #FE5;
  572. -webkit-border-radius: 14px;
  573. -moz-border-radius: 14px;
  574. border-radius: 14px;
  575. }
  576. .super-list .link a:before {
  577. content: '➔';
  578. font-size: 70px;
  579. position: absolute;
  580. top: 30px;
  581. left: 5px;
  582. -webkit-transform: rotate(90deg);
  583. -moz-transform: rotate(90deg);
  584. -ms-transform: rotate(90deg);
  585. -o-transform: rotate(90deg);
  586. transform: rotate(90deg);
  587. }
  588. .super-list .link.away a:before {
  589. top: 25px;
  590. left: 0px;
  591. -webkit-transform: rotate(-45deg);
  592. -moz-transform: rotate(-45deg);
  593. -ms-transform: rotate(-45deg);
  594. -o-transform: rotate(-45deg);
  595. transform: rotate(-45deg);
  596. }
  597. .super-list .link a:hover {
  598. background: #E58;
  599. color: white;
  600. }
  601. .super-list .feature .name {
  602. bottom: auto;
  603. top: 140px;
  604. left: 18px;
  605. font-size: 20px;
  606. }
  607. /**** Infinite Scroll ****/
  608. #infscr-loading {
  609. position: fixed;
  610. text-align: center;
  611. bottom: 30px;
  612. left: 42%;
  613. z-index: 100;
  614. background: white;
  615. background: hsla( 0, 0%, 100%, 0.9 );
  616. padding: 20px;
  617. color: #222;
  618. font-size: 15px;
  619. font-weight: bold;
  620. -webkit-border-radius: 10px;
  621. -moz-border-radius: 10px;
  622. border-radius: 10px;
  623. }
  624. /* The Magnificent Clearfix: nicolasgallagher.com/micro-clearfix-hack/ */
  625. .clearfix:before, .clearfix:after { content: ""; display: table; }
  626. .clearfix:after { clear: both; }
  627. .clearfix { zoom: 1; }