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.

972 lines
40 KiB

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