style.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. padding: 1rem;
  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. .control[data-filter=".green"] {
  71. color: #91e6c7;
  72. }
  73. .control[data-filter=".blue"] {
  74. color: #5ecdde;
  75. }
  76. .control[data-filter=".pink"] {
  77. color: #d595aa;
  78. }
  79. .control[data-filter="none"] {
  80. color: #2f2f2f;
  81. }
  82. /* Container
  83. ---------------------------------------------------------------------- */
  84. .container {
  85. padding: 1rem;
  86. text-align: justify;
  87. font-size: 0.1px;
  88. }
  89. .targets:after {
  90. content: '';
  91. display: inline-block;
  92. width: 100%;
  93. }
  94. /* Target Elements
  95. ---------------------------------------------------------------------- */
  96. .mix,
  97. .gap {
  98. display: inline-block;
  99. vertical-align: top;
  100. }
  101. .mix {
  102. background: #fff;
  103. border-top: .5rem solid currentColor;
  104. border-radius: 2px;
  105. margin-bottom: 1rem;
  106. position: relative;
  107. }
  108. .mix:before {
  109. content: '';
  110. display: inline-block;
  111. padding-top: 56.25%;
  112. }
  113. .mix.green {
  114. color: #91e6c7;
  115. }
  116. .mix.pink {
  117. color: #d595aa;
  118. }
  119. .mix.blue {
  120. color: #5ecdde;
  121. }
  122. /* Grid Breakpoints
  123. ---------------------------------------------------------------------- */
  124. /* 2 Columns */
  125. .mix,
  126. .gap {
  127. width: calc(100%/2 - (((2 - 1) * 1rem) / 2));
  128. }
  129. /* 3 Columns */
  130. @media screen and (min-width: 541px) {
  131. .mix,
  132. .gap {
  133. width: calc(100%/3 - (((3 - 1) * 1rem) / 3));
  134. }
  135. }
  136. /* 4 Columns */
  137. @media screen and (min-width: 961px) {
  138. .mix,
  139. .gap {
  140. width: calc(100%/4 - (((4 - 1) * 1rem) / 4));
  141. }
  142. }
  143. /* 5 Columns */
  144. @media screen and (min-width: 1281px) {
  145. .mix,
  146. .gap {
  147. width: calc(100%/5 - (((5 - 1) * 1rem) / 5));
  148. }
  149. }