Lightweight CSS Framework for Building Apps and Websites https://crispy-css.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

717 lines
26 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. <!doctype html>
  2. <html class="no-js" lang="en_EN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="x-ua-compatible" content="ie=edge">
  6. <title></title>
  7. <meta name="description" content="">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="stylesheet" href="/css/styles.css">
  10. </head>
  11. <body>
  12. <header id="header" class="header">
  13. <div class="container">
  14. <div class="grid">
  15. <div class="col-12">
  16. <div class="text-center">
  17. <hgroup>
  18. <h1 class="header__title">
  19. <svg class="icon header__logo" alt="Crisp" viewBox="0 0 100 100">
  20. <use xlink:href="/svg/icons.svg#chip" />
  21. </svg>
  22. Crispy Boilerplate
  23. </h1>
  24. </hgroup>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="grid">
  29. <div class="col-sm-4">
  30. <h2 class="header__feature-title">Less is more</h2>
  31. <p class="header__feature-text">
  32. Simple basic Components to extends in your own art
  33. </p>
  34. </div>
  35. <div class="col-sm-4">
  36. <h2 class="header__feature-title">Structure</h2>
  37. <p class="header__feature-text">
  38. Crispy gives you a Structure to orientate
  39. </p>
  40. </div>
  41. <div class="col-sm-4">
  42. <h2 class="header__feature-title">Helper</h2>
  43. <p class="header__feature-text">
  44. Use helper to save up time and coding less
  45. </p>
  46. </div>
  47. </div>
  48. </div>
  49. </header>
  50. <a class="button button--up" href="#header">
  51. <svg class="icon" alt="up" viewBox="0 0 100 100">
  52. <use xlink:href="/svg/icons.svg#triangle-up" />
  53. </svg>
  54. </a>
  55. <div class="container">
  56. <div class="grid">
  57. <div class="col-12 col-sm-3">
  58. <nav class="nav">
  59. <ul class="margin-top-0x">
  60. <li><a href="#introduction">Introduction</a></li>
  61. <li><a href="#example">Example</a></li>
  62. <li><a href="#get-started">Get Started</a></li>
  63. <li><a href="#typography">Typography</a></li>
  64. <li><a href="#components">Components</a></li>
  65. <li><a href="#form">Form</a></li>
  66. <li><a href="#functions">Functions</a></li>
  67. <li><a href="#helpers">Helpers</a></li>
  68. <li><a href="#mixins">Mixins</a></li>
  69. <li><a href="#reflex-grid">Reflex Grid</a></li>
  70. </ul>
  71. </nav>
  72. </div>
  73. <div class="col-12 col-sm-9">
  74. <h2 id="introduction" class="lead">
  75. Introduction
  76. </h2>
  77. <p>
  78. This Boilerplate has more simpler approach, it can be used
  79. as a base for Websites, Webapps and also Frameworks. Of Course there a
  80. so many Framework and Boilerplates.
  81. </p>
  82. <p>
  83. But the most are trying to hard adding styles
  84. that are most time will be overwritten to make it work for you. This causes a loss
  85. in Performance and more Fighting with the Framework and the Documentation.
  86. </p>
  87. <p>
  88. The <strong>Components</strong> are quite simple and not fancy, the have all
  89. fundamental styles to so the can be used.
  90. </p>
  91. <p>
  92. The <strong>Helpers</strong> have Styles for single Elements and spend it saving
  93. for each element to invent a single class.
  94. </p>
  95. <p>
  96. The Coding Style of this Framework is <strong>BEM</strong>, but
  97. also here a more simpler idea of it. <strong>BEM</strong> is a good and helpfull Coding Style,
  98. if you not overthinking it. It helps to create smaller compontents that you can reuse.
  99. Important for that, make them really small. More Information about <a href="http://getbem.com/" target="_blank">BEM</a>.
  100. </p>
  101. <!-- example -->
  102. <hr class="margin-top-3x">
  103. <h2 id="example" class="margin-top-1x">
  104. Example
  105. </h2>
  106. <p>
  107. This Site is also a Example to use the Boilerplate. You can find all
  108. Styles for this site in "/src/scss/example". You see also that there
  109. is a "templates" Directory. The Idea in <strong>BEM</strong> was always
  110. create all in Components. That is not always Practical.
  111. </p>
  112. <p>
  113. Sometimes, the more Bigger Picture, on a Single Site or in App the
  114. Stylings that are so special that the belong only there, and are to big
  115. for a templates. For this use the "templates" Directory.
  116. </p>
  117. <!-- how to use -->
  118. <hr class="margin-top-3x">
  119. <h2 id="get-started" class="margin-top-1x">
  120. Get Started
  121. </h2>
  122. <pre class="code"><code>npm install crispy-boilerplate</code></pre>
  123. <!-- typography -->
  124. <hr class="margin-top-3x">
  125. <h2 id="typography" class="margin-top-1x">
  126. Typography
  127. </h2>
  128. <!-- abbr -->
  129. <h3 class="h4 margin-top-2x margin-bottom-0x">Abbr</h3>
  130. <h4 class="h6">Html:</h4>
  131. <pre class="code"><code>&lt;abbr title=&quot;&quot;&gt;&lt;/abbr&gt;</code></pre>
  132. <p>
  133. Glossier viral occupy mixtape pok pok cornhole, <abbr title="vape affogato hella">vape affogato hella</abbr> knausgaard thundercats
  134. </p>
  135. <!-- blockquote -->
  136. <h3 class="h4 margin-top-2x margin-bottom-0x">Blockquote</h3>
  137. <h4 class="h6">Html:</h4>
  138. <pre class="code"><code>&lt;blockquote&gt;&lt;/blockquote&gt;</code></pre>
  139. <blockquote>
  140. Hoodie kickstarter four loko, pinterest hashtag chambray glossier. Pug before they sold out etsy listicle. Deep v bespoke tacos polaroid, squid flexitarian crucifix messenger bag.
  141. </blockquote>
  142. <!-- paragraph -->
  143. <h3 class="h4 margin-top-2x margin-bottom-0x">Paragraph</h3>
  144. <h4 class="h6">Html:</h4>
  145. <pre class="code"><code>&lt;p&gt;&lt;/p&gt;</code></pre>
  146. <p>
  147. Glossier viral occupy mixtape pok pok.
  148. </p>
  149. <!-- list -->
  150. <h3 class="h4 margin-top-2x margin-bottom-0x">List</h3>
  151. <h4 class="h6">Html:</h4>
  152. <pre class="code"><code>&lt;ul&gt;
  153. &lt;li&gt;item 1&lt;/li&gt;
  154. &lt;li&gt;item 2
  155. &lt;ul&gt;
  156. &lt;li&gt;child item 1&lt;/li&gt;
  157. &lt;li&gt;child item 2&lt;/li&gt;
  158. &lt;/ul&gt;
  159. &lt;/li&gt;
  160. &lt;/ul&gt;
  161. &lt;ol&gt;
  162. &lt;li&gt;item 1&lt;/li&gt;
  163. &lt;li&gt;item 2&lt;/li&gt;
  164. &lt;/ol&gt;
  165. &lt;dl&gt;
  166. &lt;dt&gt;defined title 1&lt;/dt&gt;
  167. &lt;dd&gt;defined item 1&lt;/dd&gt;
  168. &lt;/dl&gt;</code></pre>
  169. <ul>
  170. <li>item 1</li>
  171. <li>
  172. item 2
  173. <ul>
  174. <li>child item 1</li>
  175. <li>child item 2</li>
  176. </ul>
  177. </li>
  178. </ul>
  179. <ol>
  180. <li>item 1</li>
  181. <li>item 2</li>
  182. </ol>
  183. <dl>
  184. <dt>defined title 1</dt>
  185. <dd>defined item 1</dd>
  186. </dl>
  187. <!-- components -->
  188. <hr class="margin-top-3x">
  189. <h2 id="components" class="margin-top-1x">
  190. Components
  191. </h2>
  192. <!-- components / button -->
  193. <h3 class="h4 margin-top-2x margin-bottom-0x">
  194. Button
  195. </h3>
  196. <h4 class="h6">Html:</h4>
  197. <pre class="code margin-top-1x"><code>&lt;button class=&quot;button&quot;&gt;&lt;/button&gt;
  198. &lt;button class=&quot;button button--wide&quot;&gt;&lt;/button&gt;</code></pre>
  199. <button class="button">Default</button>
  200. <button class="button button--wide margin-top-1x">Info</button>
  201. <!-- components / group -->
  202. <h3 class="h4 margin-top-2x margin-bottom-0x">
  203. Group
  204. </h3>
  205. <h4 class="h6">Html:</h4>
  206. <pre class="code"><code>&lt;nav class=&quot;group&quot;&gt;
  207. &lt;ul class=&quot;group__section&quot;&gt;
  208. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  209. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  210. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  211. &lt;/ul&gt;
  212. &lt;/nav&gt;</code></pre>
  213. <div class="panel panel__inner margin-bottom-1x">
  214. <nav class="group">
  215. <ul class="group__section">
  216. <li class="group__item">first item</li>
  217. <li class="group__item">second item</li>
  218. <li class="group__item">third item</li>
  219. </ul>
  220. </nav>
  221. </div>
  222. <h4 class="h6">Html:</h4>
  223. <pre class="code"><code>&lt;nav class=&quot;group group--horizontal&quot;&gt;
  224. &lt;ul class=&quot;group__section group__section--separate&quot;&gt;
  225. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  226. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  227. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  228. &lt;/ul&gt;
  229. &lt;/nav&gt;</code></pre>
  230. <div class="panel panel__inner">
  231. <nav class="group group--horizontal">
  232. <ul class="group__section group__section--separate">
  233. <li class="group__item">first item</li><li class="group__item">second item</li><li class="group__item">third item</li>
  234. </ul>
  235. </nav>
  236. </div>
  237. <!-- components / heading -->
  238. <h3 class="h4 margin-top-2x margin-bottom-0x">
  239. Heading
  240. </h3>
  241. <h4 class="h6">Html:</h4>
  242. <pre class="code"><code>&lt;h2&gt;&lt;/h2&gt;
  243. &lt;h2 class="h3"&gt;&lt;/h2&gt;</code></pre>
  244. <h4 class="h6">Sass:</h4>
  245. <pre class="code"><code>$crispy__heading__font-sizes: (
  246. 'h1': 40px,
  247. 'h2': 36px,
  248. 'h3': 32px,
  249. 'h4': 28px,
  250. 'h5': 24px,
  251. 'h6': 20px
  252. ) !default;</code></pre>
  253. <h1>Heading h1</h1>
  254. <h2>Heading h1</h2>
  255. <h3>Heading h1</h3>
  256. <h4>Heading h1</h4>
  257. <h5>Heading h1</h5>
  258. <h6>Heading h1</h6>
  259. <!-- components / hero -->
  260. <h3 class="h4 margin-top-2x margin-bottom-0x">
  261. Hero
  262. </h3>
  263. <h4 class="h6">Html:</h4>
  264. <pre class="code"><code>&lt;div class=&quot;hero hero--bottom&quot; style=&quot;height: 300px; background-image: url('https://picsum.photos/1024')&quot;&gt;&lt;/div&gt;</code></pre>
  265. <div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div>
  266. <!-- components / icon -->
  267. <h3 class="h4 margin-top-2x margin-bottom-0x">
  268. Icon
  269. </h3>
  270. <h4 class="h6">Html:</h4>
  271. <pre class="code"><code>&lt;svg class=&quot;icon icon--small&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  272. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  273. &lt;/svg&gt;
  274. &lt;svg class=&quot;icon&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  275. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  276. &lt;/svg&gt;
  277. &lt;svg class=&quot;icon icon--large&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  278. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  279. &lt;/svg&gt;
  280. &lt;svg class=&quot;icon icon--danger&quot; alt=&quot;alert&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  281. &lt;use xlink:href=&quot;/svg/icons.svg#alert&quot; /&gt;
  282. &lt;/svg&gt;
  283. </code></pre>
  284. <svg class="icon icon--small" alt="beaker" viewBox="0 0 100 100">
  285. <use xlink:href="/svg/icons.svg#beaker" />
  286. </svg>
  287. <svg class="icon" alt="beaker" viewBox="0 0 100 100">
  288. <use xlink:href="/svg/icons.svg#beaker" />
  289. </svg>
  290. <svg class="icon icon--large" alt="beaker" viewBox="0 0 100 100">
  291. <use xlink:href="/svg/icons.svg#beaker" />
  292. </svg>
  293. <svg class="icon icon--danger" alt="alert" viewBox="0 0 100 100">
  294. <use xlink:href="/svg/icons.svg#alert" />
  295. </svg>
  296. <!-- components / modal -->
  297. <h3 class="h4 margin-top-2x margin-bottom-0x">
  298. Modal
  299. </h3>
  300. <h4 class="h6">Html:</h4>
  301. <pre class="code"><code>&lt;div class=&quot;modal modal--bottom width-100&quot;&gt;
  302. &lt;div class=&quot;panel&quot;&gt;
  303. &lt;div class=&quot;panel__inner&quot;&gt;
  304. Lorem Ipsum
  305. &lt;/div&gt;
  306. &lt;/div&gt;
  307. &lt;/div&gt;</code></pre>
  308. <div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;">
  309. <div class="modal modal--bottom width-100">
  310. <div class="panel">
  311. <div class="panel__inner">
  312. Lorem Ipsum
  313. </div>
  314. </div>
  315. </div>
  316. </div>
  317. <!-- components / panel -->
  318. <h3 class="h4 margin-top-2x margin-bottom-0x">
  319. Panel
  320. </h3>
  321. <h4 class="h6">Html:</h4>
  322. <pre class="code"><code>&lt;div class=&quot;panel&quot;&gt;
  323. &lt;div class=&quot;panel__inner&quot;&gt;
  324. Lorem Ipsum
  325. &lt;/div&gt;
  326. &lt;/div&gt;</code></pre>
  327. <div class="panel">
  328. <div class="panel__inner">
  329. Lorem Ipsum
  330. </div>
  331. </div>
  332. <!-- components / table -->
  333. <h3 id="table" class="h4 margin-top-2x margin-bottom-0x">
  334. Table
  335. </h3>
  336. <h4 class="h6 margin-top-1x">Html:</h4>
  337. <pre class="code"><code>&lt;table class=&quot;table table--striped&quot;&gt;
  338. &lt;thead&gt;
  339. &lt;tr&gt;
  340. &lt;th&gt;&lt;/th&gt;
  341. &lt;/tr&gt;
  342. &lt;/thead&gt;
  343. &lt;tbody&gt;
  344. &lt;tr&gt;
  345. &lt;td&gt;&lt;/td&gt;
  346. &lt;/tr&gt;
  347. &lt;/tbody&gt;
  348. &lt;/table&gt;</code></pre>
  349. <table class="table table--striped margin-bottom-2x">
  350. <thead>
  351. <tr>
  352. <th>name</th>
  353. <th>age</th>
  354. </tr>
  355. </thead>
  356. <tbody>
  357. <tr>
  358. <td>Mr. Brown</td>
  359. <td>43</td>
  360. </tr>
  361. <tr>
  362. <td>Mr. Magenta</td>
  363. <td>32</td>
  364. </tr>
  365. <tr>
  366. <td>Mr. White</td>
  367. <td>45</td>
  368. </tr>
  369. </tbody>
  370. </table>
  371. <!-- field -->
  372. <hr class="margin-top-3x">
  373. <h2 id="functions" class="margin-top-1x">
  374. Fields
  375. </h2>
  376. <!-- field / input -->
  377. <h3 class="h4 margin-top-0x margin-bottom-0x">
  378. Input
  379. </h3>
  380. <div class="field">
  381. <input class="field__text" type="text" />
  382. </div>
  383. <div class="field">
  384. <input type="text" class="field__text field__text--error" />
  385. <div class="field__panel field__panel--error">
  386. error item 1
  387. </div>
  388. </div>
  389. <!-- field / textarea -->
  390. <h3 class="h4 margin-top-0x margin-bottom-0x">
  391. Textarea
  392. </h3>
  393. <div class="field">
  394. <textarea class="field__text"></textarea>
  395. </div>
  396. <!-- field / checkbox -->
  397. <h3 class="h4 margin-top-0x margin-bottom-0x">
  398. Checkbox
  399. </h3>
  400. <div class="field">
  401. <input id="field__checkbox__1" class="field__checkbox" type="checkbox" name="field__checkbox__1" value="true" />
  402. <label for="field__checkbox__1" class="field__label">
  403. <svg class="icon field__checkbox__unchecked" alt="beaker" viewBox="0 0 100 100">
  404. <use xlink:href="/svg/icons.svg#x" />
  405. </svg>
  406. <svg class="icon field__checkbox__checked" alt="beaker" viewBox="0 0 100 100">
  407. <use xlink:href="/svg/icons.svg#check" />
  408. </svg>
  409. checkbox 1
  410. </label>
  411. </div>
  412. <!-- field / radio -->
  413. <h3 class="h4 margin-top-0x margin-bottom-0x">
  414. Radio
  415. </h3>
  416. <div class="field">
  417. <input id="field__radio__1" class="field__radio" type="radio" name="field__radio__1[]" value="true" />
  418. <label for="field__radio__1" class="field__label">
  419. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  420. <use xlink:href="/svg/icons.svg#x" />
  421. </svg>
  422. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  423. <use xlink:href="/svg/icons.svg#check" />
  424. </svg>
  425. radio item 1
  426. </label><br />
  427. <input id="field__radio__2" class="field__radio" type="radio" name="field__radio__1[]" value="true" />
  428. <label for="field__radio__2" class="field__label">
  429. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  430. <use xlink:href="/svg/icons.svg#x" />
  431. </svg>
  432. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  433. <use xlink:href="/svg/icons.svg#check" />
  434. </svg>
  435. radio item 2
  436. </label>
  437. </div>
  438. <!-- field / radio -->
  439. <h3 class="h4 margin-top-0x margin-bottom-0x">
  440. Select
  441. </h3>
  442. <div class="field">
  443. <label class="field__label">
  444. Select Item
  445. <select class="field__select">
  446. <option>select item 1</option>
  447. <option>select item 2</option>
  448. <option>select item 3</option>
  449. </select>
  450. </label>
  451. </div>
  452. <!-- functions -->
  453. <hr class="margin-top-3x">
  454. <h2 id="functions" class="margin-top-1x">
  455. Functions
  456. </h2>
  457. <!-- functions / toEm / toRem -->
  458. <h3 class="h4 margin-top-0x margin-bottom-0x">
  459. toEm()<br>
  460. toRem()
  461. </h3>
  462. <h4 class="h6 margin-top-1x">Sass:</h4>
  463. <pre class="code"><code>toEm(5px);
  464. toEm(10px 10px 0 0);
  465. toRem(10px 10px 0 0);
  466. </code></pre>
  467. <p>
  468. Returns <strong>em</strong> and <strong>rem</strong>, accepts px and unitless values.
  469. </p>
  470. <!-- functions / stripUnit -->
  471. <h3 class="h4 margin-top-0x margin-bottom-0x">
  472. stripUnit()
  473. </h3>
  474. <span class="background-warning">/functions</span>
  475. <h4 class="h6 margin-top-1x">Sass:</h4>
  476. <pre class="code"><code>toEm(10px);</code></pre>
  477. <p>
  478. Returns value without unit.
  479. </p>
  480. <!-- helpers -->
  481. <hr class="margin-top-3x">
  482. <h2 id="helpers" class="margin-top-1x">
  483. Helpers
  484. </h2>
  485. <!-- helpers / align -->
  486. <h3 class="h4 margin-top-1x">
  487. Float
  488. </h3>
  489. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  490. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  491. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  492. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  493. &lt;div class=&quot;float-left&quot;&gt;&lt;/div&gt;
  494. &lt;div class=&quot;float-center&quot;&gt;&lt;/div&gt;
  495. &lt;div class=&quot;float-none&quot;&gt;&lt;/div&gt;
  496. &lt;div class=&quot;center&quot;&gt;&lt;/div&gt;
  497. &lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;</code></pre>
  498. <!-- helpers / margin -->
  499. <h3 class="h4 margin-top-1x">
  500. Margin
  501. </h3>
  502. <p>
  503. margin-top and -bottom from <strong>$crispy__margin</strong> as px.
  504. </p>
  505. <pre class="code">&lt;div class=&quot;panel margin-bottom-0x&quot;&gt;margin-bottom-0x&lt;/div&gt;
  506. &lt;div class=&quot;margin-bottom-1x&quot;&gt;margin-bottom-1x&lt;/div&gt;
  507. &lt;div class=&quot;margin-bottom-2x&quot;&gt;margin-bottom-2x&lt;/div&gt;
  508. &lt;div class=&quot;margin-bottom-3x&quot;&gt;margin-bottom-3x&lt;/div&gt;</code></pre>
  509. <div class="panel panel__inner margin-bottom-0x">margin-bottom-0x</div>
  510. <div class="panel panel__inner margin-bottom-1x">margin-bottom-1x</div>
  511. <div class="panel panel__inner margin-bottom-2x">margin-bottom-2x</div>
  512. <div class="panel panel__inner margin-bottom-3x">margin-bottom-3x</div>
  513. <!-- helpers / media -->
  514. <h3 class="h4 margin-top-1x">
  515. Media
  516. </h3>
  517. <pre class="code"><code>&lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  518. &lt;figure&gt;
  519. &lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  520. &lt;figcaption class=&quot;text-center&quot;&gt;Lorem Ipsum&lt;/figcaption&gt;
  521. &lt;/figure&gt;
  522. &lt;div class=&quot;video-responsive&quot; style=&quot;height: 280px;&quot;&gt;
  523. &lt;iframe src=&quot;https://giphy.com/embed/13XW2MJE0XCoM0&quot; width=&quot;480&quot; height=&quot;361&quot;&gt;&lt;/iframe&gt;
  524. &lt;/div&gt;</code></pre>
  525. <div class="grid">
  526. <div class="col-6">
  527. <img class="img-responsive" src="https://picsum.photos/400" />
  528. </div>
  529. <div class="col-6">
  530. <figure>
  531. <img class="img-responsive" src="https://picsum.photos/400" />
  532. <figcaption class="text-center">Lorem Ipsum</figcaption>
  533. </figure>
  534. </div>
  535. </div>
  536. <div class="grid">
  537. <div class="col-6">
  538. <div class="video-responsive" style="height: 280px;">
  539. <iframe src="https://giphy.com/embed/13XW2MJE0XCoM0" width="480" height="361" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
  540. </div>
  541. </div>
  542. </div>
  543. <!-- helpers / media -->
  544. <h3 class="h4 margin-top-1x">
  545. Width
  546. </h3>
  547. <pre class="code"><code>&lt;div class=&quot;panel width-25&quot;&gt;width-25&lt;/div&gt;
  548. &lt;div class=&quot;width-50&quot;&gt;width-50&lt;/div&gt;
  549. &lt;div class=&quot;width-75&quot;&gt;width-75&lt;/div&gt;
  550. &lt;div class=&quot;width-100&quot;&gt;width-100&lt;/div&gt;</code></pre>
  551. <div class="panel panel__inner width-25 margin-bottom-1x">width-25</div>
  552. <div class="panel panel__inner width-50 margin-bottom-1x">width-50</div>
  553. <div class="panel panel__inner width-75 margin-bottom-1x">width-75</div>
  554. <div class="panel panel__inner width-100 margin-bottom-1x">width-100</div>
  555. <!-- helpers / text -->
  556. <h3 class="h4 margin-top-1x">
  557. Text
  558. </h3>
  559. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  560. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  561. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  562. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  563. &lt;div class=&quot;text-italic&quot;&gt;&lt;/div&gt;
  564. &lt;div class=&quot;text-normal&quot;&gt;&lt;/div&gt;
  565. &lt;div class=&quot;text-bold&quot;&gt;&lt;/div&gt;
  566. &lt;div class=&quot;text-uppercase&quot;&gt;&lt;/div&gt;
  567. &lt;div class=&quot;text-lowercase&quot;&gt;&lt;/div&gt;
  568. &lt;div class=&quot;text-small&quot;&gt;&lt;/div&gt;
  569. &lt;div class=&quot;text-crossed&quot;&gt;&lt;/div&gt;</code></pre>
  570. <p>
  571. Also it will be create classes $crispy__font-sizes
  572. </p>
  573. <ul>
  574. <li>text-* with $crispy__font-sizes for "font-size"</li>
  575. <li>text-* with $crispy__colors for "color"</li>
  576. <li>background- with $crispy__font-sizes for "background-color"</li>
  577. </ul>
  578. <!-- mixins -->
  579. <hr class="margin-top-3x">
  580. <h2 id="mixins" class="margin-top-1x">
  581. Mixins
  582. </h2>
  583. <!-- mixins / media-queries -->
  584. <h3 class="h4 margin-top-1x">
  585. Media Queries
  586. </h3>
  587. <p>
  588. These <strong>@mixins</strong> were used with the Breakpoints from the <a href="#reflex-grid">Reflex Grid</a>.
  589. </p>
  590. <ul>
  591. <li><strong>xs</strong> 576px</li>
  592. <li><strong>sm</strong> 768px</li>
  593. <li><strong>md</strong> 992px</li>
  594. <li><strong>lg</strong> 1200px</li>
  595. <li><strong>xlg</strong> 1600px</li>
  596. </ul>
  597. <h4 class="h6 margin-top-1x">Html:</h4>
  598. <pre class="code"><code>&lt;div class=&quot;sm&quot;&gt;sm&lt;/div&gt;
  599. &lt;div class=&quot;md&quot;&gt;md&lt;/div&gt;
  600. &lt;div class=&quot;md-only&quot;&gt;md-only&lt;/div&gt;
  601. &lt;div class=&quot;lg-only&quot;&gt;lg-only&lt;/div&gt;</pre></code>
  602. <h4 class="h6 margin-top-1x">Sass:</h4>
  603. <pre class="code"><code>.sm, .md, .md-only, .lg-only {
  604. display: none;
  605. }
  606. .sm {
  607. @include crispy__media-sm() {
  608. display: block;
  609. }
  610. }
  611. .md {
  612. @include crispy__media-md() {
  613. display: block;
  614. }
  615. }
  616. .md-only {
  617. @include crispy__media-md-only() {
  618. display: block;
  619. }
  620. }
  621. .lg-only {
  622. @include crispy__media-lg-only() {
  623. display: block;
  624. }
  625. }</code></pre>
  626. <div class="grid">
  627. <div class="col-3">
  628. <div class="panel panel__inner sm margin-bottom-1x">sm</div>
  629. </div>
  630. <div class="col-3">
  631. <div class="panel panel__inner md margin-bottom-1x">md</div>
  632. </div>
  633. <div class="col-3">
  634. <div class="panel panel__inner md-only margin-bottom-1x">md-only</div>
  635. </div>
  636. <div class="col-3">
  637. <div class="panel panel__inner lg-only margin-bottom-1x">lg-only</div>
  638. </div>
  639. </div>
  640. <!-- Reflex Grid -->
  641. <hr class="margin-top-3x">
  642. <h2 id="reflex-grid" class="margin-top-1x">
  643. Reflex Grid
  644. </h2>
  645. <p>
  646. The <strong>Reflex Grid</strong> is from <a target="_blank" href="http://lendmeyourear.net">Lee Jordan</a>. I have build a few helper for media-queries. <strong>Reflex Grid </strong> is lightweight, simple and uses a flexbox grid with cross browser
  647. support, an inline-block fallback.
  648. </p>
  649. <p>
  650. Documentation: <a target="_blank" href="http://reflexgrid.com/docs/">http://reflexgrid.com/docs/</a><br /> Github: <a target="_blank" href="https://github.com/leejordan/reflex">https://github.com/leejordan/reflex</a>
  651. </p>
  652. </div>
  653. </div>
  654. </div>
  655. <footer class="footer">
  656. <div class="container">
  657. <div class="grid">
  658. <div class="col-12">
  659. <div class="text-center">
  660. <p>
  661. <a target="_blank" href="https://thenounproject.com/wxchee/">W. X. Chee</a>
  662. </p>
  663. </div>
  664. </div>
  665. </div>
  666. </div>
  667. </footer>
  668. <script type="text/javascript" src="/js/app.js"></script>
  669. </body>
  670. </html>