Skip to content

Instantly share code, notes, and snippets.

@foo4u
Created May 4, 2020 17:24
Show Gist options
  • Save foo4u/400563b878ce7e5a49b2abe926e5f206 to your computer and use it in GitHub Desktop.
Save foo4u/400563b878ce7e5a49b2abe926e5f206 to your computer and use it in GitHub Desktop.
Login Style
/* Global */
* {
padding: 0;
margin: 0;
border: 0;
outline: 0;
}
body {
font-family: Montserrat, sans-serif;
font-weight: 300;
font-size: 16px;
line-height: 1.6;
color: #4c4c4c;
overflow-x: hidden;
}
h1 {
font-weight: 500;
}
h2 {
font-weight: 500;
}
.o-button {
display: table;
margin-left: auto;
margin-right: auto;
width: auto;
}
.o-button,
button,
input[type="submit"] {
outline: 0;
border: 0;
padding: 18px 40px;
border-radius: 10px;
background-color: #56189e;
color: white;
font-weight: 700;
font-size: 14px;
letter-spacing: 0.05em;
box-shadow: 0 0 25px rgba(0,0,0,0.2);
cursor: pointer;
transition: all 0.25s ease;
text-decoration: none;
text-transform: uppercase;
}
.o-button:hover,
button:hover,
input[type="submit"]:hover {
background-color: #371065;
}
input[type="email"],
input[type="password"],
input[type="text"] {
background-color: white;
box-shadow: 0 0 25px rgba(0,0,0,0.2);
font-size: 16px;
padding: 15px 20px;
border-radius: 10px;
border: 1px solid transparent;
}
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
border-color: #4c4c4c;
}
.u-spacing > * + * {
margin-top: 20px;
}
.u-spacing--double > * + * {
margin-top: 40px;
}
.o-logos {
display: flex;
flex-flow: row;
}
/* Objects */
.o-logo {
display: block;
margin: 18px 18px;
max-height: 75px;
align-content: center;
text-align: center;
flex-grow: 0;
flex-shrink: 1;
flex-basis: auto;
}
.o-copyright {
margin-top: 20px;
font-size: 12px;
}
.o-or-divider {
position: relative;
display: block;
margin-top: 26px;
text-transform: uppercase;
letter-spacing: 0.06em;
font-size: 14px;
}
.o-or-divider::before,
.o-or-divider::after {
content: "";
height: 1px;
background-color: #4c4c4c;
width: calc(50% - 30px);
display: block;
position: absolute;
top: 50%;
z-index: 0;
transform: translateY(-50%);
opacity: 0.6;
}
.o-or-divider::before {
left: 0;
}
.o-or-divider::after {
right: 0;
}
.o-button__google {
margin-top: 27px;
background-color: white;
border: 2px solid #56189e;
color: #56189e;
position: relative;
width: 100%;
}
.o-button__google:hover {
background-color: white;
}
.o-button__google .o-icon {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 15px;
}
.o-icon {
display: flex;
justify-content: center;
align-items: center;
}
.o-icon svg {
width: 20px;
height: 20px;
}
.o-logo--white {
display: inline-block;
padding-right: 22px;
border-right: 1px solid #fff;
}
.o-logo-twb {
display: inline-block;
padding-left: 18px;
}
.o-headline {
margin-top: 15px;
margin-bottom: 15px;
font-family: Montserrat, sans-serif;
font-weight: 800;
font-size: 32px;
line-height: 42px;
}
@media (min-width: 560px) {
.o-headline {
font-size: 64px;
line-height: 64px;
}
}
@media (min-width: 1100px) {
.o-headline {
margin-top: 30px;
}
}
.o-headline span {
color: #FB72B6;
}
.o-dek {
max-width: 370px;
margin-top: 0;
font-size: 18px;
line-height: 28px;
}
@media (min-width: 560px ) {
.c-header__body svg {
margin-top: 30px;
}
.o-dek {
padding-top: 30px;
max-width: 450px;
}
}
@media (min-width: 1100px) {
.c-header__body svg {
margin-top: 0;
}
.o-dek {
margin-top: 22px;
padding-top: 0;
font-size: 20px;
}
}
/* Components */
.c-form {
display: flex;
flex-direction: column;
}
@media (min-width: 1100px) {
.c-form {
margin-top: 23px;
}
}
.c-header {
padding: 25px;
padding-top: 50px;
}
@media (min-width: 1100px) {
.c-header {
padding: 25px;
padding-top: 30px;
}
}
.c-header__button {
margin-left: 0;
margin-top: 20px;
width: 235px;
text-align: center;
font-size: 16px;
font-weight: bold;
background-color: #fff;
color: #56189e;
padding-top: 16px;
padding-bottom: 16px;
}
@media (min-width: 414px) {
.c-header__button {
width: 290px;
}
}
@media (min-width: 560px) {
.c-header__button {
margin-top: 40px;
width: 289px;
}
}
.c-header__button:hover {
color: #fff;
background-color: #FB72B6;
}
@media (min-width: 1100px) {
.c-header {
padding: 72px 60px 40px 90px;
}
}
.c-header--inner {
max-width: 600px;
}
.o-footnote {
padding: 25px;
}
@media (min-width: 1100px) {
.o-footnote {
padding: 30px 25px 25px;
}
}
.o-footnote p {
padding-left: 80px;
font-size: 12px;
max-width: 600px;
}
/* Layout */
.l-wrap {
display: flex;
flex-direction: column;
height: 100vh;
}
@media (min-width: 1100px) {
.l-wrap {
flex-direction: row;
}
}
.l-aside {
background-color: white;
display: flex;
flex-direction: column;
justify-content: space-between;
text-align: center;
padding: 0 25px 30px;
position: relative;
flex-basis: 350px;
}
@media (min-width: 1100px) {
.l-aside {
padding: 60px 40px 40px 40px;
padding-bottom: 20px;
}
}
.l-aside::after {
content: "";
display: block;
height: 40px;
width: 100vw;
position: absolute;
left: -2px;
bottom: -40px;
right: 0;
background: transparent url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2001 107'%3E%3Ctitle%3Ebackground-curve%3C/title%3E%3Cpath d='M0,107C151,38,502.6-18.2,821,28s642,116,1180-16.7V0H0Z' fill='%23ffffff'/%3E%3C/svg%3E") top -1px center no-repeat;
background-size: 100vw auto;
}
@media (min-width: 1100px) {
.l-aside::after {
height: 100vh;
width: 60px;
top: 0;
left: auto;
bottom: auto;
right: -60px;
background: transparent url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 107 2001'%3E%3Ctitle%3Ebackground-curve%3C/title%3E%3Cpath d='M107,2001c-69-151-125.2-502.6-79-821S144,538,11.3,0H0V2001Z' fill='%23ffffff'/%3E%3C/svg%3E") left -1px center no-repeat;
background-size: auto 100%;
}
}
.l-article {
background-position: center right;
background-repeat: no-repeat;
background-size: cover;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 100vh;
color: #fff;
}
@media (max-width: 400px) {
.l-article {
display: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment