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.

829 lines
32 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
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
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
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.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. <div class="header__feature">
  31. <h2 class="header__feature-title">Less is more</h2>
  32. <p class="header__feature-text">
  33. Simple basic Components to extends in your own art
  34. </p>
  35. </div>
  36. </div>
  37. <div class="col-sm-4">
  38. <div class="header__feature">
  39. <h2 class="header__feature-title">Structure</h2>
  40. <p class="header__feature-text">
  41. Crispy gives you a Structure to orientate
  42. </p>
  43. </div>
  44. </div>
  45. <div class="col-sm-4">
  46. <div class="header__feature header__feature--last">
  47. <h2 class="header__feature-title">Helper</h2>
  48. <p class="header__feature-text">
  49. Use helper to save up time and coding less
  50. </p>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </header>
  56. <a class="button button--up" href="#header">
  57. <svg class="icon" alt="up" viewBox="0 0 100 100">
  58. <use xlink:href="/svg/icons.svg#triangle-up" />
  59. </svg>
  60. </a>
  61. <div class="container">
  62. <div class="grid">
  63. <div class="col-12 col-sm-3">
  64. <nav class="nav">
  65. <ul class="margin-top-0x">
  66. <li><a href="#introduction">Introduction</a></li>
  67. <li><a href="#example">Example</a></li>
  68. <li><a href="#get-started">Get Started</a></li>
  69. <li><a href="#typography">Typography</a></li>
  70. <li><a href="#components">Components</a></li>
  71. <li><a href="#functions">Functions</a></li>
  72. <li><a href="#helpers">Helpers</a></li>
  73. <li><a href="#mixins">Mixins</a></li>
  74. <li><a href="#reflex-grid">Reflex Grid</a></li>
  75. </ul>
  76. </nav>
  77. </div>
  78. <div class="col-12 col-sm-9">
  79. <h2 id="introduction" class="lead">
  80. Introduction
  81. </h2>
  82. <p>
  83. This Boilerplate has more simpler approach, it can be used
  84. as a base for Websites, Webapps and also Frameworks. Of Course there a
  85. so many Framework and Boilerplates.
  86. </p>
  87. <p>
  88. But the most are trying to hard adding styles
  89. that are most time will be overwritten to make it work for you. This causes a loss
  90. in Performance and more Fighting with the Framework and the Documentation.
  91. </p>
  92. <p>
  93. The <strong>Components</strong> are quite simple and not fancy, the have all
  94. fundamental styles to so the can be used.
  95. </p>
  96. <p>
  97. The <strong>Helpers</strong> have Styles for single Elements and spend it saving
  98. for each element to invent a single class.
  99. </p>
  100. <p>
  101. The Coding Style of this Framework is <strong>BEM</strong>, but
  102. also here a more simpler idea of it. <strong>BEM</strong> is a good and helpfull Coding Style,
  103. if you not overthinking it. It helps to create smaller compontents that you can reuse.
  104. Important for that, make them really small. More Information about <a href="http://getbem.com/" target="_blank">BEM</a>.
  105. </p>
  106. <!-- example -->
  107. <hr class="margin-top-3x">
  108. <h2 id="example" class="margin-top-1x">
  109. Example
  110. </h2>
  111. <p>
  112. This Site is also a Example to use the Boilerplate. You can find all
  113. Styles for this site in "/src/scss/example". You see also that there
  114. is a <strong>"templates" Directory</strong>. The Idea in <strong>BEM</strong> was always
  115. create all in Components. That is not always Practical.
  116. </p>
  117. <p>
  118. Sometimes, the more Bigger Picture, on a Single Site or in App the
  119. Stylings that are so special that the belong only there and are to complex
  120. for a component. For this use the <strong>"templates" Directory</strong>.
  121. </p>
  122. <p>
  123. Sites also have partials like header and footer, they can put into the <strong>directory "site"</strong>.
  124. </p>
  125. <!-- how to use -->
  126. <hr class="margin-top-3x">
  127. <h2 id="get-started" class="margin-top-1x">
  128. Get Started
  129. </h2>
  130. <pre class="code"><code>npm install crispy-boilerplate</code></pre>
  131. <!-- typography -->
  132. <hr class="margin-top-3x">
  133. <h2 id="typography" class="margin-top-1x">
  134. Typography
  135. </h2>
  136. <!-- abbr -->
  137. <h3 class="h4 margin-top-2x margin-bottom-0x">a</h3>
  138. <h4 class="h6">Html:</h4>
  139. <pre class="code"><code>&lt;a href=&quot;&quot;&gt;&lt;/a&gt;</code></pre>
  140. <p>
  141. a-tag color is set by <strong>$crispy__color-primary</strong>. :hover is set by
  142. <strong>$crispy__color-text</strong>
  143. </p>
  144. <!-- abbr -->
  145. <h3 class="h4 margin-top-2x margin-bottom-0x">abbr</h3>
  146. <h4 class="h6">Html:</h4>
  147. <pre class="code"><code>&lt;abbr title=&quot;&quot;&gt;&lt;/abbr&gt;</code></pre>
  148. <p>
  149. Glossier viral occupy mixtape pok pok cornhole, <abbr title="vape affogato hella">vape affogato hella</abbr> knausgaard thundercats
  150. </p>
  151. <!-- blockquote -->
  152. <h3 class="h4 margin-top-2x margin-bottom-0x">blockquote</h3>
  153. <h4 class="h6">Html:</h4>
  154. <pre class="code"><code>&lt;blockquote&gt;&lt;/blockquote&gt;</code></pre>
  155. <blockquote>
  156. 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.
  157. </blockquote>
  158. <!-- hr -->
  159. <h3 class="h4 margin-top-2x margin-bottom-0x">hr</h3>
  160. <h4 class="h6">Html:</h4>
  161. <pre class="code"><code>&lt;hr&gt;</code></pre>
  162. <p>
  163. <hr>
  164. </p>
  165. <!-- paragraph -->
  166. <h3 class="h4 margin-top-2x margin-bottom-0x">paragraph</h3>
  167. <h4 class="h6">Html:</h4>
  168. <pre class="code"><code>&lt;p&gt;&lt;/p&gt;</code></pre>
  169. <p>
  170. Glossier viral occupy mixtape pok pok.
  171. </p>
  172. <!-- mark -->
  173. <h3 class="h4 margin-top-2x margin-bottom-0x">mark</h3>
  174. <h4 class="h6">Html:</h4>
  175. <pre class="code"><code>&lt;mark&gt;&lt;/mark&gt;</code></pre>
  176. <p>
  177. Pug before they <mark>four loko</mark> Deep v bespoke
  178. </p>
  179. <!-- list -->
  180. <h3 class="h4 margin-top-2x margin-bottom-0x">list</h3>
  181. <h4 class="h6">Html:</h4>
  182. <pre class="code"><code>&lt;ul&gt;
  183. &lt;li&gt;item 1&lt;/li&gt;
  184. &lt;li&gt;item 2
  185. &lt;ul&gt;
  186. &lt;li&gt;child item 1&lt;/li&gt;
  187. &lt;li&gt;child item 2&lt;/li&gt;
  188. &lt;/ul&gt;
  189. &lt;/li&gt;
  190. &lt;/ul&gt;
  191. &lt;ol&gt;
  192. &lt;li&gt;item 1&lt;/li&gt;
  193. &lt;li&gt;item 2&lt;/li&gt;
  194. &lt;/ol&gt;
  195. &lt;dl&gt;
  196. &lt;dt&gt;defined title 1&lt;/dt&gt;
  197. &lt;dd&gt;defined item 1&lt;/dd&gt;
  198. &lt;/dl&gt;</code></pre>
  199. <ul>
  200. <li>item 1</li>
  201. <li>
  202. item 2
  203. <ul>
  204. <li>child item 1</li>
  205. <li>child item 2</li>
  206. </ul>
  207. </li>
  208. </ul>
  209. <ol>
  210. <li>item 1</li>
  211. <li>item 2</li>
  212. </ol>
  213. <dl>
  214. <dt>defined title 1</dt>
  215. <dd>defined item 1</dd>
  216. </dl>
  217. <!-- components -->
  218. <hr class="margin-top-3x">
  219. <h2 id="components" class="margin-top-1x">
  220. Components
  221. </h2>
  222. <!-- components / button -->
  223. <h3 class="h4 margin-top-2x margin-bottom-0x">
  224. button
  225. </h3>
  226. <h4 class="h6">Html:</h4>
  227. <pre class="code margin-top-1x"><code>&lt;button class=&quot;button&quot;&gt;&lt;/button&gt;
  228. &lt;button class=&quot;button button--wide&quot;&gt;&lt;/button&gt;</code></pre>
  229. <button class="button">Default</button>
  230. <button class="button button--wide margin-top-1x">Info</button>
  231. <!-- components / code -->
  232. <h3 class="h4 margin-top-2x margin-bottom-0x">
  233. code
  234. </h3>
  235. <h4 class="h6">Html:</h4>
  236. <pre class="code margin-top-1x"><code>&lt;pre class=&quot;code&quot;&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;</code></pre>
  237. <!-- components / group -->
  238. <h3 class="h4 margin-top-2x margin-bottom-0x">
  239. group
  240. </h3>
  241. <h4 class="h6">Html:</h4>
  242. <pre class="code"><code>&lt;nav class=&quot;group&quot;&gt;
  243. &lt;ul class=&quot;group__section&quot;&gt;
  244. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  245. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  246. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  247. &lt;/ul&gt;
  248. &lt;/nav&gt;</code></pre>
  249. <div class="panel panel__inner margin-bottom-1x">
  250. <nav class="group">
  251. <ul class="group__section">
  252. <li class="group__item">first item</li>
  253. <li class="group__item">second item</li>
  254. <li class="group__item">third item</li>
  255. </ul>
  256. </nav>
  257. </div>
  258. <h4 class="h6">Html:</h4>
  259. <pre class="code"><code>&lt;nav class=&quot;group group--horizontal&quot;&gt;
  260. &lt;ul class=&quot;group__section group__section--separate&quot;&gt;
  261. &lt;li class=&quot;group__item&quot;&gt;first item&lt;/li&gt;
  262. &lt;li class=&quot;group__item&quot;&gt;second item&lt;/li&gt;
  263. &lt;li class=&quot;group__item&quot;&gt;third item&lt;/li&gt;
  264. &lt;/ul&gt;
  265. &lt;/nav&gt;</code></pre>
  266. <div class="panel panel__inner">
  267. <nav class="group group--horizontal">
  268. <ul class="group__section group__section--separate">
  269. <li class="group__item">first item</li><li class="group__item">second item</li><li class="group__item">third item</li>
  270. </ul>
  271. </nav>
  272. </div>
  273. <!-- components / heading -->
  274. <h3 class="h4 margin-top-2x margin-bottom-0x">
  275. heading
  276. </h3>
  277. <h4 class="h6">Html:</h4>
  278. <pre class="code"><code>&lt;h2&gt;&lt;/h2&gt;
  279. &lt;h2 class="h3"&gt;&lt;/h2&gt;</code></pre>
  280. <h4 class="h6">Sass:</h4>
  281. <pre class="code"><code>$crispy__heading__font-sizes: (
  282. 'h1': 40px,
  283. 'h2': 36px,
  284. 'h3': 32px,
  285. 'h4': 28px,
  286. 'h5': 24px,
  287. 'h6': 20px
  288. ) !default;</code></pre>
  289. <h1>Heading h1</h1>
  290. <h2>Heading h1</h2>
  291. <h3>Heading h1</h3>
  292. <h4>Heading h1</h4>
  293. <h5>Heading h1</h5>
  294. <h6>Heading h1</h6>
  295. <!-- components / hero -->
  296. <h3 class="h4 margin-top-2x margin-bottom-0x">
  297. hero
  298. </h3>
  299. <h4 class="h6">Html:</h4>
  300. <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>
  301. <div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div>
  302. <!-- components / icon -->
  303. <h3 class="h4 margin-top-2x margin-bottom-0x">
  304. icon
  305. </h3>
  306. <h4 class="h6">Html:</h4>
  307. <pre class="code"><code>&lt;svg class=&quot;icon icon--small&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  308. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  309. &lt;/svg&gt;
  310. &lt;svg class=&quot;icon&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  311. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  312. &lt;/svg&gt;
  313. &lt;svg class=&quot;icon icon--large&quot; alt=&quot;beaker&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  314. &lt;use xlink:href=&quot;/svg/icons.svg#beaker&quot; /&gt;
  315. &lt;/svg&gt;
  316. &lt;svg class=&quot;icon icon--danger&quot; alt=&quot;alert&quot; viewBox=&quot;0 0 100 100&quot;&gt;
  317. &lt;use xlink:href=&quot;/svg/icons.svg#alert&quot; /&gt;
  318. &lt;/svg&gt;
  319. </code></pre>
  320. <svg class="icon icon--small" alt="beaker" viewBox="0 0 100 100">
  321. <use xlink:href="/svg/icons.svg#beaker" />
  322. </svg>
  323. <svg class="icon" alt="beaker" viewBox="0 0 100 100">
  324. <use xlink:href="/svg/icons.svg#beaker" />
  325. </svg>
  326. <svg class="icon icon--large" alt="beaker" viewBox="0 0 100 100">
  327. <use xlink:href="/svg/icons.svg#beaker" />
  328. </svg>
  329. <svg class="icon icon--danger" alt="alert" viewBox="0 0 100 100">
  330. <use xlink:href="/svg/icons.svg#alert" />
  331. </svg>
  332. <!-- components / modal -->
  333. <h3 class="h4 margin-top-2x margin-bottom-0x">
  334. modal
  335. </h3>
  336. <h4 class="h6">Html:</h4>
  337. <pre class="code"><code>&lt;div class=&quot;modal modal--bottom width-100&quot;&gt;
  338. &lt;div class=&quot;panel&quot;&gt;
  339. &lt;div class=&quot;panel__inner&quot;&gt;
  340. Lorem Ipsum
  341. &lt;/div&gt;
  342. &lt;/div&gt;
  343. &lt;/div&gt;</code></pre>
  344. <div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;">
  345. <div class="modal modal--bottom width-100">
  346. <div class="panel">
  347. <div class="panel__inner">
  348. Lorem Ipsum
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. <!-- components / panel -->
  354. <h3 class="h4 margin-top-2x margin-bottom-0x">
  355. panel
  356. </h3>
  357. <h4 class="h6">Html:</h4>
  358. <pre class="code"><code>&lt;div class=&quot;panel&quot;&gt;
  359. &lt;div class=&quot;panel__inner&quot;&gt;
  360. Lorem Ipsum
  361. &lt;/div&gt;
  362. &lt;/div&gt;</code></pre>
  363. <div class="panel">
  364. <div class="panel__inner">
  365. Lorem Ipsum
  366. </div>
  367. </div>
  368. <!-- components / table -->
  369. <h3 class="h4 margin-top-2x margin-bottom-0x">
  370. table
  371. </h3>
  372. <h4 class="h6">Html:</h4>
  373. <pre class="code"><code>&lt;table class=&quot;table table--striped&quot;&gt;
  374. &lt;thead&gt;
  375. &lt;tr&gt;
  376. &lt;th&gt;&lt;/th&gt;
  377. &lt;/tr&gt;
  378. &lt;/thead&gt;
  379. &lt;tbody&gt;
  380. &lt;tr&gt;
  381. &lt;td&gt;&lt;/td&gt;
  382. &lt;/tr&gt;
  383. &lt;/tbody&gt;
  384. &lt;/table&gt;</code></pre>
  385. <table class="table table--striped margin-bottom-2x">
  386. <thead>
  387. <tr>
  388. <th>name</th>
  389. <th>age</th>
  390. </tr>
  391. </thead>
  392. <tbody>
  393. <tr>
  394. <td>Mr. Brown</td>
  395. <td>43</td>
  396. </tr>
  397. <tr>
  398. <td>Mr. Magenta</td>
  399. <td>32</td>
  400. </tr>
  401. <tr>
  402. <td>Mr. White</td>
  403. <td>45</td>
  404. </tr>
  405. </tbody>
  406. </table>
  407. <!-- components / field / checkbox -->
  408. <h3 class="h4 margin-top-0x margin-bottom-0x">
  409. Checkbox
  410. </h3>
  411. <div class="field">
  412. <input id="field__checkbox__1" class="field__checkbox" type="checkbox" name="field__checkbox__1" value="true" />
  413. <label for="field__checkbox__1" class="field__label">
  414. <svg class="icon field__checkbox__unchecked" alt="beaker" viewBox="0 0 100 100">
  415. <use xlink:href="/svg/icons.svg#x" />
  416. </svg>
  417. <svg class="icon field__checkbox__checked" alt="beaker" viewBox="0 0 100 100">
  418. <use xlink:href="/svg/icons.svg#check" />
  419. </svg>
  420. checkbox 1
  421. </label>
  422. </div>
  423. <div class="field field--error">
  424. <input id="field__checkbox__2" class="field__checkbox" type="checkbox" name="field__checkbox__2" value="true" />
  425. <label for="field__checkbox__2" class="field__label">
  426. <svg class="icon field__checkbox__unchecked" alt="beaker" viewBox="0 0 100 100">
  427. <use xlink:href="/svg/icons.svg#x" />
  428. </svg>
  429. <svg class="icon field__checkbox__checked" alt="beaker" viewBox="0 0 100 100">
  430. <use xlink:href="/svg/icons.svg#check" />
  431. </svg>
  432. checkbox 1
  433. </label>
  434. <div class="field__panel">
  435. error item 1
  436. </div>
  437. </div>
  438. <!-- components / field / radio -->
  439. <h3 class="h4 margin-top-0x margin-bottom-0x">
  440. Radio
  441. </h3>
  442. <div class="field">
  443. <input id="field__radio__1" class="field__radio" type="radio" name="field__radio__1[]" value="true" />
  444. <label for="field__radio__1" class="field__label">
  445. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  446. <use xlink:href="/svg/icons.svg#x" />
  447. </svg>
  448. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  449. <use xlink:href="/svg/icons.svg#check" />
  450. </svg>
  451. radio item 1
  452. </label><br />
  453. <input id="field__radio__2" class="field__radio" type="radio" name="field__radio__1[]" value="true" />
  454. <label for="field__radio__2" class="field__label">
  455. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  456. <use xlink:href="/svg/icons.svg#x" />
  457. </svg>
  458. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  459. <use xlink:href="/svg/icons.svg#check" />
  460. </svg>
  461. radio item 2
  462. </label>
  463. </div>
  464. <!-- radio / error -->
  465. <div class="field field--error">
  466. <input id="field__radio__3" class="field__radio" type="radio" name="field__radio__2[]" value="true" />
  467. <label for="field__radio__3" class="field__label">
  468. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  469. <use xlink:href="/svg/icons.svg#x" />
  470. </svg>
  471. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  472. <use xlink:href="/svg/icons.svg#check" />
  473. </svg>
  474. radio item 1
  475. </label><br />
  476. <input id="field__radio__4" class="field__radio" type="radio" name="field__radio__2[]" value="true" />
  477. <label for="field__radio__4" class="field__label">
  478. <svg class="icon field__radio__unchecked" alt="beaker" viewBox="0 0 100 100">
  479. <use xlink:href="/svg/icons.svg#x" />
  480. </svg>
  481. <svg class="icon field__radio__checked" alt="beaker" viewBox="0 0 100 100">
  482. <use xlink:href="/svg/icons.svg#check" />
  483. </svg>
  484. radio item 2
  485. </label>
  486. <div class="field__panel">
  487. error item 1
  488. </div>
  489. </div>
  490. <!-- components / field / select -->
  491. <h3 class="h4 margin-top-0x margin-bottom-0x">
  492. Select
  493. </h3>
  494. <div class="field">
  495. <label class="field__label">
  496. Select Item
  497. <select class="field__select">
  498. <option>select item 1</option>
  499. <option>select item 2</option>
  500. <option>select item 3</option>
  501. </select>
  502. </label>
  503. </div>
  504. <div class="field field--error">
  505. <label class="field__label">
  506. Select Item
  507. <select class="field__select">
  508. <option>select item 1</option>
  509. <option>select item 2</option>
  510. <option>select item 3</option>
  511. </select>
  512. <div class="field__panel">
  513. error item 1
  514. </div>
  515. </label>
  516. </div>
  517. <!-- components / field / input textarea -->
  518. <h3 class="h4 margin-top-0x margin-bottom-0x">
  519. Input / Textarea
  520. </h3>
  521. <div class="field">
  522. <input class="field__text" type="text" />
  523. </div>
  524. <div class="field field--valid">
  525. <label class="field__label">
  526. Text
  527. <input type="text" class="field__text" />
  528. </label>
  529. <div class="field__panel">
  530. error item 1
  531. </div>
  532. </div>
  533. <div class="field field--error">
  534. <label class="field__label">
  535. Text
  536. <input type="text" class="field__text" />
  537. </label>
  538. <div class="field__panel">
  539. error item 1
  540. </div>
  541. </div>
  542. <div class="field">
  543. <label class="field__label">
  544. Textarea
  545. <textarea class="field__text"></textarea>
  546. </label>
  547. </div>
  548. <div class="field field--error">
  549. <label class="field__label">
  550. Textarea
  551. <textarea class="field__text"></textarea>
  552. </label>
  553. <div class="field__panel">
  554. error item 1
  555. </div>
  556. </div>
  557. <!-- functions -->
  558. <hr class="margin-top-3x">
  559. <h2 id="functions" class="margin-top-1x">
  560. Functions
  561. </h2>
  562. <!-- functions / toEm / toRem -->
  563. <h3 class="h4 margin-top-0x margin-bottom-0x">
  564. toEm()<br>
  565. toRem()
  566. </h3>
  567. <h4 class="h6 margin-top-1x">Sass:</h4>
  568. <pre class="code"><code>toEm(5px);
  569. toEm(10px 10px 0 0);
  570. toRem(10px 10px 0 0);
  571. </code></pre>
  572. <p>
  573. Returns <strong>em</strong> and <strong>rem</strong>, accepts px and unitless values.
  574. </p>
  575. <!-- functions / stripUnit -->
  576. <h3 class="h4 margin-top-0x margin-bottom-0x">
  577. stripUnit()
  578. </h3>
  579. <h4 class="h6 margin-top-1x">Sass:</h4>
  580. <pre class="code"><code>toEm(10px);</code></pre>
  581. <p>
  582. Returns value without unit.
  583. </p>
  584. <!-- helpers -->
  585. <hr class="margin-top-3x">
  586. <h2 id="helpers" class="margin-top-1x">
  587. Helpers
  588. </h2>
  589. <!-- helpers / align -->
  590. <h3 class="h4 margin-top-1x">
  591. Float
  592. </h3>
  593. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  594. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  595. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  596. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  597. &lt;div class=&quot;float-left&quot;&gt;&lt;/div&gt;
  598. &lt;div class=&quot;float-center&quot;&gt;&lt;/div&gt;
  599. &lt;div class=&quot;float-none&quot;&gt;&lt;/div&gt;
  600. &lt;div class=&quot;center&quot;&gt;&lt;/div&gt;
  601. &lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;</code></pre>
  602. <!-- helpers / margin -->
  603. <h3 class="h4 margin-top-1x">
  604. Margin
  605. </h3>
  606. <p>
  607. margin-top and -bottom from <strong>$crispy__margin</strong> as px.
  608. </p>
  609. <pre class="code">&lt;div class=&quot;panel margin-bottom-0x&quot;&gt;margin-bottom-0x&lt;/div&gt;
  610. &lt;div class=&quot;margin-bottom-1x&quot;&gt;margin-bottom-1x&lt;/div&gt;
  611. &lt;div class=&quot;margin-bottom-2x&quot;&gt;margin-bottom-2x&lt;/div&gt;
  612. &lt;div class=&quot;margin-bottom-3x&quot;&gt;margin-bottom-3x&lt;/div&gt;
  613. &lt;div class=&quot;margin-bottom-4x&quot;&gt;margin-bottom-4x&lt;/div&gt;
  614. &lt;div class=&quot;margin-bottom-5x&quot;&gt;margin-bottom-5x&lt;/div&gt;</code></pre>
  615. <div class="panel panel__inner margin-bottom-0x">margin-bottom-0x</div>
  616. <div class="panel panel__inner margin-bottom-1x">margin-bottom-1x</div>
  617. <div class="panel panel__inner margin-bottom-2x">margin-bottom-2x</div>
  618. <div class="panel panel__inner margin-bottom-3x">margin-bottom-3x</div>
  619. <div class="panel panel__inner margin-bottom-4x">margin-bottom-4x</div>
  620. <div class="panel panel__inner margin-bottom-5x">margin-bottom-5x</div>
  621. <!-- helpers / media -->
  622. <h3 class="h4 margin-top-1x">
  623. Media
  624. </h3>
  625. <pre class="code"><code>&lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  626. &lt;figure&gt;
  627. &lt;img class=&quot;img-responsive&quot; src=&quot;https://picsum.photos/400&quot; /&gt;
  628. &lt;figcaption class=&quot;text-center&quot;&gt;Lorem Ipsum&lt;/figcaption&gt;
  629. &lt;/figure&gt;
  630. &lt;div class=&quot;video-responsive&quot; style=&quot;height: 280px;&quot;&gt;
  631. &lt;iframe src=&quot;https://giphy.com/embed/13XW2MJE0XCoM0&quot; width=&quot;480&quot; height=&quot;361&quot;&gt;&lt;/iframe&gt;
  632. &lt;/div&gt;</code></pre>
  633. <div class="grid">
  634. <div class="col-6">
  635. <img class="img-responsive" src="https://picsum.photos/400" />
  636. </div>
  637. <div class="col-6">
  638. <figure>
  639. <img class="img-responsive" src="https://picsum.photos/400" />
  640. <figcaption class="text-center">Lorem Ipsum</figcaption>
  641. </figure>
  642. </div>
  643. </div>
  644. <div class="grid">
  645. <div class="col-6">
  646. <div class="video-responsive" style="height: 280px;">
  647. <iframe src="https://giphy.com/embed/13XW2MJE0XCoM0" width="480" height="361" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
  648. </div>
  649. </div>
  650. </div>
  651. <!-- helpers / text -->
  652. <h3 class="h4 margin-top-1x">
  653. Text
  654. </h3>
  655. <pre class="code">&lt;div class=&quot;text-left&quot;&gt;&lt;/div&gt;
  656. &lt;div class=&quot;text-center&quot;&gt;&lt;/div&gt;
  657. &lt;div class=&quot;text-right&quot;&gt;&lt;/div&gt;
  658. &lt;div class=&quot;text-justify&quot;&gt;&lt;/div&gt;
  659. &lt;div class=&quot;text-italic&quot;&gt;&lt;/div&gt;
  660. &lt;div class=&quot;text-normal&quot;&gt;&lt;/div&gt;
  661. &lt;div class=&quot;text-bold&quot;&gt;&lt;/div&gt;
  662. &lt;div class=&quot;text-uppercase&quot;&gt;&lt;/div&gt;
  663. &lt;div class=&quot;text-lowercase&quot;&gt;&lt;/div&gt;
  664. &lt;div class=&quot;text-small&quot;&gt;&lt;/div&gt;
  665. &lt;div class=&quot;text-crossed&quot;&gt;&lt;/div&gt;</code></pre>
  666. <p>
  667. Also it will be create classes for,
  668. </p>
  669. <ul>
  670. <li>text-* with $crispy__font-sizes for "font-size"</li>
  671. <li>text-* with $crispy__colors for "color"</li>
  672. <li>background-* with $crispy__font-sizes for "background-color"</li>
  673. </ul>
  674. <!-- helpers / media -->
  675. <h3 class="h4 margin-top-1x">
  676. Width
  677. </h3>
  678. <pre class="code"><code>&lt;div class=&quot;panel width-25&quot;&gt;width-25&lt;/div&gt;
  679. &lt;div class=&quot;width-50&quot;&gt;width-50&lt;/div&gt;
  680. &lt;div class=&quot;width-75&quot;&gt;width-75&lt;/div&gt;
  681. &lt;div class=&quot;width-100&quot;&gt;width-100&lt;/div&gt;</code></pre>
  682. <div class="panel panel__inner width-25 margin-bottom-1x">width-25</div>
  683. <div class="panel panel__inner width-50 margin-bottom-1x">width-50</div>
  684. <div class="panel panel__inner width-75 margin-bottom-1x">width-75</div>
  685. <div class="panel panel__inner width-100 margin-bottom-1x">width-100</div>
  686. <!-- mixins -->
  687. <hr class="margin-top-3x">
  688. <h2 id="mixins" class="margin-top-1x">
  689. Mixins
  690. </h2>
  691. <!-- mixins / media-queries -->
  692. <h3 class="h4 margin-top-1x">
  693. Media Queries
  694. </h3>
  695. <p>
  696. These <strong>@mixins</strong> were used with the Breakpoints from the <a href="#reflex-grid">Reflex Grid</a>.
  697. </p>
  698. <ul>
  699. <li><strong>xs</strong> 576px</li>
  700. <li><strong>sm</strong> 768px</li>
  701. <li><strong>md</strong> 992px</li>
  702. <li><strong>lg</strong> 1200px</li>
  703. <li><strong>xlg</strong> 1600px</li>
  704. </ul>
  705. <h4 class="h6 margin-top-1x">Html:</h4>
  706. <pre class="code"><code>&lt;div class=&quot;sm&quot;&gt;sm&lt;/div&gt;
  707. &lt;div class=&quot;md&quot;&gt;md&lt;/div&gt;
  708. &lt;div class=&quot;md-only&quot;&gt;md-only&lt;/div&gt;
  709. &lt;div class=&quot;lg-only&quot;&gt;lg-only&lt;/div&gt;</pre></code>
  710. <h4 class="h6 margin-top-1x">Sass:</h4>
  711. <pre class="code"><code>.sm, .md, .md-only, .lg-only {
  712. display: none;
  713. }
  714. .sm {
  715. @include crispy__media-sm() {
  716. display: block;
  717. }
  718. }
  719. .md {
  720. @include crispy__media-md() {
  721. display: block;
  722. }
  723. }
  724. .md-only {
  725. @include crispy__media-md-only() {
  726. display: block;
  727. }
  728. }
  729. .lg-only {
  730. @include crispy__media-lg-only() {
  731. display: block;
  732. }
  733. }</code></pre>
  734. <div class="grid">
  735. <div class="col-3">
  736. <div class="panel panel__inner sm margin-bottom-1x">sm</div>
  737. </div>
  738. <div class="col-3">
  739. <div class="panel panel__inner md margin-bottom-1x">md</div>
  740. </div>
  741. <div class="col-3">
  742. <div class="panel panel__inner md-only margin-bottom-1x">md-only</div>
  743. </div>
  744. <div class="col-3">
  745. <div class="panel panel__inner lg-only margin-bottom-1x">lg-only</div>
  746. </div>
  747. </div>
  748. <!-- Reflex Grid -->
  749. <hr class="margin-top-3x">
  750. <h2 id="reflex-grid" class="margin-top-1x">
  751. Reflex Grid
  752. </h2>
  753. <p>
  754. 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
  755. support, an inline-block fallback.
  756. </p>
  757. <p>
  758. 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>
  759. </p>
  760. </div>
  761. </div>
  762. </div>
  763. <footer class="footer">
  764. <div class="container">
  765. <div class="grid">
  766. <div class="col-12">
  767. <div class="text-center">
  768. <p>
  769. <a target="_blank" href="https://thenounproject.com/wxchee/">W. X. Chee</a>
  770. </p>
  771. </div>
  772. </div>
  773. </div>
  774. </div>
  775. </footer>
  776. <script type="text/javascript" src="/js/app.js"></script>
  777. </body>
  778. </html>