main.css 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. /* Variables */
  2. :root {
  3. --tile-margin: .9vw;
  4. --caption-hmargin: calc(2*var(--tile-margin));
  5. --caption-vmargin: calc(1.5*var(--tile-margin));
  6. --body-margin: 3.6vw;
  7. --theme-color: #46c8a5;
  8. --bgcolor: white;
  9. --header-inner-space: calc(8*var(--tile-margin));
  10. --header-space: calc(10*var(--tile-margin) - 10px + var(--tile-margin));
  11. }
  12. /* Columns */
  13. @media (min-width: 1501px) {
  14. :root { --columns: 5; }
  15. }
  16. @media (max-width: 1500px) {
  17. :root { --columns: 5; }
  18. }
  19. @media (max-width: 1000px) {
  20. :root { --columns: 4; }
  21. }
  22. @media (max-width: 700px) {
  23. :root { --columns: 3; }
  24. }
  25. @media (max-width: 500px) {
  26. :root { --columns: 2; }
  27. }
  28. @media (max-width: 400px) {
  29. :root { --columns: 2; }
  30. }
  31. /* Font Size */
  32. :root {
  33. font-size: 1.2vw;
  34. font-weight: 100;
  35. }
  36. /* Margins */
  37. /* @media (max-width: 1080px) {
  38. :root {
  39. --tile-margin: 12.75px;
  40. --body-margin: 33px;
  41. }
  42. } */
  43. /* Header */
  44. @media (max-width: 600px) {
  45. /* Mobile view */
  46. #wide-header {
  47. display: none;
  48. visibility: hidden;
  49. }
  50. :root {
  51. --header-space: 0;
  52. font-size: 2.5vw;
  53. }
  54. }
  55. @media (min-width: 601px) {
  56. /* Non mobile view */
  57. #mobile-header {
  58. display: none;
  59. visibility: hidden;
  60. }
  61. }
  62. #logo {
  63. width: 10vw;
  64. margin: 0 .7vw -.9vw .5vw;
  65. }
  66. /* Typographies */
  67. @font-face {
  68. font-family: 'akrobat-regular';
  69. src: url('/static/font/Akrobat-Regular.otf') format('opentype');
  70. }
  71. @font-face {
  72. font-family: 'akrobat-bold';
  73. src: url('/static/font/Akrobat-Bold.otf') format('opentype');
  74. }
  75. /* Rules */
  76. :root {
  77. font-family: 'akrobat-regular';
  78. letter-spacing: .07rem;
  79. }
  80. .sec-div {
  81. font-weight: bold;
  82. font-family: 'akrobat-regular';
  83. }
  84. a {
  85. color: black;
  86. margin: .05rem .3rem;
  87. text-decoration: none;
  88. }
  89. a.en {
  90. margin-bottom: .3em;
  91. }
  92. h1 {
  93. font-size: 1.1em;
  94. letter-spacing: .05rem;
  95. font-weight: 100;
  96. font-family: 'akrobat-bold';
  97. text-decoration: none;
  98. text-transform: uppercase;
  99. margin: .2em 0;
  100. }
  101. h2 {
  102. font-size: .9em;
  103. font-family: 'akrobat-bold';
  104. text-decoration: none;
  105. text-transform: uppercase;
  106. }
  107. a.selected, a[href]:hover {
  108. color: var(--theme-color);
  109. }
  110. div {
  111. display: -webkit-box;
  112. display: -ms-flexbox;
  113. display: flex;
  114. }
  115. body {
  116. width: calc(100% - 2*var(--body-margin));
  117. margin: 0 var(--body-margin);
  118. position: absolute;
  119. background-color: var(--bgcolor);
  120. }
  121. #logo #background {
  122. fill: var(--bgcolor) !important;
  123. }
  124. #wide-header {
  125. width: calc(100% - 2*(var(--body-margin)));
  126. margin: 0;
  127. display: -webkit-box;
  128. display: -ms-flexbox;
  129. display: flex;
  130. -webkit-box-orient: vertical;
  131. -webkit-box-direction: normal;
  132. -ms-flex-direction: column;
  133. flex-direction: column;
  134. -webkit-box-pack: end;
  135. -ms-flex-pack: end;
  136. justify-content: flex-end;
  137. position: fixed;
  138. background-color: var(--bgcolor);
  139. height: var(--header-space);
  140. position: fixed;
  141. z-index: 1;
  142. }
  143. .header-box {
  144. padding-bottom: calc(2*var(--tile-margin));
  145. overflow: hidden;
  146. display: -webkit-box;
  147. display: -ms-flexbox;
  148. display: flex;
  149. -webkit-box-orient: horizontal;
  150. -webkit-box-direction: normal;
  151. -ms-flex-direction: row;
  152. flex-direction: row;
  153. -webkit-box-align: end;
  154. -ms-flex-align: end;
  155. align-items: flex-end;
  156. -webkit-box-pack: justify;
  157. -ms-flex-pack: justify;
  158. justify-content: space-between;
  159. -ms-flex-wrap: wrap;
  160. flex-wrap: wrap;
  161. height: var(--header-inner-space);
  162. }
  163. .vbox {
  164. display: -webkit-box;
  165. display: -ms-flexbox;
  166. display: flex;
  167. -webkit-box-orient: vertical;
  168. -webkit-box-direction: normal;
  169. -ms-flex-direction: column;
  170. flex-direction: column;
  171. -webkit-box-align: center;
  172. -ms-flex-align: center;
  173. align-items: center;
  174. }
  175. .rbox .vbox {
  176. -webkit-box-align: end;
  177. -ms-flex-align: end;
  178. align-items: flex-end;
  179. }
  180. .lbox .vbox {
  181. -webkit-box-align: start;
  182. -ms-flex-align: start;
  183. align-items: flex-start;
  184. }
  185. .hbox {
  186. display: -webkit-box;
  187. display: -ms-flexbox;
  188. display: flex;
  189. -webkit-box-orient: horizontal;
  190. -webkit-box-direction: normal;
  191. -ms-flex-direction: row;
  192. flex-direction: row;
  193. -webkit-box-align: center;
  194. -ms-flex-align: center;
  195. align-items: center;
  196. }
  197. .lbox {
  198. display: -webkit-box;
  199. display: -ms-flexbox;
  200. display: flex;
  201. -webkit-box-orient: horizontal;
  202. -webkit-box-direction: normal;
  203. -ms-flex-direction: row;
  204. flex-direction: row;
  205. -webkit-box-align: end;
  206. -ms-flex-align: end;
  207. align-items: flex-end;
  208. -webkit-box-pack: start;
  209. -ms-flex-pack: start;
  210. justify-content: flex-start;
  211. }
  212. .rbox {
  213. display: -webkit-box;
  214. display: -ms-flexbox;
  215. display: flex;
  216. -webkit-box-orient: horizontal;
  217. -webkit-box-direction: normal;
  218. -ms-flex-direction: row;
  219. flex-direction: row;
  220. -webkit-box-align: center;
  221. -ms-flex-align: center;
  222. align-items: center;
  223. -webkit-box-pack: end;
  224. -ms-flex-pack: end;
  225. justify-content: flex-end;
  226. }
  227. .header-subtitle {
  228. display: -webkit-box;
  229. display: -ms-flexbox;
  230. display: flex;
  231. -webkit-box-orient: horizontal;
  232. -webkit-box-direction: normal;
  233. -ms-flex-direction: row;
  234. flex-direction: row;
  235. -ms-flex-wrap: wrap;
  236. flex-wrap: wrap;
  237. -webkit-box-pack: end;
  238. -ms-flex-pack: end;
  239. justify-content: flex-end;
  240. -webkit-box-align: center;
  241. -ms-flex-align: center;
  242. align-items: center;
  243. margin-top: 0;
  244. }
  245. #alucho-title, #designer-subtitle {
  246. -ms-flex-wrap: wrap;
  247. flex-wrap: wrap;
  248. }
  249. .no-bottom {
  250. margin-bottom: 0;
  251. }
  252. .header-title {
  253. display: -webkit-box;
  254. display: -ms-flexbox;
  255. display: flex;
  256. -webkit-box-orient: horizontal;
  257. -webkit-box-direction: normal;
  258. -ms-flex-direction: row;
  259. flex-direction: row;
  260. -ms-flex-wrap: wrap;
  261. flex-wrap: wrap;
  262. -webkit-box-pack: end;
  263. -ms-flex-pack: end;
  264. justify-content: flex-end;
  265. -webkit-box-align: center;
  266. -ms-flex-align: center;
  267. align-items: center;
  268. }
  269. a.first {
  270. margin-left: var(--tile-margin);
  271. }
  272. a.last {
  273. margin-right: var(--tile-margin);
  274. }
  275. main {
  276. display: -webkit-box;
  277. display: -ms-flexbox;
  278. display: flex;
  279. -webkit-box-orient: horizontal;
  280. -webkit-box-direction: normal;
  281. -ms-flex-direction: row;
  282. flex-direction: row;
  283. -ms-flex-wrap: wrap;
  284. flex-wrap: wrap;
  285. -webkit-box-pack: start;
  286. -ms-flex-pack: start;
  287. justify-content: flex-start;
  288. margin-top: calc(var(--header-space) - var(--tile-margin));
  289. position: static;
  290. }
  291. figure {
  292. position: relative;
  293. display: -webkit-box;
  294. display: -ms-flexbox;
  295. display: flex;
  296. width: calc(100% / var(--columns) - 2*var(--tile-margin));
  297. margin: var(--tile-margin);
  298. overflow: hidden;
  299. }
  300. figure img.tile, svg {
  301. display: -webkit-box;
  302. display: -ms-flexbox;
  303. display: flex;
  304. width: 100%;
  305. height: 100%;
  306. cursor: pointer;
  307. }
  308. figure figcaption {
  309. font-size: .7em;
  310. padding: var(--caption-vmargin) var(--caption-hmargin);
  311. display: -webkit-box;
  312. display: -ms-flexbox;
  313. display: flex;
  314. -webkit-box-orient: vertical;
  315. -webkit-box-direction: normal;
  316. -ms-flex-direction: column;
  317. flex-direction: column;
  318. position: absolute;
  319. background-color: var(--bgcolor);
  320. bottom: 0;
  321. width: calc(100% - 2*var(--caption-hmargin));
  322. -webkit-transform: translateY(100%);
  323. transform: translateY(100%);
  324. -webkit-transition: .3s ease;
  325. transition: .3s ease;
  326. }
  327. figure:hover figcaption {
  328. -webkit-transform: translateY(0);
  329. transform: translateY(0);
  330. -webkit-transition: .3s ease;
  331. transition: .3s ease;
  332. }
  333. figcaption h1 {
  334. margin: 0;
  335. }
  336. .caption {
  337. display: -webkit-box;
  338. display: -ms-flexbox;
  339. display: flex;
  340. -webkit-box-orient: vertical;
  341. -webkit-box-direction: normal;
  342. -ms-flex-direction: column;
  343. flex-direction: column;
  344. -webkit-box-align: start;
  345. -ms-flex-align: start;
  346. align-items: flex-start;
  347. }
  348. footer {
  349. display: -webkit-box;
  350. display: -ms-flexbox;
  351. display: flex;
  352. -webkit-box-orient: vertical;
  353. -webkit-box-direction: normal;
  354. -ms-flex-direction: column;
  355. flex-direction: column;
  356. margin: 0 var(--tile-margin);
  357. height: var(--body-margin);
  358. font-size: .7em;
  359. font-weight: 900;
  360. }
  361. footer::after {
  362. content: "";
  363. height: var(--tile-margin);
  364. bottom: 0;
  365. }
  366. .footer-content {
  367. height: calc(var(--body-margin) - var(--tile-margin));
  368. display: -webkit-box;
  369. display: -ms-flexbox;
  370. display: flex;
  371. -webkit-box-orient: horizontal;
  372. -webkit-box-direction: normal;
  373. -ms-flex-direction: row;
  374. flex-direction: row;
  375. -ms-flex-wrap: wrap;
  376. flex-wrap: wrap;
  377. -webkit-box-pack: justify;
  378. -ms-flex-pack: justify;
  379. justify-content: space-between;
  380. }
  381. footer .copyright, footer .social {
  382. -webkit-box-align: center;
  383. -ms-flex-align: center;
  384. align-items: center;
  385. }
  386. footer a.first {
  387. margin-left: 0;
  388. }
  389. footer a.last {
  390. margin-right: 0;
  391. }
  392. footer svg {
  393. width: auto;
  394. height: 1.5em;
  395. margin-left: .75em;
  396. }
  397. .social a {
  398. margin: 0;
  399. }
  400. .hidden {
  401. visibility: hidden;
  402. }