main.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. /* Variables */
  2. :root {
  3. --tile-margin: .9vw;
  4. --caption-hmargin: calc(2 * var(--tile-margin));
  5. --caption-vmargin: calc(1 * var(--tile-margin));
  6. --body-margin: 3.6vw;
  7. --theme-color: #46c8a5;
  8. /* --tile-margin: 12.75px; */
  9. /* --body-margin: 66px; */
  10. --header-inner-space: calc(8 * var(--tile-margin));
  11. --header-space: calc(10 * var(--tile-margin) - 10px);
  12. }
  13. /* Columns */
  14. @media (min-width: 1501px) {
  15. :root { --columns: 5; }
  16. }
  17. @media (max-width: 1500px) {
  18. :root { --columns: 5; }
  19. }
  20. @media (max-width: 1000px) {
  21. :root { --columns: 4; }
  22. }
  23. @media (max-width: 700px) {
  24. :root { --columns: 3; }
  25. }
  26. @media (max-width: 500px) {
  27. :root { --columns: 2; }
  28. }
  29. @media (max-width: 400px) {
  30. :root { --columns: 2; }
  31. }
  32. /* Font Size */
  33. :root {
  34. /* font-size: 180%; */
  35. font-size: 1.2vw;
  36. font-weight: 100;
  37. }
  38. h1 {
  39. /* font-size: 97%; */
  40. font-size: 1.18vw;
  41. }
  42. /* @media (max-width: 1500px) {
  43. :root { font-size: 22px; }
  44. h1 { font-size: 22px; }
  45. }
  46. @media (max-width: 1240px) {
  47. :root { font-size: 18px; }
  48. }
  49. @media (max-width: 1080px) {
  50. :root { font-size: 16px; }
  51. } */
  52. /* Margins */
  53. /* @media (max-width: 1080px) {
  54. :root {
  55. --tile-margin: 12.75px;
  56. --body-margin: 33px;
  57. }
  58. } */
  59. /* Header */
  60. @media (max-width: 935px) {
  61. #menu { visibility: hidden; }
  62. }
  63. #logo {
  64. width: 10vw;
  65. margin: 0 .7vw -.9vw .5vw;
  66. }
  67. /* @media (max-width: 460px) {
  68. #logo { width: 130px; }
  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: 1.5px;
  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: .5em;
  95. }
  96. h1 {
  97. font-size: 1.1em;
  98. text-align: center;
  99. letter-spacing: 1px;
  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. figure figcaption {
  113. font-size: .9em;
  114. }
  115. a.selected, a[href]:hover {
  116. /* cursor: default; */
  117. /* display: inline-block; */
  118. color: var(--theme-color);
  119. }
  120. div {
  121. display: flex;
  122. }
  123. body {
  124. width: calc(100% - 2*var(--body-margin));
  125. margin: 0 var(--body-margin);
  126. /* width: 94%;
  127. margin: 0 3%; */
  128. /* width: calc(100% - 2*var(--body-margin)); */
  129. /* margin: 0 var(--body-margin); */
  130. position: absolute;
  131. }
  132. header {
  133. width: calc(100% - 2*(var(--body-margin)));
  134. margin: 0;
  135. /* width: calc(100% - 2*(var(--body-margin) + var(--tile-margin))); */
  136. /* margin: 0 var(--tile-margin); */
  137. /* width: 100%; */
  138. /* margin: 0 calc(var(--body-margin) + var(--tile-margin)); */
  139. display: flex;
  140. flex-direction: column;
  141. /* margin: 0 0 0 var(--tile-margin); */
  142. justify-content: flex-end;
  143. position: fixed;
  144. /* width: calc(100% - 2*var(--body-margin) - 2*var(--tile-margin)); */
  145. background-color: white;
  146. /* padding-bottom: calc(2*var(--tile-margin)); */
  147. /* border-bottom: calc(2*var(--tile-margin)); */
  148. height: var(--header-space);
  149. position: fixed;
  150. z-index: 1;
  151. }
  152. /* header::after {
  153. content: " ";
  154. background-color: black;
  155. height: var(--header-line-width);
  156. width: 100%;
  157. align-self: flex-start;
  158. } */
  159. .header-box {
  160. padding-bottom: calc(2 * var(--tile-margin));
  161. overflow: hidden;
  162. display: flex;
  163. flex-direction: row;
  164. align-items: flex-end;
  165. justify-content: space-between;
  166. flex-wrap: wrap;
  167. height: var(--header-inner-space);
  168. }
  169. .vbox {
  170. display: flex;
  171. flex-direction: column;
  172. align-items: center;
  173. }
  174. .rbox .vbox {
  175. align-items: flex-end;
  176. }
  177. .lbox .vbox {
  178. align-items: flex-start;
  179. }
  180. .hbox {
  181. display: flex;
  182. flex-direction: row;
  183. align-items: center;
  184. }
  185. .lbox {
  186. display: flex;
  187. flex-direction: row;
  188. align-items: flex-end;
  189. justify-content: flex-start;
  190. }
  191. .rbox {
  192. display: flex;
  193. flex-direction: row;
  194. align-items: center;
  195. justify-content: flex-end;
  196. }
  197. .header-subtitle {
  198. display: flex;
  199. flex-direction: row;
  200. flex-wrap: wrap;
  201. justify-content: flex-end;
  202. align-items: center;
  203. margin-top: 0;
  204. }
  205. #alucho-title, #designer-subtitle {
  206. flex-wrap: wrap;
  207. }
  208. .no-bottom {
  209. margin-bottom: 0;
  210. }
  211. .header-title {
  212. display: flex;
  213. flex-direction: row;
  214. flex-wrap: wrap;
  215. justify-content: flex-end;
  216. align-items: center;
  217. /* margin-bottom: 8px; */
  218. }
  219. /* header > a, header > h1 {
  220. margin: 0 3px;
  221. } */
  222. /* .header-subtitle > a {
  223. margin: 0 5px;
  224. } */
  225. a.first {
  226. margin-left: var(--tile-margin);
  227. }
  228. a.last {
  229. margin-right: var(--tile-margin);
  230. }
  231. main {
  232. display: flex;
  233. flex-direction: row;
  234. flex-wrap: wrap;
  235. justify-content: flex-start;
  236. margin-top: var(--header-space);
  237. /* margin: 0; */
  238. /* margin-top: calc(var(--header-space) + var(--body-margin)); */
  239. position: static;
  240. }
  241. figure {
  242. position: relative;
  243. display: flex;
  244. width: calc(100% / var(--columns) - 2 * var(--tile-margin));
  245. margin: var(--tile-margin);
  246. overflow: hidden;
  247. }
  248. figure img, svg {
  249. display: flex;
  250. width: 100%;
  251. height: 100%;
  252. }
  253. figure figcaption {
  254. font-size: 0;
  255. padding: 0 var(--caption-hmargin);
  256. display: flex;
  257. flex-direction: column;
  258. position: absolute;
  259. background-color: white;
  260. bottom: 0;
  261. width: calc(100% - 2 * var(--caption-hmargin));
  262. opacity: 1;
  263. height: 0;
  264. }
  265. figure:hover figcaption {
  266. font-size: .9em;
  267. padding: var(--caption-vmargin) var(--caption-hmargin);
  268. transition: .3s ease;
  269. height: auto;
  270. }
  271. figcaption h1 {
  272. margin: 0;
  273. }
  274. .caption {
  275. display: flex;
  276. flex-direction: column;
  277. align-items: flex-start;
  278. }
  279. footer {
  280. display: flex;
  281. flex-direction: row;
  282. flex-wrap: wrap;
  283. justify-content: space-between;
  284. margin: 0 var(--tile-margin) calc(2*var(--tile-margin)) var(--tile-margin);
  285. font-size: .7em;
  286. font-weight: 900;
  287. }
  288. footer .copyright {
  289. align-items: center;
  290. }
  291. footer a.first {
  292. margin-left: 0;
  293. }
  294. footer a.last {
  295. margin-right: 0;
  296. }