Skip to content

Instantly share code, notes, and snippets.

@JCervantesB
Created August 24, 2022 14:44
Show Gist options
  • Save JCervantesB/50eb7801e5c4acb2877c60891c0a0c83 to your computer and use it in GitHub Desktop.
Save JCervantesB/50eb7801e5c4acb2877c60891c0a0c83 to your computer and use it in GitHub Desktop.
Style.css de Aitor
: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%;
}
*, *:before, *:after{
box-sizing: inherit;
}
body{
font-family: var(--fuenteParrafos);
font-size: 1.8rem;
line-height: 2rem;
}
/*GLOBALES*/
.contenedor{
max-width: 120rem;
width: 90%;
margin: 0 auto;
}
*{
text-decoration: none;
color: var(--blanco);
}
h1, h2, h3{
font-family: var(--fuenteHeading);
line-height: 1.2;
}
h1{
font-size: 4.8rem;
}
h2{
font-size: 3.8rem;
}
h3{
font-size: 3.2rem;
}
h4{
font-size: 2.8rem;
}
img{
max-width: 100%;
}
/*UTILIDADES*/
.no-margin{
margin: 0;
}
.no-padding{
padding: 0;
}
.centrar-texto{
text-align: center;
}
/*HEADER*/
.header{
background-image: url(../img/banner.jpg);
height: 60rem;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
.header__texto{
color:var(--blanco);
text-align: center;
margin-top: 5rem;
line-height: 2;
}
@media (min-width: 768px){
.header__texto{
margin-top: 15rem;
}
}
/*TITULO Y NAVEGACION*/
.navegacion{
display: flex;
flex-direction: column;
align-items: center;
padding-top: 4rem;
}
.barra {
padding-top: 4rem;
}
@media (min-width: 768px){
.barra{
display: flex;
justify-content: space-between;
align-items: center;
}
.navegacion{
flex-direction: row;
justify-content: space-between;
padding-top: 0;
}
}
.logo{
color: var(--blanco);
}
.logo__nombre{
font-weight: 400;
}
.logo__bold{
font-weight: 700;
}
.navegacion__enlace{
display: block;
padding-top: .8rem;
font-size: 2rem;
margin-left: 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment