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.

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