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.

270 lines
11 KiB

6 years ago
6 years ago
6 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></title>
  7. <meta name="description" content="">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="stylesheet" href="../dest/css/crispy.css">
  10. <style>
  11. .container {
  12. max-width: 992px;
  13. width: 100%;
  14. margin: 0 auto;
  15. }
  16. .panel {
  17. padding: 10px;
  18. background-color: #efefef;
  19. border: 1px dotted #cecece;
  20. }
  21. .header {
  22. padding: 8px 0 0;
  23. background-color: #e9e9e9;
  24. border-bottom: 1px dotted #959595;
  25. margin: 0 0 50px;
  26. }
  27. .header__logo {
  28. width: 50px;
  29. line-height: 0;
  30. position: relative;
  31. top: 3px;
  32. margin: 0 10px;
  33. }
  34. .footer {
  35. padding: 8px 0 0;
  36. background-color: #e9e9e9;
  37. border-top: 1px dotted #959595;
  38. margin: 50px 0 0 0;
  39. }
  40. </style>
  41. </head>
  42. <body>
  43. <header class="header">
  44. <div class="container">
  45. <div class="grid">
  46. <div class="col-12">
  47. <div class="text-center">
  48. <h1 class="header__title">
  49. <img class="header__logo" src="../dest/svg/chip.svg" alt="chip" /> Crispy Boilerplate - small, simple, pure CSS
  50. </h1>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </header>
  56. <button class="button button--up">b</button>
  57. <div class="container">
  58. <div class="grid">
  59. <div class="col-2">
  60. <nav>
  61. <ul class="margin-top-0x">
  62. <li><a href="#typography">Typography</a></li>
  63. <li><a href="#icon">Icon</a></li>
  64. <li><a href="#buttons">Buttons</a></li>
  65. <li><a href="#table">Table</a></li>
  66. <li><a href="#helpers">Helpers</a></li>
  67. <li><a href="#functions">Functions</a></li>
  68. <li><a href="#reflex-grid">Reflex Grid</a></li>
  69. </ul>
  70. </nav>
  71. </div>
  72. <div class="col-10">
  73. <p>
  74. A few Years a have always created Styles to use in other Frameworks, crispy boilerplate is a
  75. a small toolkit from this helpers, styles that can be used to create. This is not beatiful or fancy
  76. it is a simple and basic toolkit to get a default style.
  77. </p>
  78. <p>
  79. For me it was important to use no js, not that i hate js, no, the Problem of bigger Frameworks was
  80. but for the most webapps, it was always diffult to build a few things and not getting a conflict. So i desided
  81. it is simpler to get a good stable basis and build smaller parts
  82. </p>
  83. <p>
  84. So this is a smaller approch, most projects i have then that
  85. big Frameworks were used, but i often felt that there
  86. was a Problem, often the fight against the framework, that
  87. result often in bigger and longer code.
  88. This is also a try to code get a smaller base to create more effecit
  89. No, it is a try, i can not promise you it will be done,
  90. </p>
  91. <h2 id="typography">Typography</h2>
  92. <!-- blockquote -->
  93. <h3 class="h4 margin-top-1x">Heading</h3>
  94. <h4 class="h6">Html:</h4>
  95. <code>&lt;h2&gt;&lt;/h2&gt;
  96. &lt;h2 class="h3"&gt;&lt;/h2&gt;</code>
  97. <h4 class="h6">Sass:</h4>
  98. <code>$crispy__heading__font-sizes: (
  99. 'h1': 40px,
  100. 'h2': 36px,
  101. 'h3': 32px,
  102. 'h4': 28px,
  103. 'h5': 24px,
  104. 'h6': 20px
  105. ) !default;</code>
  106. <h1>Heading h1</h1>
  107. <h2>Heading h1</h2>
  108. <h3>Heading h1</h3>
  109. <h4>Heading h1</h4>
  110. <h5>Heading h1</h5>
  111. <h6>Heading h1</h6>
  112. <strong>Strong</strong>
  113. <!-- blockquote -->
  114. <h3 class="h4 margin-top-1x">blockquote</h3>
  115. <h4 class="h6">Html:</h4>
  116. <code class="code">&lt;blockquote&gt;&lt;/blockquote&gt;</code>
  117. <blockquote>
  118. 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.
  119. </blockquote>
  120. <!-- abbr -->
  121. <h3 class="h4 margin-top-1x">abbr</h3>
  122. <p>
  123. Glossier viral occupy mixtape pok pok cornhole, <abbr title="vape affogato hella">vape affogato hella</abbr> knausgaard thundercats
  124. </p>
  125. <code class="code">&lt;abbr title=&quot;&quot;&gt;&lt;/abbr&gt;</code>
  126. <ul>
  127. <li>item 1</li>
  128. <li>item 2</li>
  129. </ul>
  130. <ol>
  131. <li>item 1</li>
  132. <li>item 2</li>
  133. </ol>
  134. <dl>
  135. <dt>defined title 1</dt><dd>defined item 1</dd>
  136. </dl>
  137. <hr>
  138. <h2 id="buttons" class="margin-top-1x">Buttons</h2>
  139. <button class="button">Default</button>
  140. <button class="button button--secondary">Default</button>
  141. <button class="button button--success">Success</button>
  142. <button class="button button--warning">Warning</button>
  143. <button class="button button--danger">Danger</button>
  144. <button class="button button--info">Info</button>
  145. <button class="button button--info button--wide margin-top-1x">Info</button>
  146. <code class="margin-top-1x margin-bottom-1x">&lt;button class=&quot;button button--danger&quot;&gt;&lt;/button&gt;
  147. &lt;button class=&quot;button button--success&quot;&gt;&lt;/button&gt;
  148. &lt;button class=&quot;button button--warning&quot;&gt;&lt;/button&gt;
  149. &lt;button class=&quot;button button--danger&quot;&gt;&lt;/button&gt;
  150. &lt;button class=&quot;button button--up&quot;&gt;&lt;/button&gt;
  151. &lt;button class=&quot;button button--down&quot;&gt;&lt;/button&gt;</code>
  152. <hr>
  153. <h2 id="table" class="margin-top-1x">Table</h2>
  154. <code>&lt;table class=&quot;table table--striped&quot;&gt;
  155. &lt;thead&gt;
  156. &lt;tr&gt;
  157. &lt;th&gt;&lt;/th&gt;
  158. &lt;/tr&gt;
  159. &lt;/thead&gt;
  160. &lt;tbody&gt;
  161. &lt;tr&gt;
  162. &lt;td&gt;&lt;/td&gt;
  163. &lt;/tr&gt;
  164. &lt;/tbody&gt;
  165. &lt;/table&gt;</code>
  166. <table class="table table--striped margin-bottom-2x">
  167. <thead>
  168. <tr>
  169. <th>name</th>
  170. <th>age</th>
  171. </tr>
  172. </thead>
  173. <tbody>
  174. <tr>
  175. <td>Mr. Brown</td>
  176. <td>43</td>
  177. </tr>
  178. <tr>
  179. <td>Mr. Magenta</td>
  180. <td>32</td>
  181. </tr>
  182. <tr>
  183. <td>Mr. White</td>
  184. <td>45</td>
  185. </tr>
  186. </tbody>
  187. </table>
  188. <!-- Reflex Grid -->
  189. <hr />
  190. <h2 id="reflex-grid" class="margin-top-1x">
  191. Reflex Grid
  192. </h2>
  193. <p>
  194. The <strong>Reflex Grid</strong> is from <a target="_blank" href="http://lendmeyourear.net">Lee Jordan</a>. I have
  195. build a few helper for media-queries. <strong>Reflex Grid </strong> is lightweight, simple and uses a flexbox grid with
  196. cross browser support, an inline-block fallback.
  197. </p>
  198. <p>
  199. Documentation: <a target="_blank" href="http://reflexgrid.com/docs/">http://reflexgrid.com/docs/</a><br />
  200. Github: <a target="_blank" href="https://github.com/leejordan/reflex">https://github.com/leejordan/reflex</a>
  201. </p>
  202. <!-- Reflex Grid / media queries -->
  203. <h3 class="h4 margin-top-1x">
  204. Media Queries
  205. </h3>
  206. <p>
  207. For Media Queries uses the Breakpoints from the <strong>Reflex Grid</strong>.
  208. </p>
  209. <ul>
  210. <li>xs: 576px</li>
  211. <li>sm: 768px</li>
  212. <li>md: 992px</li>
  213. <li>lg: 1200px</li>
  214. <li>xlg: 1600px</li>
  215. </ul>
  216. <p>
  217. You can uses a Mixin to add styles to an Breakpoint.If you want
  218. that a style only belong to one Breakpoints "-only", otherwise it is
  219. Mobile First.
  220. </p>
  221. <h4 class="h6">
  222. Sass:
  223. </h4>
  224. <code class="margin-bottom-1x">@include crispy__media-md() {
  225. &lt;!-- your code --&gt;
  226. }
  227. @include crispy__media-md-only() {
  228. &lt;!-- your code --&gt;
  229. }</code>
  230. </div>
  231. </div>
  232. </div>
  233. <footer class="footer">
  234. <div class="container">
  235. <div class="grid">
  236. <div class="col-12">
  237. <div class="text-center">
  238. <p>
  239. <a target="_blank" href="https://thenounproject.com/wxchee/">W. X. Chee</a>
  240. </p>
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. </footer>
  246. </body>
  247. </html>