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.

656 lines
23 KiB

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