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.

863 lines
33 KiB

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