main.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. /* Variables */
  2. :root {
  3. --columns: 5;
  4. --tile-margin: .9vw;
  5. --body-margin: 3.6vw;
  6. --theme-color: #ff2d00;
  7. /* --tile-margin: 12.75px; */
  8. /* --body-margin: 66px; */
  9. --header-inner-space: calc(8 * var(--tile-margin));
  10. --header-space: calc(10 * var(--tile-margin) - 10px);
  11. }
  12. /* Columns */
  13. /* @media (max-width: 1500px) {
  14. :root { --columns: 5; }
  15. }
  16. @media (max-width: 1000px) {
  17. :root { --columns: 4; }
  18. }
  19. @media (max-width: 700px) {
  20. :root { --columns: 3; }
  21. }
  22. @media (max-width: 500px) {
  23. :root { --columns: 2; }
  24. }
  25. @media (max-width: 400px) {
  26. :root { --columns: 1; }
  27. } */
  28. /* Font Size */
  29. :root {
  30. /* font-size: 180%; */
  31. font-size: 1.2vw;
  32. font-weight: 100;
  33. }
  34. h1 {
  35. /* font-size: 97%; */
  36. font-size: 1.18vw;
  37. }
  38. /* @media (max-width: 1500px) {
  39. :root { font-size: 22px; }
  40. h1 { font-size: 22px; }
  41. }
  42. @media (max-width: 1240px) {
  43. :root { font-size: 18px; }
  44. }
  45. @media (max-width: 1080px) {
  46. :root { font-size: 16px; }
  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: 935px) {
  57. #menu { visibility: hidden; }
  58. }
  59. #logo {
  60. width: 9vw;
  61. margin: 0 21.5px .2em 15px;
  62. }
  63. /* @media (max-width: 460px) {
  64. #logo { width: 130px; }
  65. } */
  66. /* Typographies */
  67. @font-face {
  68. font-family: 'nexa-light';
  69. src: url('/static/font/nexa-light-regular.otf') format('opentype');
  70. }
  71. @font-face {
  72. font-family: 'geoslab';
  73. src: url('/static/font/geoslab703-md-bt-bold.ttf') format('truetype');
  74. }
  75. /* Rules */
  76. :root {
  77. font-family: 'nexa-light';
  78. letter-spacing: 1.5px;
  79. }
  80. .sec-div {
  81. font-weight: bold;
  82. font-family: 'nexa-light';
  83. }
  84. a {
  85. color: black;
  86. margin: .05rem .3rem;
  87. text-decoration: none;
  88. }
  89. a.en {
  90. margin-bottom: .5em;
  91. }
  92. h1 {
  93. margin: .5em 0;
  94. text-align: center;
  95. letter-spacing: 1px;
  96. font-weight: 100;
  97. font-family: 'geoslab';
  98. text-decoration: none;
  99. text-transform: uppercase;
  100. }
  101. h2 {
  102. font-size: .9em;
  103. font-family: 'geoslab';
  104. text-decoration: none;
  105. text-transform: uppercase;
  106. }
  107. figure figcaption {
  108. font-size: .9em;
  109. }
  110. a.selected, a[href]:hover {
  111. /* cursor: default; */
  112. /* display: inline-block; */
  113. color: var(--theme-color);
  114. }
  115. div {
  116. display: flex;
  117. }
  118. body {
  119. width: calc(100% - 2*var(--body-margin));
  120. margin: 0 var(--body-margin);
  121. /* width: 94%;
  122. margin: 0 3%; */
  123. /* width: calc(100% - 2*var(--body-margin)); */
  124. /* margin: 0 var(--body-margin); */
  125. position: absolute;
  126. }
  127. header {
  128. width: calc(100% - 2*(var(--body-margin)));
  129. margin: 0;
  130. /* width: calc(100% - 2*(var(--body-margin) + var(--tile-margin))); */
  131. /* margin: 0 var(--tile-margin); */
  132. /* width: 100%; */
  133. /* margin: 0 calc(var(--body-margin) + var(--tile-margin)); */
  134. display: flex;
  135. flex-direction: column;
  136. /* margin: 0 0 0 var(--tile-margin); */
  137. justify-content: flex-end;
  138. position: fixed;
  139. /* width: calc(100% - 2*var(--body-margin) - 2*var(--tile-margin)); */
  140. background-color: white;
  141. /* padding-bottom: calc(2*var(--tile-margin)); */
  142. /* border-bottom: calc(2*var(--tile-margin)); */
  143. height: var(--header-space);
  144. position: fixed;
  145. z-index: 1;
  146. }
  147. /* header::after {
  148. content: " ";
  149. background-color: black;
  150. height: var(--header-line-width);
  151. width: 100%;
  152. align-self: flex-start;
  153. } */
  154. .header-box {
  155. padding-bottom: calc(2 * var(--tile-margin));
  156. overflow: hidden;
  157. display: flex;
  158. flex-direction: row;
  159. align-items: flex-end;
  160. justify-content: space-between;
  161. flex-wrap: wrap;
  162. height: var(--header-inner-space);
  163. }
  164. .vbox {
  165. display: flex;
  166. flex-direction: column;
  167. align-items: center;
  168. }
  169. .rbox .vbox {
  170. align-items: flex-end;
  171. }
  172. .lbox .vbox {
  173. align-items: flex-start;
  174. }
  175. .hbox {
  176. display: flex;
  177. flex-direction: row;
  178. align-items: center;
  179. }
  180. .lbox {
  181. display: flex;
  182. flex-direction: row;
  183. align-items: flex-end;
  184. justify-content: flex-start;
  185. }
  186. .rbox {
  187. display: flex;
  188. flex-direction: row;
  189. align-items: center;
  190. justify-content: flex-end;
  191. }
  192. .header-subtitle {
  193. display: flex;
  194. flex-direction: row;
  195. flex-wrap: wrap;
  196. justify-content: flex-end;
  197. align-items: center;
  198. margin-top: 0;
  199. }
  200. #alucho-title, #designer-subtitle {
  201. flex-wrap: wrap;
  202. }
  203. .no-bottom {
  204. margin-bottom: 0;
  205. }
  206. .header-title {
  207. display: flex;
  208. flex-direction: row;
  209. flex-wrap: wrap;
  210. justify-content: flex-end;
  211. align-items: center;
  212. /* margin-bottom: 8px; */
  213. }
  214. /* header > a, header > h1 {
  215. margin: 0 3px;
  216. } */
  217. /* .header-subtitle > a {
  218. margin: 0 5px;
  219. } */
  220. a.first {
  221. margin-left: var(--tile-margin);
  222. }
  223. a.last {
  224. margin-right: var(--tile-margin);
  225. }
  226. main {
  227. display: flex;
  228. flex-direction: row;
  229. flex-wrap: wrap;
  230. justify-content: flex-start;
  231. margin-top: var(--header-space);
  232. /* margin: 0; */
  233. /* margin-top: calc(var(--header-space) + var(--body-margin)); */
  234. position: static;
  235. }
  236. figure {
  237. position: relative;
  238. display: flex;
  239. width: calc(100% / var(--columns) - 2 * var(--tile-margin));
  240. margin: var(--tile-margin);
  241. overflow: hidden;
  242. }
  243. figure img {
  244. display: flex;
  245. width: 100%;
  246. }
  247. figure figcaption {
  248. display: flex;
  249. flex-direction: column;
  250. position: absolute;
  251. padding: calc(2 * var(--tile-margin));
  252. background-color: var(--theme-color);
  253. bottom: 0;
  254. width: calc(100% - var(--tile-margin) * 4);
  255. opacity: 0;
  256. height: 0;
  257. }
  258. figure:hover figcaption {
  259. opacity: 1;
  260. transition: .3s ease;
  261. }
  262. figure.v:hover figcaption {
  263. height: 21%;
  264. }
  265. figure.h:hover figcaption,
  266. figure.s:hover figcaption {
  267. height: 30%;
  268. }
  269. footer {
  270. display: flex;
  271. flex-direction: row;
  272. flex-wrap: wrap;
  273. justify-content: space-between;
  274. margin: 0 var(--tile-margin) calc(2*var(--tile-margin)) var(--tile-margin);
  275. /* } */
  276. /* footer { */
  277. font-size: .7em;
  278. font-weight: 900;
  279. }
  280. footer .copyright {
  281. align-items: center;
  282. }
  283. footer a.first {
  284. margin-left: 0;
  285. }
  286. footer a.last {
  287. margin-right: 0;
  288. }