Created
December 15, 2022 22:28
-
-
Save codigoconjuan/ff50bcf75030156d68449dbc4c112b91 to your computer and use it in GitHub Desktop.
CSS para el Blog en Astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gracias