main.css 8.8 KB

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