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.

995 lines
38 KiB

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