main.css 5.8 KB

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