main.css 8.2 KB

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