style.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. html,
  2. body {
  3. height: 100%;
  4. background: #f2f2f2;
  5. }
  6. *,
  7. *:before,
  8. *:after {
  9. box-sizing: border-box;
  10. }
  11. /* Controls
  12. ---------------------------------------------------------------------- */
  13. .controls {
  14. padding: 1rem;
  15. background: #333;
  16. font-size: 0.1px;
  17. }
  18. .control {
  19. position: relative;
  20. display: inline-block;
  21. width: 2.7rem;
  22. height: 2.7rem;
  23. background: #444;
  24. cursor: pointer;
  25. font-size: 0.1px;
  26. color: white;
  27. transition: background 150ms;
  28. }
  29. .control:hover {
  30. background: #3f3f3f;
  31. }
  32. .control[data-filter]:after {
  33. content: '';
  34. position: absolute;
  35. width: 10px;
  36. height: 10px;
  37. top: calc(50% - 6px);
  38. left: calc(50% - 6px);
  39. border: 2px solid currentColor;
  40. border-radius: 2px;
  41. background: currentColor;
  42. transition: background-color 150ms, border-color 150ms;
  43. }
  44. .control[data-sort]:after {
  45. content: '';
  46. position: absolute;
  47. width: 10px;
  48. height: 10px;
  49. border-top: 2px solid;
  50. border-left: 2px solid;
  51. top: calc(50% - 6px);
  52. left: calc(50% - 6px);
  53. transform: translateY(1px) rotate(45deg);
  54. }
  55. .control[data-sort*=":desc"]:after {
  56. transform: translateY(-4px) rotate(-135deg);
  57. }
  58. .mixitup-control-active {
  59. background: #393939;
  60. }
  61. .mixitup-control-active[data-filter]:after {
  62. background: transparent;
  63. }
  64. .control:first-of-type {
  65. border-radius: 3px 0 0 3px;
  66. }
  67. .control:last-of-type {
  68. border-radius: 0 3px 3px 0;
  69. }
  70. .checkbox-group {
  71. display: inline-block;
  72. padding: .5rem;
  73. background: #2a2a2a;
  74. margin-right: .75rem;
  75. vertical-align: top;
  76. }
  77. .checkbox {
  78. text-align: justify;
  79. }
  80. .checkbox:after {
  81. content: '';
  82. display: inline-block;
  83. width: 100%;
  84. }
  85. .checkbox-input,
  86. .checkbox-label {
  87. display: inline-block;
  88. }
  89. .checkbox-label {
  90. color: white;
  91. font-family: 'helvetica-neue', arial, sans-serif;
  92. font-size: .9rem;
  93. margin-right: .5rem;
  94. }
  95. /* Container
  96. ---------------------------------------------------------------------- */
  97. .container {
  98. padding: 1rem;
  99. text-align: justify;
  100. font-size: 0.1px;
  101. }
  102. .container:after {
  103. content: '';
  104. display: inline-block;
  105. width: 100%;
  106. }
  107. /* Target Elements
  108. ---------------------------------------------------------------------- */
  109. .mix,
  110. .gap {
  111. display: inline-block;
  112. vertical-align: top;
  113. }
  114. .mix {
  115. background: #fff;
  116. border-top: .5rem solid currentColor;
  117. border-radius: 2px;
  118. margin-bottom: 1rem;
  119. position: relative;
  120. }
  121. .mix:before {
  122. content: '';
  123. display: inline-block;
  124. padding-top: 56.25%;
  125. }
  126. .mix.green {
  127. color: #91e6c7;
  128. }
  129. .mix.pink {
  130. color: #d595aa;
  131. }
  132. .mix.blue {
  133. color: #5ecdde;
  134. }
  135. /* Grid Breakpoints
  136. ---------------------------------------------------------------------- */
  137. /* 2 Columns */
  138. .mix,
  139. .gap {
  140. width: calc(100%/2 - (((2 - 1) * 1rem) / 2));
  141. }
  142. /* 3 Columns */
  143. @media screen and (min-width: 541px) {
  144. .mix,
  145. .gap {
  146. width: calc(100%/3 - (((3 - 1) * 1rem) / 3));
  147. }
  148. }
  149. /* 4 Columns */
  150. @media screen and (min-width: 961px) {
  151. .mix,
  152. .gap {
  153. width: calc(100%/4 - (((4 - 1) * 1rem) / 4));
  154. }
  155. }
  156. /* 5 Columns */
  157. @media screen and (min-width: 1281px) {
  158. .mix,
  159. .gap {
  160. width: calc(100%/5 - (((5 - 1) * 1rem) / 5));
  161. }
  162. }