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.

951 lines
36 KiB

5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
5 years ago
4 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
4 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
4 years ago
5 years ago
5 years ago
5 years ago
4 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
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
4 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.1.0
  24. </h1>
  25. </a>
  26. <h2 class="h6">
  27. Lightweight CSS / SCSS 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 modifiers">
  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 modifiers 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. <h3 class="h4">SCSS</h3>
  95. <pre class="code"><code>@import
  96. "crispy";</code></pre>
  97. <p>Now include Mixins you need. Components and Modifiziers only works if you include them,</p>
  98. <pre class="code"><code>@include crispy__core();
  99. @include crispy__modifiers();
  100. // components
  101. @include crispy__button();
  102. @include crispy__code();
  103. @include crispy__field();
  104. @include crispy__group();
  105. @include crispy__heading();
  106. @include crispy__hero();
  107. @include crispy__icon();
  108. @include crispy__media();
  109. @include crispy__modal();
  110. @include crispy__overlay();
  111. @include crispy__panel();
  112. @include crispy__progress();
  113. @include crispy__table();</code></pre>
  114. <p>For Custom Variables add a File before importing Crispy,</p>
  115. <pre class="code"><code>@import
  116. "variables",
  117. "crispy";</code></pre>
  118. <p>If you need all, mixins will be included,</p>
  119. <pre class="code"><code>@import
  120. "all";</code></pre>
  121. <p>Only need Core and Modifiziers?</p>
  122. <pre class="code"><code>@import
  123. "minimal";</code></pre>
  124. <h3 class="h4">CSS</h3>
  125. <p>For using CSS you can use <span class="text-weight-bold">crispy.css</span> for all Styles or <span class="text-weight-bold">crispy_mininmal.css</span> without Components.</p>
  126. <h2 class="h3">Example</h2>
  127. <p>
  128. 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.
  129. </p>
  130. <h4>Site</h4>
  131. <p>
  132. 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.
  133. </p>
  134. <h4>Templates</h4>
  135. <p>
  136. Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.
  137. </p>
  138. <!-- typography -->
  139. <hr class="margin-top-3">
  140. <h2 id="typography" class="margin-top-1">
  141. Typography
  142. </h2>
  143. <!-- abbr -->
  144. <h3 class="h4 margin-top-2 margin-bottom-0">a</h3>
  145. <h4 class="h6">Html:</h4>
  146. <pre class="code"><code>&lt;a href=&quot;&quot;&gt;&lt;/a&gt;</code></pre>
  147. <p>
  148. Color of Text is set by <strong>$crispy__color-primary</strong>. <strong>Hover</strong> is set by
  149. <strong>$crispy__color-text</strong>
  150. </p>
  151. <!-- abbr -->
  152. <h3 class="h4 margin-top-2 margin-bottom-0">abbr</h3>
  153. <h4 class="h6">Html:</h4>
  154. <pre class="code"><code>&lt;abbr title=&quot;&quot;&gt;&lt;/abbr&gt;</code></pre>
  155. <p>
  156. Glossier viral occupy mixtape pok pok cornhole, <abbr title="vape affogato hella">vape affogato hella</abbr> knausgaard thundercats
  157. </p>
  158. <!-- blockquote -->
  159. <h3 class="h4 margin-top-2 margin-bottom-0">blockquote</h3>
  160. <h4 class="h6">Html:</h4>
  161. <pre class="code"><code>&lt;blockquote&gt;&lt;/blockquote&gt;</code></pre>
  162. <blockquote>
  163. 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.
  164. </blockquote>
  165. <!-- hr -->
  166. <h3 class="h4 margin-top-2 margin-bottom-0">hr</h3>
  167. <h4 class="h6">Html:</h4>
  168. <pre class="code"><code>&lt;hr&gt;</code></pre>
  169. <p>
  170. <hr>
  171. </p>
  172. <!-- paragraph -->
  173. <h3 class="h4 margin-top-2 margin-bottom-0">paragraph</h3>
  174. <h4 class="h6">Html:</h4>
  175. <pre class="code"><code>&lt;p&gt;&lt;/p&gt;</code></pre>
  176. <p>
  177. Glossier viral occupy mixtape pok pok.
  178. </p>
  179. <!-- mark -->
  180. <h3 class="h4 margin-top-2 margin-bottom-0">mark</h3>
  181. <h4 class="h6">Html:</h4>
  182. <pre class="code"><code>&lt;mark&gt;&lt;/mark&gt;</code></pre>
  183. <p>
  184. Pug before they <mark>four loko</mark> Deep v bespoke
  185. </p>
  186. <!-- list -->
  187. <h3 class="h4 margin-top-2 margin-bottom-0">list</h3>
  188. <h4 class="h6">Html:</h4>
  189. <pre class="code"><code>&lt;ul&gt;
  190. &lt;li&gt;item 1&lt;/li&gt;
  191. &lt;li&gt;item 2
  192. &lt;ul&gt;
  193. &lt;li&gt;child item 1&lt;/li&gt;
  194. &lt;li&gt;child item 2&lt;/li&gt;
  195. &lt;/ul&gt;
  196. &lt;/li&gt;
  197. &lt;/ul&gt;
  198. &lt;ol&gt;
  199. &lt;li&gt;item 1&lt;/li&gt;
  200. &lt;li&gt;item 2&lt;/li&gt;
  201. &lt;/ol&gt;
  202. &lt;dl&gt;
  203. &lt;dt&gt;defined title 1&lt;/dt&gt;
  204. &lt;dd&gt;defined item 1&lt;/dd&gt;
  205. &lt;/dl&gt;</code></pre>
  206. <ul>
  207. <li>item 1</li>
  208. <li>
  209. item 2
  210. <ul>
  211. <li>child item 1</li>
  212. <li>child item 2</li>
  213. </ul>
  214. </li>
  215. </ul>
  216. <ol>
  217. <li>item 1</li>
  218. <li>item 2</li>
  219. </ol>
  220. <dl>
  221. <dt>defined title 1</dt>
  222. <dd>defined item 1</dd>
  223. </dl>
  224. <!-- components -->
  225. <hr class="margin-top-3">
  226. <h2 id="components" class="margin-top-1">
  227. Components
  228. </h2>
  229. <!-- components / button -->
  230. <h3 class="h4 margin-top-2 margin-bottom-0">
  231. Button
  232. </h3>
  233. <h4 class="h6">Html:</h4>
  234. <pre class="code margin-top-1"><code>&lt;button class=&quot;button&quot;&gt;&lt;/button&gt;
  235. &lt;button class=&quot;button button--wide&quot;&gt;&lt;/button&gt;</code></pre>
  236. <button class="button">Default</button>
  237. <button class="button button--wide margin-top-1">Info</button>
  238. <!-- components / code -->
  239. <h3 class="h4 margin-top-2 margin-bottom-0">
  240. Code
  241. </h3>
  242. <h4 class="h6">Html:</h4>
  243. <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>
  244. <!-- components / group -->
  245. <h3 class="h4 margin-top-2 margin-bottom-0">
  246. Group
  247. </h3>
  248. <h4 class="h6">Html:</h4>
  249. <pre class="code"><code>&lt;nav&gt;
  250. &lt;ul class=&quot;group&quot;&gt;
  251. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  252. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  253. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  254. &lt;/ul&gt;
  255. &lt;/nav&gt;</code></pre>
  256. <div class="panel panel__inner margin-bottom-1">
  257. <nav>
  258. <ul class="group">
  259. <li class="group__item">first item</li>
  260. <li class="group__item">second item</li>
  261. <li class="group__item">third item</li>
  262. </ul>
  263. </nav>
  264. </div>
  265. <h4 class="h6">Html:</h4>
  266. <pre class="code"><code>&lt;nav&gt;
  267. &lt;ul class=&quot;group group--horizontal group--separate&quot;&gt;
  268. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  269. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  270. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  271. &lt;/ul&gt;
  272. &lt;/nav&gt;</code></pre>
  273. <div class="panel panel__inner">
  274. <nav>
  275. <ul class="group group--horizontal group--separate">
  276. <li class="group__item">first item</li><li class="group__item">second item</li><li class="group__item">third item</li>
  277. </ul>
  278. </nav>
  279. </div>
  280. <!-- components / heading -->
  281. <h3 class="h4 margin-top-2 margin-bottom-0">
  282. Heading
  283. </h3>
  284. <h4 class="h6">Html:</h4>
  285. <pre class="code"><code>&lt;h2&gt;&lt;/h2&gt;
  286. &lt;h2 class="h3"&gt;&lt;/h2&gt;</code></pre>
  287. <h4 class="h6">Sass:</h4>
  288. <pre class="code"><code>$crispy__heading__font-sizes: (
  289. 'h1': 40px,
  290. 'h2': 36px,
  291. 'h3': 32px,
  292. 'h4': 28px,
  293. 'h5': 24px,
  294. 'h6': 20px
  295. ) !default;</code></pre>
  296. <h1>Heading h1</h1>
  297. <h2>Heading h2</h2>
  298. <h3>Heading h3</h3>
  299. <h4>Heading h4</h4>
  300. <h5>Heading h5</h5>
  301. <h6>Heading h6</h6>
  302. <!-- components / hero -->
  303. <h3 class="h4 margin-top-2 margin-bottom-0">
  304. Hero
  305. </h3>
  306. <h4 class="h6">Html:</h4>
  307. <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>
  308. <div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div>
  309. <!-- icons -->
  310. <h3 class="h4 margin-top-2 margin-bottom-0">
  311. Icon
  312. </h3>
  313. <p>
  314. To change Size you can use "text-size-*" that you find in the <span class="text-weight-bold">modifiers</span>.
  315. </p>
  316. <h4 class="h6">Html:</h4>
  317. <pre class="code"><code>&lt;svg class=&quot;icon text-size-small&quot;&gt;
  318. &lt;use xlink:href=&quot;symbol-defs.svg#icon-minus&quot;&gt;&lt;/use&gt;
  319. &lt;/svg&gt;</code></pre>
  320. <div class="panel">
  321. <div class="panel__inner">
  322. <svg class="icon text-size-small" aria-hidden="true">
  323. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  324. </svg>
  325. <svg class="icon" aria-hidden="true">
  326. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  327. </svg>
  328. <svg class="icon text-size-large" aria-hidden="true">
  329. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  330. </svg>
  331. <svg class="icon text-size-big" aria-hidden="true">
  332. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  333. </svg>
  334. <svg class="icon text-size-mega" aria-hidden="true">
  335. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  336. </svg>
  337. </div>
  338. </div>
  339. <p class="margin-top-2">
  340. To change Color you can use "icon-color-*".
  341. </p>
  342. <h4 class="h6">Html:</h4>
  343. <pre class="code"><code>&lt;svg class=&quot;icon icon-color-danger&quot;&gt;
  344. &lt;use xlink:href=&quot;symbol-defs.svg#icon-minus&quot;&gt;&lt;/use&gt;
  345. &lt;/svg&gt;</code></pre>
  346. <div class="panel">
  347. <div class="panel__inner">
  348. <svg class="icon icon-color-danger" aria-hidden="true">
  349. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  350. </svg>
  351. </div>
  352. </div>
  353. <!-- components / panel -->
  354. <h3 class="h4 margin-top-2 margin-bottom-0">
  355. Panel
  356. </h3>
  357. <h4 class="h6">Html:</h4>
  358. <pre class="code"><code>&lt;div class=&quot;panel&quot;&gt;
  359. &lt;div class=&quot;panel__inner&quot;&gt;
  360. Lorem Ipsum
  361. &lt;/div&gt;
  362. &lt;/div&gt;</code></pre>
  363. <div class="panel">
  364. <div class="panel__inner">
  365. Lorem Ipsum
  366. </div>
  367. </div>
  368. <!-- components / progress -->
  369. <h3 class="h4 margin-top-2 margin-bottom-0">
  370. Progress
  371. </h3>
  372. <h4 class="h6">Html:</h4>
  373. <pre class="code"><code>&lt;div class=&quot;progress&quot;&gt;
  374. &lt;div class=&quot;progress__inner&quot; style=&quot;width: 80%&quot;&gt;
  375. &lt;/div&gt;
  376. &lt;/div&gt;</code></pre>
  377. <div class="progress">
  378. <div class="progress__inner" style="width: 80%">
  379. </div>
  380. </div>
  381. <!-- components / modal -->
  382. <h3 class="h4 margin-top-3 margin-bottom-0">
  383. Modal
  384. </h3>
  385. <h4 class="h6">Html:</h4>
  386. <pre class="code"><code>&lt;div class=&quot;modal modal--bottom width-100&quot;&gt;
  387. &lt;div class=&quot;panel&quot;&gt;
  388. &lt;div class=&quot;panel__inner&quot;&gt;
  389. Lorem Ipsum
  390. &lt;/div&gt;
  391. &lt;/div&gt;
  392. &lt;/div&gt;</code></pre>
  393. <div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;">
  394. <div class="modal modal--top-left">
  395. <div class="panel">
  396. <div class="panel__inner">
  397. .modal--top-left
  398. </div>
  399. </div>
  400. </div>
  401. <div class="modal modal--top-right">
  402. <div class="panel">
  403. <div class="panel__inner">
  404. .modal--top-right
  405. </div>
  406. </div>
  407. </div>
  408. <div class="modal">
  409. <div class="panel">
  410. <div class="panel__inner">
  411. .modal
  412. </div>
  413. </div>
  414. </div>
  415. <div class="modal modal--bottom-left">
  416. <div class="panel">
  417. <div class="panel__inner">
  418. .modal--bottom-left
  419. </div>
  420. </div>
  421. </div>
  422. <div class="modal modal--bottom-right">
  423. <div class="panel">
  424. <div class="panel__inner">
  425. .modal--bottom-right
  426. </div>
  427. </div>
  428. </div>
  429. </div>
  430. <!-- components / table -->
  431. <h3 class="h4 margin-top-2 margin-bottom-0">
  432. Table
  433. </h3>
  434. <h4 class="h6">Html:</h4>
  435. <pre class="code"><code>&lt;table class=&quot;table table--striped&quot;&gt;
  436. &lt;thead&gt;
  437. &lt;tr&gt;
  438. &lt;th&gt;&lt;/th&gt;
  439. &lt;/tr&gt;
  440. &lt;/thead&gt;
  441. &lt;tbody&gt;
  442. &lt;tr&gt;
  443. &lt;td&gt;&lt;/td&gt;
  444. &lt;/tr&gt;
  445. &lt;/tbody&gt;
  446. &lt;/table&gt;</code></pre>
  447. <table class="table table--striped margin-bottom-2">
  448. <thead>
  449. <tr>
  450. <th>name</th>
  451. <th>age</th>
  452. </tr>
  453. </thead>
  454. <tbody>
  455. <tr>
  456. <td>Mr. Brown</td>
  457. <td>43</td>
  458. </tr>
  459. <tr>
  460. <td>Mr. Magenta</td>
  461. <td>32</td>
  462. </tr>
  463. <tr>
  464. <td>Mr. White</td>
  465. <td>45</td>
  466. </tr>
  467. </tbody>
  468. </table>
  469. <!-- components / field / checkbox -->
  470. <h3 class="h4 margin-top-0 margin-bottom-0">
  471. Checkbox
  472. </h3>
  473. <div class="field">
  474. <input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true" />
  475. <label for="field__checkbox__1" class="field__label">
  476. <svg class="icon field__choice__unchecked" aria-hidden="true">
  477. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  478. </svg>
  479. <svg class="icon field__choice__checked" aria-hidden="true">
  480. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  481. </svg>
  482. checkbox 1
  483. </label>
  484. <input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true" />
  485. <label for="field__checkbox__2" class="field__label">
  486. <svg class="icon field__choice__unchecked" aria-hidden="true">
  487. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  488. </svg>
  489. <svg class="icon field__choice__checked" aria-hidden="true">
  490. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  491. </svg>
  492. checkbox 2
  493. </label>
  494. </div>
  495. <div class="field field--error">
  496. <input id="field__checkbox__3" class="field__choice" type="checkbox" name="field__checkbox__3" value="true" />
  497. <label for="field__checkbox__3" class="field__label">
  498. <svg class="icon field__choice__unchecked" aria-hidden="true">
  499. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  500. </svg>
  501. <svg class="icon field__choice__checked" aria-hidden="true">
  502. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  503. </svg>
  504. checkbox 1
  505. </label>
  506. <div class="field__panel">
  507. error item 1
  508. </div>
  509. </div>
  510. <!-- components / field / radio -->
  511. <h3 class="h4 margin-top-0x margin-bottom-0x">
  512. Radio
  513. </h3>
  514. <div class="field">
  515. <input id="field__radio__1" class="field__choice" type="radio" name="field__radio__1[]" value="true" />
  516. <label for="field__radio__1" class="field__label">
  517. <svg class="icon field__choice__unchecked" aria-hidden="true">
  518. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  519. </svg>
  520. <svg class="icon field__choice__checked" aria-hidden="true">
  521. <use xlink:href="symbol-defs.svg#icon-checked" />
  522. </svg>
  523. radio item 1
  524. </label><br />
  525. <input id="field__radio__2" class="field__choice" type="radio" name="field__radio__1[]" value="true" />
  526. <label for="field__radio__2" class="field__label">
  527. <svg class="icon field__choice__unchecked" aria-hidden="true">
  528. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  529. </svg>
  530. <svg class="icon field__choice__checked" aria-hidden="true">
  531. <use xlink:href="symbol-defs.svg#icon-checked" />
  532. </svg>
  533. radio item 2
  534. </label>
  535. </div>
  536. <!-- radio / error -->
  537. <div class="field field--error">
  538. <input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true" />
  539. <label for="field__radio__3" class="field__label">
  540. <svg class="icon field__choice__unchecked" aria-hidden="true">
  541. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  542. </svg>
  543. <svg class="icon field__choice__checked" aria-hidden="true">
  544. <use xlink:href="symbol-defs.svg#icon-checked" />
  545. </svg>
  546. radio item 1
  547. </label><br />
  548. <input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true" />
  549. <label for="field__radio__4" class="field__label">
  550. <svg class="icon field__choice__unchecked" aria-hidden="true">
  551. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  552. </svg>
  553. <svg class="icon field__choice__checked" aria-hidden="true">
  554. <use xlink:href="symbol-defs.svg#icon-checked" />
  555. </svg>
  556. radio item 2
  557. </label>
  558. <div class="field__panel">
  559. error item 1
  560. </div>
  561. </div>
  562. <!-- components / field / select -->
  563. <h3 class="h4 margin-top-0x margin-bottom-0x">
  564. Select
  565. </h3>
  566. <div class="field">
  567. <label class="field__label">
  568. Select Item
  569. <select class="field__select">
  570. <option>select item 1</option>
  571. <option>select item 2</option>
  572. <option>select item 3</option>
  573. </select>
  574. </label>
  575. </div>
  576. <div class="field field--error">
  577. <label class="field__label">
  578. Select Item
  579. <select class="field__select">
  580. <option>select item 1</option>
  581. <option>select item 2</option>
  582. <option>select item 3</option>
  583. </select>
  584. <div class="field__panel">
  585. error item 1
  586. </div>
  587. </label>
  588. </div>
  589. <!-- components / field / input textarea -->
  590. <h3 class="h4 margin-top-0x margin-bottom-0x">
  591. Input / Textarea
  592. </h3>
  593. <div class="field">
  594. <input class="field__text" type="text" />
  595. </div>
  596. <div class="field field--valid">
  597. <label class="field__label">
  598. Text
  599. <input type="text" class="field__text" />
  600. </label>
  601. <div class="field__panel">
  602. error item 1
  603. </div>
  604. </div>
  605. <div class="field field--error">
  606. <label class="field__label">
  607. Text
  608. <input type="text" class="field__text" />
  609. </label>
  610. <div class="field__panel">
  611. error item 1
  612. </div>
  613. </div>
  614. <div class="field">
  615. <label class="field__label">
  616. Textarea
  617. <textarea class="field__text"></textarea>
  618. </label>
  619. </div>
  620. <div class="field field--error">
  621. <label class="field__label">
  622. Textarea
  623. <textarea class="field__text"></textarea>
  624. </label>
  625. <div class="field__panel">
  626. error item 1
  627. </div>
  628. </div>
  629. <!-- functions -->
  630. <hr class="margin-top-3x">
  631. <h2 id="functions" class="margin-top-1x">
  632. Functions
  633. </h2>
  634. <!-- functions / toEm / toRem -->
  635. <h3 class="h4 margin-top-0x margin-bottom-0x">
  636. toEm()<br>
  637. toRem()
  638. </h3>
  639. <h4 class="h6 margin-top-1x">Sass:</h4>
  640. <pre class="code"><code>toEm(5px);
  641. toEm(10px 10px 0 0);
  642. toRem(10px 10px 0 0);
  643. </code></pre>
  644. <p>
  645. Returns <strong>em</strong> and <strong>rem</strong>, accepts px and unitless values.
  646. </p>
  647. <!-- functions / stripUnit -->
  648. <h3 class="h4 margin-top-0x margin-bottom-0x">
  649. stripUnit()
  650. </h3>
  651. <h4 class="h6 margin-top-1x">Sass:</h4>
  652. <pre class="code"><code>stripUnit(10px);</code></pre>
  653. <p>
  654. Returns value without unit.
  655. </p>
  656. <!-- functions / stripUnit -->
  657. <h3 class="h4 margin-top-0x margin-bottom-0x">
  658. zIndex(name)
  659. </h3>
  660. <h4 class="h6 margin-top-1x">Sass:</h4>
  661. <pre class="code"><code>zIndex('modal');</code></pre>
  662. <p>
  663. Returns value from $crispy__z-index.
  664. </p>
  665. <h4 class="h6 margin-top-1x">Sass:</h4>
  666. <pre class="code"><code>$crispy__z-index: (
  667. 'overlay': 90,
  668. 'modal' : 100
  669. );</code></pre>
  670. <!-- modifiers -->
  671. <hr class="margin-top-3x">
  672. <h2 id="modifiers" class="margin-top-1x">
  673. Modifiziers
  674. </h2>
  675. <!-- modifiers / margin & padding -->
  676. <h3 class="h4 margin-top-1x">
  677. Margin & Padding
  678. </h3>
  679. <p>
  680. Adding margin-top, -left, -bottom and -right and the same for padding.
  681. </p>
  682. <h4 class="h6 margin-top-1x">Sass:</h4>
  683. <pre class="code">
  684. $crispy__spacing: 15px;
  685. $crispy__spacing__steps: 7;
  686. </pre></code>
  687. <h4 class="h6 margin-top-1x">Html:</h4>
  688. <pre class="code">&lt;div class=&quot;panel margin-bottom-0&quot;&gt;margin-bottom-0&lt;/div&gt;
  689. &lt;div class=&quot;margin-bottom-1&quot;&gt;margin-bottom-1&lt;/div&gt;
  690. &lt;div class=&quot;margin-bottom-2&quot;&gt;margin-bottom-2&lt;/div&gt;
  691. &lt;div class=&quot;margin-bottom-3&quot;&gt;margin-bottom-3&lt;/div&gt;
  692. &lt;div class=&quot;margin-bottom-4&quot;&gt;margin-bottom-4&lt;/div&gt;
  693. &lt;div class=&quot;margin-bottom-5&quot;&gt;margin-bottom-5&lt;/div&gt;</code></pre>
  694. <div class="panel panel__inner margin-bottom-0">margin-bottom-0</div>
  695. <div class="panel panel__inner margin-bottom-1">margin-bottom-1</div>
  696. <div class="panel panel__inner margin-bottom-2">margin-bottom-2</div>
  697. <div class="panel panel__inner margin-bottom-3">margin-bottom-3</div>
  698. <div class="panel panel__inner margin-bottom-4">margin-bottom-4</div>
  699. <div class="panel panel__inner margin-bottom-5">margin-bottom-5</div>
  700. <p>
  701. Also set padding and margin to 0,
  702. </p>
  703. <pre class="code">&lt;div class=&quot;marginless&quot;&lt;/div&gt;
  704. &lt;div class=&quot;paddingless&quot;&lt;/div&gt;</code></pre>
  705. <!-- modifiers / media -->
  706. <h3 class="h4 margin-top-1">
  707. Media
  708. </h3>
  709. <pre class="code"><code>&lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  710. &lt;figure&gt;
  711. &lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  712. &lt;figcaption class=&quot;text-center&quot;&gt;Lorem Ipsum&lt;/figcaption&gt;
  713. &lt;/figure&gt;
  714. &lt;div class=&quot;video-responsive&quot; style=&quot;height: 280px;&quot;&gt;
  715. &lt;iframe src=&quot;https://giphy.com/embed/13XW2MJE0XCoM0&quot; width=&quot;480&quot; height=&quot;361&quot;&gt;&lt;/iframe&gt;
  716. &lt;/div&gt;</code></pre>
  717. <div class="grid">
  718. <div class="col-6">
  719. <img class="img-responsive img-wide" src="https://picsum.photos/400" />
  720. </div>
  721. <div class="col-6">
  722. <figure>
  723. <img class="img-responsive img-wide" src="https://picsum.photos/400" />
  724. <figcaption class="text-center">Lorem Ipsum</figcaption>
  725. </figure>
  726. </div>
  727. </div>
  728. <!-- modifiers / Typography -->
  729. <h3 class="h4 margin-top-1x">
  730. Typography
  731. </h3>
  732. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  733. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  734. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  735. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  736. &lt;div class=&quot;text-italic&quot;&gt;&lt;/div&gt;
  737. &lt;div class=&quot;text-weight-light&quot;&gt;&lt;/div&gt;
  738. &lt;div class=&quot;text-weight-normal&quot;&gt;&lt;/div&gt;
  739. &lt;div class=&quot;text-weight-medium&quot;&gt;&lt;/div&gt;
  740. &lt;div class=&quot;text-weight-bold&quot;&gt;&lt;/div&gt;
  741. &lt;div class=&quot;text-capitalize&quot;&gt;&lt;/div&gt;
  742. &lt;div class=&quot;text-uppercase&quot;&gt;&lt;/div&gt;
  743. &lt;div class=&quot;text-lowercase&quot;&gt;&lt;/div&gt;
  744. &lt;div class=&quot;text-smaller&quot;&gt;&lt;/div&gt;
  745. &lt;div class=&quot;text-crossed&quot;&gt;&lt;/div&gt;
  746. &lt;div class=&quot;text-underline&quot;&gt;&lt;/div&gt;</code></pre>
  747. <p>
  748. Also there are classes for,
  749. </p>
  750. <ul>
  751. <li>text-size-* with $crispy__font-sizes for "font-size"</li>
  752. <li>text-color-* with $crispy__colors for "color"</li>
  753. <li>background-color-* with $crispy__font-sizes for "background-color"</li>
  754. </ul>
  755. <!-- modifiers / float -->
  756. <h3 class="h4 margin-top-1x">
  757. Float
  758. </h3>
  759. <pre class="code">&lt;div class=&quot;float-left&quot;&gt;&lt;/div&gt;
  760. &lt;div class=&quot;float-right&quot;&gt;&lt;/div&gt;
  761. &lt;div class=&quot;float-none&quot;&gt;&lt;/div&gt;
  762. &lt;div class=&quot;centered&quot;&gt;&lt;/div&gt;
  763. &lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;</code></pre>
  764. <!-- modifiers / typography -->
  765. <h3 class="h4 margin-top-1x">
  766. Position
  767. </h3>
  768. <pre class="code">&lt;div class=&quot;relative&quot;&gt;&lt;/div&gt;
  769. &lt;div class=&quot;absolute&quot;&gt;&lt;/div&gt;
  770. &lt;div class=&quot;fixed&quot;&gt;&lt;/div&gt;</code></pre>
  771. <!-- modifiers / border -->
  772. <h3 class="h4 margin-top-1x">
  773. Border
  774. </h3>
  775. <pre class="code">&lt;div class=&quot;bordered&quot;&gt;&lt;/div&gt;
  776. &lt;div class=&quot;rounded&quot;&gt;&lt;/div&gt;
  777. &lt;div class=&quot;borderless&quot;&gt;&lt;/div&gt;
  778. &lt;div class=&quot;radiusless&quot;&gt;&lt;/div&gt;</code></pre>
  779. <!-- modifiers / visibility -->
  780. <h3 class="h4 margin-top-1x">
  781. Visibility
  782. </h3>
  783. <pre class="code">&lt;div class=&quot;hidden&quot;&gt;&lt;/div&gt;
  784. &lt;div class=&quot;visible&quot;&gt;&lt;/div&gt;
  785. &lt;div class=&quot;visible visible--inline&quot;&gt;&lt;/div&gt;
  786. &lt;div class=&quot;visible visible--inline-block&quot;&gt;&lt;/div&gt;</code></pre>
  787. <!-- modifiers / width -->
  788. <h3 class="h4 margin-top-1x">
  789. Width
  790. </h3>
  791. <h4 class="h6 margin-top-1x">Sass:</h4>
  792. <pre class="code"><code>$crispy__width: (
  793. '25' : 25%,
  794. '50' : 50%,
  795. '75' : 75%,
  796. '100': 100%
  797. )</code></pre>
  798. <h4 class="h6 margin-top-1x">Html:</h4>
  799. <pre class="code"><code>&lt;div class=&quot;panel width-25&quot;&gt;width-25&lt;/div&gt;
  800. &lt;div class=&quot;width-50&quot;&gt;width-50&lt;/div&gt;
  801. &lt;div class=&quot;width-75&quot;&gt;width-75&lt;/div&gt;
  802. &lt;div class=&quot;width-100&quot;&gt;width-100&lt;/div&gt;</code></pre>
  803. <div class="panel panel__inner width-25 margin-bottom-1">width-25</div>
  804. <div class="panel panel__inner width-50 margin-bottom-1">width-50</div>
  805. <div class="panel panel__inner width-75 margin-bottom-1">width-75</div>
  806. <div class="panel panel__inner width-100 margin-bottom-1">width-100</div>
  807. <!-- mixins -->
  808. <hr class="margin-top-3x">
  809. <h2 id="mixins" class="margin-top-1x">
  810. Mixins
  811. </h2>
  812. <!-- mixins / media-queries -->
  813. <h3 class="h4 margin-top-1x">
  814. Media Queries
  815. </h3>
  816. <p>
  817. These <strong>@mixins</strong> were used with the Breakpoints from <a target="_blank" href="http://reflexgrid.com/docs/">http://reflexgrid.com/docs/</a>.
  818. Reflex-Grid is also used as grid for this Site.
  819. </p>
  820. <ul>
  821. <li><strong>xs</strong> 576px</li>
  822. <li><strong>sm</strong> 768px</li>
  823. <li><strong>md</strong> 992px</li>
  824. <li><strong>lg</strong> 1200px</li>
  825. <li><strong>xlg</strong> 1600px</li>
  826. </ul>
  827. <h4 class="h6 margin-top-1x">Html:</h4>
  828. <pre class="code"><code>&lt;div class=&quot;sm&quot;&gt;sm&lt;/div&gt;
  829. &lt;div class=&quot;md&quot;&gt;md&lt;/div&gt;
  830. &lt;div class=&quot;md-only&quot;&gt;md-only&lt;/div&gt;
  831. &lt;div class=&quot;lg-only&quot;&gt;lg-only&lt;/div&gt;</pre></code>
  832. <h4 class="h6 margin-top-1x">Sass:</h4>
  833. <pre class="code"><code>.sm, .md, .md-only, .lg-only {
  834. display: none;
  835. }
  836. .sm {
  837. @include crispy__media-sm() {
  838. display: block;
  839. }
  840. }
  841. .md {
  842. @include crispy__media-md() {
  843. display: block;
  844. }
  845. }
  846. .md-only {
  847. @include crispy__media-md-only() {
  848. display: block;
  849. }
  850. }
  851. .lg-only {
  852. @include crispy__media-lg-only() {
  853. display: block;
  854. }
  855. }</code></pre>
  856. <div class="grid">
  857. <div class="col-3">
  858. <div class="panel panel__inner sm margin-bottom-1">sm</div>
  859. </div>
  860. <div class="col-3">
  861. <div class="panel panel__inner md margin-bottom-1">md</div>
  862. </div>
  863. <div class="col-3">
  864. <div class="panel panel__inner md-only margin-bottom-1">md-only</div>
  865. </div>
  866. <div class="col-3">
  867. <div class="panel panel__inner lg-only margin-bottom-1">lg-only</div>
  868. </div>
  869. </div>
  870. </div>
  871. </div>
  872. </div>
  873. <footer class="footer">
  874. <div class="container">
  875. <div class="grid">
  876. <div class="col-12">
  877. <div class="text-center">
  878. <ul class="group group--horizontal group--separate">
  879. <li class="group__item"><a href="/imprint.html">Imprint</a></li><li class="group__item"><a href="/privacy-policy.html">Privacy Policy</a></li>
  880. </ul>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. </footer>
  886. </body>
  887. </html>