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.

1116 lines
13 KiB

  1. @charset "UTF-8";
  2. /**
  3. * functions: units
  4. *
  5. * convert px to em and rem
  6. *
  7. *
  8. * @author Björn Hase
  9. *
  10. */
  11. /**
  12. * to em, wrapper of toRelatives
  13. *
  14. * @param {mixed} $values
  15. * @param {mixed} $base
  16. * @return {rem}
  17. */
  18. /**
  19. * to rem, wrapper of toRelatives
  20. *
  21. * @param {mixed} $values
  22. * @param {mixed} $base
  23. * @return {rem}
  24. */
  25. /**
  26. * values to relative
  27. *
  28. * @param {mixed} $values
  29. * @param {mixed} $unit
  30. * @param {mixed} $base
  31. * @return {number}
  32. */
  33. /**
  34. * to relative
  35. *
  36. * @param {mixed} $value
  37. * @param {mixed} $base
  38. * @return {number}
  39. */
  40. /**
  41. * strip unit from value
  42. *
  43. * @param {mixed} $value
  44. * @return {number}
  45. */
  46. /**
  47. * function: z-index
  48. *
  49. * uses map $crispy__z-index to get value by key
  50. *
  51. * @author Björn Hase
  52. *
  53. */
  54. /**
  55. * fonts
  56. *
  57. *
  58. * @author Björn Hase
  59. *
  60. */
  61. /**
  62. * add font-size in px as fallback and in rem
  63. *
  64. *
  65. * @param {px} $font-size
  66. *
  67. */
  68. /**
  69. * add font-sizes as modifactors
  70. *
  71. *
  72. * @param {map} $font-sizes
  73. *
  74. */
  75. /**
  76. * media-queries
  77. *
  78. *
  79. * @author Björn Hase
  80. *
  81. */
  82. /**
  83. * clearfix to end floating
  84. *
  85. *
  86. *
  87. */
  88. /**
  89. * clear default styles from list
  90. *
  91. *
  92. */
  93. /**
  94. * config
  95. *
  96. *
  97. * @author Björn Hase
  98. *
  99. */
  100. /**
  101. * normalize
  102. *
  103. *
  104. * @author Björn Hase
  105. *
  106. */
  107. /**
  108. * components: button
  109. *
  110. *
  111. * @author Björn Hase
  112. *
  113. */
  114. /**
  115. * component: code
  116. *
  117. * <pre class="code">
  118. * <code>
  119. * //
  120. * </code>
  121. * </pre>
  122. *
  123. * @author Björn Hase
  124. *
  125. */
  126. /**
  127. * component: group
  128. *
  129. * <nav class="group group--horizontal">
  130. * <ul class="group__section">
  131. * <li class="group__item"></li>
  132. * <ul>
  133. * </nav>
  134. *
  135. * @author Björn Hase
  136. *
  137. */
  138. /**
  139. * component: heading
  140. *
  141. * create classes for heading similar to there name,
  142. * run map for sizes on each heading
  143. *
  144. *
  145. * @author Björn Hase
  146. *
  147. */
  148. /**
  149. * component: hero
  150. *
  151. * background-size is as default: cover - Resize the background image to cover the entire container
  152. * <div class="hero" style="width: value; height: value; background-image: url(path)"></div>
  153. *
  154. *
  155. * @author Björn Hase
  156. *
  157. */
  158. /**
  159. * component: modal
  160. *
  161. * <div class="modal">
  162. *
  163. * </div>
  164. *
  165. * @author Björn Hase
  166. *
  167. */
  168. /**
  169. * component: panel
  170. *
  171. * <div class="panel">
  172. * <div class="panel__inner">
  173. *
  174. * </div>
  175. * </div>
  176. *
  177. * @author Björn Hase
  178. *
  179. */
  180. /**
  181. * component: table
  182. *
  183. * <table class="table table--striped">
  184. * <thead>
  185. * <tr>
  186. * <th>name</th>
  187. * <th>age</th>
  188. * </tr>
  189. * </thead>
  190. * <tbody>
  191. * <tr>
  192. * <td>The Shawshank Redemption</td>
  193. * <td>12</td>
  194. * </tr>
  195. * </tbody>
  196. * </table>
  197. *
  198. * @author Björn Hase
  199. *
  200. */
  201. /**
  202. * component: checkbox
  203. *
  204. * <div class="field">
  205. * <input id="" type="text" class="field__checkbox" />
  206. * <label for="" class="field__label">
  207. * <svg class="icon field__checkbox__checked" viewBox="0 0 100 100">
  208. * <use src="#"></use>
  209. * </svg>
  210. * <svg class="icon field__checkbox__checked" viewBox="0 0 100 100">
  211. * <use src="#"></use>
  212. * </svg>
  213. * </label>
  214. * </div>
  215. *
  216. * @author Björn Hase
  217. *
  218. */
  219. /**
  220. * component: label
  221. *
  222. * <label class="field">
  223. *
  224. * </label>
  225. *
  226. * @author Björn Hase
  227. *
  228. */
  229. /**
  230. * component: panel
  231. *
  232. * <div class="field">
  233. * <div class="field__panel">
  234. * <ul>
  235. * <li>item 1<li>
  236. * </ul>
  237. * </div>
  238. * </div>
  239. *
  240. * @author Björn Hase
  241. *
  242. */
  243. /**
  244. * component: text
  245. *
  246. * <div class="field">
  247. * <label class="field__label">
  248. * input
  249. * <input type="text" class="field__text" />
  250. * </label>
  251. * </div>
  252. *
  253. * @author Björn Hase
  254. *
  255. */
  256. /**
  257. * component: radio
  258. *
  259. * <div class="field">
  260. * <input id="" type="text" class="field__radio" />
  261. * <label for="" class="field__label">
  262. * <i class="icon field__radio__checked">
  263. *
  264. * </i>
  265. * <i class="icon field__radio__checked">
  266. *
  267. * </i>
  268. * </label>
  269. * </div>
  270. *
  271. * @author Björn Hase
  272. *
  273. */
  274. /**
  275. * component: select
  276. *
  277. * <div class="field">
  278. * <label class="field__label">
  279. * <select class="field__select">
  280. *
  281. * </select>
  282. * </label>
  283. * </div>
  284. *
  285. * @author Björn Hase
  286. *
  287. */
  288. /**
  289. * component: field
  290. *
  291. * <div class="field">
  292. * <label class="field__label">
  293. * text
  294. * <input type="text" class="field__text" />
  295. * <label>
  296. * </div>
  297. *
  298. *
  299. * @author Björn Hase
  300. *
  301. */
  302. /**
  303. * helper: float
  304. *
  305. * float & centering
  306. *
  307. *
  308. *
  309. * @author Björn Hase
  310. *
  311. */
  312. /**
  313. * helper: spacing
  314. *
  315. *
  316. * @author Björn Hase
  317. *
  318. */
  319. /**
  320. * helper: media
  321. *
  322. * for img & video
  323. *
  324. *
  325. * @author Björn Hase
  326. *
  327. */
  328. /**
  329. * helper: text
  330. *
  331. * align, font-sizes, color, background-color
  332. *
  333. *
  334. * @author Björn Hase
  335. *
  336. */
  337. /**
  338. * helper: visibility
  339. *
  340. *
  341. * @author Björn Hase
  342. *
  343. */
  344. /**
  345. * helper: width
  346. *
  347. *
  348. * @author Björn Hase
  349. *
  350. */
  351. html {
  352. font-size: 100%;
  353. }
  354. body,
  355. html {
  356. margin: 0;
  357. height: 100%;
  358. }
  359. html,
  360. legend {
  361. -webkit-box-sizing: border-box;
  362. box-sizing: border-box;
  363. }
  364. *,
  365. *::after,
  366. *::before {
  367. -webkit-box-sizing: inherit;
  368. box-sizing: inherit;
  369. }
  370. table {
  371. border-collapse: collapse;
  372. border-spacing: 0;
  373. }
  374. p {
  375. margin: 0 0 0.0390625em 0;
  376. }
  377. a,
  378. ins,
  379. u {
  380. -webkit-text-decoration-skip: ink edges;
  381. text-decoration-skip: ink edges;
  382. }
  383. a {
  384. color: #f0c209;
  385. }
  386. a:hover {
  387. color: #ffffff;
  388. }
  389. a:focus {
  390. outline: none;
  391. }
  392. abbr[title] {
  393. border-bottom: 1px dotted;
  394. cursor: help;
  395. text-decoration: none;
  396. }
  397. mark {
  398. padding: 0.3125em;
  399. }
  400. blockquote {
  401. border-left: 1px solid #b3b2af;
  402. margin-left: 0;
  403. padding: 0.625em 1.25em;
  404. }
  405. blockquote p:last-child {
  406. margin-bottom: 0;
  407. }
  408. dl,
  409. ol,
  410. ul {
  411. padding: 0;
  412. margin: 0 0 0.0390625em 0.0390625em;
  413. }
  414. ol ol,
  415. ul ul {
  416. margin-top: 0.01953125em;
  417. }
  418. ol {
  419. list-style: decimal outside;
  420. }
  421. ul {
  422. list-style: disc outside;
  423. }
  424. dd,
  425. dt {
  426. margin: 0;
  427. }
  428. dt {
  429. font-weight: bold;
  430. }
  431. figure {
  432. margin: 0 0 0.0390625em;
  433. }
  434. figcaption {
  435. margin: 0.0390625em 0 0;
  436. }
  437. hr {
  438. border: 0;
  439. border-top: 1px solid #b3b2af;
  440. margin: 0.0390625em 0;
  441. }
  442. body {
  443. font-family: Arial, Helvetica, Neue Helvetica, sans-serif;
  444. font-weight: normal;
  445. line-height: 1.618;
  446. color: #363636;
  447. background-color: #ffffff;
  448. direction: ltr;
  449. font-size: 16px;
  450. font-size: 1rem;
  451. }
  452. .button {
  453. position: relative;
  454. display: inline-block;
  455. text-decoration: none;
  456. vertical-align: middle;
  457. -webkit-appearance: none;
  458. -moz-appearance: none;
  459. appearance: none;
  460. padding: 0.625em 1.5625em;
  461. }
  462. .button--wide {
  463. width: 100%;
  464. }
  465. .button--up,
  466. .button--down {
  467. position: fixed;
  468. z-index: 100;
  469. margin: 1.25em;
  470. padding: 0.5em 0.8125em;
  471. }
  472. .button--down {
  473. top: 0;
  474. }
  475. .button--up {
  476. bottom: 0;
  477. }
  478. .button:hover {
  479. cursor: pointer;
  480. text-decoration: none;
  481. }
  482. .button:focus {
  483. outline: none;
  484. }
  485. .field {
  486. margin: 0 0 0.0390625em 0;
  487. }
  488. .field__input {
  489. display: block;
  490. width: 100%;
  491. line-height: 1.618;
  492. padding: 0.375em 0.5em;
  493. color: #363636;
  494. -webkit-appearance: none;
  495. -moz-appearance: none;
  496. appearance: none;
  497. font-size: 16px;
  498. font-size: 1rem;
  499. }
  500. .group--horizontal .group__item,
  501. .group--horizontal .group__section {
  502. display: inline-block;
  503. }
  504. .group__section {
  505. list-style: none;
  506. margin: 0;
  507. padding: 0;
  508. }
  509. .group__section li {
  510. margin: 0;
  511. padding: 0;
  512. }
  513. .group__section--separate .group__item:after {
  514. margin: 0 0.0390625em 0;
  515. content: "/";
  516. }
  517. .group__section--separate .group__item:last-child:after {
  518. display: none;
  519. }
  520. h1,
  521. .h1,
  522. h2,
  523. .h2,
  524. h3,
  525. .h3,
  526. h4,
  527. .h4,
  528. h5,
  529. .h5,
  530. h6,
  531. .h6 {
  532. font-family: Arial, Helvetica, Neue Helvetica, sans-serif;
  533. font-weight: bold;
  534. line-height: 1.618;
  535. margin: 0 0 0.3125em;
  536. }
  537. h1,
  538. .h1 {
  539. font-size: 40px;
  540. font-size: 2.5rem;
  541. }
  542. h2,
  543. .h2 {
  544. font-size: 36px;
  545. font-size: 2.25rem;
  546. }
  547. h3,
  548. .h3 {
  549. font-size: 32px;
  550. font-size: 2rem;
  551. }
  552. h4,
  553. .h4 {
  554. font-size: 28px;
  555. font-size: 1.75rem;
  556. }
  557. h5,
  558. .h5 {
  559. font-size: 24px;
  560. font-size: 1.5rem;
  561. }
  562. h6,
  563. .h6 {
  564. font-size: 20px;
  565. font-size: 1.25rem;
  566. }
  567. .hero {
  568. background-position: center;
  569. background-repeat: no-repeat;
  570. background-size: cover;
  571. position: relative;
  572. }
  573. .hero--top {
  574. background-position: top center;
  575. }
  576. .hero--bottom {
  577. background-position: bottom center;
  578. }
  579. .hero--contain {
  580. background-size: contain;
  581. }
  582. .modal {
  583. position: absolute;
  584. z-index: 100;
  585. }
  586. .modal--fixed {
  587. position: fixed;
  588. }
  589. .modal--left {
  590. left: 0;
  591. }
  592. .modal--top-center {
  593. left: 50%;
  594. }
  595. .modal--top {
  596. top: 0;
  597. }
  598. .modal--right {
  599. right: 0;
  600. }
  601. .modal--bottom {
  602. bottom: 0;
  603. }
  604. .modal .panel {
  605. margin: 0.078125em;
  606. }
  607. .panel__inner {
  608. padding: 0.0390625em;
  609. }
  610. .table {
  611. width: 100%;
  612. }
  613. .table--striped tr:nth-child(even) {
  614. background-color: whitesmoke;
  615. }
  616. .table--scroll {
  617. overflow-x: auto;
  618. }
  619. .table td {
  620. color: #363636;
  621. }
  622. .table td,
  623. .table th {
  624. padding: 0.625em 0.5em;
  625. text-align: left;
  626. border-bottom: 1px solid #9c9c9c;
  627. }
  628. .table th {
  629. border-bottom-width: 2px;
  630. }
  631. .float-left {
  632. float: left;
  633. }
  634. .float-right {
  635. float: right;
  636. }
  637. .float-none {
  638. float: none;
  639. }
  640. .center {
  641. margin-left: auto;
  642. margin-right: auto;
  643. }
  644. .clearfix::before,
  645. .clearfix::after {
  646. display: table;
  647. content: ' ';
  648. }
  649. .clearfix::after {
  650. clear: both;
  651. }
  652. .img-responsive {
  653. display: block;
  654. max-width: 100%;
  655. height: auto;
  656. }
  657. .img-rounded {
  658. border-radius: 50%;
  659. }
  660. .video-responsive {
  661. display: block;
  662. overflow: hidden;
  663. padding: 0;
  664. position: relative;
  665. width: 100%;
  666. }
  667. .video-responsive iframe,
  668. .video-responsive object,
  669. .video-responsive embed {
  670. border: 0;
  671. bottom: 0;
  672. height: 100%;
  673. left: 0;
  674. position: absolute;
  675. right: 0;
  676. top: 0;
  677. width: 100%;
  678. }
  679. .margin-top-1x {
  680. margin-top: 0em;
  681. }
  682. .margin-left-1x {
  683. margin-left: 0em;
  684. }
  685. .margin-bottom-1x {
  686. margin-bottom: 0em;
  687. }
  688. .margin-right-1x {
  689. margin-right: 0em;
  690. }
  691. .padding-top-1x {
  692. padding-top: 0em;
  693. }
  694. .padding-left-1x {
  695. padding-left: 0em;
  696. }
  697. .padding-bottom-1x {
  698. padding-bottom: 0em;
  699. }
  700. .padding-right-1x {
  701. padding-right: 0em;
  702. }
  703. .margin-top-2x {
  704. margin-top: 0.625em;
  705. }
  706. .margin-left-2x {
  707. margin-left: 0.625em;
  708. }
  709. .margin-bottom-2x {
  710. margin-bottom: 0.625em;
  711. }
  712. .margin-right-2x {
  713. margin-right: 0.625em;
  714. }
  715. .padding-top-2x {
  716. padding-top: 0.625em;
  717. }
  718. .padding-left-2x {
  719. padding-left: 0.625em;
  720. }
  721. .padding-bottom-2x {
  722. padding-bottom: 0.625em;
  723. }
  724. .padding-right-2x {
  725. padding-right: 0.625em;
  726. }
  727. .margin-top-3x {
  728. margin-top: 1.25em;
  729. }
  730. .margin-left-3x {
  731. margin-left: 1.25em;
  732. }
  733. .margin-bottom-3x {
  734. margin-bottom: 1.25em;
  735. }
  736. .margin-right-3x {
  737. margin-right: 1.25em;
  738. }
  739. .padding-top-3x {
  740. padding-top: 1.25em;
  741. }
  742. .padding-left-3x {
  743. padding-left: 1.25em;
  744. }
  745. .padding-bottom-3x {
  746. padding-bottom: 1.25em;
  747. }
  748. .padding-right-3x {
  749. padding-right: 1.25em;
  750. }
  751. .margin-top-4x {
  752. margin-top: 1.875em;
  753. }
  754. .margin-left-4x {
  755. margin-left: 1.875em;
  756. }
  757. .margin-bottom-4x {
  758. margin-bottom: 1.875em;
  759. }
  760. .margin-right-4x {
  761. margin-right: 1.875em;
  762. }
  763. .padding-top-4x {
  764. padding-top: 1.875em;
  765. }
  766. .padding-left-4x {
  767. padding-left: 1.875em;
  768. }
  769. .padding-bottom-4x {
  770. padding-bottom: 1.875em;
  771. }
  772. .padding-right-4x {
  773. padding-right: 1.875em;
  774. }
  775. .margin-top-5x {
  776. margin-top: 2.5em;
  777. }
  778. .margin-left-5x {
  779. margin-left: 2.5em;
  780. }
  781. .margin-bottom-5x {
  782. margin-bottom: 2.5em;
  783. }
  784. .margin-right-5x {
  785. margin-right: 2.5em;
  786. }
  787. .padding-top-5x {
  788. padding-top: 2.5em;
  789. }
  790. .padding-left-5x {
  791. padding-left: 2.5em;
  792. }
  793. .padding-bottom-5x {
  794. padding-bottom: 2.5em;
  795. }
  796. .padding-right-5x {
  797. padding-right: 2.5em;
  798. }
  799. .margin-top-6x {
  800. margin-top: 3.125em;
  801. }
  802. .margin-left-6x {
  803. margin-left: 3.125em;
  804. }
  805. .margin-bottom-6x {
  806. margin-bottom: 3.125em;
  807. }
  808. .margin-right-6x {
  809. margin-right: 3.125em;
  810. }
  811. .padding-top-6x {
  812. padding-top: 3.125em;
  813. }
  814. .padding-left-6x {
  815. padding-left: 3.125em;
  816. }
  817. .padding-bottom-6x {
  818. padding-bottom: 3.125em;
  819. }
  820. .padding-right-6x {
  821. padding-right: 3.125em;
  822. }
  823. .text-left {
  824. text-align: left;
  825. }
  826. .text-right {
  827. text-align: right;
  828. }
  829. .text-center {
  830. text-align: center;
  831. }
  832. .text-justify {
  833. text-align: justify;
  834. }
  835. .text-italic {
  836. font-style: italic;
  837. }
  838. .text-normal {
  839. font-style: normal;
  840. }
  841. .text-bold {
  842. font-weight: bold;
  843. }
  844. .text-uppercase {
  845. text-transform: uppercase;
  846. }
  847. .text-lowercase {
  848. text-transform: lowercase;
  849. }
  850. .text-small {
  851. font-size: 80%;
  852. }
  853. .text-crossed {
  854. text-decoration: line-through;
  855. }
  856. .text-default {
  857. font-size: 16px;
  858. font-size: 1rem;
  859. }
  860. .text-small {
  861. font-size: 16px;
  862. font-size: 1rem;
  863. }
  864. .text-large {
  865. font-size: 20px;
  866. font-size: 1.25rem;
  867. }
  868. .text-primary {
  869. color: #f0c209;
  870. }
  871. .text-secondary {
  872. color: #b3b2af;
  873. }
  874. .text-success {
  875. color: #5cb85c;
  876. }
  877. .text-warning {
  878. color: #f0ad4e;
  879. }
  880. .text-danger {
  881. color: #d9534f;
  882. }
  883. .text-info {
  884. color: #0090d4;
  885. }
  886. .background-primary {
  887. background-color: #f0c209;
  888. }
  889. .background-secondary {
  890. background-color: #b3b2af;
  891. }
  892. .background-success {
  893. background-color: #5cb85c;
  894. }
  895. .background-warning {
  896. background-color: #f0ad4e;
  897. }
  898. .background-danger {
  899. background-color: #d9534f;
  900. }
  901. .background-info {
  902. background-color: #0090d4;
  903. }
  904. .hide {
  905. display: none;
  906. }
  907. .show {
  908. display: block;
  909. }
  910. .show--inline {
  911. display: inline;
  912. }
  913. .width-25 {
  914. width: 25%;
  915. }
  916. .width-50 {
  917. width: 50%;
  918. }
  919. .width-75 {
  920. width: 75%;
  921. }
  922. .width-100 {
  923. width: 100%;
  924. }