07bd8777010aee06ede3781d813bac8c952c0d54296dd3aceb582e973dba8571ad8ee36e48b5a7bf68d7e9f7f2283fd5514bbd5c1b1d644df5c0332d46cc27 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. /*//// Base Styles ////*/
  2. div,
  3. article,
  4. section,
  5. main,
  6. footer,
  7. header,
  8. form,
  9. fieldset,
  10. pre,
  11. code,
  12. p,
  13. input[type="text"],
  14. input[type="tel"],
  15. input[type="email"],
  16. input[type="url"],
  17. input[type="password"] {
  18. box-sizing: border-box;
  19. }
  20. body {
  21. font-family: 'Source Sans Pro', sans-serif;
  22. background-color: rgb(162, 255, 224);
  23. color: #262626;
  24. margin: 0 1.5em;
  25. }
  26. h1 {
  27. font-size: 2.2em;
  28. }
  29. h2 {
  30. font-size: 2.0em;
  31. margin-top: 1.5em;
  32. }
  33. h3 {
  34. font-size: 1.8em;
  35. }
  36. table {
  37. border-collapse: collapse;
  38. background: white;
  39. box-shadow: 0px 0px 10px -4px #666;
  40. border: 1px solid white;
  41. }
  42. table td,
  43. table th {
  44. padding: 0.5em;
  45. border: 1px solid #ddd;
  46. }
  47. img {
  48. max-width: 100%;
  49. }
  50. a {
  51. color: black;
  52. text-decoration: underline;
  53. }
  54. /*//// Code Snippet Styles ////*/
  55. code,
  56. samp,
  57. kbd {
  58. background-color: #141414;
  59. color: #f7f7f7;
  60. font-family: "Inconsolata", "Menlo", "Consolas", monospace;
  61. font-size: 0.9em;
  62. padding: 2px 6px;
  63. text-align: left;
  64. border-radius: 3px;
  65. }
  66. pre {
  67. background-color: #141414;
  68. color: #f7f7f7;
  69. font-family: "Inconsolata", "Menlo", "Consolas", monospace;
  70. font-size: 0.9em;
  71. line-height: 1.2em;
  72. margin: 0;
  73. overflow: auto;
  74. padding: 1em;
  75. border-radius: 3px;
  76. }
  77. .examples pre,
  78. .hover-examples pre,
  79. .preview-examples pre {
  80. padding-left: 2.75em;
  81. border-radius: 0;
  82. }
  83. /* Override 'code' css rules if using 'pre > code' markup. */
  84. pre > code {
  85. font-size: 1em;
  86. padding: 0px;
  87. }
  88. /* for IE7 and IE6 */
  89. *:first-child+html pre {
  90. overflow: visible;
  91. overflow-x: auto;
  92. overflow-y: hidden;
  93. padding-bottom: 2em;
  94. }
  95. * html pre {
  96. overflow: visible;
  97. overflow-x: auto;
  98. padding-bottom: 2em;
  99. }
  100. /* Reset PrismJS' border styles */
  101. .main pre[class*="language-"],
  102. .example pre[class*="language-"] {
  103. border: 0;
  104. border-radius: 3px;
  105. }
  106. /*//// Page Styles ////*/
  107. .header {
  108. max-width: 720px;
  109. margin: 0 auto;
  110. padding-top: 1.5em;
  111. }
  112. .page-title {
  113. text-align: center;
  114. }
  115. .logo {
  116. display: block;
  117. margin: 0 auto;
  118. }
  119. .desc {
  120. padding: 1em 0;
  121. text-align: center;
  122. }
  123. .maindesc {
  124. font-size: 30px;
  125. margin-bottom: 1em;
  126. }
  127. .subdesc {
  128. font-size: 15px;
  129. }
  130. .more-examples {
  131. text-align: right;
  132. font-size: 12px;
  133. margin: 0 5px 0 0;
  134. }
  135. .main {
  136. line-height: 1.4;
  137. margin: 0 auto;
  138. max-width: 720px;
  139. }
  140. .used-by {
  141. text-align: center;
  142. position: relative;
  143. padding: 1em 0;
  144. }
  145. .used-by-label {
  146. font-size: 20px;
  147. text-align: center;
  148. font-weight: normal;
  149. }
  150. .used-by img {
  151. border-radius: 8px;
  152. opacity: 1;
  153. margin: 0px 10px;
  154. }
  155. .anchorlink-examples {
  156. float: right;
  157. margin: 0 0 1em 1em;
  158. box-shadow: 0px 0px 10px -3px #666;
  159. }
  160. .options-table {
  161. width: 100%;
  162. margin: 1em 0;
  163. }
  164. .minicol {
  165. width: 62px;
  166. }
  167. .footer {
  168. text-align: center;
  169. color: #777;
  170. }
  171. .footer a {
  172. color: #777;
  173. }
  174. /*///////////// Examples /////////////*/
  175. .examples,
  176. .hover-examples,
  177. .preview-examples {
  178. max-width: 720px;
  179. margin: 0 auto;
  180. display: -webkit-flex;
  181. display: flex;
  182. -webkit-flex-direction: row;
  183. flex-direction: row;
  184. -webkit-justify-content: center;
  185. justify-content: center;
  186. -webkit-flex-wrap: wrap;
  187. flex-wrap: wrap;
  188. -webkit-align-content: flex-end;
  189. align-content: flex-end;
  190. }
  191. .example {
  192. max-width: 350px;
  193. min-height: 160px;
  194. margin: 5px;
  195. }
  196. .example-label {
  197. font-size: 12px;
  198. color: #777;
  199. display: none;
  200. }
  201. .example-content {
  202. padding: 0 0 0 3.5em;
  203. overflow: hidden;
  204. position: relative;
  205. background: #fff;
  206. box-shadow: 0px 0px 10px -3px #666;
  207. }
  208. .example-code-link {
  209. width: 16px;
  210. position: absolute;
  211. top: 8px;
  212. right: 8px;
  213. font-family: Courier monospace;
  214. color: #aaa;
  215. text-decoration: none;
  216. }
  217. .example-code-link:hover:after,
  218. .example-code-link:focus:after {
  219. left: -50px;
  220. opacity: 1;
  221. -webkit-transition: all 0.25s ease-in;
  222. transition: all 0.25s ease-in;
  223. }
  224. .example-code-link:after {
  225. content: "SOURCE";
  226. font-family: Helvetica, Arial, sans-serif;
  227. font-size: 10px;
  228. line-height: 1;
  229. display: block;
  230. position: absolute;
  231. text-transform: uppercase;
  232. top: 7px;
  233. left: -45px;
  234. opacity: 0;
  235. -webkit-transition: all 0.25s ease-in;
  236. transition: all 0.25s ease-in;
  237. }
  238. .example-code {
  239. display: none;
  240. }
  241. .css {
  242. border-top: 1px solid #666;
  243. }
  244. .css,
  245. .js {
  246. position: relative;
  247. }
  248. .css::before,
  249. .js::before {
  250. left: 0;
  251. top: 0;
  252. padding: 1px 4px;
  253. color: white;
  254. background: #FF5231;
  255. position: absolute;
  256. font-size: 11px;
  257. text-transform: uppercase;
  258. }
  259. .css::before {
  260. content: 'css';
  261. }
  262. .js::before {
  263. content: 'js';
  264. }
  265. .example-content > p {
  266. width: 310px;
  267. }
  268. .anchorjs-link {
  269. color: #FF5231;
  270. }
  271. /*///// Styles within Examples /////*/
  272. .examples .example:nth-child(3) .anchorjs-link,
  273. .preview-examples .example:nth-child(2) .anchorjs-link {
  274. font-family: Helvetica, Arial, sans-serif;
  275. }
  276. .examples .example:nth-child(7) .anchorjs-link {
  277. font-weight: 200;
  278. margin-left: 1em;
  279. padding-right: 0.375em;
  280. font-size: 0.5em;
  281. border: 1px dashed #FFBAAC;
  282. vertical-align: middle;
  283. }
  284. .examples .example:nth-child(8) .anchorjs-link {
  285. width: 14px;
  286. height: 32px;
  287. margin-top: 6px;
  288. background: url('img/mini-logo.png') no-repeat;
  289. margin-left: -1.25em !important;
  290. }
  291. .examples .example:nth-child(9) .anchorjs-link:after {
  292. margin-left: 7px;
  293. margin-top: -4px;
  294. display: block;
  295. }
  296. .examples .example:nth-child(9) .anchorjs-link {
  297. background-color: #FF5231;
  298. height: 32px;
  299. width: 18px;
  300. border-radius: 50%;
  301. display: inline-block;
  302. color: white;
  303. margin-top: 4px;
  304. margin-left: -1.4em !important;
  305. }
  306. .examples .example:nth-child(11) .anchorjs-link {
  307. display: inline-block;
  308. background: url('img/hyperlink.svg') no-repeat;
  309. margin-left: 8px;
  310. width: 14px;
  311. height: 24px;
  312. }
  313. .examples .example:nth-child(12)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SAyMCw1IEMyMCwyLjUgMTcuNSwwIDE1LDAgTDE1LDAgWiBNNS42MDU0Njg3NSw3LjUgTDUuMDE5NTMxMjUsNy41IEMzLjc1LDcuNSAyLjUxOTUzMTI1LDYuMjUgMi41MTk1MzEyNSw1IEMyLjUxOTUzMTI1LDMuNzUgMy43ODkwNjI1LDIuNSA1LjAxOTUzMTI1LDIuNSBMOC43Njk1MzEyNSwyLjUgQzEwLDIuNSAxMS4yNjk1MzEyLDMuNzUgMTEuMjY5NTMxMiw1IEMxMS4yNjk1MzEyLDUuNDQ5MjE4NzUgMTEuMTMyODEyNSw1Ljg3ODkwNjI1IDEwLjkxNzk2ODgsNi4yNSBMMTMuNTkzNzUsNi4yNSBDMTMuNjkxNDA2Miw1LjgzOTg0Mzc1IDEzLjc1LDUuNDI5Njg3NSAxMy43NSw1IEMxMy43NSwyLjUgMTEuMjY5NTMxMiwwIDguNzY5NTMxMjUsMCBMNSwwIEMyLjUsMCAwLDIuNSAwLDUgQzAsNy41IDIuNSwxMCA1LDEwIEw3LjY5NTMxMjUsMTAgQzYuNzU3ODEyNSw5LjM3NSA1Ljg3ODkwNjI1LDguMjYxNzE4NzUgNS42MDU0Njg3NSw3LjUgTDUuNjA1NDY4NzUsNy41IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+") no-repeat;
  315. margin-top: 15px;
  316. height: 16px;
  317. width: 20px;
  318. }
  319. .examples .example:nth-child(13) .anchorjs-link {
  320. border-color: #FF5231 #FF5231 transparent;
  321. border-width: 15px 7px 6px;
  322. border-style: solid;
  323. margin-top: 10px;
  324. font-size: 22px;
  325. padding-right: 0 !important;
  326. }
  327. .examples .example:nth-child(14) .anchorjs-link {
  328. margin-left: -1.8em !important;
  329. }
  330. .examples .example:nth-child(15) .anchorjs-link {
  331. display: inline-block;
  332. width: 0.375em;
  333. height: 20px;
  334. margin-left: 0.375em;
  335. }
  336. /* Hover Examples */
  337. .hover-examples .example:nth-child(2) *:hover > .anchorjs-link,
  338. .hover-examples .example:nth-child(2) .anchorjs-link:focus {
  339. transition: color .25s linear;
  340. }
  341. .hover-examples .example:nth-child(2) .anchorjs-link:hover {
  342. color: #2500AD;
  343. }
  344. .hover-examples .example:nth-child(3) .anchorjs-link {
  345. transition: all .25s linear;
  346. }
  347. .hover-examples .example:nth-child(3) *:hover > .anchorjs-link,
  348. .hover-examples .example:nth-child(3) .anchorjs-link:focus {
  349. margin-left: -1.125em !important;
  350. }
  351. .hover-examples .example:nth-child(4) h3 {
  352. display: -webkit-box;
  353. display: -webkit-flex;
  354. display: -ms-flexbox;
  355. display: flex;
  356. }
  357. .hover-examples .example:nth-child(4) .anchorjs-link {
  358. background: #FF5231;
  359. color: white;
  360. font-family: Helvetica, Arial, sans-serif;
  361. font-weight: 200;
  362. font-size: 1rem;
  363. position: relative;
  364. top: 2px;
  365. -webkit-box-flex: 1;
  366. -webkit-flex: 1;
  367. -ms-flex: 1;
  368. flex: 1;
  369. margin-right: -6%;
  370. padding-right: 6%;
  371. padding-left: 42px !important;
  372. height: 36px;
  373. line-height: 38px;
  374. -webkit-transition: all 0.5s ease;
  375. transition: all 0.5s ease;
  376. -webkit-transform: translateX(100%);
  377. -ms-transform: translateX(100%);
  378. transform: translateX(100%);
  379. }
  380. .hover-examples .example:nth-child(4) .anchorjs-link::before {
  381. position: absolute;
  382. left: 0;
  383. display: block;
  384. width: 0;
  385. height: 0;
  386. border: 18px solid #fff;
  387. border-right-color: #FF5231;
  388. content: '';
  389. transition: all 0.5s ease;
  390. }
  391. .hover-examples .example:nth-child(4) *:hover > .anchorjs-link,
  392. .hover-examples .example:nth-child(4) .anchorjs-link:focus {
  393. -webkit-transform: translateX(0);
  394. -ms-transform: translateX(0);
  395. transform: translateX(0);
  396. }
  397. .hover-examples .example:nth-child(4) *:hover > .anchorjs-link:hover,
  398. .hover-examples .example:nth-child(4) .anchorjs-link:focus {
  399. background: #FF806A;
  400. }
  401. .hover-examples .example:nth-child(4) *:hover > .anchorjs-link:hover::before,
  402. .hover-examples .example:nth-child(4) .anchorjs-link:focus {
  403. border-right-color: #FF806A;
  404. }
  405. .hover-examples .example:nth-child(5) .anchorjs-link:after {
  406. display: inline-block;
  407. transition: opacity .25s linear;
  408. font-family: Verdana, sans-serif;
  409. font-size: 0.75ex;
  410. font-weight: 100;
  411. padding: 0.5ex 1.5ex;
  412. background: #444;
  413. color: #fff;
  414. border-radius: 0.6ex;
  415. vertical-align: 0.8ex;
  416. }
  417. .hover-examples .example:nth-child(5) .anchorjs-link:before {
  418. content: '';
  419. display: inline-block;
  420. border-top: 0.3ex solid transparent;
  421. border-right: 0.5ex solid #444;
  422. border-bottom: 0.3ex solid transparent;
  423. vertical-align: 0.35ex;
  424. }
  425. .hover-examples .example:nth-child(5) .anchorjs-link:hover:after {
  426. background-color: #666;
  427. }
  428. .hover-examples .example:nth-child(5) .anchorjs-link:hover:before {
  429. border-right-color: #666;
  430. }
  431. /*////// Utilities ////////*/
  432. /* Clearfix */
  433. .group:after {
  434. content: "";
  435. display: table;
  436. clear: both;
  437. }