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.

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