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.

778 lines
30 KiB

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