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.

247 lines
24 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
  1. <!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Components | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body class="page"><header class="header header--fixed background-color-info"><div class="container"><div class="grid align-center"><div class="col-10 col-sm-3"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-2 hide-sm text-right"><button id="nav-button" class="button button--transparent text-size-medium"><svg class="icon" alt="Hamburger"><use xlink:href="symbol-defs.svg#icon-hamburger"/></svg></button></div><div id="nav" class="col-sm-9 hide show-sm"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getting-started.html">Getting started!</a></li><li class="group__item"><a href="core.html">Core</a></li><li class="group__item"><a href="components.html">Components</a></li><li class="group__item"><a href="helpers.html">Helpers</a></li><li class="group__item"><a href="mixins.html">Mixins</a></li><li class="group__item"><a href="functions.html">Functions</a></li></ul></nav></div></div></div></header><main class="container main"><div class="grid"><div class="col-12"><header class="main__header"><h1 class="main__title padding-bottom-2 text-center">Components</h1></header><h2 class="h3 margin-bottom-1">Button</h2><hr class="marginless margin-bottom-2"/><h3 class="h4">SCSS:</h3><pre class="code margin-top-1"><code>$crispy__button__font-family: $crispy__font-family;
  2. $crispy__button__font-weight: $crispy__font-weight;
  3. $crispy__button__font-size: $crispy__font-size;
  4. $crispy__button__font-size-breakpoints: $crispy__font-size-breakpoints;
  5. $crispy__button__padding: 0.4em 0.8em;
  6. $crispy__button__padding-breakpoints: (
  7. $crispy__md: 0.6em 1.2em
  8. );
  9. $crispy__button__margin: $crispy__margin;
  10. $crispy__button__margin-breakpoints: $crispy__margin-breakpoints;
  11. </code></pre><h3 class="h4">Html:</h3><pre class="code margin-top-1"><code>&lt;button class=&quot;button&quot;&gt;&lt;/button&gt;
  12. &lt;button class=&quot;button text-size-medium&quot;&gt;&lt;/button&gt;
  13. &lt;button class=&quot;button text-size-large&quot;&gt;&lt;/button&gt;
  14. &lt;button class=&quot;button width-100&quot;&gt;&lt;/button&gt;</code></pre><button class="button">Default</button> <button class="button text-size-medium">Default</button> <button class="button text-size-large">Default</button> <button class="button width-100">Info</button> <button class="button"><svg class="icon icon-color-danger" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg></button> <button class="button"><svg class="icon icon-color-danger" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> Button</button><h2 class="h3 margin-top-3 margin-bottom-1">Code</h2><hr class="marginless margin-bottom-2"/><h3 class="h4">SCSS:</h3><pre class="code margin-top-1"><code>$crispy__code__border: $crispy__border;
  15. $crispy__code__background-color: $crispy__color-grey-light;
  16. $crispy__code__padding: $crispy__padding;
  17. $crispy__code__padding-breakpoints: $crispy__padding-breakpoints;
  18. $crispy__code__margin: $crispy__margin;
  19. $crispy__code__margin-breakpoints: $crispy__margin-breakpoints;
  20. </code></pre><h3 class="h4">Html:</h3><pre class="code margin-top-1"><code>&lt;pre class=&quot;code&quot;&gt;
  21. &lt;code&gt;&lt;/code&gt;
  22. &lt;/pre&gt;
  23. </code></pre><h2 class="h3 margin-top-3">Fields</h2><h3 class="h4 magin-top-2">SCSS:</h3><pre class="code margin-top-1"><code>$crispy__field__margin: $crispy__margin;
  24. $crispy__field__border: $crispy__border;
  25. $crispy__field__color--valid: $crispy__color-success;
  26. $crispy__field__color--error: $crispy__color-danger;
  27. $crispy__field__border-color--focus: $crispy__color-primary;
  28. $crispy__field__border-color--valid: $crispy__color-success;
  29. $crispy__field__border-color--error: $crispy__color-danger;
  30. $crispy__field__choice__checked__color: $crispy__color-success;
  31. $crispy__field__choice__unchecked__color: $crispy__color-danger;
  32. $crispy__field__input__padding: 0.4em 0.6em;
  33. $crispy__field__input__color: $crispy__color-text;
  34. $crispy__field__select__padding: 0.3em 0.5em;
  35. $crispy__field__panel__padding: 0.3em 0.6em;
  36. $crispy__field__select__background-color: white;
  37. $crispy__field__select__border: $crispy__border;</code></pre><h3 class="h4 margin-top-2">Input / Textarea</h3><pre class="code margin-top-1"><code>&lt;div class=&quot;field&quot;&gt;
  38. &lt;input class=&quot;field__text&quot; type=&quot;text&quot; /&gt;
  39. &lt;/div&gt;
  40. &lt;div class=&quot;field field--valid&quot;&gt;
  41. &lt;label class=&quot;field__label&quot;&gt;
  42. Text
  43. &lt;input type=&quot;text&quot; class=&quot;field__text&quot; /&gt;
  44. &lt;/label&gt;
  45. &lt;div class=&quot;field__panel&quot;&gt;
  46. error item 1
  47. &lt;/div&gt;
  48. &lt;/div&gt;
  49. &lt;div class=&quot;field field--error&quot;&gt;
  50. &lt;label class=&quot;field__label&quot;&gt;
  51. Text
  52. &lt;input type=&quot;text&quot; class=&quot;field__text&quot; /&gt;
  53. &lt;/label&gt;
  54. &lt;div class=&quot;field__panel&quot;&gt;
  55. error item 1
  56. &lt;/div&gt;
  57. &lt;/div&gt;
  58. &lt;div class=&quot;field&quot;&gt;
  59. &lt;label class=&quot;field__label&quot;&gt;
  60. Textarea
  61. &lt;textarea class=&quot;field__text&quot;&gt;&lt;/textarea&gt;
  62. &lt;/label&gt;
  63. &lt;/div&gt;</code></pre><div class="field"><input class="field__text"/></div><div class="field field--valid"><label class="field__label">Text <input class="field__text"/></label><div class="field__panel">error item 1</div></div><div class="field field--error"><label class="field__label">Text <input class="field__text"/></label><div class="field__panel">error item 1</div></div><div class="field"><label class="field__label">Textarea <textarea class="field__text"></textarea></label></div><h3 class="h4 margin-top-2">Checkbox</h3><pre class="code margin-top-1"><code>&lt;div class=&quot;field&quot;&gt;
  64. &lt;input id=&quot;field__checkbox__1&quot; class=&quot;field__choice&quot; type=&quot;checkbox&quot; name=&quot;field__checkbox__1&quot; value=&quot;true&quot; /&gt;
  65. &lt;label for=&quot;field__checkbox__1&quot; class=&quot;field__label&quot;&gt;
  66. &lt;svg class=&quot;icon text-size-medium field__choice__unchecked&quot; aria-hidden=&quot;true&quot;&gt;
  67. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-left&quot;&gt;&lt;/use&gt;
  68. &lt;/svg&gt;
  69. &lt;svg class=&quot;icon text-size-medium field__choice__checked&quot; aria-hidden=&quot;true&quot;&gt;
  70. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-right&quot;&gt;&lt;/use&gt;
  71. &lt;/svg&gt;
  72. checkbox 1
  73. &lt;/label&gt;
  74. &lt;input id=&quot;field__checkbox__2&quot; class=&quot;field__choice&quot; type=&quot;checkbox&quot; name=&quot;field__checkbox__2&quot; value=&quot;true&quot; /&gt;
  75. &lt;label for=&quot;field__checkbox__2&quot; class=&quot;field__label&quot;&gt;
  76. &lt;svg class=&quot;icon text-size-medium field__choice__unchecked&quot; aria-hidden=&quot;true&quot;&gt;
  77. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-left&quot;&gt;&lt;/use&gt;
  78. &lt;/svg&gt;
  79. &lt;svg class=&quot;icon text-size-medium field__choice__checked&quot; aria-hidden=&quot;true&quot;&gt;
  80. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-right&quot;&gt;&lt;/use&gt;
  81. &lt;/svg&gt;
  82. checkbox 2
  83. &lt;/label&gt;
  84. &lt;/div&gt;</code></pre><div class="field"><input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true"/> <label for="field__checkbox__1" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"></use></svg> checkbox 1</label> <input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true"/> <label for="field__checkbox__2" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"></use></svg> checkbox 2</label></div><div class="field field--error"><input id="field__checkbox__3" class="field__choice" type="checkbox" name="field__checkbox__3" value="true"/> <label for="field__checkbox__3" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"></use></svg> checkbox 1</label><div class="field__panel">error item 1</div></div><h3 class="h4 margin-top-2">Radio</h3><pre class="code margin-top-1"><code>&lt;div class=&quot;field&quot;&gt;
  85. &lt;input id=&quot;field__radio__1&quot; class=&quot;field__choice&quot; type=&quot;radio&quot; name=&quot;field__radio__1[]&quot; value=&quot;true&quot; /&gt;
  86. &lt;label for=&quot;field__radio__1&quot; class=&quot;field__label&quot;&gt;
  87. &lt;svg class=&quot;icon text-size-medium field__choice__unchecked&quot; aria-hidden=&quot;true&quot;&gt;
  88. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-left&quot;&gt;&lt;/use&gt;
  89. &lt;/svg&gt;
  90. &lt;svg class=&quot;icon text-size-medium field__choice__checked&quot; aria-hidden=&quot;true&quot;&gt;
  91. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-right&quot; /&gt;
  92. &lt;/svg&gt;
  93. radio item 1
  94. &lt;/label&gt;&lt;br /&gt;
  95. &lt;input id=&quot;field__radio__2&quot; class=&quot;field__choice&quot; type=&quot;radio&quot; name=&quot;field__radio__1[]&quot; value=&quot;true&quot; /&gt;
  96. &lt;label for=&quot;field__radio__2&quot; class=&quot;field__label&quot;&gt;
  97. &lt;svg class=&quot;icon text-size-medium field__choice__unchecked&quot; aria-hidden=&quot;true&quot;&gt;
  98. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-left&quot;&gt;&lt;/use&gt;
  99. &lt;/svg&gt;
  100. &lt;svg class=&quot;icon text-size-medium field__choice__checked&quot; aria-hidden=&quot;true&quot;&gt;
  101. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-right&quot; /&gt;
  102. &lt;/svg&gt;
  103. radio item 2
  104. &lt;/label&gt;
  105. &lt;/div&gt;
  106. &lt;div class=&quot;field field--error&quot;&gt;
  107. &lt;input id=&quot;field__radio__3&quot; class=&quot;field__choice&quot; type=&quot;radio&quot; name=&quot;field__radio__2[]&quot; value=&quot;true&quot; /&gt;
  108. &lt;label for=&quot;field__radio__3&quot; class=&quot;field__label&quot;&gt;
  109. &lt;svg class=&quot;icon text-size-medium field__choice__unchecked&quot; aria-hidden=&quot;true&quot;&gt;
  110. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-left&quot;&gt;&lt;/use&gt;
  111. &lt;/svg&gt;
  112. &lt;svg class=&quot;icon text-size-medium field__choice__checked&quot; aria-hidden=&quot;true&quot;&gt;
  113. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-right&quot; /&gt;
  114. &lt;/svg&gt;
  115. radio item 1
  116. &lt;/label&gt;&lt;br /&gt;
  117. &lt;input id=&quot;field__radio__4&quot; class=&quot;field__choice&quot; type=&quot;radio&quot; name=&quot;field__radio__2[]&quot; value=&quot;true&quot; /&gt;
  118. &lt;label for=&quot;field__radio__4&quot; class=&quot;field__label&quot;&gt;
  119. &lt;svg class=&quot;icon text-size-medium field__choice__unchecked&quot; aria-hidden=&quot;true&quot;&gt;
  120. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-left&quot;&gt;&lt;/use&gt;
  121. &lt;/svg&gt;
  122. &lt;svg class=&quot;icon text-size-medium field__choice__checked&quot; aria-hidden=&quot;true&quot;&gt;
  123. &lt;use xlink:href=&quot;symbol-defs.svg#icon-toggle-right&quot; /&gt;
  124. &lt;/svg&gt;
  125. radio item 2
  126. &lt;/label&gt;
  127. &lt;div class=&quot;field__panel&quot;&gt;
  128. error item 1
  129. &lt;/div&gt;
  130. &lt;/div&gt;</code></pre><div class="field"><input id="field__radio__1" class="field__choice" type="radio" name="field__radio__1[]" value="true"/> <label for="field__radio__1" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"/></svg> radio item 1</label><br/><input id="field__radio__2" class="field__choice" type="radio" name="field__radio__1[]" value="true"/> <label for="field__radio__2" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"/></svg> radio item 2</label></div><div class="field field--error"><input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true"/> <label for="field__radio__3" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"/></svg> radio item 1</label><br/><input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true"/> <label for="field__radio__4" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"/></svg> radio item 2</label><div class="field__panel">error item 1</div></div><h3 class="h4 margin-top-2">Select</h3><pre class="code margin-top-1"><code>&lt;div class=&quot;field&quot;&gt;
  131. &lt;label class=&quot;field__label&quot;&gt;
  132. Select Item
  133. &lt;select class=&quot;field__select&quot;&gt;
  134. &lt;option&gt;select item 1&lt;/option&gt;
  135. &lt;option&gt;select item 2&lt;/option&gt;
  136. &lt;option&gt;select item 3&lt;/option&gt;
  137. &lt;/select&gt;
  138. &lt;/label&gt;
  139. &lt;/div&gt;
  140. &lt;div class=&quot;field field--error&quot;&gt;
  141. &lt;label class=&quot;field__label&quot;&gt;
  142. Select Item
  143. &lt;select class=&quot;field__select&quot;&gt;
  144. &lt;option&gt;select item 1&lt;/option&gt;
  145. &lt;option&gt;select item 2&lt;/option&gt;
  146. &lt;option&gt;select item 3&lt;/option&gt;
  147. &lt;/select&gt;
  148. &lt;div class=&quot;field__panel&quot;&gt;
  149. error item 1
  150. &lt;/div&gt;
  151. &lt;/label&gt;
  152. &lt;/div&gt;</code></pre><div class="field"><label class="field__label">Select Item <select class="field__select"><option>select item 1</option><option>select item 2</option><option>select item 3</option></select></label></div><div class="field field--error"><label class="field__label">Select Item <select class="field__select"><option>select item 1</option><option>select item 2</option><option>select item 3</option></select><div class="field__panel">error item 1</div></label></div><h2 class="h3 margin-top-3">Group</h2><h3 class="h4">SCSS:</h3><pre class="code"><code>$crispy__group__margin: 0 0.5em 0 !default;
  153. $crispy__group__character: '/' !default;</code></pre><h3 class="h4">Html:</h3><pre class="code"><code>&lt;nav&gt;
  154. &lt;ul class=&quot;group group--hr&quot;&gt;
  155. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  156. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  157. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  158. &lt;/ul&gt;
  159. &lt;/nav&gt;</code></pre><div class="panel panel__inner margin-bottom-2"><nav><ul class="group group--hr"><li class="group__item">first item</li><li class="group__item">second item</li><li class="group__item">third item</li></ul></nav></div><div class="panel panel__inner"><nav><ul class="group"><li class="group__item"><button class="button marginless">Button</button></li><li class="group__item"><button class="button marginless">Button</button></li><li class="group__item"><button class="button marginless">Button</button></li></ul></nav></div><h2 class="h3 margin-top-3">Hero</h2><h3 class="h4">Html:</h3><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><div class="hero" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div><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><div class="hero hero--top" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div><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><div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div><h2 class="h3 margin-top-3">Icon</h2><h3 class="h4">SCSS:</h3><pre class="code"><code>$crispy__icon__size: 1.15em;
  160. </code></pre><h3 class="h4">Html:</h3><pre class="code"><code>&lt;svg class=&quot;icon text-size-small&quot; aria-hidden=&quot;true&quot;&gt;
  161. &lt;use xlink:href=&quot;symbol-defs.svg#icon-flask&quot;&gt;&lt;/use&gt;
  162. &lt;/svg&gt;
  163. &lt;svg class=&quot;icon&quot; aria-hidden=&quot;true&quot;&gt;
  164. &lt;use xlink:href=&quot;symbol-defs.svg#icon-flask&quot;&gt;&lt;/use&gt;
  165. &lt;/svg&gt;
  166. &lt;svg class=&quot;icon text-size-large&quot; aria-hidden=&quot;true&quot;&gt;
  167. &lt;use xlink:href=&quot;symbol-defs.svg#icon-flask&quot;&gt;&lt;/use&gt;
  168. &lt;/svg&gt;
  169. &lt;svg class=&quot;icon text-size-big&quot; aria-hidden=&quot;true&quot;&gt;
  170. &lt;use xlink:href=&quot;symbol-defs.svg#icon-flask&quot;&gt;&lt;/use&gt;
  171. &lt;/svg&gt;
  172. &lt;svg class=&quot;icon text-size-mega&quot; aria-hidden=&quot;true&quot;&gt;
  173. &lt;use xlink:href=&quot;symbol-defs.svg#icon-flask&quot;&gt;&lt;/use&gt;
  174. &lt;/svg&gt;
  175. &lt;svg class=&quot;icon icon-color-danger&quot; aria-hidden=&quot;true&quot;&gt;
  176. &lt;use xlink:href=&quot;symbol-defs.svg#icon-flask&quot;&gt;&lt;/use&gt;
  177. &lt;/svg&gt;;</code></pre><div class="panel"><div class="panel__inner"><svg class="icon text-size-small" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon text-size-large" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon text-size-big" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon text-size-mega" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon icon-color-danger" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg></div></div><h2 class="h3 margin-top-3">Media</h2><h3 class="h4">Html:</h3><pre class="code"><code>&lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  178. &lt;figure&gt;
  179. &lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  180. &lt;figcaption class=&quot;text-center&quot;&gt;Lorem Ipsum&lt;/figcaption&gt;
  181. &lt;/figure&gt;
  182. </code></pre><div class="grid"><div class="col-12 col-md-6"><img class="img-responsive width-100" src="https://picsum.photos/400"/></div><div class="col-12 col-md-6"><figure><img class="img-responsive width-100" src="https://picsum.photos/400"/><figcaption class="text-center">Lorem Ipsum</figcaption></figure></div></div><h2 class="h3 margin-top-3">Panel</h2><h3 class="h4">SCSS:</h3><pre class="code"><code>$crispy__panel__inner-padding: $crispy__padding;
  183. $crispy__panel__inner-padding-breakpoints: $crispy__padding-breakpoints;
  184. $crispy__panel__background-color: $crispy__color-grey-light;
  185. </code></pre><h3 class="h4">Html:</h3><pre class="code"><code>&lt;div class=&quot;panel&quot;&gt;
  186. &lt;div class=&quot;panel__inner&quot;&gt;
  187. Lorem Ipsum
  188. &lt;/div&gt;
  189. &lt;/div&gt;</code></pre><div class="panel"><div class="panel__inner">Lorem Ipsum</div></div><h2 class="h3 margin-top-3">Progress</h2><h3 class="h4">SCSS:</h3><pre class="code"><code>$crispy__progress__height: 30px;
  190. $crispy__progress__background-color: $crispy__color-primary;
  191. $crispy__progress__border-width: 1px;
  192. $crispy__progress__border-color: $crispy__color-border;
  193. </code></pre><h3 class="h4">Html:</h3><pre class="code"><code>&lt;div class=&quot;progress&quot;&gt;
  194. &lt;div class=&quot;progress__inner&quot; style=&quot;width: 80%&quot;&gt;&lt;/div&gt;
  195. &lt;/div&gt;
  196. </code></pre><div class="progress"><div class="progress__inner" style="width: 80%"></div></div><h2 class="h3 margin-top-3">Modal</h2><h3 class="h4">SCSS:</h3><pre class="code"><code>$crispy__modal__max-width-breakpoints: (
  197. $crispy__md: 50%
  198. );
  199. $crispy__modal__margin-breakpoints: (
  200. $crispy__md: 0.75em
  201. );
  202. $crispy__modal__z-index: zIndex('modal');</code></pre><h3 class="h4">Html:</h3><pre class="code"><code>&lt;div class=&quot;modal modal--bottom width-100&quot;&gt;
  203. &lt;div class=&quot;panel&quot;&gt;
  204. &lt;div class=&quot;panel__inner&quot;&gt;
  205. Lorem Ipsum
  206. &lt;/div&gt;
  207. &lt;/div&gt;
  208. &lt;/div&gt;</code></pre><div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;"><div class="modal modal--top-left"><div class="panel"><div class="panel__inner">.modal--top-left</div></div></div><div class="modal modal--top-right"><div class="panel"><div class="panel__inner">.modal--top-right</div></div></div><div class="modal"><div class="panel"><div class="panel__inner">.modal</div></div></div><div class="modal modal--bottom-left"><div class="panel"><div class="panel__inner">.modal--bottom-left</div></div></div><div class="modal modal--bottom-right"><div class="panel"><div class="panel__inner">.modal--bottom-right</div></div></div></div><h2 class="h3 margin-top-3">Table</h2><h3 class="h4">SCSS:</h3><pre class="code"><code>$crispy__table__padding: $crispy__padding;
  209. $crispy__table__padding-breakpoints: $crispy__padding-breakpoints;
  210. $crispy__table__td__border: 1px solid $crispy__color-border;
  211. $crispy__table__th__border-width: 2px !default;
  212. $crispy__table__color: $crispy__color-text;
  213. $crispy__table__striped__background-color: $crispy__color-grey-light;</code></pre><h3 class="h4">Html:</h3><pre class="code"><code>&lt;table class=&quot;table table--striped margin-bottom-2&quot;&gt;
  214. &lt;thead&gt;
  215. &lt;tr&gt;
  216. &lt;th&gt;name&lt;/th&gt;
  217. &lt;th&gt;age&lt;/th&gt;
  218. &lt;/tr&gt;
  219. &lt;/thead&gt;
  220. &lt;tbody&gt;
  221. &lt;tr&gt;
  222. &lt;td&gt;Mr. Brown&lt;/td&gt;
  223. &lt;td&gt;43&lt;/td&gt;
  224. &lt;/tr&gt;
  225. &lt;tr&gt;
  226. &lt;td&gt;Mr. Magenta&lt;/td&gt;
  227. &lt;td&gt;32&lt;/td&gt;
  228. &lt;/tr&gt;
  229. &lt;tr&gt;
  230. &lt;td&gt;Mr. White&lt;/td&gt;
  231. &lt;td&gt;45&lt;/td&gt;
  232. &lt;/tr&gt;
  233. &lt;/tbody&gt;
  234. &lt;/table&gt;</code></pre><table class="table table--striped margin-bottom-2"><thead><tr><th>name</th><th>age</th></tr></thead><tbody><tr><td>Mr. Brown</td><td>43</td></tr><tr><td>Mr. Magenta</td><td>32</td></tr><tr><td>Mr. White</td><td>45</td></tr></tbody></table></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li><li class="group__item"><a class="text-color-white" href="https://github.com/tentakelfabrik/crispy-css" target="_blank"><svg class="icon" alt="github"><use xlink:href="symbol-defs.svg#icon-github"/></svg></a></li></ul><p class="margin-top-1 margin-bottom-0">Made with euphoria by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer><script src="script.js"></script></body></html>