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.

814 lines
32 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. <!doctype html>
  2. <html class="no-js" lang="en_EN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="x-ua-compatible" content="ie=edge">
  6. <title>Cripsy Boilerplate</title>
  7. <meta name="description" content="">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="stylesheet" href="https://raw.githubusercontent.com/leejordan/reflex/master/css/reflex.min.css">
  10. <link rel="stylesheet" href="/css/styles.css">
  11. </head>
  12. <body>
  13. <nav class="nav">
  14. <ul class="margin-top-0x">
  15. <li><a href="#getting-started">Getting Started</a></li>
  16. <li><a href="#typography">Typography</a></li>
  17. <li><a href="#components">Components</a></li>
  18. <li><a href="#functions">Functions</a></li>
  19. <li><a href="#helpers">Helpers</a></li>
  20. <li><a href="#mixins">Mixins</a></li>
  21. <li><a href="#reflex-grid">Reflex Grid</a></li>
  22. </ul>
  23. </nav>
  24. <div class="container container--main">
  25. <header id="header" class="header">
  26. <div class="grid">
  27. <div class="col-12">
  28. <div class="text-center">
  29. <hgroup>
  30. <a href="/">
  31. <svg class="icon header__logo" alt="Crisp" viewBox="0 0 100 100">
  32. <use xlink:href="/svg/icons.svg#chip" />
  33. </svg>
  34. <div class="header__title h1">
  35. Crispy Boilerplate<br />
  36. <span class="text-small header__small">0.9.9</span>
  37. </div>
  38. </a>
  39. <div class="header__subtitle h5">
  40. Less is More
  41. </div>
  42. </hgroup>
  43. </div>
  44. </div>
  45. </div>
  46. </header>
  47. <a class="button button--up" href="#header">
  48. <svg class="icon" alt="up" viewBox="0 0 100 100">
  49. <use xlink:href="/svg/icons.svg#triangle-up" />
  50. </svg>
  51. </a>
  52. <div class="grid">
  53. <div class="col-12 col-sm-9">
  54. <p>
  55. Flat Sass Boilerplate gives you an amount of basic settings, components, helpers, mixins and functions.
  56. </p>
  57. <p>
  58. The problem of most frameworks is they trying to hard adding a lot of styles
  59. which has to be customized and documented if you used it for a Project.
  60. Often these changes cause a loss of performance and raise the propability of errors.
  61. </p>
  62. <p>
  63. Crispy Boilerplate uses also the following libraries:
  64. </p>
  65. <ul>
  66. <li><a href="https://necolas.github.io/normalize.css/" target="_blank">normalize.css</a></li>
  67. <li><a href="http://reflexgrid.com/docs/" target="_blank">reflex-grid</a></li>
  68. <li><a href="https://octicons.github.com" target="_blank">octicons</a></li>
  69. </ul>
  70. <h3>Coding Style</h3>
  71. <p>
  72. The boilerplate uses as coding style <a href="http://getbem.com/" target="_blank">BEM</a>,
  73. but as a more simpler idea of it. One of the benefits of BEM is that you create components and can reuse them.
  74. But one the other hand it can be really strange if you overthinking it.
  75. </p>
  76. <h3>Not Fancy but Small</h3>
  77. <p>
  78. Components are created to give you a structure and a basic set of styles and not to look fancy.
  79. The idea is to extend each component and save time to write a bunch of extra CSS code and
  80. therefore get more performance while minimize the causes of errors. Of Course is really Fancy to get more Performance and less Errors.
  81. </p>
  82. <h3>Include</h3>
  83. <p>
  84. Components and Helpers are organizes as Mixins, that makes it a little easier to
  85. to add Styles you need.
  86. </p>
  87. <!-- getting started -->
  88. <hr class="margin-top-3x">
  89. <h2 id="getting-started">Getting Started</h2>
  90. <h3>Installation</h3>
  91. <pre class="code"><code>npm install crispy-boilerplate</code></pre>
  92. <p>Main SCSS-file:</p>
  93. <pre class="code"><code>@import
  94. "crispy";</code></pre>
  95. <p>After this include mixins you need:</p>
  96. <pre class="code"><code>@include crispy__*()</code></pre>
  97. <p>To overwrite defaults simple add your own config-file before importing crispy:</p>
  98. <pre class="code"><code>@import
  99. "config",
  100. "crispy";</code></pre>
  101. <h3>Example</h3>
  102. <p>
  103. 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.
  104. </p>
  105. <h4>Site</h4>
  106. <p>
  107. 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.
  108. </p>
  109. <h4>Templates</h4>
  110. <p>
  111. Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.
  112. </p>
  113. <!-- typography -->
  114. <hr class="margin-top-3x">
  115. <h2 id="typography" class="margin-top-1x">
  116. Typography
  117. </h2>
  118. <!-- abbr -->
  119. <h3 class="h4 margin-top-2x margin-bottom-0x">a</h3>
  120. <h4 class="h6">Html:</h4>
  121. <pre class="code"><code>&lt;a href=&quot;&quot;&gt;&lt;/a&gt;</code></pre>
  122. <p>
  123. Color of Text is set by <strong>$crispy__color-primary</strong>. <strong>Hover</strong> is set by
  124. <strong>$crispy__color-text</strong>
  125. </p>
  126. <!-- abbr -->
  127. <h3 class="h4 margin-top-2x margin-bottom-0x">abbr</h3>
  128. <h4 class="h6">Html:</h4>
  129. <pre class="code"><code>&lt;abbr title=&quot;&quot;&gt;&lt;/abbr&gt;</code></pre>
  130. <p>
  131. Glossier viral occupy mixtape pok pok cornhole, <abbr title="vape affogato hella">vape affogato hella</abbr> knausgaard thundercats
  132. </p>
  133. <!-- blockquote -->
  134. <h3 class="h4 margin-top-2x margin-bottom-0x">blockquote</h3>
  135. <h4 class="h6">Html:</h4>
  136. <pre class="code"><code>&lt;blockquote&gt;&lt;/blockquote&gt;</code></pre>
  137. <blockquote>
  138. 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.
  139. </blockquote>
  140. <!-- hr -->
  141. <h3 class="h4 margin-top-2x margin-bottom-0x">hr</h3>
  142. <h4 class="h6">Html:</h4>
  143. <pre class="code"><code>&lt;hr&gt;</code></pre>
  144. <p>
  145. <hr>
  146. </p>
  147. <!-- paragraph -->
  148. <h3 class="h4 margin-top-2x margin-bottom-0x">paragraph</h3>
  149. <h4 class="h6">Html:</h4>
  150. <pre class="code"><code>&lt;p&gt;&lt;/p&gt;</code></pre>
  151. <p>
  152. Glossier viral occupy mixtape pok pok.
  153. </p>
  154. <!-- mark -->
  155. <h3 class="h4 margin-top-2x margin-bottom-0x">mark</h3>
  156. <h4 class="h6">Html:</h4>
  157. <pre class="code"><code>&lt;mark&gt;&lt;/mark&gt;</code></pre>
  158. <p>
  159. Pug before they <mark>four loko</mark> Deep v bespoke
  160. </p>
  161. <!-- list -->
  162. <h3 class="h4 margin-top-2x margin-bottom-0x">list</h3>
  163. <h4 class="h6">Html:</h4>
  164. <pre class="code"><code>&lt;ul&gt;
  165. &lt;li&gt;item 1&lt;/li&gt;
  166. &lt;li&gt;item 2
  167. &lt;ul&gt;
  168. &lt;li&gt;child item 1&lt;/li&gt;
  169. &lt;li&gt;child item 2&lt;/li&gt;
  170. &lt;/ul&gt;
  171. &lt;/li&gt;
  172. &lt;/ul&gt;
  173. &lt;ol&gt;
  174. &lt;li&gt;item 1&lt;/li&gt;
  175. &lt;li&gt;item 2&lt;/li&gt;
  176. &lt;/ol&gt;
  177. &lt;dl&gt;
  178. &lt;dt&gt;defined title 1&lt;/dt&gt;
  179. &lt;dd&gt;defined item 1&lt;/dd&gt;
  180. &lt;/dl&gt;</code></pre>
  181. <ul>
  182. <li>item 1</li>
  183. <li>
  184. item 2
  185. <ul>
  186. <li>child item 1</li>
  187. <li>child item 2</li>
  188. </ul>
  189. </li>
  190. </ul>
  191. <ol>
  192. <li>item 1</li>
  193. <li>item 2</li>
  194. </ol>
  195. <dl>
  196. <dt>defined title 1</dt>
  197. <dd>defined item 1</dd>
  198. </dl>
  199. <!-- components -->
  200. <hr class="margin-top-3x">
  201. <h2 id="components" class="margin-top-1x">
  202. Components
  203. </h2>
  204. <!-- components / button -->
  205. <h3 class="h4 margin-top-2x margin-bottom-0x">
  206. Button
  207. </h3>
  208. <h4 class="h6">Html:</h4>
  209. <pre class="code margin-top-1x"><code>&lt;button class=&quot;button&quot;&gt;&lt;/button&gt;
  210. &lt;button class=&quot;button button--wide&quot;&gt;&lt;/button&gt;</code></pre>
  211. <button class="button">Default</button>
  212. <button class="button button--wide margin-top-1x">Info</button>
  213. <!-- components / code -->
  214. <h3 class="h4 margin-top-2x margin-bottom-0x">
  215. Code
  216. </h3>
  217. <h4 class="h6">Html:</h4>
  218. <pre class="code margin-top-1x"><code>&lt;pre class=&quot;code&quot;&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;</code></pre>
  219. <!-- components / group -->
  220. <h3 class="h4 margin-top-2x margin-bottom-0x">
  221. Group
  222. </h3>
  223. <h4 class="h6">Html:</h4>
  224. <pre class="code"><code>&lt;nav class=&quot;group&quot;&gt;
  225. &lt;ul class=&quot;group__section&quot;&gt;
  226. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  227. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  228. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  229. &lt;/ul&gt;
  230. &lt;/nav&gt;</code></pre>
  231. <div class="panel panel__inner margin-bottom-1x">
  232. <nav class="group">
  233. <ul class="group__section">
  234. <li class="group__item">first item</li>
  235. <li class="group__item">second item</li>
  236. <li class="group__item">third item</li>
  237. </ul>
  238. </nav>
  239. </div>
  240. <h4 class="h6">Html:</h4>
  241. <pre class="code"><code>&lt;nav class=&quot;group group--horizontal&quot;&gt;
  242. &lt;ul class=&quot;group__section group__section--separate&quot;&gt;
  243. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  244. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  245. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  246. &lt;/ul&gt;
  247. &lt;/nav&gt;</code></pre>
  248. <div class="panel panel__inner">
  249. <nav class="group group--horizontal">
  250. <ul class="group__section group__section--separate">
  251. <li class="group__item">first item</li><li class="group__item">second item</li><li class="group__item">third item</li>
  252. </ul>
  253. </nav>
  254. </div>
  255. <!-- components / heading -->
  256. <h3 class="h4 margin-top-2x margin-bottom-0x">
  257. Heading
  258. </h3>
  259. <h4 class="h6">Html:</h4>
  260. <pre class="code"><code>&lt;h2&gt;&lt;/h2&gt;
  261. &lt;h2 class="h3"&gt;&lt;/h2&gt;</code></pre>
  262. <h4 class="h6">Sass:</h4>
  263. <pre class="code"><code>$crispy__heading__font-sizes: (
  264. 'h1': 40px,
  265. 'h2': 36px,
  266. 'h3': 32px,
  267. 'h4': 28px,
  268. 'h5': 24px,
  269. 'h6': 20px
  270. ) !default;</code></pre>
  271. <h1>Heading h1</h1>
  272. <h2>Heading h1</h2>
  273. <h3>Heading h1</h3>
  274. <h4>Heading h1</h4>
  275. <h5>Heading h1</h5>
  276. <h6>Heading h1</h6>
  277. <!-- components / hero -->
  278. <h3 class="h4 margin-top-2x margin-bottom-0x">
  279. Hero
  280. </h3>
  281. <h4 class="h6">Html:</h4>
  282. <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>
  283. <div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div>
  284. <!-- components / icon -->
  285. <h3 class="h4 margin-top-2x margin-bottom-0x">
  286. Icon
  287. </h3>
  288. <h4 class="h6">Html:</h4>
  289. <pre class="code"><code>&lt;svg class=&quot;icon icon--small&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  290. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  291. &lt;/svg&gt;
  292. &lt;svg class=&quot;icon&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  293. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  294. &lt;/svg&gt;
  295. &lt;svg class=&quot;icon icon--large&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  296. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  297. &lt;/svg&gt;
  298. &lt;svg class=&quot;icon icon--danger&quot; alt=&quot;alert&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  299. &lt;use xlink:href=&quot;/svg/icons.svg#alert&quot; /&gt;
  300. &lt;/svg&gt;
  301. </code></pre>
  302. <svg class="icon icon--small" alt="beaker" viewBox="0 0 100 100">
  303. <use xlink:href="/svg/icons.svg#beaker" />
  304. </svg>
  305. <svg class="icon" alt="beaker" viewBox="0 0 100 100">
  306. <use xlink:href="/svg/icons.svg#beaker" />
  307. </svg>
  308. <svg class="icon icon--large" alt="beaker" viewBox="0 0 100 100">
  309. <use xlink:href="/svg/icons.svg#beaker" />
  310. </svg>
  311. <svg class="icon icon--danger" alt="alert" viewBox="0 0 100 100">
  312. <use xlink:href="/svg/icons.svg#alert" />
  313. </svg>
  314. <!-- components / modal -->
  315. <h3 class="h4 margin-top-2x margin-bottom-0x">
  316. Modal
  317. </h3>
  318. <h4 class="h6">Html:</h4>
  319. <pre class="code"><code>&lt;div class=&quot;modal modal--bottom width-100&quot;&gt;
  320. &lt;div class=&quot;panel&quot;&gt;
  321. &lt;div class=&quot;panel__inner&quot;&gt;
  322. Lorem Ipsum
  323. &lt;/div&gt;
  324. &lt;/div&gt;
  325. &lt;/div&gt;</code></pre>
  326. <div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;">
  327. <div class="modal modal--bottom width-100">
  328. <div class="panel">
  329. <div class="panel__inner">
  330. Lorem Ipsum
  331. </div>
  332. </div>
  333. </div>
  334. </div>
  335. <!-- components / panel -->
  336. <h3 class="h4 margin-top-2x margin-bottom-0x">
  337. Panel
  338. </h3>
  339. <h4 class="h6">Html:</h4>
  340. <pre class="code"><code>&lt;div class=&quot;panel&quot;&gt;
  341. &lt;div class=&quot;panel__inner&quot;&gt;
  342. Lorem Ipsum
  343. &lt;/div&gt;
  344. &lt;/div&gt;</code></pre>
  345. <div class="panel">
  346. <div class="panel__inner">
  347. Lorem Ipsum
  348. </div>
  349. </div>
  350. <!-- components / table -->
  351. <h3 class="h4 margin-top-2x margin-bottom-0x">
  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-2x">
  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-0x margin-bottom-0x">
  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" alt="beaker" viewBox="0 0 100 100">
  397. <use xlink:href="/svg/icons.svg#x" />
  398. </svg>
  399. <svg class="icon field__checkbox__checked" alt="beaker" viewBox="0 0 100 100">
  400. <use xlink:href="/svg/icons.svg#check" />
  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" alt="beaker" viewBox="0 0 100 100">
  409. <use xlink:href="/svg/icons.svg#x" />
  410. </svg>
  411. <svg class="icon field__checkbox__checked" alt="beaker" viewBox="0 0 100 100">
  412. <use xlink:href="/svg/icons.svg#check" />
  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" alt="beaker" viewBox="0 0 100 100">
  428. <use xlink:href="/svg/icons.svg#x" />
  429. </svg>
  430. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  431. <use xlink:href="/svg/icons.svg#check" />
  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" alt="beaker" viewBox="0 0 100 100">
  438. <use xlink:href="/svg/icons.svg#x" />
  439. </svg>
  440. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  441. <use xlink:href="/svg/icons.svg#check" />
  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__radio" type="radio" name="field__radio__2[]" value="true" />
  449. <label for="field__radio__3" class="field__label">
  450. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  451. <use xlink:href="/svg/icons.svg#x" />
  452. </svg>
  453. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  454. <use xlink:href="/svg/icons.svg#check" />
  455. </svg>
  456. radio item 1
  457. </label><br />
  458. <input id="field__radio__4" class="field__radio" type="radio" name="field__radio__2[]" value="true" />
  459. <label for="field__radio__4" class="field__label">
  460. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  461. <use xlink:href="/svg/icons.svg#x" />
  462. </svg>
  463. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  464. <use xlink:href="/svg/icons.svg#check" />
  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-0x&quot;&gt;margin-bottom-0x&lt;/div&gt;
  592. &lt;div class=&quot;margin-bottom-1x&quot;&gt;margin-bottom-1x&lt;/div&gt;
  593. &lt;div class=&quot;margin-bottom-2x&quot;&gt;margin-bottom-2x&lt;/div&gt;
  594. &lt;div class=&quot;margin-bottom-3x&quot;&gt;margin-bottom-3x&lt;/div&gt;
  595. &lt;div class=&quot;margin-bottom-4x&quot;&gt;margin-bottom-4x&lt;/div&gt;
  596. &lt;div class=&quot;margin-bottom-5x&quot;&gt;margin-bottom-5x&lt;/div&gt;</code></pre>
  597. <div class="panel panel__inner margin-bottom-0x">margin-bottom-0x</div>
  598. <div class="panel panel__inner margin-bottom-1x">margin-bottom-1x</div>
  599. <div class="panel panel__inner margin-bottom-2x">margin-bottom-2x</div>
  600. <div class="panel panel__inner margin-bottom-3x">margin-bottom-3x</div>
  601. <div class="panel panel__inner margin-bottom-4x">margin-bottom-4x</div>
  602. <div class="panel panel__inner margin-bottom-5x">margin-bottom-5x</div>
  603. <!-- helpers / media -->
  604. <h3 class="h4 margin-top-1x">
  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-1x">width-25</div>
  665. <div class="panel panel__inner width-50 margin-bottom-1x">width-50</div>
  666. <div class="panel panel__inner width-75 margin-bottom-1x">width-75</div>
  667. <div class="panel panel__inner width-100 margin-bottom-1x">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-1x">sm</div>
  719. </div>
  720. <div class="col-3">
  721. <div class="panel panel__inner md margin-bottom-1x">md</div>
  722. </div>
  723. <div class="col-3">
  724. <div class="panel panel__inner md-only margin-bottom-1x">md-only</div>
  725. </div>
  726. <div class="col-3">
  727. <div class="panel panel__inner lg-only margin-bottom-1x">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. <script type="text/javascript" src="/js/app.js"></script>
  761. </body>
  762. </html>