This repository has been archived on 2023-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
old_tarasis.net/FrontendMentor/newbie/ping-coming-soon-page-master/css/style.css

321 lines
5.6 KiB
CSS
Raw Permalink Normal View History

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;600;700&display=swap');
:root {
/* primary */
2020-09-07 15:35:50 +02:00
font-size: 20px;
--site-blue: hsl(223, 87%, 63%);
/* secondary */
--site-paleBlue: hsl(223, 100%, 88%);
--site-lightRed: hsl(354, 100%, 66%);
/* neutral */
--site-gray: hsl(0, 0%, 59%);
--site-veryDarkBlue: hsl(209, 33%, 12%);
}
* {
2020-09-07 15:35:50 +02:00
margin: 0 auto;
padding: 0;
}
body {
font-family: 'Libre Franklin', sans-serif;
2020-09-11 22:47:09 +02:00
min-width: 375px;
2020-09-07 15:35:50 +02:00
}
.flexContainer {
display: flex;
flex-direction: column;
align-items: center;
align-content: center;
2020-09-11 22:47:09 +02:00
height:100vh;
2020-09-07 15:35:50 +02:00
}
.logoSection {
2020-09-11 22:47:09 +02:00
margin-top: 4.2rem;
2020-09-07 15:35:50 +02:00
display: flex;
justify-content: center;
}
.logoSection img {
width: 66%;
}
.titleSection {
margin-top: 1.95rem;
2020-09-07 15:35:50 +02:00
}
.titleSection p {
text-align: center;
}
.titleSection .line1 {
font-size: 1.1rem;
2020-09-07 15:35:50 +02:00
font-weight: 300;
color: var(--site-gray);
}
.line1 b {
color: black;
font-weight: 600;
}
.titleSection .line2 {
margin-top: 0.9rem;
2020-09-07 15:35:50 +02:00
font-size: 12px;
color: var(--site-gray);
}
.formSection {
margin: 1.6rem 0 0 0;
text-align: center;
}
.formSection form {
display: flex;
flex-direction: column;
width: 83%;
}
.formSection input[type=text] {
2020-09-07 15:35:50 +02:00
font-family: 'Libre Franklin', sans-serif;
width: calc(100% - 47px); /* shrink width by padding left+right + border */
2020-09-07 15:35:50 +02:00
2020-09-08 20:28:04 +02:00
color: black;
2020-09-07 15:35:50 +02:00
font-size: 12px;
font-weight: 300;
border: 1px solid var(--site-paleBlue);
padding-top: 0.55rem;
padding-bottom: 0.55rem;
padding-left: 25px;
2020-09-07 15:35:50 +02:00
padding-right: 20px;
text-align: justify;
text-decoration: none;
border-radius: 32px;
}
input[type="text"].errorBorder {
border-color: var(--site-lightRed);
}
2020-09-08 20:28:04 +02:00
.formSection input::placeholder{
padding-left: 8px;
color: var(--site-paleBlue);;
}
2020-09-07 15:35:50 +02:00
.formSection button {
font-family: 'Libre Franklin', sans-serif;
width: 100%;
background-color: var(--site-blue);
color: white;
font-size: 12px;
font-weight: 300;
border: none;
2020-09-08 20:28:04 +02:00
padding: 0.625rem 0;
2020-09-07 15:35:50 +02:00
text-align: center;
text-decoration: none;
cursor: pointer;
border-radius: 32px;
box-shadow: 0px 3px 10px 1px var(--site-paleBlue);
}
.notifyButton.notifyError {
transform: translate(0, 1.6rem);
}
.errorSection {
height: 0;
padding: 0;
transform: translate(0, 0.35rem);
}
.errorMessage {
font-style: italic;
font-size: 10px;
opacity: 0;
color: var(--site-lightRed);
}
2020-09-07 15:35:50 +02:00
.errorMessage.visible {
opacity: 1;
2020-09-07 15:35:50 +02:00
}
.imageSection {
2020-09-08 20:28:04 +02:00
margin-top: 3.4rem;
2020-09-07 15:35:50 +02:00
text-align: center;
2020-09-07 15:47:51 +02:00
width: 95%;
2020-09-07 15:35:50 +02:00
}
.imageSection img {
width: 100%;
}
footer {
2020-09-11 22:47:09 +02:00
margin-top: auto;
text-align: center;
2020-09-11 22:47:09 +02:00
/* width: 100vw; */
}
.socialButtonsSection {
2020-09-11 22:47:09 +02:00
margin-bottom: 1.25rem;
font-size: 14px;
display: flex;
2020-09-11 22:47:09 +02:00
justify-content: space-between;
width: 45%;
}
2020-09-07 15:35:50 +02:00
.socialButtonsSection a {
color: var(--site-blue);
width: 100%;
height: 100%;
}
.socialButtonsSection .icon-background {
color: var(--site-blue);
padding:8px;
border-radius: 50%;
width: 15px;
height: 15px;
text-align: center;
line-height: 15px;
vertical-align: middle;
border: 1px solid rgba(0, 0, 0, 0.1);
2020-09-07 15:35:50 +02:00
}
.icon-background:hover {
color: white;
background-color: var(--site-blue);
}
2020-09-07 15:35:50 +02:00
.copyright {
color: var(--site-gray);
font-size: 10px;
2020-09-07 15:35:50 +02:00
text-align: center;
2020-09-08 20:28:04 +02:00
margin-bottom: 1.15rem;
}
/* Feel free to remove these styles or customise in your own stylesheet 👍 */
.attribution { font-size: 11px; text-align: center; }
2020-09-07 15:35:50 +02:00
.attribution a i { color: hsl(228, 45%, 44%); }
2020-09-11 22:47:09 +02:00
@media screen and (max-width: 600px) {
2020-09-07 15:35:50 +02:00
.flexContainer {
width: 90vw;
2020-09-11 22:47:09 +02:00
}
.formSection button {
margin-top: 0.55rem;
}
}
@media screen and (min-width: 600px) and (max-width: 1050px) {
.flexContainer {
width: 75vw;
2020-09-07 15:35:50 +02:00
}
.formSection button {
margin-top: 0.55rem;
2020-09-07 15:35:50 +02:00
}
}
2020-09-11 22:47:09 +02:00
@media screen and (min-width: 1050px) {
2020-09-07 15:35:50 +02:00
.flexContainer {
width: 50vw;
2020-09-11 22:47:09 +02:00
}
2020-09-09 00:36:06 +02:00
2020-09-11 22:47:09 +02:00
.logoSection {
2020-09-09 00:36:06 +02:00
margin-top: 4.3rem;
}
.logoSection img {
width: 100%;
}
.titleSection {
margin-top: 2.5rem;
}
2020-09-09 00:36:06 +02:00
.titleSection .line1 {
font-weight: 300;
letter-spacing: 1.3px;
font-size: 45px;
}
2020-09-09 00:36:06 +02:00
.line1 b {
font-weight: 700;
}
2020-09-09 00:36:06 +02:00
.titleSection .line2 {
margin-top: 0.95rem;
font-size: 20px;
font-weight: 600;
}
.formSection {
margin: 2rem 0 0 0;
2020-09-07 15:35:50 +02:00
}
.formSection form {
flex-direction: row;
2020-09-09 00:36:06 +02:00
width: 88%;
2020-09-07 15:35:50 +02:00
}
.formSection input[type=text] {
2020-09-09 00:36:06 +02:00
flex-basis: 66%;
font-size: 17px;
font-weight: 300;
padding-top: 0.85rem;
padding-bottom: 0.85rem;
order: 2;
2020-09-07 15:35:50 +02:00
}
2020-09-07 15:35:50 +02:00
.formSection button {
margin-left: 1rem;
2020-09-09 00:36:06 +02:00
flex-basis: 34%;
2020-09-07 15:47:51 +02:00
2020-09-09 00:36:06 +02:00
font-size: 17px;
font-weight: 300;
padding: 0.85rem 0;
box-shadow: 0px 3px 10px 1px var(--site-paleBlue);
order: 3;
2020-09-09 00:36:06 +02:00
}
.notifyButton.notifyError {
transform: none;
}
.errorSection {
order: 1;
height: 0;
width: 0;
padding: 0;
margin: 0;
transform: translate(0, 3.2rem);
}
.errorMessage {
font-size: 13px;
width: 16rem;
height: 2rem;
overflow: auto;
text-align: left;
padding-left: 1.25rem;
}
2020-09-07 15:47:51 +02:00
.imageSection {
2020-09-09 00:36:06 +02:00
margin-top: 4.3rem;
2020-09-07 15:47:51 +02:00
width: 89%;
}
2020-09-09 00:36:06 +02:00
.copyright {
font-size: 12px;
margin-bottom: 1.75rem;
}
}