Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Last active March 1, 2024 19:39
Show Gist options
  • Save codigoconjuan/e522593d0653bd384b694fe8f616395c to your computer and use it in GitHub Desktop.
Save codigoconjuan/e522593d0653bd384b694fe8f616395c to your computer and use it in GitHub Desktop.
CSS para Astro
@import url('https://necolas.github.io/normalize.css/8.0.1/normalize.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap');
:root {
--primary: #e99401;
--black: #262626;
--white: #FFF;
--fuente-principal: 'Outfit', sans-serif;
}
html {
font-size: 62.5%;
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
font-size: 2rem;
font-family: var(--fuente-principal);
line-height: 1.5;
}
img {
max-width: 100%;
height: auto;
}
[class*="contenedor"],
main {
width: min(95%, 120rem);
margin: 3rem auto;
}
[class*="heading"] {
font-size: 4rem;
text-align: center;
font-weight: 900;
color: var(--primary);
margin: 5rem 0;
}
.error,
.error-enlace {
font-size: 2.4rem;
text-align: center;
margin-top: 5rem;
}
.error-enlace {
font-size: 1.8rem;
display: block;
text-decoration: none;
color: var(--primary);
}
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 4rem;
}
@media (min-width: 768px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 992px) {
.grid {
grid-template-columns: repeat(3, 1fr);
}
}
@Nico235711
Copy link

gracias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment