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.

662 lines
24 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 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="/css/styles.min.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. <h1 class="header__title">
  19. <svg class="icon header__logo" alt="Crisp" viewBox="0 0 100 100">
  20. <use xlink:href="/svg/icons.svg#chip" />
  21. </svg>
  22. Crispy Boilerplate
  23. </h1>
  24. </hgroup>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="grid">
  29. <div class="col-sm-4">
  30. <h2 class="header__feature-title">Less is more</h2>
  31. <p class="header__feature-text">
  32. Simple basic Components to extends in your own art
  33. </p>
  34. </div>
  35. <div class="col-sm-4">
  36. <h2 class="header__feature-title">Structure</h2>
  37. <p class="header__feature-text">
  38. Crispy gives you a Structure to orientate
  39. </p>
  40. </div>
  41. <div class="col-sm-4">
  42. <h2 class="header__feature-title">Helper</h2>
  43. <p class="header__feature-text">
  44. Use helper to save up time and coding less
  45. </p>
  46. </div>
  47. </div>
  48. </div>
  49. </header>
  50. <a class="button button--up" href="#header">
  51. <svg class="icon" alt="up" viewBox="0 0 100 100">
  52. <use xlink:href="/svg/icons.svg#triangle-up" />
  53. </svg>
  54. </a>
  55. <div class="container">
  56. <div class="grid">
  57. <div class="col-12 col-sm-3">
  58. <nav class="nav">
  59. <ul class="margin-top-0x">
  60. <li><a href="#introduction">Introduction</a></li>
  61. <li><a href="#get-started">Get Started</a></li>
  62. <li><a href="#typography">Typography</a></li>
  63. <li><a href="#components">Components</a></li>
  64. <li><a href="#form">Form</a></li>
  65. <li><a href="#functions">Functions</a></li>
  66. <li><a href="#helpers">Helpers</a></li>
  67. <li><a href="#mixins">Mixins</a></li>
  68. <li><a href="#reflex-grid">Reflex Grid</a></li>
  69. </ul>
  70. </nav>
  71. </div>
  72. <div class="col-12 col-sm-9">
  73. <h2 id="introduction" class="lead">
  74. Introduction
  75. </h2>
  76. <p>
  77. Why? There are so many! Yes, of Course, but this is not a Framework, it is a Boilerplate, more simple. I have tried to build a minimalistic sass.
  78. </p>
  79. <p>
  80. A few Years a have always created Styles to use in other Frameworks, crispy boilerplate is a a small toolkit from this helpers, styles that can be used to create. This is not beatiful or fancy it is a simple and basic toolkit to get a default style.
  81. </p>
  82. <p>
  83. For me it was important to use no js, not that i hate js, no, the Problem of bigger Frameworks was but for the most webapps, it was always diffult to build a few things and not getting a conflict. So i desided it is simpler to get a good stable basis
  84. and build smaller parts
  85. </p>
  86. <p>
  87. So this is a smaller approch, most projects i have then that big Frameworks were used, but i often felt that there was a Problem, often the fight against the framework, that result often in bigger and longer code. This is also a try to code get a smaller
  88. base to create more effecit No, it is a try, i can not promise you it will be done,
  89. </p>
  90. <!-- how to use -->
  91. <hr class="margin-top-3x">
  92. <h2 id="get-started" class="margin-top-1x">
  93. Get Started
  94. </h2>
  95. <pre class="code"><code>npm install crispy-boilerplate</code></pre>
  96. <!-- typography -->
  97. <hr class="margin-top-3x">
  98. <h2 id="typography" class="margin-top-1x">
  99. Typography
  100. </h2>
  101. <!-- abbr -->
  102. <h3 class="h4 margin-top-2x margin-bottom-0x">Abbr</h3>
  103. <h4 class="h6">Html:</h4>
  104. <pre class="code"><code>&lt;abbr title=&quot;&quot;&gt;&lt;/abbr&gt;</code></pre>
  105. <p>
  106. Glossier viral occupy mixtape pok pok cornhole, <abbr title="vape affogato hella">vape affogato hella</abbr> knausgaard thundercats
  107. </p>
  108. <!-- blockquote -->
  109. <h3 class="h4 margin-top-2x margin-bottom-0x">Blockquote</h3>
  110. <h4 class="h6">Html:</h4>
  111. <pre class="code"><code>&lt;blockquote&gt;&lt;/blockquote&gt;</code></pre>
  112. <blockquote>
  113. 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.
  114. </blockquote>
  115. <!-- paragraph -->
  116. <h3 class="h4 margin-top-2x margin-bottom-0x">Paragraph</h3>
  117. <h4 class="h6">Html:</h4>
  118. <pre class="code"><code>&lt;p&gt;&lt;/p&gt;</code></pre>
  119. <p>
  120. Glossier viral occupy mixtape pok pok.
  121. </p>
  122. <!-- list -->
  123. <h3 class="h4 margin-top-2x margin-bottom-0x">List</h3>
  124. <h4 class="h6">Html:</h4>
  125. <pre class="code"><code>&lt;ul&gt;
  126. &lt;li&gt;item 1&lt;/li&gt;
  127. &lt;li&gt;item 2
  128. &lt;ul&gt;
  129. &lt;li&gt;child item 1&lt;/li&gt;
  130. &lt;li&gt;child item 2&lt;/li&gt;
  131. &lt;/ul&gt;
  132. &lt;/li&gt;
  133. &lt;/ul&gt;
  134. &lt;ol&gt;
  135. &lt;li&gt;item 1&lt;/li&gt;
  136. &lt;li&gt;item 2&lt;/li&gt;
  137. &lt;/ol&gt;
  138. &lt;dl&gt;
  139. &lt;dt&gt;defined title 1&lt;/dt&gt;
  140. &lt;dd&gt;defined item 1&lt;/dd&gt;
  141. &lt;/dl&gt;</code></pre>
  142. <ul>
  143. <li>item 1</li>
  144. <li>
  145. item 2
  146. <ul>
  147. <li>child item 1</li>
  148. <li>child item 2</li>
  149. </ul>
  150. </li>
  151. </ul>
  152. <ol>
  153. <li>item 1</li>
  154. <li>item 2</li>
  155. </ol>
  156. <dl>
  157. <dt>defined title 1</dt>
  158. <dd>defined item 1</dd>
  159. </dl>
  160. <!-- components -->
  161. <hr class="margin-top-3x">
  162. <h2 id="components" class="margin-top-1x">
  163. Components
  164. </h2>
  165. <!-- components / button -->
  166. <h3 class="h4 margin-top-2x margin-bottom-0x">
  167. Button
  168. </h3>
  169. <h4 class="h6">Html:</h4>
  170. <pre class="code margin-top-1x"><code>&lt;button class=&quot;button&quot;&gt;&lt;/button&gt;
  171. &lt;button class=&quot;button button--wide&quot;&gt;&lt;/button&gt;</code></pre>
  172. <button class="button">Default</button>
  173. <button class="button button--wide margin-top-1x">Info</button>
  174. <!-- components / group -->
  175. <h3 class="h4 margin-top-2x margin-bottom-0x">
  176. Group
  177. </h3>
  178. <h4 class="h6">Html:</h4>
  179. <pre class="code"><code>&lt;nav class=&quot;group&quot;&gt;
  180. &lt;ul class=&quot;group__section&quot;&gt;
  181. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  182. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  183. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  184. &lt;/ul&gt;
  185. &lt;/nav&gt;</code></pre>
  186. <div class="panel panel__inner margin-bottom-1x">
  187. <nav class="group">
  188. <ul class="group__section">
  189. <li class="group__item">first item</li>
  190. <li class="group__item">second item</li>
  191. <li class="group__item">third item</li>
  192. </ul>
  193. </nav>
  194. </div>
  195. <h4 class="h6">Html:</h4>
  196. <pre class="code"><code>&lt;nav class=&quot;group group--horizontal&quot;&gt;
  197. &lt;ul class=&quot;group__section group__section--separate&quot;&gt;
  198. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  199. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  200. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  201. &lt;/ul&gt;
  202. &lt;/nav&gt;</code></pre>
  203. <div class="panel panel__inner">
  204. <nav class="group group--horizontal">
  205. <ul class="group__section group__section--separate">
  206. <li class="group__item">first item</li><li class="group__item">second item</li><li class="group__item">third item</li>
  207. </ul>
  208. </nav>
  209. </div>
  210. <!-- components / heading -->
  211. <h3 class="h4 margin-top-2x margin-bottom-0x">
  212. Heading
  213. </h3>
  214. <h4 class="h6">Html:</h4>
  215. <pre class="code"><code>&lt;h2&gt;&lt;/h2&gt;
  216. &lt;h2 class="h3"&gt;&lt;/h2&gt;</code></pre>
  217. <h4 class="h6">Sass:</h4>
  218. <pre class="code"><code>$crispy__heading__font-sizes: (
  219. 'h1': 40px,
  220. 'h2': 36px,
  221. 'h3': 32px,
  222. 'h4': 28px,
  223. 'h5': 24px,
  224. 'h6': 20px
  225. ) !default;</code></pre>
  226. <h1>Heading h1</h1>
  227. <h2>Heading h1</h2>
  228. <h3>Heading h1</h3>
  229. <h4>Heading h1</h4>
  230. <h5>Heading h1</h5>
  231. <h6>Heading h1</h6>
  232. <!-- components / hero -->
  233. <h3 class="h4 margin-top-2x margin-bottom-0x">
  234. Hero
  235. </h3>
  236. <h4 class="h6">Html:</h4>
  237. <pre class="code"><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>
  238. <div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div>
  239. <!-- components / icon -->
  240. <h3 class="h4 margin-top-2x margin-bottom-0x">
  241. Icon
  242. </h3>
  243. <h4 class="h6">Html:</h4>
  244. <pre class="code"><code>&lt;svg class=&quot;icon icon--small&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  245. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  246. &lt;/svg&gt;
  247. &lt;svg class=&quot;icon&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  248. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  249. &lt;/svg&gt;
  250. &lt;svg class=&quot;icon icon--large&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  251. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  252. &lt;/svg&gt;
  253. &lt;svg class=&quot;icon icon--danger&quot; alt=&quot;alert&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  254. &lt;use xlink:href=&quot;/svg/icons.svg#alert&quot; /&gt;
  255. &lt;/svg&gt;
  256. </code></pre>
  257. <svg class="icon icon--small" alt="beaker" viewBox="0 0 100 100">
  258. <use xlink:href="/svg/icons.svg#beaker" />
  259. </svg>
  260. <svg class="icon" alt="beaker" viewBox="0 0 100 100">
  261. <use xlink:href="/svg/icons.svg#beaker" />
  262. </svg>
  263. <svg class="icon icon--large" alt="beaker" viewBox="0 0 100 100">
  264. <use xlink:href="/svg/icons.svg#beaker" />
  265. </svg>
  266. <svg class="icon icon--danger" alt="alert" viewBox="0 0 100 100">
  267. <use xlink:href="/svg/icons.svg#alert" />
  268. </svg>
  269. <!-- components / modal -->
  270. <h3 class="h4 margin-top-2x margin-bottom-0x">
  271. Modal
  272. </h3>
  273. <h4 class="h6">Html:</h4>
  274. <pre class="code"><code>&lt;div class=&quot;modal modal--bottom width-100&quot;&gt;
  275. &lt;div class=&quot;panel&quot;&gt;
  276. &lt;div class=&quot;panel__inner&quot;&gt;
  277. Lorem Ipsum
  278. &lt;/div&gt;
  279. &lt;/div&gt;
  280. &lt;/div&gt;</code></pre>
  281. <div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;">
  282. <div class="modal modal--bottom width-100">
  283. <div class="panel">
  284. <div class="panel__inner">
  285. Lorem Ipsum
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. <!-- components / panel -->
  291. <h3 class="h4 margin-top-2x margin-bottom-0x">
  292. Panel
  293. </h3>
  294. <h4 class="h6">Html:</h4>
  295. <pre class="code"><code>&lt;div class=&quot;panel&quot;&gt;
  296. &lt;div class=&quot;panel__inner&quot;&gt;
  297. Lorem Ipsum
  298. &lt;/div&gt;
  299. &lt;/div&gt;</code></pre>
  300. <div class="panel">
  301. <div class="panel__inner">
  302. Lorem Ipsum
  303. </div>
  304. </div>
  305. <!-- components / table -->
  306. <h3 id="table" class="h4 margin-top-2x margin-bottom-0x">
  307. Table
  308. </h3>
  309. <h4 class="h6 margin-top-1x">Html:</h4>
  310. <pre class="code"><code>&lt;table class=&quot;table table--striped&quot;&gt;
  311. &lt;thead&gt;
  312. &lt;tr&gt;
  313. &lt;th&gt;&lt;/th&gt;
  314. &lt;/tr&gt;
  315. &lt;/thead&gt;
  316. &lt;tbody&gt;
  317. &lt;tr&gt;
  318. &lt;td&gt;&lt;/td&gt;
  319. &lt;/tr&gt;
  320. &lt;/tbody&gt;
  321. &lt;/table&gt;</code></pre>
  322. <table class="table table--striped margin-bottom-2x">
  323. <thead>
  324. <tr>
  325. <th>name</th>
  326. <th>age</th>
  327. </tr>
  328. </thead>
  329. <tbody>
  330. <tr>
  331. <td>Mr. Brown</td>
  332. <td>43</td>
  333. </tr>
  334. <tr>
  335. <td>Mr. Magenta</td>
  336. <td>32</td>
  337. </tr>
  338. <tr>
  339. <td>Mr. White</td>
  340. <td>45</td>
  341. </tr>
  342. </tbody>
  343. </table>
  344. <!-- field -->
  345. <hr class="margin-top-3x">
  346. <h2 id="functions" class="margin-top-1x">
  347. Fields
  348. </h2>
  349. <!-- field / input -->
  350. <h3 class="h4 margin-top-0x margin-bottom-0x">
  351. Input
  352. </h3>
  353. <div class="field">
  354. <input class="field__text" type="text" />
  355. </div>
  356. <div class="field">
  357. <input type="text" class="field__text field__text--error" />
  358. <div class="field__panel field__panel--error">
  359. error item 1
  360. </div>
  361. </div>
  362. <!-- field / textarea -->
  363. <h3 class="h4 margin-top-0x margin-bottom-0x">
  364. Textarea
  365. </h3>
  366. <div class="field">
  367. <textarea class="field__text"></textarea>
  368. </div>
  369. <!-- field / checkbox -->
  370. <h3 class="h4 margin-top-0x margin-bottom-0x">
  371. Checkbox
  372. </h3>
  373. <div class="field">
  374. <input id="field__checkbox__1" class="field__checkbox" type="checkbox" name="field__checkbox__1" value="true" />
  375. <label for="field__checkbox__1" class="field__label">
  376. <svg class="icon field__checkbox__unchecked" alt="beaker" viewBox="0 0 100 100">
  377. <use xlink:href="/svg/icons.svg#x" />
  378. </svg>
  379. <svg class="icon field__checkbox__checked" alt="beaker" viewBox="0 0 100 100">
  380. <use xlink:href="/svg/icons.svg#check" />
  381. </svg>
  382. checkbox 1
  383. </label>
  384. </div>
  385. <!-- field / radio -->
  386. <h3 class="h4 margin-top-0x margin-bottom-0x">
  387. Radio
  388. </h3>
  389. <div class="field">
  390. <input id="field__radio__1" class="field__radio" type="radio" name="field__radio__1[]" value="true" />
  391. <label for="field__radio__1" class="field__label">
  392. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  393. <use xlink:href="/svg/icons.svg#x" />
  394. </svg>
  395. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  396. <use xlink:href="/svg/icons.svg#check" />
  397. </svg>
  398. radio item 1
  399. </label><br />
  400. <input id="field__radio__2" class="field__radio" type="radio" name="field__radio__1[]" value="true" />
  401. <label for="field__radio__2" class="field__label">
  402. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  403. <use xlink:href="/svg/icons.svg#x" />
  404. </svg>
  405. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  406. <use xlink:href="/svg/icons.svg#check" />
  407. </svg>
  408. radio item 2
  409. </label>
  410. </div>
  411. <!-- field / radio -->
  412. <h3 class="h4 margin-top-0x margin-bottom-0x">
  413. Select
  414. </h3>
  415. <div class="field">
  416. <label class="field__label">
  417. Select Item
  418. <select class="field__select">
  419. <option>select item 1</option>
  420. <option>select item 2</option>
  421. <option>select item 3</option>
  422. </select>
  423. </label>
  424. </div>
  425. <!-- functions -->
  426. <hr class="margin-top-3x">
  427. <h2 id="functions" class="margin-top-1x">
  428. Functions
  429. </h2>
  430. <!-- functions / toEm / toRem -->
  431. <h3 class="h4 margin-top-0x margin-bottom-0x">
  432. toEm()<br>
  433. toRem()
  434. </h3>
  435. <h4 class="h6 margin-top-1x">Sass:</h4>
  436. <pre class="code"><code>toEm(5px);
  437. toEm(10px 10px 0 0);
  438. toRem(10px 10px 0 0);
  439. </code></pre>
  440. <p>
  441. Returns <strong>em</strong> and <strong>rem</strong>, accepts px and unitless values.
  442. </p>
  443. <!-- functions / stripUnit -->
  444. <h3 class="h4 margin-top-0x margin-bottom-0x">
  445. stripUnit()
  446. </h3>
  447. <span class="background-warning">/functions</span>
  448. <h4 class="h6 margin-top-1x">Sass:</h4>
  449. <pre class="code"><code>toEm(10px);</code></pre>
  450. <p>
  451. Returns value without unit.
  452. </p>
  453. <!-- helpers -->
  454. <hr class="margin-top-3x">
  455. <h2 id="helpers" class="margin-top-1x">
  456. Helpers
  457. </h2>
  458. <!-- helpers / align -->
  459. <h3 class="h4 margin-top-1x">
  460. Align
  461. </h3>
  462. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  463. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  464. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  465. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  466. &lt;div class=&quot;float-left&quot;&gt;&lt;/div&gt;
  467. &lt;div class=&quot;float-center&quot;&gt;&lt;/div&gt;
  468. &lt;div class=&quot;float-none&quot;&gt;&lt;/div&gt;
  469. &lt;div class=&quot;center&quot;&gt;&lt;/div&gt;
  470. &lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;</code></pre>
  471. <!-- helpers / margin -->
  472. <h3 class="h4 margin-top-1x">
  473. Margin
  474. </h3>
  475. <p>
  476. margin-top and -bottom from <strong>$crispy__margin</strong> as px.
  477. </p>
  478. <pre class="code">&lt;div class=&quot;panel margin-bottom-0x&quot;&gt;margin-bottom-0x&lt;/div&gt;
  479. &lt;div class=&quot;margin-bottom-1x&quot;&gt;margin-bottom-1x&lt;/div&gt;
  480. &lt;div class=&quot;margin-bottom-2x&quot;&gt;margin-bottom-2x&lt;/div&gt;
  481. &lt;div class=&quot;margin-bottom-3x&quot;&gt;margin-bottom-3x&lt;/div&gt;</code></pre>
  482. <div class="panel panel__inner margin-bottom-0x">margin-bottom-0x</div>
  483. <div class="panel panel__inner margin-bottom-1x">margin-bottom-1x</div>
  484. <div class="panel panel__inner margin-bottom-2x">margin-bottom-2x</div>
  485. <div class="panel panel__inner margin-bottom-3x">margin-bottom-3x</div>
  486. <!-- helpers / media -->
  487. <h3 class="h4 margin-top-1x">
  488. Media
  489. </h3>
  490. <pre class="code"><code>&lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  491. &lt;figure&gt;
  492. &lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  493. &lt;figcaption class=&quot;text-center&quot;&gt;Lorem Ipsum&lt;/figcaption&gt;
  494. &lt;/figure&gt;
  495. &lt;div class=&quot;video-responsive&quot; style=&quot;height: 280px;&quot;&gt;
  496. &lt;iframe src=&quot;https://giphy.com/embed/13XW2MJE0XCoM0&quot; width=&quot;480&quot; height=&quot;361&quot;&gt;&lt;/iframe&gt;
  497. &lt;/div&gt;</code></pre>
  498. <div class="grid">
  499. <div class="col-6">
  500. <img class="img-responsive" src="https://picsum.photos/400" />
  501. </div>
  502. <div class="col-6">
  503. <figure>
  504. <img class="img-responsive" src="https://picsum.photos/400" />
  505. <figcaption class="text-center">Lorem Ipsum</figcaption>
  506. </figure>
  507. </div>
  508. </div>
  509. <div class="grid">
  510. <div class="col-6">
  511. <div class="video-responsive" style="height: 280px;">
  512. <iframe src="https://giphy.com/embed/13XW2MJE0XCoM0" width="480" height="361" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
  513. </div>
  514. </div>
  515. </div>
  516. <!-- helpers / media -->
  517. <h3 class="h4 margin-top-1x">
  518. Width
  519. </h3>
  520. <pre class="code"><code>&lt;div class=&quot;panel width-25&quot;&gt;width-25&lt;/div&gt;
  521. &lt;div class=&quot;width-50&quot;&gt;width-50&lt;/div&gt;
  522. &lt;div class=&quot;width-75&quot;&gt;width-75&lt;/div&gt;
  523. &lt;div class=&quot;width-100&quot;&gt;width-100&lt;/div&gt;</code></pre>
  524. <div class="panel panel__inner width-25 margin-bottom-1x">width-25</div>
  525. <div class="panel panel__inner width-50 margin-bottom-1x">width-50</div>
  526. <div class="panel panel__inner width-75 margin-bottom-1x">width-75</div>
  527. <div class="panel panel__inner width-100 margin-bottom-1x">width-100</div>
  528. <!-- mixins -->
  529. <hr class="margin-top-3x">
  530. <h2 id="mixins" class="margin-top-1x">
  531. Mixins
  532. </h2>
  533. <!-- mixins / media-queries -->
  534. <h3 class="h4 margin-top-1x">
  535. Media Queries
  536. </h3>
  537. <p>
  538. These <strong>@mixins</strong> were used with the Breakpoints from the <a href="#reflex-grid">Reflex Grid</a>.
  539. </p>
  540. <ul>
  541. <li><strong>xs</strong> 576px</li>
  542. <li><strong>sm</strong> 768px</li>
  543. <li><strong>md</strong> 992px</li>
  544. <li><strong>lg</strong> 1200px</li>
  545. <li><strong>xlg</strong> 1600px</li>
  546. </ul>
  547. <h4 class="h6 margin-top-1x">Html:</h4>
  548. <pre class="code"><code>&lt;div class=&quot;sm&quot;&gt;sm&lt;/div&gt;
  549. &lt;div class=&quot;md&quot;&gt;md&lt;/div&gt;
  550. &lt;div class=&quot;md-only&quot;&gt;md-only&lt;/div&gt;
  551. &lt;div class=&quot;lg-only&quot;&gt;lg-only&lt;/div&gt;</pre></code>
  552. <h4 class="h6 margin-top-1x">Sass:</h4>
  553. <pre class="code"><code>.sm, .md, .md-only, .lg-only {
  554. display: none;
  555. }
  556. .sm {
  557. @include crispy__media-sm() {
  558. display: block;
  559. }
  560. }
  561. .md {
  562. @include crispy__media-md() {
  563. display: block;
  564. }
  565. }
  566. .md-only {
  567. @include crispy__media-md-only() {
  568. display: block;
  569. }
  570. }
  571. .lg-only {
  572. @include crispy__media-lg-only() {
  573. display: block;
  574. }
  575. }</code></pre>
  576. <div class="grid">
  577. <div class="col-3">
  578. <div class="panel panel__inner sm margin-bottom-1x">sm</div>
  579. </div>
  580. <div class="col-3">
  581. <div class="panel panel__inner md margin-bottom-1x">md</div>
  582. </div>
  583. <div class="col-3">
  584. <div class="panel panel__inner md-only margin-bottom-1x">md-only</div>
  585. </div>
  586. <div class="col-3">
  587. <div class="panel panel__inner lg-only margin-bottom-1x">lg-only</div>
  588. </div>
  589. </div>
  590. <!-- Reflex Grid -->
  591. <hr class="margin-top-3x">
  592. <h2 id="reflex-grid" class="margin-top-1x">
  593. Reflex Grid
  594. </h2>
  595. <p>
  596. The <strong>Reflex Grid</strong> is from <a target="_blank" href="http://lendmeyourear.net">Lee Jordan</a>. I have build a few helper for media-queries. <strong>Reflex Grid </strong> is lightweight, simple and uses a flexbox grid with cross browser
  597. support, an inline-block fallback.
  598. </p>
  599. <p>
  600. Documentation: <a target="_blank" href="http://reflexgrid.com/docs/">http://reflexgrid.com/docs/</a><br /> Github: <a target="_blank" href="https://github.com/leejordan/reflex">https://github.com/leejordan/reflex</a>
  601. </p>
  602. </div>
  603. </div>
  604. </div>
  605. <footer class="footer">
  606. <div class="container">
  607. <div class="grid">
  608. <div class="col-12">
  609. <div class="text-center">
  610. <p>
  611. <a target="_blank" href="https://thenounproject.com/wxchee/">W. X. Chee</a>
  612. </p>
  613. </div>
  614. </div>
  615. </div>
  616. </div>
  617. </footer>
  618. </body>
  619. </html>