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.

1012 lines
39 KiB

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