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.

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