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.

987 lines
38 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
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
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
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
4 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. "crispy_all";</code></pre>
  121. <p>Only need Core and Modifiziers?</p>
  122. <pre class="code"><code>@import
  123. "crispy_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&quot; style=&quot;height: 300px; background-image: url('https://picsum.photos/1024')&quot;&gt;&lt;/div&gt;</code></pre>
  308. <div class="hero" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div>
  309. <pre class="code margin-top-3"><code>&lt;div class=&quot;hero hero--top&quot; style=&quot;height: 300px; background-image: url('https://picsum.photos/1024')&quot;&gt;&lt;/div&gt;</code></pre>
  310. <div class="hero hero--top" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div>
  311. <pre class="code margin-top-3"><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. <!-- icons -->
  314. <h3 class="h4 margin-top-2 margin-bottom-0">
  315. Icon
  316. </h3>
  317. <p>
  318. To change Size you can use "text-size-*" that you find in the <span class="text-weight-bold">modifiers</span>.
  319. </p>
  320. <h4 class="h6">Html:</h4>
  321. <pre class="code"><code>&lt;svg class=&quot;icon text-size-small&quot;&gt;
  322. &lt;use xlink:href=&quot;symbol-defs.svg#icon-minus&quot;&gt;&lt;/use&gt;
  323. &lt;/svg&gt;</code></pre>
  324. <div class="panel">
  325. <div class="panel__inner">
  326. <svg class="icon text-size-small" aria-hidden="true">
  327. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  328. </svg>
  329. <svg class="icon" aria-hidden="true">
  330. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  331. </svg>
  332. <svg class="icon text-size-large" aria-hidden="true">
  333. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  334. </svg>
  335. <svg class="icon text-size-big" aria-hidden="true">
  336. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  337. </svg>
  338. <svg class="icon text-size-mega" aria-hidden="true">
  339. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  340. </svg>
  341. </div>
  342. </div>
  343. <p class="margin-top-2">
  344. To change Color you can use "icon-color-*".
  345. </p>
  346. <h4 class="h6">Html:</h4>
  347. <pre class="code"><code>&lt;svg class=&quot;icon icon-color-danger&quot;&gt;
  348. &lt;use xlink:href=&quot;symbol-defs.svg#icon-minus&quot;&gt;&lt;/use&gt;
  349. &lt;/svg&gt;</code></pre>
  350. <div class="panel">
  351. <div class="panel__inner">
  352. <svg class="icon icon-color-danger" aria-hidden="true">
  353. <use xlink:href="symbol-defs.svg#icon-spaceinvaders"></use>
  354. </svg>
  355. </div>
  356. </div>
  357. <!-- components / panel -->
  358. <h3 class="h4 margin-top-2 margin-bottom-0">
  359. Panel
  360. </h3>
  361. <h4 class="h6">Html:</h4>
  362. <pre class="code"><code>&lt;div class=&quot;panel&quot;&gt;
  363. &lt;div class=&quot;panel__inner&quot;&gt;
  364. Lorem Ipsum
  365. &lt;/div&gt;
  366. &lt;/div&gt;</code></pre>
  367. <div class="panel">
  368. <div class="panel__inner">
  369. Lorem Ipsum
  370. </div>
  371. </div>
  372. <!-- components / progress -->
  373. <h3 class="h4 margin-top-2 margin-bottom-0">
  374. Progress
  375. </h3>
  376. <h4 class="h6">Html:</h4>
  377. <pre class="code"><code>&lt;div class=&quot;progress&quot;&gt;
  378. &lt;div class=&quot;progress__inner&quot; style=&quot;width: 80%&quot;&gt;
  379. &lt;/div&gt;
  380. &lt;/div&gt;</code></pre>
  381. <div class="progress">
  382. <div class="progress__inner" style="width: 80%">
  383. </div>
  384. </div>
  385. <!-- components / modal -->
  386. <h3 class="h4 margin-top-3 margin-bottom-0">
  387. Modal
  388. </h3>
  389. <h4 class="h6">Html:</h4>
  390. <pre class="code"><code>&lt;div class=&quot;modal modal--bottom width-100&quot;&gt;
  391. &lt;div class=&quot;panel&quot;&gt;
  392. &lt;div class=&quot;panel__inner&quot;&gt;
  393. Lorem Ipsum
  394. &lt;/div&gt;
  395. &lt;/div&gt;
  396. &lt;/div&gt;</code></pre>
  397. <div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;">
  398. <div class="modal modal--top-left">
  399. <div class="panel">
  400. <div class="panel__inner">
  401. .modal--top-left
  402. </div>
  403. </div>
  404. </div>
  405. <div class="modal modal--top-right">
  406. <div class="panel">
  407. <div class="panel__inner">
  408. .modal--top-right
  409. </div>
  410. </div>
  411. </div>
  412. <div class="modal">
  413. <div class="panel">
  414. <div class="panel__inner">
  415. .modal
  416. </div>
  417. </div>
  418. </div>
  419. <div class="modal modal--bottom-left">
  420. <div class="panel">
  421. <div class="panel__inner">
  422. .modal--bottom-left
  423. </div>
  424. </div>
  425. </div>
  426. <div class="modal modal--bottom-right">
  427. <div class="panel">
  428. <div class="panel__inner">
  429. .modal--bottom-right
  430. </div>
  431. </div>
  432. </div>
  433. </div>
  434. <!-- components / table -->
  435. <h3 class="h4 margin-top-2 margin-bottom-0">
  436. Table
  437. </h3>
  438. <h4 class="h6">Html:</h4>
  439. <pre class="code"><code>&lt;table class=&quot;table table--striped&quot;&gt;
  440. &lt;thead&gt;
  441. &lt;tr&gt;
  442. &lt;th&gt;&lt;/th&gt;
  443. &lt;/tr&gt;
  444. &lt;/thead&gt;
  445. &lt;tbody&gt;
  446. &lt;tr&gt;
  447. &lt;td&gt;&lt;/td&gt;
  448. &lt;/tr&gt;
  449. &lt;/tbody&gt;
  450. &lt;/table&gt;</code></pre>
  451. <table class="table table--striped margin-bottom-2">
  452. <thead>
  453. <tr>
  454. <th>name</th>
  455. <th>age</th>
  456. </tr>
  457. </thead>
  458. <tbody>
  459. <tr>
  460. <td>Mr. Brown</td>
  461. <td>43</td>
  462. </tr>
  463. <tr>
  464. <td>Mr. Magenta</td>
  465. <td>32</td>
  466. </tr>
  467. <tr>
  468. <td>Mr. White</td>
  469. <td>45</td>
  470. </tr>
  471. </tbody>
  472. </table>
  473. <!-- components / field / checkbox -->
  474. <h3 class="h4 margin-top-0 margin-bottom-0">
  475. Checkbox
  476. </h3>
  477. <div class="field">
  478. <input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true" />
  479. <label for="field__checkbox__1" class="field__label">
  480. <svg class="icon field__choice__unchecked" aria-hidden="true">
  481. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  482. </svg>
  483. <svg class="icon field__choice__checked" aria-hidden="true">
  484. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  485. </svg>
  486. checkbox 1
  487. </label>
  488. <input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true" />
  489. <label for="field__checkbox__2" class="field__label">
  490. <svg class="icon field__choice__unchecked" aria-hidden="true">
  491. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  492. </svg>
  493. <svg class="icon field__choice__checked" aria-hidden="true">
  494. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  495. </svg>
  496. checkbox 2
  497. </label>
  498. </div>
  499. <div class="field field--error">
  500. <input id="field__checkbox__3" class="field__choice" type="checkbox" name="field__checkbox__3" value="true" />
  501. <label for="field__checkbox__3" class="field__label">
  502. <svg class="icon field__choice__unchecked" aria-hidden="true">
  503. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  504. </svg>
  505. <svg class="icon field__choice__checked" aria-hidden="true">
  506. <use xlink:href="symbol-defs.svg#icon-checked"></use>
  507. </svg>
  508. checkbox 1
  509. </label>
  510. <div class="field__panel">
  511. error item 1
  512. </div>
  513. </div>
  514. <!-- components / field / radio -->
  515. <h3 class="h4 margin-top-0x margin-bottom-0x">
  516. Radio
  517. </h3>
  518. <div class="field">
  519. <input id="field__radio__1" class="field__choice" type="radio" name="field__radio__1[]" value="true" />
  520. <label for="field__radio__1" class="field__label">
  521. <svg class="icon field__choice__unchecked" aria-hidden="true">
  522. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  523. </svg>
  524. <svg class="icon field__choice__checked" aria-hidden="true">
  525. <use xlink:href="symbol-defs.svg#icon-checked" />
  526. </svg>
  527. radio item 1
  528. </label><br />
  529. <input id="field__radio__2" class="field__choice" type="radio" name="field__radio__1[]" value="true" />
  530. <label for="field__radio__2" class="field__label">
  531. <svg class="icon field__choice__unchecked" aria-hidden="true">
  532. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  533. </svg>
  534. <svg class="icon field__choice__checked" aria-hidden="true">
  535. <use xlink:href="symbol-defs.svg#icon-checked" />
  536. </svg>
  537. radio item 2
  538. </label>
  539. </div>
  540. <!-- radio / error -->
  541. <div class="field field--error">
  542. <input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true" />
  543. <label for="field__radio__3" class="field__label">
  544. <svg class="icon field__choice__unchecked" aria-hidden="true">
  545. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  546. </svg>
  547. <svg class="icon field__choice__checked" aria-hidden="true">
  548. <use xlink:href="symbol-defs.svg#icon-checked" />
  549. </svg>
  550. radio item 1
  551. </label><br />
  552. <input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true" />
  553. <label for="field__radio__4" class="field__label">
  554. <svg class="icon field__choice__unchecked" aria-hidden="true">
  555. <use xlink:href="symbol-defs.svg#icon-minus"></use>
  556. </svg>
  557. <svg class="icon field__choice__checked" aria-hidden="true">
  558. <use xlink:href="symbol-defs.svg#icon-checked" />
  559. </svg>
  560. radio item 2
  561. </label>
  562. <div class="field__panel">
  563. error item 1
  564. </div>
  565. </div>
  566. <!-- components / field / select -->
  567. <h3 class="h4 margin-top-0x margin-bottom-0x">
  568. Select
  569. </h3>
  570. <div class="field">
  571. <label class="field__label">
  572. Select Item
  573. <select class="field__select">
  574. <option>select item 1</option>
  575. <option>select item 2</option>
  576. <option>select item 3</option>
  577. </select>
  578. </label>
  579. </div>
  580. <div class="field field--error">
  581. <label class="field__label">
  582. Select Item
  583. <select class="field__select">
  584. <option>select item 1</option>
  585. <option>select item 2</option>
  586. <option>select item 3</option>
  587. </select>
  588. <div class="field__panel">
  589. error item 1
  590. </div>
  591. </label>
  592. </div>
  593. <!-- components / field / input textarea -->
  594. <h3 class="h4 margin-top-0x margin-bottom-0x">
  595. Input / Textarea
  596. </h3>
  597. <div class="field">
  598. <input class="field__text" type="text" />
  599. </div>
  600. <div class="field field--valid">
  601. <label class="field__label">
  602. Text
  603. <input type="text" class="field__text" />
  604. </label>
  605. <div class="field__panel">
  606. error item 1
  607. </div>
  608. </div>
  609. <div class="field field--error">
  610. <label class="field__label">
  611. Text
  612. <input type="text" class="field__text" />
  613. </label>
  614. <div class="field__panel">
  615. error item 1
  616. </div>
  617. </div>
  618. <div class="field">
  619. <label class="field__label">
  620. Textarea
  621. <textarea class="field__text"></textarea>
  622. </label>
  623. </div>
  624. <div class="field field--error">
  625. <label class="field__label">
  626. Textarea
  627. <textarea class="field__text"></textarea>
  628. </label>
  629. <div class="field__panel">
  630. error item 1
  631. </div>
  632. </div>
  633. <!-- functions -->
  634. <hr class="margin-top-3x">
  635. <h2 id="functions" class="margin-top-1x">
  636. Functions
  637. </h2>
  638. <!-- functions / toEm / toRem -->
  639. <h3 class="h4 margin-top-0x margin-bottom-0x">
  640. toEm()<br>
  641. toRem()
  642. </h3>
  643. <h4 class="h6 margin-top-1x">Sass:</h4>
  644. <pre class="code"><code>toEm(5px);
  645. toEm(10px 10px 0 0);
  646. toRem(10px 10px 0 0);
  647. </code></pre>
  648. <p>
  649. Returns <strong>em</strong> and <strong>rem</strong>, accepts px and unitless values.
  650. </p>
  651. <!-- functions / stripUnit -->
  652. <h3 class="h4 margin-top-0x margin-bottom-0x">
  653. stripUnit()
  654. </h3>
  655. <h4 class="h6 margin-top-1x">Sass:</h4>
  656. <pre class="code"><code>stripUnit(10px);</code></pre>
  657. <p>
  658. Returns value without unit.
  659. </p>
  660. <!-- functions / stripUnit -->
  661. <h3 class="h4 margin-top-0x margin-bottom-0x">
  662. zIndex(name)
  663. </h3>
  664. <h4 class="h6 margin-top-1x">Sass:</h4>
  665. <pre class="code"><code>zIndex('modal');</code></pre>
  666. <p>
  667. Returns value from $crispy__z-index.
  668. </p>
  669. <h4 class="h6 margin-top-1x">Sass:</h4>
  670. <pre class="code"><code>$crispy__z-index: (
  671. 'overlay': 90,
  672. 'modal' : 100
  673. );</code></pre>
  674. <!-- modifiers -->
  675. <hr class="margin-top-3x">
  676. <h2 id="modifiers" class="margin-top-1x">
  677. Modifiziers
  678. </h2>
  679. <!-- modifiers / margin & padding -->
  680. <h3 class="h4 margin-top-1x">
  681. Margin & Padding
  682. </h3>
  683. <p>
  684. Adding margin-top, -left, -bottom and -right and the same for padding.
  685. </p>
  686. <h4 class="h6 margin-top-1x">Sass:</h4>
  687. <pre class="code">
  688. $crispy__spacing: 15px;
  689. $crispy__spacing__steps: 7;
  690. </pre></code>
  691. <h4 class="h6 margin-top-1x">Html:</h4>
  692. <pre class="code">&lt;div class=&quot;panel margin-bottom-0&quot;&gt;margin-bottom-0&lt;/div&gt;
  693. &lt;div class=&quot;margin-bottom-1&quot;&gt;margin-bottom-1&lt;/div&gt;
  694. &lt;div class=&quot;margin-bottom-2&quot;&gt;margin-bottom-2&lt;/div&gt;
  695. &lt;div class=&quot;margin-bottom-3&quot;&gt;margin-bottom-3&lt;/div&gt;
  696. &lt;div class=&quot;margin-bottom-4&quot;&gt;margin-bottom-4&lt;/div&gt;
  697. &lt;div class=&quot;margin-bottom-5&quot;&gt;margin-bottom-5&lt;/div&gt;</code></pre>
  698. <div class="panel panel__inner margin-bottom-0">margin-bottom-0</div>
  699. <div class="panel panel__inner margin-bottom-1">margin-bottom-1</div>
  700. <div class="panel panel__inner margin-bottom-2">margin-bottom-2</div>
  701. <div class="panel panel__inner margin-bottom-3">margin-bottom-3</div>
  702. <div class="panel panel__inner margin-bottom-4">margin-bottom-4</div>
  703. <div class="panel panel__inner margin-bottom-5">margin-bottom-5</div>
  704. <p>
  705. Also set padding and margin to 0,
  706. </p>
  707. <pre class="code">&lt;div class=&quot;marginless&quot;&lt;/div&gt;
  708. &lt;div class=&quot;paddingless&quot;&lt;/div&gt;</code></pre>
  709. <!-- modifiers / media -->
  710. <h3 class="h4 margin-top-1">
  711. Media
  712. </h3>
  713. <pre class="code"><code>&lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  714. &lt;figure&gt;
  715. &lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  716. &lt;figcaption class=&quot;text-center&quot;&gt;Lorem Ipsum&lt;/figcaption&gt;
  717. &lt;/figure&gt;
  718. &lt;div class=&quot;video-responsive&quot; style=&quot;height: 280px;&quot;&gt;
  719. &lt;iframe src=&quot;https://giphy.com/embed/13XW2MJE0XCoM0&quot; width=&quot;480&quot; height=&quot;361&quot;&gt;&lt;/iframe&gt;
  720. &lt;/div&gt;</code></pre>
  721. <div class="grid">
  722. <div class="col-6">
  723. <img class="img-responsive img-wide" src="https://picsum.photos/400" />
  724. </div>
  725. <div class="col-6">
  726. <figure>
  727. <img class="img-responsive img-wide" src="https://picsum.photos/400" />
  728. <figcaption class="text-center">Lorem Ipsum</figcaption>
  729. </figure>
  730. </div>
  731. </div>
  732. <!-- modifiers / Typography -->
  733. <h3 class="h4 margin-top-1x">
  734. Typography
  735. </h3>
  736. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  737. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  738. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  739. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  740. &lt;div class=&quot;text-italic&quot;&gt;&lt;/div&gt;
  741. &lt;div class=&quot;text-weight-light&quot;&gt;&lt;/div&gt;
  742. &lt;div class=&quot;text-weight-normal&quot;&gt;&lt;/div&gt;
  743. &lt;div class=&quot;text-weight-medium&quot;&gt;&lt;/div&gt;
  744. &lt;div class=&quot;text-weight-bold&quot;&gt;&lt;/div&gt;
  745. &lt;div class=&quot;text-capitalize&quot;&gt;&lt;/div&gt;
  746. &lt;div class=&quot;text-uppercase&quot;&gt;&lt;/div&gt;
  747. &lt;div class=&quot;text-lowercase&quot;&gt;&lt;/div&gt;
  748. &lt;div class=&quot;text-smaller&quot;&gt;&lt;/div&gt;
  749. &lt;div class=&quot;text-crossed&quot;&gt;&lt;/div&gt;
  750. &lt;div class=&quot;text-underline&quot;&gt;&lt;/div&gt;</code></pre>
  751. <p>
  752. Also there are classes for,
  753. </p>
  754. <ul>
  755. <li>text-size-* with $crispy__font-sizes for "font-size"</li>
  756. <li>text-color-* with $crispy__colors for "color"</li>
  757. <li>background-color-* with $crispy__font-sizes for "background-color"</li>
  758. </ul>
  759. <!-- modifiers / float -->
  760. <h3 class="h4 margin-top-1x">
  761. Float
  762. </h3>
  763. <pre class="code">&lt;div class=&quot;float-left&quot;&gt;&lt;/div&gt;
  764. &lt;div class=&quot;float-right&quot;&gt;&lt;/div&gt;
  765. &lt;div class=&quot;float-none&quot;&gt;&lt;/div&gt;
  766. &lt;div class=&quot;centered&quot;&gt;&lt;/div&gt;
  767. &lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;</code></pre>
  768. <!-- modifiers / typography -->
  769. <h3 class="h4 margin-top-1x">
  770. Position
  771. </h3>
  772. <pre class="code">&lt;div class=&quot;relative&quot;&gt;&lt;/div&gt;
  773. &lt;div class=&quot;absolute&quot;&gt;&lt;/div&gt;
  774. &lt;div class=&quot;fixed&quot;&gt;&lt;/div&gt;</code></pre>
  775. <!-- modifiers / border -->
  776. <h3 class="h4 margin-top-1x">
  777. Border
  778. </h3>
  779. <pre class="code">&lt;div class=&quot;bordered&quot;&gt;&lt;/div&gt;
  780. &lt;div class=&quot;rounded&quot;&gt;&lt;/div&gt;
  781. &lt;div class=&quot;borderless&quot;&gt;&lt;/div&gt;
  782. &lt;div class=&quot;radiusless&quot;&gt;&lt;/div&gt;</code></pre>
  783. <!-- modifiers / visibility -->
  784. <h3 class="h4 margin-top-1x">
  785. Visibility
  786. </h3>
  787. <pre class="code">&lt;div class=&quot;hidden&quot;&gt;&lt;/div&gt;
  788. &lt;div class=&quot;visible&quot;&gt;&lt;/div&gt;
  789. &lt;div class=&quot;visible visible--inline&quot;&gt;&lt;/div&gt;
  790. &lt;div class=&quot;visible visible--inline-block&quot;&gt;&lt;/div&gt;</code></pre>
  791. <!-- modifiers / width -->
  792. <h3 class="h4 margin-top-1x">
  793. Width
  794. </h3>
  795. <h4 class="h6 margin-top-1x">Sass:</h4>
  796. <pre class="code"><code>$crispy__width: (
  797. '25' : 25%,
  798. '50' : 50%,
  799. '75' : 75%,
  800. '100': 100%
  801. )</code></pre>
  802. <h4 class="h6 margin-top-1x">Html:</h4>
  803. <pre class="code"><code>&lt;div class=&quot;panel width-25&quot;&gt;width-25&lt;/div&gt;
  804. &lt;div class=&quot;width-50&quot;&gt;width-50&lt;/div&gt;
  805. &lt;div class=&quot;width-75&quot;&gt;width-75&lt;/div&gt;
  806. &lt;div class=&quot;width-100&quot;&gt;width-100&lt;/div&gt;</code></pre>
  807. <div class="panel panel__inner width-25 margin-bottom-1">width-25</div>
  808. <div class="panel panel__inner width-50 margin-bottom-1">width-50</div>
  809. <div class="panel panel__inner width-75 margin-bottom-1">width-75</div>
  810. <div class="panel panel__inner width-100 margin-bottom-1">width-100</div>
  811. <!-- mixins -->
  812. <hr class="margin-top-3x">
  813. <h2 id="mixins" class="margin-top-1x">
  814. Mixins
  815. </h2>
  816. <!-- mixins / triangle -->
  817. <h3 class="h4 margin-top-1x">
  818. Triangle
  819. </h3>
  820. <h4 class="h6 margin-top-1x">Sass:</h4>
  821. <pre class="code"><code>.triangle-left, .triangle-right, .triangle-top, .triangle-bottom {
  822. display: block;
  823. }
  824. .triangle-left {
  825. @include triangle('left', $crispy__color-primary);
  826. }
  827. .triangle-right {
  828. @include triangle('right', $crispy__color-primary);
  829. }
  830. .triangle-top {
  831. @include triangle('top', $crispy__color-primary);
  832. }
  833. .triangle-bottom {
  834. @include triangle('bottom', $crispy__color-primary);
  835. }
  836. </code></pre>
  837. <p>
  838. <span class="triangle-right"></span>
  839. <span class="triangle-left"></span>
  840. <span class="triangle-top"></span>
  841. <span class="triangle-bottom"></span>
  842. </p>
  843. <!-- mixins / media-queries -->
  844. <h3 class="h4 margin-top-1x">
  845. Media Queries
  846. </h3>
  847. <p>
  848. These <strong>@mixins</strong> were used with the Breakpoints from <a target="_blank" href="http://reflexgrid.com/docs/">http://reflexgrid.com/docs/</a>.
  849. Reflex-Grid is also used as grid for this Site.
  850. </p>
  851. <ul>
  852. <li><strong>xs</strong> 576px</li>
  853. <li><strong>sm</strong> 768px</li>
  854. <li><strong>md</strong> 992px</li>
  855. <li><strong>lg</strong> 1200px</li>
  856. <li><strong>xlg</strong> 1600px</li>
  857. </ul>
  858. <h4 class="h6 margin-top-1x">Html:</h4>
  859. <pre class="code"><code>&lt;div class=&quot;sm&quot;&gt;sm&lt;/div&gt;
  860. &lt;div class=&quot;md&quot;&gt;md&lt;/div&gt;
  861. &lt;div class=&quot;md-only&quot;&gt;md-only&lt;/div&gt;
  862. &lt;div class=&quot;lg-only&quot;&gt;lg-only&lt;/div&gt;</pre></code>
  863. <h4 class="h6 margin-top-1x">Sass:</h4>
  864. <pre class="code"><code>.sm, .md, .md-only, .lg-only {
  865. display: none;
  866. }
  867. .sm {
  868. @include crispy__media-sm() {
  869. display: block;
  870. }
  871. }
  872. .md {
  873. @include crispy__media-md() {
  874. display: block;
  875. }
  876. }
  877. .md-only {
  878. @include crispy__media-md-only() {
  879. display: block;
  880. }
  881. }
  882. .lg-only {
  883. @include crispy__media-lg-only() {
  884. display: block;
  885. }
  886. }</code></pre>
  887. <div class="grid">
  888. <div class="col-3">
  889. <div class="panel panel__inner sm margin-bottom-1">sm</div>
  890. </div>
  891. <div class="col-3">
  892. <div class="panel panel__inner md margin-bottom-1">md</div>
  893. </div>
  894. <div class="col-3">
  895. <div class="panel panel__inner md-only margin-bottom-1">md-only</div>
  896. </div>
  897. <div class="col-3">
  898. <div class="panel panel__inner lg-only margin-bottom-1">lg-only</div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. <footer class="footer">
  905. <div class="container">
  906. <div class="grid">
  907. <div class="col-12">
  908. <div class="text-center">
  909. <ul class="group group--horizontal group--separate">
  910. <li class="group__item"><a href="/imprint.html">Imprint</a></li><li class="group__item"><a href="/privacy-policy.html">Privacy Policy</a></li>
  911. </ul>
  912. </div>
  913. </div>
  914. </div>
  915. </div>
  916. </footer>
  917. </body>
  918. </html>