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.

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