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.

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