Created
December 5, 2022 01:46
-
-
Save codewithleader/bb15ad66fb5dbb59c06ae78a82ab4ce9 to your computer and use it in GitHub Desktop.
Configuracion inicial de una hoja de estilos css
This file contains hidden or 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
:root { | |
--fuenteHeading: 'PT Sans', sans-serif; | |
--fuenteParrafos: 'Open Sans', sans-serif; | |
--primario: #784d3c; | |
--blanco: #ffffff; | |
--negro: #000000; | |
} | |
html { | |
box-sizing: border-box; | |
font-size: 62.5%; /* 1rem = 10px */ | |
} | |
*, | |
*:before, | |
*:after { | |
box-sizing: inherit; | |
} | |
body { | |
font-family: var(--fuenteParrafos); | |
font-size: 1.6rem; | |
line-height: 2; /* Interlineado */ | |
} | |
/* GLOBALES */ | |
.contenedor { | |
max-width: 120rem; | |
width: 90%; | |
margin: 0 auto; | |
} | |
a { | |
text-decoration: none; | |
} | |
h1, | |
h2, | |
h3, | |
h4 { | |
font-family: var(--fuenteHeading); | |
} | |
h1 { | |
font-size: 4.8rem; /* 48px */ | |
} | |
h2 { | |
font-size: 4rem; /* 40px */ | |
} | |
h3 { | |
font-size: 3.2rem; /* 32px */ | |
} | |
h4 { | |
font-size: 2.8rem; /* 28px */ | |
} | |
img { | |
max-width: 100%; | |
} | |
/* UTILIDADES */ | |
.no-margin { | |
margin: 0; | |
} | |
.no-padding { | |
padding: 0; | |
} | |
.centrar-texto { | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment