rmcg.dev/projects/FrontendMentor/newbie/huddle-landing-page-with-si.../css/style.css

232 lines
4.6 KiB
CSS
Raw Normal View History

@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Poppins:wght@400;700&display=swap');
2020-09-02 15:59:54 +02:00
:root {
font-size: 16px;
--site-color: hsl(257, 40%, 49%);
}
body {
2020-09-02 15:59:54 +02:00
background-color: var(--site-color);
background-image: url("../images/bg-desktop.svg");
2020-09-02 19:50:17 +02:00
background-repeat: no-repeat;
/*background-size: contain; */
color: white;
margin: 0;
/* display: flex; */
2020-09-02 17:32:00 +02:00
font-family: 'Open Sans', sans-serif;
}
h1 {
font-family: 'Poppins', sans-serif;
2020-09-02 15:59:54 +02:00
font-weight: 400; /* 400 & 40 are very close*/
font-size: 40px;
}
.logo {
width: 215px;
2020-09-02 15:59:54 +02:00
margin: 3.75% 4.86% 0rem; /* 3.75% 4.375rem 0rem*/
}
.middleSection {
display: flex;
/* margin: auto; */
2020-09-02 15:59:54 +02:00
margin: 5.0625rem 0rem 0rem 4.55rem;
width: 98%;
max-width: 1440px;
}
.illustrations {
width: 55%;
padding: 0;
}
.illustration {
width: 100%;
}
.siteBlurb {
margin: 3rem 4rem 2rem 3.325rem;
width: 45%;
2020-09-02 15:59:54 +02:00
/* line-height: 2rem;
font-weight: 400; */
}
.siteBlurb h1 {
line-height: 1.5;
margin-right: 2em;
margin-bottom: 0;
letter-spacing: 1px;
2020-09-02 15:59:54 +02:00
}
.siteBlurb p {
margin-top: 1rem;
margin-right: 4rem;
2020-09-02 15:59:54 +02:00
margin-bottom: 1.5625rem;
line-height: 1.7rem;
font-size: 18px;
font-weight: 400;
}
2020-09-02 15:59:54 +02:00
.registerButton {
background-color: white;
color: var(--site-color);
font-size: 19px;
border: none;
padding: 18px 64px;
2020-09-02 15:59:54 +02:00
text-align: center;
text-decoration: none;
display: inline-block;
margin: 0;
2020-09-02 15:59:54 +02:00
cursor: pointer;
border-radius: 32px;
box-shadow: 3px 3px 10px 1px rgba(0, 0, 0, 0.4); /* 10px 5px 10px*/
}
.socialButtonsSection {
display: block;
text-align: right;
2020-09-02 15:59:54 +02:00
margin-right: 5.1875rem;
}
.socialButtonsSection i {
2020-09-02 15:59:54 +02:00
padding: 0.5rem;
margin-left: 0.5rem;
margin-top: 0.9375rem;
margin-right: 0;
}
.circleIcon {
margin: 0;
2020-09-02 15:59:54 +02:00
color: white;
background: transparent;
2020-09-02 15:59:54 +02:00
border: 1.75px solid #fff;
width: 20px;
height: 20px;
border-radius: 50%;
text-align: center;
2020-09-02 15:59:54 +02:00
line-height: 20px;
vertical-align: middle;
2020-09-02 15:59:54 +02:00
font-size: 19px;
}
2020-09-02 15:59:54 +02:00
.circleIcon:hover {
background: rgb(174, 6, 208);
2020-09-02 15:59:54 +02:00
}
.attribution { margin-top: 1rem; font-size: 11px; text-align: center; }
.attribution a { color: hsl(63, 100%, 65%); }
/* Formating for Mobile devices. Sample to match is 375z800 */
@media screen and (max-width: 1100px) {
2020-09-02 17:32:00 +02:00
body {
background-image: url("../images/bg-mobile.svg");
background-repeat: no-repeat;
2020-09-02 17:32:00 +02:00
/* background-size: contain; */
color: white;
margin: 0;
2020-09-02 18:47:32 +02:00
padding: 0;
2020-09-02 17:32:00 +02:00
}
.logo {
width: 128px;
margin: 8.5325% 35px 0rem; /* 3.75% 4.375rem 0rem*/
}
.illustrations {
/* margin: 3.5rem 2.3125rem 1rem; */
margin: auto;
margin-top: 3.5rem;
width: 90%;
2020-09-02 17:32:00 +02:00
}
.illustration {
max-width: 100%;
max-height: 100vh;
height: auto;
}
.middleSection {
margin: 0;
2020-09-02 17:32:00 +02:00
display: flex;
flex-direction: column;
width: 100%
2020-09-02 18:27:58 +02:00
2020-09-02 17:32:00 +02:00
}
.siteBlurb {
margin:0;
margin-top: 0.5rem;
2020-09-02 17:32:00 +02:00
text-align: center;
width: 100%;
/* line-height: 2rem;
font-weight: 400; */
2020-09-02 17:32:00 +02:00
}
.siteBlurb h1 {
2020-09-02 18:27:58 +02:00
margin: 1.625rem 2rem 0rem 2rem;
font-weight: 400;
2020-09-02 17:32:00 +02:00
font-size: 1.5rem;
line-height: 1.5;
2020-09-02 17:32:00 +02:00
}
.siteBlurb p {
margin:0.9rem 2.25rem;
2020-09-02 18:27:58 +02:00
font-size: 1rem;
line-height: 1.5rem;
2020-09-02 17:32:00 +02:00
}
.registerButton {
2020-09-02 18:27:58 +02:00
margin-top: 0.875rem;
2020-09-02 17:32:00 +02:00
background-color: white;
color: var(--site-color);
2020-09-02 18:47:32 +02:00
font-size: 13px;
letter-spacing: 1px;
2020-09-02 17:32:00 +02:00
border: none;
2020-09-02 18:47:32 +02:00
padding: 12px 72px;
2020-09-02 17:32:00 +02:00
text-align: center;
text-decoration: none;
display: inline-block;
/* margin: 4px 2px; */
cursor: pointer;
border-radius: 32px;
box-shadow: 3px 3px 10px 1px rgba(0, 0, 0, 0.4); /* 10px 5px 10px*/
}
.socialButtonsSection {
/* display: block; */
text-align: center;
margin:0;
2020-09-02 18:27:58 +02:00
margin-top: 3rem;
2020-09-02 17:32:00 +02:00
}
.socialButtonsSection i {
/* padding: 0.5rem; */
2020-09-02 18:47:32 +02:00
margin-left: 0.375rem;
2020-09-02 17:32:00 +02:00
margin-top: 0.9375rem;
margin-right: 0;
2020-09-02 17:32:00 +02:00
}
.circleIcon {
margin: 0;
2020-09-02 18:27:58 +02:00
padding: 0;
2020-09-02 17:32:00 +02:00
color: white;
background: transparent;
2020-09-02 18:27:58 +02:00
border: 1.5px solid #fff;
width: 13px;
height: 13px;
2020-09-02 17:32:00 +02:00
border-radius: 50%;
text-align: center;
line-height: 13px;
2020-09-02 18:27:58 +02:00
/* vertical-align: middle; */
align-content: center;
font-size: 14px;
}
2020-09-02 18:27:58 +02:00
.attribution { margin: 10px 0;}
}