Paulo Gustavo Veiga 44e45fd726 Responsive
2020-11-29 19:11:09 -08:00

251 lines
4.0 KiB
CSS

@import url('https://fonts.googleapis.com/css?family=Montserrat:100,300,400,700,900');
* {
box-sizing: border-box;
}
body {
font: 1.2em Montserrat, arial, sans-serif;
margin: 0px;
}
.wrapper {
max-width: 1024px;
margin: auto;
}
.wrapper>* {
border-radius: 5px;
padding: 10px;
}
h1,
h2 {
font-stretch: normal;
font-style: normal;
line-height: 1.2;
letter-spacing: normal;
}
h1 {
font-size: 36px;
font-weight: bold;
font-stretch: normal;
font-style: normal;
line-height: normal;
letter-spacing: normal;
color: #f9a826;
}
a {
text-decoration: none;
transition: background-color 0.3s ease;
}
p {
font-size: 22px;
font-weight: 300;
font-stretch: normal;
font-style: normal;
line-height: 1.36;
letter-spacing: normal;
text-align: center;
color: #000000;
}
/* Header Section */
nav {
height: 90px;
position: sticky;
top: -16px;
z-index: 1;
-webkit-backface-visibility: hidden;
}
nav::before,
nav::after {
content: '';
display: block;
height: 16px;
position: sticky;
}
nav::before {
top: 58px;
box-shadow: 0 4px 10px 0 rgba(202, 34, 34, 0.05), 0 5px 30px 0 rgba(0, 0, 0, 0.05);
}
nav::after {
background: linear-gradient(white, rgba(255, 255, 255, 0.3));
top: 0;
z-index: 2;
}
nav>div {
background: white;
height: 74px;
padding: 10px;
position: sticky;
top: 0px;
margin-top: -16px;
z-index: 3;
}
nav a {
text-decoration: none;
border-radius: 9px;
padding: 10px 15px 10px 15px;
background-color: white;
color: #000000;
}
.header {
display: grid;
white-space: nowrap;
grid-template-columns: 150px 1fr 130px 130px;
}
.header-logo {
grid-column-start: 1;
margin-left: 50px;
margin-top: 5px;
}
.header-logo img {
height: 50px;
}
.header-logo a {
padding: 0px;
}
.nav-link a:hover,
.nav-signin a:hover {
background-color: rgb(241, 217, 181);
color: #ffa800;
}
.nav-signin {
grid-column-start: 4;
margin: 20px 0px;
}
.nav-signup {
grid-column-start: 3;
margin: 20px 0px;
}
.nav-center {
text-align: left;
grid-column-start: 2;
text-align: right;
font-weight: 500;
font-size: 15px;
padding: 20px 10px;
}
/* Footer */
.footer {
height: 130px;
margin-top: 50px;
padding: 30px 40px 10px 50px;
background-color: #f9a826;
display: grid;
}
.footer a {
font-size: 14px;
margin: 0px 10px;
color: white;
word-wrap: nowrap;
text-align: center;
}
.footer>svg {
grid-column: 1;
}
.footer div:nth-child(2) {
grid-column: 2;
}
.footer div:nth-child(3) {
grid-column: 3;
}
@media (min-width: 500px) {
.footer {
grid-template-columns: 0px 1fr 1fr 5px;
}
.footer>svg {
display: none;
visibility: hidden;
}
.footer div:nth-child(4) {
display: none;
visibility: hidden;
}
}
@media (min-width: 800px) {
.footer {
grid-template-columns: 200px 1fr 1fr 3fr;
}
.footer>svg {
display: inline-block;
visibility: visible;
}
.footer div:nth-child(4) {
grid-column: 4;
text-align: right;
display: inline-block;
visibility: visible;
}
}
/* Buttons */
.button-style1,
.button-style2 {
font-size: 16px;
font-weight: 500;
font-stretch: normal;
font-style: normal;
letter-spacing: normal;
white-space: nowrap;
}
.button-style1 a,
.button-style2 a {
padding: 10px 30px 10px 30px;
transition: background-color 0.3s ease;
border-radius: 9px;
}
.button-style1 a {
background-color: white;
border: solid 1px #f9a826;
color: #ffa800;
}
.button-style1 a:hover {
color: white;
background-color: rgba(255, 168, 0, 0.6);
border: 0px;
}
.button-style2 a {
background-color: white;
border: solid 1px rgba(255, 168, 0, 0.6);
color: #ffa800;
}
.button-style2 a:hover {
color: white;
border: solid 1px white;
background-color: rgba(243, 220, 174, 0.6);
}