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.

847 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
  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 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. <!--<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. <!-- icons -->
  287. <h3 class="h4 margin-top-2 margin-bottom-0">
  288. Icon
  289. </h3>
  290. <h4 class="h6">Html:</h4>
  291. <pre class="code"><code>&lt;svg class=&quot;icon text-size-small&quot;&gt;
  292. &lt;use xlink:href=&quot;symbol-defs.svg#icon-minus&quot;&gt;&lt;/use&gt;
  293. &lt;/svg&gt;</code></pre>
  294. <div class="panel">
  295. <div class="panel__inner">
  296. <svg class="icon text-size-small" aria-hidden="true">
  297. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  298. </svg>
  299. <svg class="icon" aria-hidden="true">
  300. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  301. </svg>
  302. <svg class="icon text-size-large" aria-hidden="true">
  303. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  304. </svg>
  305. <svg class="icon text-size-big" aria-hidden="true">
  306. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  307. </svg>
  308. <svg class="icon text-size-mega" aria-hidden="true">
  309. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  310. </svg>
  311. </div>
  312. </div>
  313. <!-- components / panel -->
  314. <h3 class="h4 margin-top-2 margin-bottom-0">
  315. Panel
  316. </h3>
  317. <h4 class="h6">Html:</h4>
  318. <pre class="code"><code>&lt;div class=&quot;panel&quot;&gt;
  319. &lt;div class=&quot;panel__inner&quot;&gt;
  320. Lorem Ipsum
  321. &lt;/div&gt;
  322. &lt;/div&gt;</code></pre>
  323. <div class="panel">
  324. <div class="panel__inner">
  325. Lorem Ipsum
  326. </div>
  327. </div>
  328. <!-- components / modal -->
  329. <h3 class="h4 margin-top-3 margin-bottom-0">
  330. Modal
  331. </h3>
  332. <h4 class="h6">Html:</h4>
  333. <pre class="code"><code>&lt;div class=&quot;modal modal--bottom width-100&quot;&gt;
  334. &lt;div class=&quot;panel&quot;&gt;
  335. &lt;div class=&quot;panel__inner&quot;&gt;
  336. Lorem Ipsum
  337. &lt;/div&gt;
  338. &lt;/div&gt;
  339. &lt;/div&gt;</code></pre>
  340. <div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;">
  341. <div class="modal modal--top-left">
  342. <div class="panel">
  343. <div class="panel__inner">
  344. .modal--top-left
  345. </div>
  346. </div>
  347. </div>
  348. <div class="modal modal--top-right">
  349. <div class="panel">
  350. <div class="panel__inner">
  351. .modal--top-right
  352. </div>
  353. </div>
  354. </div>
  355. <div class="modal">
  356. <div class="panel">
  357. <div class="panel__inner">
  358. .modal
  359. </div>
  360. </div>
  361. </div>
  362. <div class="modal modal--bottom-left">
  363. <div class="panel">
  364. <div class="panel__inner">
  365. .modal--bottom-left
  366. </div>
  367. </div>
  368. </div>
  369. <div class="modal modal--bottom-right">
  370. <div class="panel">
  371. <div class="panel__inner">
  372. .modal--bottom-right
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. <!-- components / table -->
  378. <h3 class="h4 margin-top-2 margin-bottom-0">
  379. Table
  380. </h3>
  381. <h4 class="h6">Html:</h4>
  382. <pre class="code"><code>&lt;table class=&quot;table table--striped&quot;&gt;
  383. &lt;thead&gt;
  384. &lt;tr&gt;
  385. &lt;th&gt;&lt;/th&gt;
  386. &lt;/tr&gt;
  387. &lt;/thead&gt;
  388. &lt;tbody&gt;
  389. &lt;tr&gt;
  390. &lt;td&gt;&lt;/td&gt;
  391. &lt;/tr&gt;
  392. &lt;/tbody&gt;
  393. &lt;/table&gt;</code></pre>
  394. <table class="table table--striped margin-bottom-2">
  395. <thead>
  396. <tr>
  397. <th>name</th>
  398. <th>age</th>
  399. </tr>
  400. </thead>
  401. <tbody>
  402. <tr>
  403. <td>Mr. Brown</td>
  404. <td>43</td>
  405. </tr>
  406. <tr>
  407. <td>Mr. Magenta</td>
  408. <td>32</td>
  409. </tr>
  410. <tr>
  411. <td>Mr. White</td>
  412. <td>45</td>
  413. </tr>
  414. </tbody>
  415. </table>
  416. <!-- components / field / checkbox -->
  417. <h3 class="h4 margin-top-0 margin-bottom-0">
  418. Checkbox
  419. </h3>
  420. <div class="field">
  421. <input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true" />
  422. <label for="field__checkbox__1" class="field__label">
  423. <svg class="icon field__choice__unchecked" aria-hidden="true">
  424. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  425. </svg>
  426. <svg class="icon field__choice__checked" aria-hidden="true">
  427. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  428. </svg>
  429. checkbox 1
  430. </label>
  431. <input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true" />
  432. <label for="field__checkbox__2" class="field__label">
  433. <svg class="icon field__choice__unchecked" aria-hidden="true">
  434. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  435. </svg>
  436. <svg class="icon field__choice__checked" aria-hidden="true">
  437. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  438. </svg>
  439. checkbox 2
  440. </label>
  441. </div>
  442. <div class="field field--error">
  443. <input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true" />
  444. <label for="field__checkbox__2" class="field__label">
  445. <svg class="icon field__choice__unchecked" aria-hidden="true">
  446. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  447. </svg>
  448. <svg class="icon field__choice__checked" aria-hidden="true">
  449. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  450. </svg>
  451. checkbox 1
  452. </label>
  453. <div class="field__panel">
  454. error item 1
  455. </div>
  456. </div>
  457. <!-- components / field / radio -->
  458. <h3 class="h4 margin-top-0x margin-bottom-0x">
  459. Radio
  460. </h3>
  461. <div class="field">
  462. <input id="field__radio__1" class="field__choice" type="radio" name="field__radio__1[]" value="true" />
  463. <label for="field__radio__1" 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__2" class="field__choice" type="radio" name="field__radio__1[]" value="true" />
  473. <label for="field__radio__2" 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>
  483. <!-- radio / error -->
  484. <div class="field field--error">
  485. <input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true" />
  486. <label for="field__radio__3" class="field__label">
  487. <svg class="icon field__choice__unchecked" aria-hidden="true">
  488. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  489. </svg>
  490. <svg class="icon field__choice__checked" aria-hidden="true">
  491. <use xlink:href="symbol-defs.svg#icon-checked" />
  492. </svg>
  493. radio item 1
  494. </label><br />
  495. <input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true" />
  496. <label for="field__radio__4" class="field__label">
  497. <svg class="icon field__choice__unchecked" aria-hidden="true">
  498. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  499. </svg>
  500. <svg class="icon field__choice__checked" aria-hidden="true">
  501. <use xlink:href="symbol-defs.svg#icon-checked" />
  502. </svg>
  503. radio item 2
  504. </label>
  505. <div class="field__panel">
  506. error item 1
  507. </div>
  508. </div>
  509. <!-- components / field / select -->
  510. <h3 class="h4 margin-top-0x margin-bottom-0x">
  511. Select
  512. </h3>
  513. <div class="field">
  514. <label class="field__label">
  515. Select Item
  516. <select class="field__select">
  517. <option>select item 1</option>
  518. <option>select item 2</option>
  519. <option>select item 3</option>
  520. </select>
  521. </label>
  522. </div>
  523. <div class="field field--error">
  524. <label class="field__label">
  525. Select Item
  526. <select class="field__select">
  527. <option>select item 1</option>
  528. <option>select item 2</option>
  529. <option>select item 3</option>
  530. </select>
  531. <div class="field__panel">
  532. error item 1
  533. </div>
  534. </label>
  535. </div>
  536. <!-- components / field / input textarea -->
  537. <h3 class="h4 margin-top-0x margin-bottom-0x">
  538. Input / Textarea
  539. </h3>
  540. <div class="field">
  541. <input class="field__text" type="text" />
  542. </div>
  543. <div class="field field--valid">
  544. <label class="field__label">
  545. Text
  546. <input type="text" class="field__text" />
  547. </label>
  548. <div class="field__panel">
  549. error item 1
  550. </div>
  551. </div>
  552. <div class="field field--error">
  553. <label class="field__label">
  554. Text
  555. <input type="text" class="field__text" />
  556. </label>
  557. <div class="field__panel">
  558. error item 1
  559. </div>
  560. </div>
  561. <div class="field">
  562. <label class="field__label">
  563. Textarea
  564. <textarea class="field__text"></textarea>
  565. </label>
  566. </div>
  567. <div class="field field--error">
  568. <label class="field__label">
  569. Textarea
  570. <textarea class="field__text"></textarea>
  571. </label>
  572. <div class="field__panel">
  573. error item 1
  574. </div>
  575. </div>
  576. <!-- functions -->
  577. <hr class="margin-top-3x">
  578. <h2 id="functions" class="margin-top-1x">
  579. Functions
  580. </h2>
  581. <!-- functions / toEm / toRem -->
  582. <h3 class="h4 margin-top-0x margin-bottom-0x">
  583. toEm()<br>
  584. toRem()
  585. </h3>
  586. <h4 class="h6 margin-top-1x">Sass:</h4>
  587. <pre class="code"><code>toEm(5px);
  588. toEm(10px 10px 0 0);
  589. toRem(10px 10px 0 0);
  590. </code></pre>
  591. <p>
  592. Returns <strong>em</strong> and <strong>rem</strong>, accepts px and unitless values.
  593. </p>
  594. <!-- functions / stripUnit -->
  595. <h3 class="h4 margin-top-0x margin-bottom-0x">
  596. stripUnit()
  597. </h3>
  598. <h4 class="h6 margin-top-1x">Sass:</h4>
  599. <pre class="code"><code>toEm(10px);</code></pre>
  600. <p>
  601. Returns value without unit.
  602. </p>
  603. <!-- helpers -->
  604. <hr class="margin-top-3x">
  605. <h2 id="helpers" class="margin-top-1x">
  606. Helpers
  607. </h2>
  608. <!-- helpers / align -->
  609. <h3 class="h4 margin-top-1x">
  610. Float
  611. </h3>
  612. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  613. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  614. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  615. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  616. &lt;div class=&quot;float-left&quot;&gt;&lt;/div&gt;
  617. &lt;div class=&quot;float-center&quot;&gt;&lt;/div&gt;
  618. &lt;div class=&quot;float-none&quot;&gt;&lt;/div&gt;
  619. &lt;div class=&quot;center&quot;&gt;&lt;/div&gt;
  620. &lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;</code></pre>
  621. <!-- helpers / margin -->
  622. <h3 class="h4 margin-top-1x">
  623. Margin
  624. </h3>
  625. <p>
  626. margin-top and -bottom from <strong>$crispy__margin</strong> as px.
  627. </p>
  628. <pre class="code">&lt;div class=&quot;panel margin-bottom-0&quot;&gt;margin-bottom-0&lt;/div&gt;
  629. &lt;div class=&quot;margin-bottom-1&quot;&gt;margin-bottom-1&lt;/div&gt;
  630. &lt;div class=&quot;margin-bottom-2&quot;&gt;margin-bottom-2&lt;/div&gt;
  631. &lt;div class=&quot;margin-bottom-3&quot;&gt;margin-bottom-3&lt;/div&gt;
  632. &lt;div class=&quot;margin-bottom-4&quot;&gt;margin-bottom-4&lt;/div&gt;
  633. &lt;div class=&quot;margin-bottom-5&quot;&gt;margin-bottom-5&lt;/div&gt;</code></pre>
  634. <div class="panel panel__inner margin-bottom-0">margin-bottom-0</div>
  635. <div class="panel panel__inner margin-bottom-1">margin-bottom-1</div>
  636. <div class="panel panel__inner margin-bottom-2">margin-bottom-2</div>
  637. <div class="panel panel__inner margin-bottom-3">margin-bottom-3</div>
  638. <div class="panel panel__inner margin-bottom-4">margin-bottom-4</div>
  639. <div class="panel panel__inner margin-bottom-5">margin-bottom-5</div>
  640. <!-- helpers / media -->
  641. <h3 class="h4 margin-top-1">
  642. Media
  643. </h3>
  644. <pre class="code"><code>&lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  645. &lt;figure&gt;
  646. &lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  647. &lt;figcaption class=&quot;text-center&quot;&gt;Lorem Ipsum&lt;/figcaption&gt;
  648. &lt;/figure&gt;
  649. &lt;div class=&quot;video-responsive&quot; style=&quot;height: 280px;&quot;&gt;
  650. &lt;iframe src=&quot;https://giphy.com/embed/13XW2MJE0XCoM0&quot; width=&quot;480&quot; height=&quot;361&quot;&gt;&lt;/iframe&gt;
  651. &lt;/div&gt;</code></pre>
  652. <div class="grid">
  653. <div class="col-6">
  654. <img class="img-responsive" src="https://picsum.photos/400" />
  655. </div>
  656. <div class="col-6">
  657. <figure>
  658. <img class="img-responsive" src="https://picsum.photos/400" />
  659. <figcaption class="text-center">Lorem Ipsum</figcaption>
  660. </figure>
  661. </div>
  662. </div>
  663. <div class="grid">
  664. <div class="col-6">
  665. <div class="video-responsive" style="height: 280px;">
  666. <iframe src="https://giphy.com/embed/13XW2MJE0XCoM0" width="480" height="361" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
  667. </div>
  668. </div>
  669. </div>
  670. <!-- helpers / text -->
  671. <h3 class="h4 margin-top-1x">
  672. Text
  673. </h3>
  674. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  675. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  676. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  677. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  678. &lt;div class=&quot;text-italic&quot;&gt;&lt;/div&gt;
  679. &lt;div class=&quot;text-normal&quot;&gt;&lt;/div&gt;
  680. &lt;div class=&quot;text-bold&quot;&gt;&lt;/div&gt;
  681. &lt;div class=&quot;text-uppercase&quot;&gt;&lt;/div&gt;
  682. &lt;div class=&quot;text-lowercase&quot;&gt;&lt;/div&gt;
  683. &lt;div class=&quot;text-small&quot;&gt;&lt;/div&gt;
  684. &lt;div class=&quot;text-crossed&quot;&gt;&lt;/div&gt;</code></pre>
  685. <p>
  686. Also there are classes for,
  687. </p>
  688. <ul>
  689. <li>text-* with $crispy__font-sizes for "font-size"</li>
  690. <li>text-* with $crispy__colors for "color"</li>
  691. <li>background-* with $crispy__font-sizes for "background-color"</li>
  692. </ul>
  693. <!-- helpers / media -->
  694. <h3 class="h4 margin-top-1x">
  695. Width
  696. </h3>
  697. <pre class="code"><code>&lt;div class=&quot;panel width-25&quot;&gt;width-25&lt;/div&gt;
  698. &lt;div class=&quot;width-50&quot;&gt;width-50&lt;/div&gt;
  699. &lt;div class=&quot;width-75&quot;&gt;width-75&lt;/div&gt;
  700. &lt;div class=&quot;width-100&quot;&gt;width-100&lt;/div&gt;</code></pre>
  701. <div class="panel panel__inner width-25 margin-bottom-1">width-25</div>
  702. <div class="panel panel__inner width-50 margin-bottom-1">width-50</div>
  703. <div class="panel panel__inner width-75 margin-bottom-1">width-75</div>
  704. <div class="panel panel__inner width-100 margin-bottom-1">width-100</div>
  705. <!-- mixins -->
  706. <hr class="margin-top-3x">
  707. <h2 id="mixins" class="margin-top-1x">
  708. Mixins
  709. </h2>
  710. <!-- mixins / media-queries -->
  711. <h3 class="h4 margin-top-1x">
  712. Media Queries
  713. </h3>
  714. <p>
  715. These <strong>@mixins</strong> were used with the Breakpoints from the <a href="#reflex-grid">Reflex Grid</a>.
  716. </p>
  717. <ul>
  718. <li><strong>xs</strong> 576px</li>
  719. <li><strong>sm</strong> 768px</li>
  720. <li><strong>md</strong> 992px</li>
  721. <li><strong>lg</strong> 1200px</li>
  722. <li><strong>xlg</strong> 1600px</li>
  723. </ul>
  724. <h4 class="h6 margin-top-1x">Html:</h4>
  725. <pre class="code"><code>&lt;div class=&quot;sm&quot;&gt;sm&lt;/div&gt;
  726. &lt;div class=&quot;md&quot;&gt;md&lt;/div&gt;
  727. &lt;div class=&quot;md-only&quot;&gt;md-only&lt;/div&gt;
  728. &lt;div class=&quot;lg-only&quot;&gt;lg-only&lt;/div&gt;</pre></code>
  729. <h4 class="h6 margin-top-1x">Sass:</h4>
  730. <pre class="code"><code>.sm, .md, .md-only, .lg-only {
  731. display: none;
  732. }
  733. .sm {
  734. @include crispy__media-sm() {
  735. display: block;
  736. }
  737. }
  738. .md {
  739. @include crispy__media-md() {
  740. display: block;
  741. }
  742. }
  743. .md-only {
  744. @include crispy__media-md-only() {
  745. display: block;
  746. }
  747. }
  748. .lg-only {
  749. @include crispy__media-lg-only() {
  750. display: block;
  751. }
  752. }</code></pre>
  753. <div class="grid">
  754. <div class="col-3">
  755. <div class="panel panel__inner sm margin-bottom-1">sm</div>
  756. </div>
  757. <div class="col-3">
  758. <div class="panel panel__inner md margin-bottom-1">md</div>
  759. </div>
  760. <div class="col-3">
  761. <div class="panel panel__inner md-only margin-bottom-1">md-only</div>
  762. </div>
  763. <div class="col-3">
  764. <div class="panel panel__inner lg-only margin-bottom-1">lg-only</div>
  765. </div>
  766. </div>
  767. <!-- Reflex Grid -->
  768. <hr class="margin-top-3x">
  769. <h2 id="reflex-grid" class="margin-top-1x">
  770. Reflex Grid
  771. </h2>
  772. <p>
  773. 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
  774. support, an inline-block fallback.
  775. </p>
  776. <p>
  777. 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>
  778. </p>
  779. </div>
  780. </div>
  781. </div>
  782. <footer class="footer">
  783. <div class="container">
  784. <div class="grid">
  785. <div class="col-12">
  786. <div class="text-center">
  787. <div class="group group--horizontal">
  788. <ul class="group__section group__section--separate">
  789. <li class="group__item"><a href="/imprint.html">Imprint</a></li><li class="group__item"><a href="/privacy-policy.html">Privacy Policy</a></li>
  790. </ul>
  791. </div>
  792. </div>
  793. </div>
  794. </div>
  795. </div>
  796. </footer>
  797. </body>
  798. </html>