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.

824 lines
31 KiB

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