Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Created December 15, 2022 22:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codigoconjuan/ff50bcf75030156d68449dbc4c112b91 to your computer and use it in GitHub Desktop.
Save codigoconjuan/ff50bcf75030156d68449dbc4c112b91 to your computer and use it in GitHub Desktop.
CSS para el Blog en Astro
.post {
max-width: 80rem;
margin: 0 auto;
}
.contenido {
padding: 1.5rem;
}
.contenido h3 {
font-weight: 900;
font-size: 2.8rem;
margin: 0;
}
.fecha {
font-size: 1.6rem;
color: var(--primary);
}
.resumen {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
overflow: hidden;
}
.texto {
white-space: pre-wrap;
}
.mt-3 {
margin-top: 3rem;
}
.enlace {
margin-top: 2rem;
display: block;
background-color: var(--black);
color: var(--white);
text-decoration: none;
padding: 1rem;
text-align: center;
text-transform: uppercase;
font-size: 1.4rem;
font-weight: 700;
transition-property: background-color;
transition-duration: 300ms;
}
.enlace:hover {
background-color: var(--primary);
}
@Nico235711
Copy link

gracias

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