Cuadros a todo el ancho, botones con relieve y borde rosa
This commit is contained in:
parent
368f6b7067
commit
cfffd52d2a
2 changed files with 56 additions and 21 deletions
|
|
@ -39,37 +39,73 @@ h1, h2, h3, .cuadro, .bt {
|
|||
line-height: 1.05;
|
||||
}
|
||||
|
||||
h1 { font-size: clamp(48px, 11vw, 120px); margin: 24px 0 16px; }
|
||||
h1 { font-size: clamp(48px, 11vw, 120px); }
|
||||
h1.w { margin: 24px auto 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, .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(5, 1fr); margin-top: var(--gap); }
|
||||
.cuadros, .botonera { display: grid; padding: 0; margin: 0; list-style: none; }
|
||||
|
||||
.cuadro, .bt {
|
||||
display: block;
|
||||
border: var(--bd);
|
||||
background: var(--bg);
|
||||
.cuadros {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
border-block: var(--bd);
|
||||
}
|
||||
.cuadros li + li { border-left: var(--bd); }
|
||||
|
||||
.cuadro {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: 160px;
|
||||
padding: 24px 12px;
|
||||
font-size: 30px;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
transition: transform .12s, box-shadow .12s, background-color .12s;
|
||||
background: var(--bg);
|
||||
transition: background-color .15s;
|
||||
}
|
||||
.cuadro { font-size: 30px; padding: 28px 12px; }
|
||||
.bt { font-size: 20px; padding: 12px; }
|
||||
|
||||
.cuadro:hover, .cuadro:focus-visible,
|
||||
.bt:hover, .bt:focus-visible {
|
||||
.cuadro:hover, .cuadro:focus-visible {
|
||||
background: var(--acc);
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 4px 0 var(--fg);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.botonera {
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
gap: 16px;
|
||||
margin: 24px auto 0;
|
||||
}
|
||||
|
||||
.bt {
|
||||
--sombra: var(--fg);
|
||||
display: block;
|
||||
padding: 14px 12px;
|
||||
font-size: 20px;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
background: var(--bg);
|
||||
border: var(--bd);
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 6px 0 var(--sombra);
|
||||
transition: transform .12s ease-out, box-shadow .12s ease-out, border-color .12s, color .12s;
|
||||
}
|
||||
.bt:hover, .bt:focus-visible {
|
||||
--sombra: var(--acc);
|
||||
border-color: var(--acc);
|
||||
color: var(--acc);
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 9px 0 var(--sombra);
|
||||
outline: none;
|
||||
}
|
||||
.bt:active {
|
||||
transform: translateY(4px);
|
||||
box-shadow: 0 2px 0 var(--sombra);
|
||||
}
|
||||
|
||||
footer { margin: 64px 0 24px; border-top: var(--bd); padding-top: 12px; font-size: 14px; }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.cuadros { grid-template-columns: 1fr; }
|
||||
.cuadros li + li { border-left: 0; border-top: var(--bd); }
|
||||
.cuadro { min-height: 96px; }
|
||||
.botonera { grid-template-columns: 1fr 1fr; }
|
||||
.botonera li:first-child { grid-column: 1 / -1; }
|
||||
h2 { font-size: 32px; }
|
||||
|
|
@ -77,8 +113,7 @@ footer { margin: 64px 0 24px; border-top: var(--bd); padding-top: 12px; font-siz
|
|||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.cuadro, .bt { transition: none; }
|
||||
.cuadro:hover, .cuadro:focus-visible,
|
||||
.bt:hover, .bt:focus-visible { transform: none; }
|
||||
.bt:hover, .bt:focus-visible, .bt:active { transform: none; }
|
||||
}
|
||||
|
||||
.colectivos { list-style: none; margin: 0 0 16px; padding: 0; columns: 2 280px; column-gap: 32px; }
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@
|
|||
<link rel="preload" href="/fonts/anton.woff2" as="font" type="font/woff2" crossorigin>
|
||||
</head>
|
||||
<body>
|
||||
<header class="w">
|
||||
<h1>Acampada 26S</h1>
|
||||
<header>
|
||||
<h1 class="w">Acampada 26S</h1>
|
||||
<nav aria-label="Principal">
|
||||
<ul class="cuadros">
|
||||
<li><a class="cuadro" href="/c?type=feed">Directo</a></li>
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
<li><a class="cuadro" href="#organizate">Organízate</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav aria-label="Redes">
|
||||
<nav class="w" aria-label="Redes">
|
||||
<ul class="botonera">
|
||||
<li><a class="bt" href="/c">OASIS</a></li>
|
||||
<li><a class="bt" href="https://x.com/acampada26s" rel="noopener noreferrer">X</a></li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue