Web de la acampada del 26S
Home con directo, comunicados y organización. HTML y CSS, sin JS. Configuración de nginx, timer del directo y limpieza de EXIF.
This commit is contained in:
commit
f78773bb87
15 changed files with 1335 additions and 0 deletions
98
site/css/main.css
Normal file
98
site/css/main.css
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
@font-face {
|
||||
font-family: "Anton";
|
||||
src: url("../fonts/anton.woff2") format("woff2");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg: #fff;
|
||||
--fg: #000;
|
||||
--acc: #ff1493;
|
||||
--bd: 3px solid var(--fg);
|
||||
--gap: 12px;
|
||||
--tit: Impact, "Anton", "Arial Narrow", sans-serif;
|
||||
--txt: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
|
||||
html { color-scheme: light; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font: 17px/1.5 var(--txt);
|
||||
}
|
||||
|
||||
img { max-width: 100%; height: auto; display: block; }
|
||||
|
||||
a { color: inherit; }
|
||||
|
||||
.w { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
|
||||
|
||||
h1, h2, h3, .cuadro, .bt {
|
||||
font-family: var(--tit);
|
||||
font-weight: 400;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .01em;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
h1 { font-size: clamp(48px, 11vw, 120px); margin: 24px 0 16px; }
|
||||
h2 { font-size: 40px; margin: 48px 0 16px; border-bottom: var(--bd); padding-bottom: 6px; }
|
||||
h3 { font-size: 26px; margin: 0 0 6px; }
|
||||
|
||||
/* cuadros y botones */
|
||||
.cuadros, .botonera { display: grid; gap: var(--gap); padding: 0; margin: 0; list-style: none; }
|
||||
.cuadros { grid-template-columns: repeat(3, 1fr); }
|
||||
.botonera { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: var(--gap); }
|
||||
|
||||
.cuadro, .bt {
|
||||
display: block;
|
||||
border: var(--bd);
|
||||
background: var(--bg);
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
transition: transform .12s, box-shadow .12s, background-color .12s;
|
||||
}
|
||||
.cuadro { font-size: 30px; padding: 28px 12px; }
|
||||
.bt { font-size: 20px; padding: 12px; }
|
||||
.volver { display: inline-block; margin-top: 24px; }
|
||||
|
||||
.cuadro:hover, .cuadro:focus-visible,
|
||||
.bt:hover, .bt:focus-visible {
|
||||
background: var(--acc);
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 4px 0 var(--fg);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* comunicados */
|
||||
.lista { list-style: none; margin: 0; padding: 0; }
|
||||
.lista > li { border-bottom: 1px solid var(--fg); padding: 20px 0; }
|
||||
.lista a:hover, .lista a:focus-visible { color: var(--acc); }
|
||||
time { font-family: var(--tit); font-size: 18px; }
|
||||
.borrador { border: var(--bd); padding: 0 6px; font-family: var(--tit); font-size: 14px; }
|
||||
|
||||
article { max-width: 720px; }
|
||||
article p { margin: 0 0 1em; }
|
||||
|
||||
code, pre {
|
||||
font: 14px/1.4 ui-monospace, "DejaVu Sans Mono", monospace;
|
||||
word-break: break-all;
|
||||
}
|
||||
pre { border: var(--bd); padding: 12px; white-space: pre-wrap; margin: 0 0 1em; }
|
||||
|
||||
footer { margin: 64px 0 24px; border-top: var(--bd); padding-top: 12px; font-size: 14px; }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.cuadros { grid-template-columns: 1fr; }
|
||||
h2 { font-size: 32px; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.cuadro, .bt { transition: none; }
|
||||
.cuadro:hover, .cuadro:focus-visible,
|
||||
.bt:hover, .bt:focus-visible { transform: none; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue