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.

935 lines
36 KiB

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