style.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. html,
  2. body {
  3. height: 100%;
  4. background: #f2f2f2;
  5. -webkit-font-smoothing: antialiased;
  6. -moz-osx-font-smoothing: antialiased;
  7. }
  8. *,
  9. *:before,
  10. *:after {
  11. box-sizing: border-box;
  12. }
  13. /* Controls
  14. ---------------------------------------------------------------------- */
  15. .controls {
  16. padding: 1rem;
  17. background: #333;
  18. font-size: 0.1px;
  19. }
  20. .control {
  21. position: relative;
  22. display: inline-block;
  23. padding: .5rem;
  24. background: #444;
  25. cursor: pointer;
  26. font-size: .9rem;
  27. font-weight: 800;
  28. color: white;
  29. transition: background 150ms;
  30. }
  31. .control:hover {
  32. background: #3f3f3f;
  33. }
  34. .mixitup-control-active {
  35. background: #393939;
  36. }
  37. .control:first-of-type {
  38. border-radius: 3px 0 0 3px;
  39. }
  40. .control:last-of-type {
  41. border-radius: 0 3px 3px 0;
  42. }
  43. /* Container
  44. ---------------------------------------------------------------------- */
  45. .container {
  46. padding: 1rem;
  47. display: flex;
  48. flex-direction: row;
  49. flex-wrap: wrap;
  50. align-content: flex-start;
  51. justify-content: space-between;
  52. }
  53. /* Target Elements
  54. ---------------------------------------------------------------------- */
  55. .mix,
  56. .gap {
  57. display: inline-flex;
  58. vertical-align: top;
  59. }
  60. .mix {
  61. background: #fff;
  62. border-top: .5rem solid currentColor;
  63. border-radius: 2px;
  64. margin-bottom: 1rem;
  65. position: relative;
  66. color: transparent;
  67. font-family: 'helvetica-neue', arial, sans-serif;
  68. }
  69. .mix:before {
  70. content: '';
  71. display: inline-block;
  72. padding-top: 56.25%;
  73. }
  74. .mix.green {
  75. color: #91e6c7;
  76. }
  77. .mix.pink {
  78. color: #d595aa;
  79. }
  80. .mix.blue {
  81. color: #5ecdde;
  82. }
  83. .mix p {
  84. padding: 1rem;
  85. display: inline-block;
  86. font-size: calc(1vw + .5rem);
  87. color: #333;
  88. line-height: 1.4;
  89. font-weight: 300;
  90. }
  91. /* Grid Breakpoints
  92. ---------------------------------------------------------------------- */
  93. /* 2 Columns */
  94. .mix,
  95. .gap {
  96. width: calc(100%/2 - (((2 - 1) * 1rem) / 2));
  97. }
  98. /* 3 Columns */
  99. @media screen and (min-width: 541px) {
  100. .mix,
  101. .gap {
  102. width: calc(100%/3 - (((3 - 1) * 1rem) / 3));
  103. }
  104. }
  105. /* 4 Columns */
  106. @media screen and (min-width: 961px) {
  107. .mix,
  108. .gap {
  109. width: calc(100%/4 - (((4 - 1) * 1rem) / 4));
  110. }
  111. }
  112. /* 5 Columns */
  113. @media screen and (min-width: 1281px) {
  114. .mix,
  115. .gap {
  116. width: calc(100%/5 - (((5 - 1) * 1rem) / 5));
  117. }
  118. }