Problemas para deixar site responsivo css media query
01/10/2020
0
Olá,estou com muitos problemas para deixar meu site responsivo, no consigo ver onde estou errando
meu repositório
https://github.com/augustowhitaker
[/code]
/*geral*/
html{
font-family: 'Open sans', sans-serif ;
color:#373a3c;
}
a{
transition: 5s;
}
/*sidebar*/
#sidebar{
position: fixed;
height: 100%;
width: 300px;
background-color: #635c81;
padding-top: 40px;
}
#sidebar h1{
color: #fff;
font-size: 32px;
text-align: center;
margin-top: 20px;
margin-bottom: 30px;
}
#sidebar a{
color: #fff;
text-decoration: none;
font-size: 16px;
}
#sidebar a:hover{
color: #d1df0c;
}
#sidebar li{
padding: 20px;
}
.sidebar-container{
position: relative;
margin-left: auto;
margin-right: auto;
width: 200px;
}
.logo-gato{
width: 60px;
height: 60px;
display: block;
position: relative;
margin-left: auto;
margin-right: auto;
}
/*conteudo*/
.content{
position: absolute;
left: 300px;
width: calc(100% - 300px);
}
.content h1, .content h2{
color: #006599;
margin-bottom: 30px;
}
.content h1{
font-size: 48px;
}
.content h2{
font-size: 35px;
}
section{
padding-left: 50px ;
}
/*bem vindo*/
#sessao-bemvindo{
padding-left: 0;
}
.sessao-bemvindo-content{
padding-left: 50px;
}
#sessao-bemvindo .banner{
height: 500px;
background-image: url('../imagens/2.png');
background-position: center;
background-size: 100%;
background-repeat: no-repeat;
}
#sessao-bemvindo h1{
margin-top: 70px;
}
#sessao-bemvindo::after, #sessao-sobre::after{
content: "";
display: block;
clear: both;
margin-bottom: 100px;
}
.sessao-minibanner{
width: 300px;
height: 400px;
background-image:url(../imagens/10.jpg) ;
background-position: center;
background-size: cover;
float: left;
}
.sessao-descricao{
position: absolute;
left: 370px;
padding-right: 30px;
}
.sessao-descricao p{
line-height: 2;
font-size: 16px;
margin-bottom: 30px;
margin-left: 25px;
}
.sessao-bemvindo-btn, form input[type=submit]{
background-color: #006599 ;
color: #fff;
text-decoration: none;
padding: 20px 40px;
transition: .5s;
display: block;
width: 100px;
text-align: center;
border: none;
cursor: pointer;
margin-left: 30px;
}
.sessao-bemvindo-btn:hover, form input[type=submit]:hover {
background-color: #2790c6;
}
/*sessao sobre*/
#sessao-sobre .sessao-minibanner{
float: right;
margin-right: 50px;
background-image: url(../imagens/5.jpg);
}
#sessao-sobre .sessao-descricao {
position: absolute;
left: 25px;
width: calc(100% - 400px);
}
/* galerias*/
.banner-galeria {
background-position: center;
background-size: cover;
display: inline-block;
height: 200px;
}
#sessao-hotel, #sessao-banho, #sessao-estrutura{
padding-right: 50px;
margin-bottom: 50px;
}
.hotel-imgs{
width: 18.8%;
margin-left: .5%;
margin-right: .5%;
}
#img1{
background-image: url(../imagens/7.jpg);
margin-left: 0;
}
#img2{
background-image: url(../imagens/6.jpg);
}
#img3{
background-image: url(../imagens/8.jpg);
}
#img4{
background-image: url(../imagens/10.jpg);
margin-right: 0;
}
.banho-imgs{
width: 32.3%;
margin-left: .5%;
margin-right: .5%;
}
#img5{
background-image: url(../imagens/1.jpg);
margin-left: 0;
}
#img6{
background-image: url(../imagens/2.png);
}
#img7{
background-image: url(../imagens/3.jpg);
margin-right: 0;
}
.estrutura-imgs{
width: 23.9%;
margin-left: .5%;
margin-right: .5%;
}
#img8{
background-image: url(../imagens/6.jpg);
margin-left: 0;
}
#img9{
background-image: url(../imagens/9.jpg);
}
#img10{
background-image: url(../imagens/7.jpg);
margin-right: 0;
}
/*contato*/
#form-contato{
width: 500px;
}
#form-contato input[type=text], #form-contato input[type=email], #form-contato textarea{
display: block;
border: 1px solid#006599;
padding: 10px;
margin-bottom: 20px;
width: 100%;
font-size: 16px;
font-family: 'Open sans', sans-serif;
}
#form-contato input[type=text]:focus, #form-contato input[type=email]:focus, #form-contato textarea:focus{
border-color: #2790c6 ;
}
#form-contato textarea{
height: 150px;
}
#form-contato ::placeholder{
color: #2790c6;
}
#form-contato input[type=submit]{
margin-left: 0;
font-size: 16px;
width: 180px;
}
/*footer*/
footer{
height: 100px;
padding-top: 150px;
color: #006599;
}
footer p{
text-align: center;
font-weight: bold;
}
/*media query*/
@media screen and (max-width: 600px){
.sidebar-container, .content, .content h1, .content h2, section, .sessao-bemvindo-content, .banner, .sessao-minibanner, .sessao-descricao, .sessao-bemvindo-btn, form input, .banner-galeria {
width: 100%;
background-color: rgb(24, 128, 55);
display: inline-block;
}
}
@media screen and (max-width: 900px){
.sidebar-container, .content, .content h1, .content h2, section, .sessao-bemvindo-content, .banner, .sessao-minibanner, .sessao-descricao, .sessao-bemvindo-btn, form input, .banner-galeria {
width: 100%;
background-color: rgb(231, 32, 5);
display: inline-block;
}
}
@media screen and (max-width: 480px){
.sidebar-container, .content, .content h1, .content h2, section, .sessao-bemvindo-content, .banner, .sessao-minibanner, .sessao-descricao, .sessao-bemvindo-btn, form input, .banner-galeria {
width: 100%;
background-color: rgb(72, 0, 241);
display: inline-block;
}
}
meu repositório
https://github.com/augustowhitaker
[code=xml]
/*geral*/
html{
font-family: 'Open sans', sans-serif ;
color:#373a3c;
}
a{
transition: 5s;
}
/*sidebar*/
#sidebar{
position: fixed;
height: 100%;
width: 300px;
background-color: #635c81;
padding-top: 40px;
}
#sidebar h1{
color: #fff;
font-size: 32px;
text-align: center;
margin-top: 20px;
margin-bottom: 30px;
}
#sidebar a{
color: #fff;
text-decoration: none;
font-size: 16px;
}
#sidebar a:hover{
color: #d1df0c;
}
#sidebar li{
padding: 20px;
}
.sidebar-container{
position: relative;
margin-left: auto;
margin-right: auto;
width: 200px;
}
.logo-gato{
width: 60px;
height: 60px;
display: block;
position: relative;
margin-left: auto;
margin-right: auto;
}
/*conteudo*/
.content{
position: absolute;
left: 300px;
width: calc(100% - 300px);
}
.content h1, .content h2{
color: #006599;
margin-bottom: 30px;
}
.content h1{
font-size: 48px;
}
.content h2{
font-size: 35px;
}
section{
padding-left: 50px ;
}
/*bem vindo*/
#sessao-bemvindo{
padding-left: 0;
}
.sessao-bemvindo-content{
padding-left: 50px;
}
#sessao-bemvindo .banner{
height: 500px;
background-image: url('../imagens/2.png');
background-position: center;
background-size: 100%;
background-repeat: no-repeat;
}
#sessao-bemvindo h1{
margin-top: 70px;
}
#sessao-bemvindo::after, #sessao-sobre::after{
content: "";
display: block;
clear: both;
margin-bottom: 100px;
}
.sessao-minibanner{
width: 300px;
height: 400px;
background-image:url(../imagens/10.jpg) ;
background-position: center;
background-size: cover;
float: left;
}
.sessao-descricao{
position: absolute;
left: 370px;
padding-right: 30px;
}
.sessao-descricao p{
line-height: 2;
font-size: 16px;
margin-bottom: 30px;
margin-left: 25px;
}
.sessao-bemvindo-btn, form input[type=submit]{
background-color: #006599 ;
color: #fff;
text-decoration: none;
padding: 20px 40px;
transition: .5s;
display: block;
width: 100px;
text-align: center;
border: none;
cursor: pointer;
margin-left: 30px;
}
.sessao-bemvindo-btn:hover, form input[type=submit]:hover {
background-color: #2790c6;
}
/*sessao sobre*/
#sessao-sobre .sessao-minibanner{
float: right;
margin-right: 50px;
background-image: url(../imagens/5.jpg);
}
#sessao-sobre .sessao-descricao {
position: absolute;
left: 25px;
width: calc(100% - 400px);
}
/* galerias*/
.banner-galeria {
background-position: center;
background-size: cover;
display: inline-block;
height: 200px;
}
#sessao-hotel, #sessao-banho, #sessao-estrutura{
padding-right: 50px;
margin-bottom: 50px;
}
.hotel-imgs{
width: 18.8%;
margin-left: .5%;
margin-right: .5%;
}
#img1{
background-image: url(../imagens/7.jpg);
margin-left: 0;
}
#img2{
background-image: url(../imagens/6.jpg);
}
#img3{
background-image: url(../imagens/8.jpg);
}
#img4{
background-image: url(../imagens/10.jpg);
margin-right: 0;
}
.banho-imgs{
width: 32.3%;
margin-left: .5%;
margin-right: .5%;
}
#img5{
background-image: url(../imagens/1.jpg);
margin-left: 0;
}
#img6{
background-image: url(../imagens/2.png);
}
#img7{
background-image: url(../imagens/3.jpg);
margin-right: 0;
}
.estrutura-imgs{
width: 23.9%;
margin-left: .5%;
margin-right: .5%;
}
#img8{
background-image: url(../imagens/6.jpg);
margin-left: 0;
}
#img9{
background-image: url(../imagens/9.jpg);
}
#img10{
background-image: url(../imagens/7.jpg);
margin-right: 0;
}
/*contato*/
#form-contato{
width: 500px;
}
#form-contato input[type=text], #form-contato input[type=email], #form-contato textarea{
display: block;
border: 1px solid#006599;
padding: 10px;
margin-bottom: 20px;
width: 100%;
font-size: 16px;
font-family: 'Open sans', sans-serif;
}
#form-contato input[type=text]:focus, #form-contato input[type=email]:focus, #form-contato textarea:focus{
border-color: #2790c6 ;
}
#form-contato textarea{
height: 150px;
}
#form-contato ::placeholder{
color: #2790c6;
}
#form-contato input[type=submit]{
margin-left: 0;
font-size: 16px;
width: 180px;
}
/*footer*/
footer{
height: 100px;
padding-top: 150px;
color: #006599;
}
footer p{
text-align: center;
font-weight: bold;
}
/*media query*/
@media screen and (max-width: 600px){
.sidebar-container, .content, .content h1, .content h2, section, .sessao-bemvindo-content, .banner, .sessao-minibanner, .sessao-descricao, .sessao-bemvindo-btn, form input, .banner-galeria {
width: 100%;
background-color: rgb(24, 128, 55);
display: inline-block;
}
}
@media screen and (max-width: 900px){
.sidebar-container, .content, .content h1, .content h2, section, .sessao-bemvindo-content, .banner, .sessao-minibanner, .sessao-descricao, .sessao-bemvindo-btn, form input, .banner-galeria {
width: 100%;
background-color: rgb(231, 32, 5);
display: inline-block;
}
}
@media screen and (max-width: 480px){
.sidebar-container, .content, .content h1, .content h2, section, .sessao-bemvindo-content, .banner, .sessao-minibanner, .sessao-descricao, .sessao-bemvindo-btn, form input, .banner-galeria {
width: 100%;
background-color: rgb(72, 0, 241);
display: inline-block;
}
}
Augusto Whitaker
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)