index.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. @import "../node_modules/flatpickr/dist/flatpickr.min";
  2. @import "./fonts";
  3. .flatpickr-input{
  4. outline: none;
  5. }
  6. * {
  7. margin: 0;
  8. padding: 0;
  9. box-sizing: border-box;
  10. }
  11. body {
  12. background-color: #fafafa;
  13. font-size: 15px;
  14. }
  15. .container {
  16. max-width: 935px;
  17. margin: 0 auto;
  18. width: 100%;
  19. }
  20. .decoration img{
  21. position: absolute;
  22. z-index: -2;
  23. }
  24. .decoration img:first-child {
  25. top: 0;
  26. left: -3%;
  27. }
  28. .decoration img:last-child {
  29. right: 0;
  30. bottom: -75%;
  31. }
  32. header {
  33. width: 100%;
  34. position: absolute;
  35. top: 0;
  36. left: 0;
  37. right: 0;
  38. height: 200px;
  39. background-color: rgba(255, 255, 255, 0.6);
  40. box-shadow: 0px 6px 24px 0px rgba(0,0,0,0.06);
  41. }
  42. header > .container {
  43. display: flex;
  44. padding: 15px 70px 0 70px;
  45. }
  46. header .logo {
  47. margin-right: 100px;
  48. }
  49. .profile {
  50. display: flex;
  51. flex-direction: column;
  52. justify-content: space-between;
  53. height: 116px;
  54. margin-top: 30px;
  55. }
  56. .profile .profile__info {
  57. display: flex;
  58. align-items: center;
  59. }
  60. .profile .profile__username {
  61. font-family: 'MyriadProRegular', serif;
  62. font-size: 2.3em;
  63. text-transform: lowercase;
  64. margin-right: 20px;
  65. }
  66. .profile .profile__start-date {
  67. font-family: 'HelveticaNeueRegular', serif;
  68. font-size: 1em;
  69. text-transform: capitalize;
  70. color: #4090db;
  71. border: 1px solid #4090db;
  72. padding: 10px 12px;
  73. border-radius: 3px;
  74. }
  75. .profile .profile__stats p {
  76. font-family: 'ProximaNovaRegular', serif;
  77. font-size: 1.1em;
  78. display: inline-block;
  79. margin-right: 30px;
  80. }
  81. .profile .profile__stats p > span {
  82. font-family: 'ProximaNovaBold', serif;
  83. }
  84. .profile .profile__date-select > .profile__date-select__name {
  85. font-family: 'Tahoma', serif;
  86. }
  87. .profile__date-select__input {
  88. display: inline-block;
  89. position: relative;
  90. }
  91. .profile .profile__date-select input {
  92. width: 180px;
  93. padding: 8px 9px;
  94. border-radius: 3px;
  95. border: 1px solid #cccccc;
  96. margin-left: 25px;
  97. }
  98. .profile .profile__date-select button {
  99. position: absolute;
  100. top: 1px;
  101. bottom: 1px;
  102. right: 1px;
  103. border-radius: 0 2px 2px 0;
  104. border: none;
  105. border-left: 1px solid #cccccc;
  106. padding: 6px;
  107. background-color: #ebebeb;
  108. color: #7c7c7c;
  109. user-select: none;
  110. cursor: pointer;
  111. outline: none;
  112. }
  113. main {
  114. margin-top: 200px;
  115. }
  116. .mode-switcher {
  117. padding: 20px 0;
  118. }
  119. .mode-switcher .container {
  120. display: flex;
  121. justify-content: flex-end;
  122. }
  123. .mode-switcher .mode-switcher__items{
  124. display: flex;
  125. }
  126. .mode-switcher__items-grid, .mode-switcher__items-list {
  127. margin-left: 20px;
  128. width: 25px;
  129. height: 26px;
  130. display: flex;
  131. justify-content: space-between;
  132. flex-wrap: wrap;
  133. cursor: pointer;
  134. }
  135. .mode-switcher__items-grid.active div, .mode-switcher__items-list.active div {
  136. background-color: #3b8ede;
  137. }
  138. .mode-switcher__items-grid div, .mode-switcher__items-list div {
  139. width: 7px;
  140. height: 7px;
  141. background-color: #cccccc;
  142. border-radius: 1px;
  143. }
  144. .mode-switcher__items-list div:nth-child(2n) {
  145. width: 16px;
  146. }
  147. /* ===========================DISPLAY LIST================= */
  148. .content.display_list .content__item {
  149. width: 100%;
  150. background-color: #fff;
  151. border-radius: 2px;
  152. display: flex;
  153. margin-bottom: 10px;
  154. }
  155. .content.display_list .content__item-img {
  156. display: inline-block;
  157. width: 95px;
  158. height: 95px;
  159. }
  160. .content.display_list .content__item-img img {
  161. width: 100%;
  162. height: 100%;
  163. }
  164. .content.display_list .content__item-info {
  165. width: 90%;
  166. display: flex;
  167. justify-content: space-around;
  168. /* margin: 0 auto; */
  169. }
  170. .content .content__item-info .content__item-info__data {
  171. margin-top: 15px;
  172. font-family: 'HelveticaNeueBold'; /* HELWETICA CE BOLD*/
  173. font-size: 1.1em;
  174. }
  175. .content.display_list .content__item-info .content__item-info__data p:first-child {
  176. margin-bottom: 15px;
  177. }
  178. .content .content__item-info .content__item-info__data p:last-child {
  179. display: flex!important;
  180. align-items: center;
  181. }
  182. .content .content__item-info .content__item-info__data p:last-child span.material-icons {
  183. margin-right: 6px;
  184. }
  185. .content .content__item-info .content__item-info__data p:last-child span.comments {
  186. margin-left: 30px;
  187. transform: scale(-1,1);
  188. }
  189. /* ===========================DISPLAY GRID================= */
  190. .content.display_grid .container{
  191. display: flex;
  192. justify-content: space-between;
  193. flex-wrap: wrap;
  194. }
  195. .content.display_grid .content__item {
  196. width: 293px;
  197. height: 293px;
  198. position: relative;
  199. margin-bottom: 30px;
  200. cursor: pointer;
  201. }
  202. .content.display_grid .content__item-img {
  203. position: absolute;
  204. top: 0;
  205. left: 0;
  206. width: 100%;
  207. z-index: -1;
  208. height: 100%;
  209. }
  210. .content.display_grid .content__item-info {
  211. opacity: 0;
  212. /* display: none; */
  213. position: absolute;
  214. background-color: rgba(0,0,0,0.5);
  215. padding: 20px;
  216. height: 100%;
  217. width: 100%;
  218. bottom: 0;
  219. display: flex;
  220. flex-direction: column;
  221. justify-content: flex-end;
  222. transition: opacity 0.3s ease-in;
  223. }
  224. .content.display_grid .content__item:hover .content__item-info {
  225. opacity: 1;
  226. }
  227. .content.display_grid .content__item-info .content__item-info__data {
  228. width: 100%;
  229. display: flex;
  230. }
  231. .content.display_grid .content__item-info .content__item-info__data:last-child {
  232. justify-content: center;
  233. }
  234. .content.display_grid .content__item-info .content__item-info__data p {
  235. color: #fff;
  236. }
  237. .content.display_grid .content__item-info .content__item-info__data p:first-child {
  238. width: 40%;
  239. display: inline-block;
  240. color: #fff;
  241. }
  242. .content.display_grid .content__item-info .content__item-info__data:last-child p:first-child {
  243. width: auto;
  244. }
  245. .content.display_grid .content__item-info .content__item-info__data:last-child p:first-child::after {
  246. content: ':';
  247. margin-right: 7px;
  248. }
  249. /* BUTTON */
  250. .load-more {
  251. width: 100%;
  252. margin: 45px 0 75px 0;
  253. }
  254. .load-more .load-more__button {
  255. outline: none;
  256. display: block;
  257. margin: 0 auto;
  258. font-family: 'ProximaNovaRegular';
  259. font-size: 0.8em;
  260. text-transform: uppercase;
  261. background: none;
  262. border: 1px solid #000;
  263. border-radius: 30px;
  264. padding: 10px 30px;
  265. cursor: pointer;
  266. }