style.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. .control:first-of-type {
  62. border-radius: 3px 0 0 3px;
  63. }
  64. .control:last-of-type {
  65. border-radius: 0 3px 3px 0;
  66. }
  67. /* Container
  68. ---------------------------------------------------------------------- */
  69. .container {
  70. padding: 1rem;
  71. text-align: justify;
  72. font-size: 0.1px;
  73. }
  74. .container:after {
  75. content: '';
  76. display: inline-block;
  77. width: 100%;
  78. }
  79. /* Grid Elements
  80. ---------------------------------------------------------------------- */
  81. .item,
  82. .gap {
  83. display: inline-block;
  84. vertical-align: top;
  85. }
  86. .item {
  87. background: #fff;
  88. border-radius: 2px;
  89. margin-bottom: 1rem;
  90. position: relative;
  91. }
  92. .item:before {
  93. content: '';
  94. display: inline-block;
  95. vertical-align: middle;
  96. padding-top: 100%;
  97. }
  98. .button {
  99. background: #ddd;
  100. font-size: 4rem;
  101. font-weight: bold;
  102. text-align: center;
  103. cursor: pointer;
  104. transition: box-shadow 100ms;
  105. }
  106. .button:hover {
  107. box-shadow: inset 0 0 20px rgba(0,0,0, .1);
  108. }
  109. .button:after {
  110. display: inline-block;
  111. content: '+';
  112. font-size: 4rem;
  113. color: #bbb;
  114. }
  115. /* Grid Breakpoints
  116. ---------------------------------------------------------------------- */
  117. /* 2 Columns */
  118. .item,
  119. .gap {
  120. width: calc(100%/2 - (((2 - 1) * 1rem) / 2));
  121. }
  122. /* 3 Columns */
  123. @media screen and (min-width: 541px) {
  124. .item,
  125. .gap {
  126. width: calc(100%/3 - (((3 - 1) * 1rem) / 3));
  127. }
  128. }
  129. /* 4 Columns */
  130. @media screen and (min-width: 961px) {
  131. .item,
  132. .gap {
  133. width: calc(100%/4 - (((4 - 1) * 1rem) / 4));
  134. }
  135. }
  136. /* 5 Columns */
  137. @media screen and (min-width: 1281px) {
  138. .item,
  139. .gap {
  140. width: calc(100%/5 - (((5 - 1) * 1rem) / 5));
  141. }
  142. }