style.css 3.0 KB

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