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.

812 lines
30 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 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>Crispy</title>
  7. <meta name="description" content="">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="stylesheet" href="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. <a href="/">
  19. <!--<svg class="icon header__logo" alt="Crisp" viewBox="0 0 100 100">
  20. <use xlink:href="/svg/icons.svg#chip" />
  21. </svg>-->
  22. <div class="header__title h1">
  23. Crispy Boilerplate<br />
  24. <span class="text-small header__small">0.9.9</span>
  25. </div>
  26. </a>
  27. <div class="header__subtitle h5">
  28. Less is More
  29. </div>
  30. </hgroup>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </header>
  36. <a class="button button--up" href="#header">
  37. <!--<svg class="icon" alt="up" viewBox="0 0 100 100">
  38. <use xlink:href="/svg/icons.svg#triangle-up" />
  39. </svg>-->
  40. </a>
  41. <div class="container">
  42. <div class="grid">
  43. <div class="col-12 col-sm-3">
  44. <nav class="nav">
  45. <ul class="group margin-top-0">
  46. <li><a href="#getting-started">Getting Started</a></li>
  47. <li><a href="#typography">Typography</a></li>
  48. <li><a href="#components">Components</a></li>
  49. <li><a href="#functions">Functions</a></li>
  50. <li><a href="#helpers">Helpers</a></li>
  51. <li><a href="#mixins">Mixins</a></li>
  52. <li><a href="#reflex-grid">Reflex Grid</a></li>
  53. </ul>
  54. </nav>
  55. </div>
  56. <div class="col-12 col-sm-9">
  57. <p>
  58. Flat Sass Boilerplate gives you an amount of basic settings, components, helpers, mixins and functions.
  59. </p>
  60. <p>
  61. The problem of most frameworks is they trying to hard adding a lot of styles
  62. which has to be customized and documented if you used it for a Project.
  63. Often these changes cause a loss of performance and raise the propability of errors.
  64. </p>
  65. <p>
  66. Crispy Boilerplate uses also the following libraries:
  67. </p>
  68. <ul>
  69. <li><a href="https://necolas.github.io/normalize.css/" target="_blank">normalize.css</a></li>
  70. <li><a href="http://reflexgrid.com" target="_blank">reflex-grid</a></li>
  71. </ul>
  72. <h3>Coding Style</h3>
  73. <p>
  74. The boilerplate uses as coding style <a href="http://getbem.com/" target="_blank">BEM</a>,
  75. but as a more simpler idea of it. One of the benefits of BEM is that you create components and can reuse them.
  76. But one the other hand it can be really strange if you overthinking it.
  77. </p>
  78. <h3>Not Fancy but Small</h3>
  79. <p>
  80. Components are created to give you a structure and a basic set of styles and not to look fancy.
  81. The idea is to extend each component and save time to write a bunch of extra CSS code and
  82. therefore get more performance while minimize the causes of errors. Of Course is really Fancy to get more Performance and less Errors.
  83. </p>
  84. <h3>Include</h3>
  85. <p>
  86. Components and Helpers are organizes as Mixins, that makes it a little easier to
  87. to add Styles you need.
  88. </p>
  89. <!-- getting started -->
  90. <hr class="margin-top-3">
  91. <h2 id="getting-started">Getting Started</h2>
  92. <h3>Installation</h3>
  93. <pre class="code"><code>npm install crispy-boilerplate</code></pre>
  94. <p>Main SCSS-file:</p>
  95. <pre class="code"><code>@import
  96. "crispy";</code></pre>
  97. <p>After this include mixins you need:</p>
  98. <pre class="code"><code>@include crispy__*()</code></pre>
  99. <p>To overwrite defaults simple add your own config-file before importing crispy:</p>
  100. <pre class="code"><code>@import
  101. "config",
  102. "crispy";</code></pre>
  103. <h3>Example</h3>
  104. <p>
  105. You find an example in "/src/example", this is this documentation. In the given example there are additional directories. These ones are part of a structure which might be helpful for you.
  106. </p>
  107. <h4>Site</h4>
  108. <p>
  109. Contains header, footer, partials that are used on a site or webapp. Header and footer are not classical components, there often more complex and have a special brand.
  110. </p>
  111. <h4>Templates</h4>
  112. <p>
  113. Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.
  114. </p>
  115. <!-- typography -->
  116. <hr class="margin-top-3">
  117. <h2 id="typography" class="margin-top-1">
  118. Typography
  119. </h2>
  120. <!-- abbr -->
  121. <h3 class="h4 margin-top-2 margin-bottom-0">a</h3>
  122. <h4 class="h6">Html:</h4>
  123. <pre class="code"><code>&lt;a href=&quot;&quot;&gt;&lt;/a&gt;</code></pre>
  124. <p>
  125. Color of Text is set by <strong>$crispy__color-primary</strong>. <strong>Hover</strong> is set by
  126. <strong>$crispy__color-text</strong>
  127. </p>
  128. <!-- abbr -->
  129. <h3 class="h4 margin-top-2 margin-bottom-0">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-2 margin-bottom-0">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. <!-- hr -->
  143. <h3 class="h4 margin-top-2 margin-bottom-0">hr</h3>
  144. <h4 class="h6">Html:</h4>
  145. <pre class="code"><code>&lt;hr&gt;</code></pre>
  146. <p>
  147. <hr>
  148. </p>
  149. <!-- paragraph -->
  150. <h3 class="h4 margin-top-2 margin-bottom-0">paragraph</h3>
  151. <h4 class="h6">Html:</h4>
  152. <pre class="code"><code>&lt;p&gt;&lt;/p&gt;</code></pre>
  153. <p>
  154. Glossier viral occupy mixtape pok pok.
  155. </p>
  156. <!-- mark -->
  157. <h3 class="h4 margin-top-2 margin-bottom-0">mark</h3>
  158. <h4 class="h6">Html:</h4>
  159. <pre class="code"><code>&lt;mark&gt;&lt;/mark&gt;</code></pre>
  160. <p>
  161. Pug before they <mark>four loko</mark> Deep v bespoke
  162. </p>
  163. <!-- list -->
  164. <h3 class="h4 margin-top-2 margin-bottom-0">list</h3>
  165. <h4 class="h6">Html:</h4>
  166. <pre class="code"><code>&lt;ul&gt;
  167. &lt;li&gt;item 1&lt;/li&gt;
  168. &lt;li&gt;item 2
  169. &lt;ul&gt;
  170. &lt;li&gt;child item 1&lt;/li&gt;
  171. &lt;li&gt;child item 2&lt;/li&gt;
  172. &lt;/ul&gt;
  173. &lt;/li&gt;
  174. &lt;/ul&gt;
  175. &lt;ol&gt;
  176. &lt;li&gt;item 1&lt;/li&gt;
  177. &lt;li&gt;item 2&lt;/li&gt;
  178. &lt;/ol&gt;
  179. &lt;dl&gt;
  180. &lt;dt&gt;defined title 1&lt;/dt&gt;
  181. &lt;dd&gt;defined item 1&lt;/dd&gt;
  182. &lt;/dl&gt;</code></pre>
  183. <ul>
  184. <li>item 1</li>
  185. <li>
  186. item 2
  187. <ul>
  188. <li>child item 1</li>
  189. <li>child item 2</li>
  190. </ul>
  191. </li>
  192. </ul>
  193. <ol>
  194. <li>item 1</li>
  195. <li>item 2</li>
  196. </ol>
  197. <dl>
  198. <dt>defined title 1</dt>
  199. <dd>defined item 1</dd>
  200. </dl>
  201. <!-- components -->
  202. <hr class="margin-top-3">
  203. <h2 id="components" class="margin-top-1">
  204. Components
  205. </h2>
  206. <!-- components / button -->
  207. <h3 class="h4 margin-top-2 margin-bottom-0">
  208. Button
  209. </h3>
  210. <h4 class="h6">Html:</h4>
  211. <pre class="code margin-top-1"><code>&lt;button class=&quot;button&quot;&gt;&lt;/button&gt;
  212. &lt;button class=&quot;button button--wide&quot;&gt;&lt;/button&gt;</code></pre>
  213. <button class="button">Default</button>
  214. <button class="button button--wide margin-top-1">Info</button>
  215. <!-- components / code -->
  216. <h3 class="h4 margin-top-2 margin-bottom-0">
  217. Code
  218. </h3>
  219. <h4 class="h6">Html:</h4>
  220. <pre class="code margin-top-1"><code>&lt;pre class=&quot;code&quot;&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;</code></pre>
  221. <!-- components / group -->
  222. <h3 class="h4 margin-top-2 margin-bottom-0">
  223. Group
  224. </h3>
  225. <h4 class="h6">Html:</h4>
  226. <pre class="code"><code>&lt;nav&gt;
  227. &lt;ul class=&quot;group&quot;&gt;
  228. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  229. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  230. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  231. &lt;/ul&gt;
  232. &lt;/nav&gt;</code></pre>
  233. <div class="panel panel__inner margin-bottom-1">
  234. <nav>
  235. <ul class="group">
  236. <li class="group__item">first item</li>
  237. <li class="group__item">second item</li>
  238. <li class="group__item">third item</li>
  239. </ul>
  240. </nav>
  241. </div>
  242. <h4 class="h6">Html:</h4>
  243. <pre class="code"><code>&lt;nav&gt;
  244. &lt;ul class=&quot;group group--horizontal group--separate&quot;&gt;
  245. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  246. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  247. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  248. &lt;/ul&gt;
  249. &lt;/nav&gt;</code></pre>
  250. <div class="panel panel__inner">
  251. <nav>
  252. <ul class="group group--horizontal group--separate">
  253. <li class="group__item">first item</li><li class="group__item">second item</li><li class="group__item">third item</li>
  254. </ul>
  255. </nav>
  256. </div>
  257. <!-- components / heading -->
  258. <h3 class="h4 margin-top-2 margin-bottom-0">
  259. Heading
  260. </h3>
  261. <h4 class="h6">Html:</h4>
  262. <pre class="code"><code>&lt;h2&gt;&lt;/h2&gt;
  263. &lt;h2 class="h3"&gt;&lt;/h2&gt;</code></pre>
  264. <h4 class="h6">Sass:</h4>
  265. <pre class="code"><code>$crispy__heading__font-sizes: (
  266. 'h1': 40px,
  267. 'h2': 36px,
  268. 'h3': 32px,
  269. 'h4': 28px,
  270. 'h5': 24px,
  271. 'h6': 20px
  272. ) !default;</code></pre>
  273. <h1>Heading h1</h1>
  274. <h2>Heading h1</h2>
  275. <h3>Heading h1</h3>
  276. <h4>Heading h1</h4>
  277. <h5>Heading h1</h5>
  278. <h6>Heading h1</h6>
  279. <!-- components / hero -->
  280. <h3 class="h4 margin-top-2 margin-bottom-0">
  281. Hero
  282. </h3>
  283. <h4 class="h6">Html:</h4>
  284. <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>
  285. <div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div>
  286. <!-- components / panel -->
  287. <h3 class="h4 margin-top-2 margin-bottom-0">
  288. Panel
  289. </h3>
  290. <h4 class="h6">Html:</h4>
  291. <pre class="code"><code>&lt;div class=&quot;panel&quot;&gt;
  292. &lt;div class=&quot;panel__inner&quot;&gt;
  293. Lorem Ipsum
  294. &lt;/div&gt;
  295. &lt;/div&gt;</code></pre>
  296. <div class="panel">
  297. <div class="panel__inner">
  298. Lorem Ipsum
  299. </div>
  300. </div>
  301. <!-- components / modal -->
  302. <h3 class="h4 margin-top-3 margin-bottom-0">
  303. Modal
  304. </h3>
  305. <h4 class="h6">Html:</h4>
  306. <pre class="code"><code>&lt;div class=&quot;modal modal--bottom width-100&quot;&gt;
  307. &lt;div class=&quot;panel&quot;&gt;
  308. &lt;div class=&quot;panel__inner&quot;&gt;
  309. Lorem Ipsum
  310. &lt;/div&gt;
  311. &lt;/div&gt;
  312. &lt;/div&gt;</code></pre>
  313. <div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;">
  314. <div class="modal modal--top-left">
  315. <div class="panel">
  316. <div class="panel__inner">
  317. .modal--top-left
  318. </div>
  319. </div>
  320. </div>
  321. <div class="modal modal--top-right">
  322. <div class="panel">
  323. <div class="panel__inner">
  324. .modal--top-right
  325. </div>
  326. </div>
  327. </div>
  328. <div class="modal">
  329. <div class="panel">
  330. <div class="panel__inner">
  331. .modal
  332. </div>
  333. </div>
  334. </div>
  335. <div class="modal modal--bottom-left">
  336. <div class="panel">
  337. <div class="panel__inner">
  338. .modal--bottom-left
  339. </div>
  340. </div>
  341. </div>
  342. <div class="modal modal--bottom-right">
  343. <div class="panel">
  344. <div class="panel__inner">
  345. .modal--bottom-right
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. <!-- components / table -->
  351. <h3 class="h4 margin-top-2 margin-bottom-0">
  352. Table
  353. </h3>
  354. <h4 class="h6">Html:</h4>
  355. <pre class="code"><code>&lt;table class=&quot;table table--striped&quot;&gt;
  356. &lt;thead&gt;
  357. &lt;tr&gt;
  358. &lt;th&gt;&lt;/th&gt;
  359. &lt;/tr&gt;
  360. &lt;/thead&gt;
  361. &lt;tbody&gt;
  362. &lt;tr&gt;
  363. &lt;td&gt;&lt;/td&gt;
  364. &lt;/tr&gt;
  365. &lt;/tbody&gt;
  366. &lt;/table&gt;</code></pre>
  367. <table class="table table--striped margin-bottom-2">
  368. <thead>
  369. <tr>
  370. <th>name</th>
  371. <th>age</th>
  372. </tr>
  373. </thead>
  374. <tbody>
  375. <tr>
  376. <td>Mr. Brown</td>
  377. <td>43</td>
  378. </tr>
  379. <tr>
  380. <td>Mr. Magenta</td>
  381. <td>32</td>
  382. </tr>
  383. <tr>
  384. <td>Mr. White</td>
  385. <td>45</td>
  386. </tr>
  387. </tbody>
  388. </table>
  389. <!-- components / field / checkbox -->
  390. <h3 class="h4 margin-top-0 margin-bottom-0">
  391. Checkbox
  392. </h3>
  393. <div class="field">
  394. <input id="field__checkbox__1" class="field__checkbox" type="checkbox" name="field__checkbox__1" value="true" />
  395. <label for="field__checkbox__1" class="field__label">
  396. <svg class="icon field__checkbox__unchecked" aria-hidden="true">
  397. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  398. </svg>
  399. <svg class="icon field__checkbox__checked" aria-hidden="true">
  400. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  401. </svg>
  402. checkbox 1
  403. </label>
  404. </div>
  405. <div class="field field--error">
  406. <input id="field__checkbox__2" class="field__checkbox" type="checkbox" name="field__checkbox__2" value="true" />
  407. <label for="field__checkbox__2" class="field__label">
  408. <svg class="icon field__checkbox__unchecked" aria-hidden="true">
  409. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  410. </svg>
  411. <svg class="icon field__checkbox__checked" aria-hidden="true">
  412. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  413. </svg>
  414. checkbox 1
  415. </label>
  416. <div class="field__panel">
  417. error item 1
  418. </div>
  419. </div>
  420. <!-- components / field / radio -->
  421. <h3 class="h4 margin-top-0x margin-bottom-0x">
  422. Radio
  423. </h3>
  424. <div class="field">
  425. <input id="field__radio__1" class="field__radio" type="radio" name="field__radio__1[]" value="true" />
  426. <label for="field__radio__1" class="field__label">
  427. <svg class="icon field__radio__unchecked" aria-hidden="true">
  428. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  429. </svg>
  430. <svg class="icon field__radio__checked" aria-hidden="true">
  431. <use xlink:href="symbol-defs.svg#icon-checked" />
  432. </svg>
  433. radio item 1
  434. </label><br />
  435. <input id="field__radio__2" class="field__radio" type="radio" name="field__radio__1[]" value="true" />
  436. <label for="field__radio__2" class="field__label">
  437. <svg class="icon field__radio__unchecked" aria-hidden="true">
  438. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  439. </svg>
  440. <svg class="icon field__radio__checked" aria-hidden="true">
  441. <use xlink:href="symbol-defs.svg#icon-checked" />
  442. </svg>
  443. radio item 2
  444. </label>
  445. </div>
  446. <!-- radio / error -->
  447. <div class="field field--error">
  448. <input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true" />
  449. <label for="field__radio__3" class="field__label">
  450. <svg class="icon field__choice__unchecked" aria-hidden="true">
  451. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  452. </svg>
  453. <svg class="icon field__choice__checked" aria-hidden="true">
  454. <use xlink:href="symbol-defs.svg#icon-checked" />
  455. </svg>
  456. radio item 1
  457. </label><br />
  458. <input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true" />
  459. <label for="field__radio__4" class="field__label">
  460. <svg class="icon field__choice__unchecked" aria-hidden="true">
  461. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  462. </svg>
  463. <svg class="icon field__choice__checked" aria-hidden="true">
  464. <use xlink:href="symbol-defs.svg#icon-checked" />
  465. </svg>
  466. radio item 2
  467. </label>
  468. <div class="field__panel">
  469. error item 1
  470. </div>
  471. </div>
  472. <!-- components / field / select -->
  473. <h3 class="h4 margin-top-0x margin-bottom-0x">
  474. Select
  475. </h3>
  476. <div class="field">
  477. <label class="field__label">
  478. Select Item
  479. <select class="field__select">
  480. <option>select item 1</option>
  481. <option>select item 2</option>
  482. <option>select item 3</option>
  483. </select>
  484. </label>
  485. </div>
  486. <div class="field field--error">
  487. <label class="field__label">
  488. Select Item
  489. <select class="field__select">
  490. <option>select item 1</option>
  491. <option>select item 2</option>
  492. <option>select item 3</option>
  493. </select>
  494. <div class="field__panel">
  495. error item 1
  496. </div>
  497. </label>
  498. </div>
  499. <!-- components / field / input textarea -->
  500. <h3 class="h4 margin-top-0x margin-bottom-0x">
  501. Input / Textarea
  502. </h3>
  503. <div class="field">
  504. <input class="field__text" type="text" />
  505. </div>
  506. <div class="field field--valid">
  507. <label class="field__label">
  508. Text
  509. <input type="text" class="field__text" />
  510. </label>
  511. <div class="field__panel">
  512. error item 1
  513. </div>
  514. </div>
  515. <div class="field field--error">
  516. <label class="field__label">
  517. Text
  518. <input type="text" class="field__text" />
  519. </label>
  520. <div class="field__panel">
  521. error item 1
  522. </div>
  523. </div>
  524. <div class="field">
  525. <label class="field__label">
  526. Textarea
  527. <textarea class="field__text"></textarea>
  528. </label>
  529. </div>
  530. <div class="field field--error">
  531. <label class="field__label">
  532. Textarea
  533. <textarea class="field__text"></textarea>
  534. </label>
  535. <div class="field__panel">
  536. error item 1
  537. </div>
  538. </div>
  539. <!-- functions -->
  540. <hr class="margin-top-3x">
  541. <h2 id="functions" class="margin-top-1x">
  542. Functions
  543. </h2>
  544. <!-- functions / toEm / toRem -->
  545. <h3 class="h4 margin-top-0x margin-bottom-0x">
  546. toEm()<br>
  547. toRem()
  548. </h3>
  549. <h4 class="h6 margin-top-1x">Sass:</h4>
  550. <pre class="code"><code>toEm(5px);
  551. toEm(10px 10px 0 0);
  552. toRem(10px 10px 0 0);
  553. </code></pre>
  554. <p>
  555. Returns <strong>em</strong> and <strong>rem</strong>, accepts px and unitless values.
  556. </p>
  557. <!-- functions / stripUnit -->
  558. <h3 class="h4 margin-top-0x margin-bottom-0x">
  559. stripUnit()
  560. </h3>
  561. <h4 class="h6 margin-top-1x">Sass:</h4>
  562. <pre class="code"><code>toEm(10px);</code></pre>
  563. <p>
  564. Returns value without unit.
  565. </p>
  566. <!-- helpers -->
  567. <hr class="margin-top-3x">
  568. <h2 id="helpers" class="margin-top-1x">
  569. Helpers
  570. </h2>
  571. <!-- helpers / align -->
  572. <h3 class="h4 margin-top-1x">
  573. Float
  574. </h3>
  575. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  576. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  577. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  578. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  579. &lt;div class=&quot;float-left&quot;&gt;&lt;/div&gt;
  580. &lt;div class=&quot;float-center&quot;&gt;&lt;/div&gt;
  581. &lt;div class=&quot;float-none&quot;&gt;&lt;/div&gt;
  582. &lt;div class=&quot;center&quot;&gt;&lt;/div&gt;
  583. &lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;</code></pre>
  584. <!-- helpers / margin -->
  585. <h3 class="h4 margin-top-1x">
  586. Margin
  587. </h3>
  588. <p>
  589. margin-top and -bottom from <strong>$crispy__margin</strong> as px.
  590. </p>
  591. <pre class="code">&lt;div class=&quot;panel margin-bottom-0&quot;&gt;margin-bottom-0&lt;/div&gt;
  592. &lt;div class=&quot;margin-bottom-1&quot;&gt;margin-bottom-1&lt;/div&gt;
  593. &lt;div class=&quot;margin-bottom-2&quot;&gt;margin-bottom-2&lt;/div&gt;
  594. &lt;div class=&quot;margin-bottom-3&quot;&gt;margin-bottom-3&lt;/div&gt;
  595. &lt;div class=&quot;margin-bottom-4&quot;&gt;margin-bottom-4&lt;/div&gt;
  596. &lt;div class=&quot;margin-bottom-5&quot;&gt;margin-bottom-5&lt;/div&gt;</code></pre>
  597. <div class="panel panel__inner margin-bottom-0">margin-bottom-0</div>
  598. <div class="panel panel__inner margin-bottom-1">margin-bottom-1</div>
  599. <div class="panel panel__inner margin-bottom-2">margin-bottom-2</div>
  600. <div class="panel panel__inner margin-bottom-3">margin-bottom-3</div>
  601. <div class="panel panel__inner margin-bottom-4">margin-bottom-4</div>
  602. <div class="panel panel__inner margin-bottom-5">margin-bottom-5</div>
  603. <!-- helpers / media -->
  604. <h3 class="h4 margin-top-1">
  605. Media
  606. </h3>
  607. <pre class="code"><code>&lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  608. &lt;figure&gt;
  609. &lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  610. &lt;figcaption class=&quot;text-center&quot;&gt;Lorem Ipsum&lt;/figcaption&gt;
  611. &lt;/figure&gt;
  612. &lt;div class=&quot;video-responsive&quot; style=&quot;height: 280px;&quot;&gt;
  613. &lt;iframe src=&quot;https://giphy.com/embed/13XW2MJE0XCoM0&quot; width=&quot;480&quot; height=&quot;361&quot;&gt;&lt;/iframe&gt;
  614. &lt;/div&gt;</code></pre>
  615. <div class="grid">
  616. <div class="col-6">
  617. <img class="img-responsive" src="https://picsum.photos/400" />
  618. </div>
  619. <div class="col-6">
  620. <figure>
  621. <img class="img-responsive" src="https://picsum.photos/400" />
  622. <figcaption class="text-center">Lorem Ipsum</figcaption>
  623. </figure>
  624. </div>
  625. </div>
  626. <div class="grid">
  627. <div class="col-6">
  628. <div class="video-responsive" style="height: 280px;">
  629. <iframe src="https://giphy.com/embed/13XW2MJE0XCoM0" width="480" height="361" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
  630. </div>
  631. </div>
  632. </div>
  633. <!-- helpers / text -->
  634. <h3 class="h4 margin-top-1x">
  635. Text
  636. </h3>
  637. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  638. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  639. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  640. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  641. &lt;div class=&quot;text-italic&quot;&gt;&lt;/div&gt;
  642. &lt;div class=&quot;text-normal&quot;&gt;&lt;/div&gt;
  643. &lt;div class=&quot;text-bold&quot;&gt;&lt;/div&gt;
  644. &lt;div class=&quot;text-uppercase&quot;&gt;&lt;/div&gt;
  645. &lt;div class=&quot;text-lowercase&quot;&gt;&lt;/div&gt;
  646. &lt;div class=&quot;text-small&quot;&gt;&lt;/div&gt;
  647. &lt;div class=&quot;text-crossed&quot;&gt;&lt;/div&gt;</code></pre>
  648. <p>
  649. Also there are classes for,
  650. </p>
  651. <ul>
  652. <li>text-* with $crispy__font-sizes for "font-size"</li>
  653. <li>text-* with $crispy__colors for "color"</li>
  654. <li>background-* with $crispy__font-sizes for "background-color"</li>
  655. </ul>
  656. <!-- helpers / media -->
  657. <h3 class="h4 margin-top-1x">
  658. Width
  659. </h3>
  660. <pre class="code"><code>&lt;div class=&quot;panel width-25&quot;&gt;width-25&lt;/div&gt;
  661. &lt;div class=&quot;width-50&quot;&gt;width-50&lt;/div&gt;
  662. &lt;div class=&quot;width-75&quot;&gt;width-75&lt;/div&gt;
  663. &lt;div class=&quot;width-100&quot;&gt;width-100&lt;/div&gt;</code></pre>
  664. <div class="panel panel__inner width-25 margin-bottom-1">width-25</div>
  665. <div class="panel panel__inner width-50 margin-bottom-1">width-50</div>
  666. <div class="panel panel__inner width-75 margin-bottom-1">width-75</div>
  667. <div class="panel panel__inner width-100 margin-bottom-1">width-100</div>
  668. <!-- mixins -->
  669. <hr class="margin-top-3x">
  670. <h2 id="mixins" class="margin-top-1x">
  671. Mixins
  672. </h2>
  673. <!-- mixins / media-queries -->
  674. <h3 class="h4 margin-top-1x">
  675. Media Queries
  676. </h3>
  677. <p>
  678. These <strong>@mixins</strong> were used with the Breakpoints from the <a href="#reflex-grid">Reflex Grid</a>.
  679. </p>
  680. <ul>
  681. <li><strong>xs</strong> 576px</li>
  682. <li><strong>sm</strong> 768px</li>
  683. <li><strong>md</strong> 992px</li>
  684. <li><strong>lg</strong> 1200px</li>
  685. <li><strong>xlg</strong> 1600px</li>
  686. </ul>
  687. <h4 class="h6 margin-top-1x">Html:</h4>
  688. <pre class="code"><code>&lt;div class=&quot;sm&quot;&gt;sm&lt;/div&gt;
  689. &lt;div class=&quot;md&quot;&gt;md&lt;/div&gt;
  690. &lt;div class=&quot;md-only&quot;&gt;md-only&lt;/div&gt;
  691. &lt;div class=&quot;lg-only&quot;&gt;lg-only&lt;/div&gt;</pre></code>
  692. <h4 class="h6 margin-top-1x">Sass:</h4>
  693. <pre class="code"><code>.sm, .md, .md-only, .lg-only {
  694. display: none;
  695. }
  696. .sm {
  697. @include crispy__media-sm() {
  698. display: block;
  699. }
  700. }
  701. .md {
  702. @include crispy__media-md() {
  703. display: block;
  704. }
  705. }
  706. .md-only {
  707. @include crispy__media-md-only() {
  708. display: block;
  709. }
  710. }
  711. .lg-only {
  712. @include crispy__media-lg-only() {
  713. display: block;
  714. }
  715. }</code></pre>
  716. <div class="grid">
  717. <div class="col-3">
  718. <div class="panel panel__inner sm margin-bottom-1">sm</div>
  719. </div>
  720. <div class="col-3">
  721. <div class="panel panel__inner md margin-bottom-1">md</div>
  722. </div>
  723. <div class="col-3">
  724. <div class="panel panel__inner md-only margin-bottom-1">md-only</div>
  725. </div>
  726. <div class="col-3">
  727. <div class="panel panel__inner lg-only margin-bottom-1">lg-only</div>
  728. </div>
  729. </div>
  730. <!-- Reflex Grid -->
  731. <hr class="margin-top-3x">
  732. <h2 id="reflex-grid" class="margin-top-1x">
  733. Reflex Grid
  734. </h2>
  735. <p>
  736. 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
  737. support, an inline-block fallback.
  738. </p>
  739. <p>
  740. 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>
  741. </p>
  742. </div>
  743. </div>
  744. </div>
  745. <footer class="footer">
  746. <div class="container">
  747. <div class="grid">
  748. <div class="col-12">
  749. <div class="text-center">
  750. <div class="group group--horizontal">
  751. <ul class="group__section group__section--separate">
  752. <li class="group__item"><a href="/imprint.html">Imprint</a></li><li class="group__item"><a href="/privacy-policy.html">Privacy Policy</a></li>
  753. </ul>
  754. </div>
  755. </div>
  756. </div>
  757. </div>
  758. </div>
  759. </footer>
  760. </body>
  761. </html>