coming-soon.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // config
  2. $debug: false;
  3. // declare breakpoints
  4. $usn-x-small : 0px;
  5. $usn-small : 544px;
  6. $usn-medium : 768px;
  7. $usn-large : 992px;
  8. $usn-x-large : 1200px;
  9. // create sass list to pass media query data
  10. // if a breakpoint name changes, remember to
  11. // update it in the list below as well
  12. $mq-sync:
  13. xs $usn-x-small,
  14. sm $usn-small,
  15. md $usn-medium,
  16. lg $usn-large,
  17. xl $usn-x-large
  18. ;
  19. // build each media query for js ingestion
  20. @each $mq in $mq-sync {
  21. @media screen and (min-width: nth($mq, 2)) {
  22. head { font-family: "#{nth($mq, 1)} #{nth($mq, 2)}"; }
  23. body:after { content: "#{nth($mq, 1)} - min-width: #{nth($mq, 2)}"; }
  24. }
  25. }
  26. head {
  27. // set clear on head to show Unison is set up correctly
  28. clear: both;
  29. // store hash of all breakpoints
  30. title { font-family: "#{$mq-sync}"; }
  31. }
  32. // debug styles to see breakpoint info
  33. body:after {
  34. display: none;
  35. }
  36. @if $debug == true {
  37. body:after {
  38. display: block;
  39. position: fixed;
  40. top: 0;
  41. left: 0;
  42. width: 100%;
  43. background-color: #000;
  44. background-color: rgba(0,0,0,0.8);
  45. text-align: center;
  46. color: #FFF;
  47. padding: 10px;
  48. z-index: 1000;
  49. font-size: 12px;
  50. font-family: sans-serif;
  51. }
  52. }
  53. // hide elements for conditional loading
  54. // only used for responsive comments plugin
  55. *[data-usn-if] { display: none; }