You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
248 lines
4.1 KiB
248 lines
4.1 KiB
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200;0,400;0,700;1,200;1,400;1,700&family=Spectral:ital,wght@0,200;0,400;0,700;1,200;1,400;1,700&display=swap'); |
|
|
|
$header-font: 'Karla', sans-serif; |
|
$body-font: 'Spectral', serif; |
|
|
|
label { |
|
margin: 0 0 1rem; |
|
font-family: $font-family-sans-serif; |
|
} |
|
|
|
textarea { |
|
height: 7.5em; |
|
resize: none; |
|
} |
|
|
|
input[type="text"], |
|
input[type="email"], |
|
input[type="tel"], |
|
textarea { |
|
flex-grow: 1; |
|
border-top: 0; |
|
border-right: 0; |
|
border-left: 0; |
|
border-bottom: solid 2px var(--body-text); |
|
border-radius: 0; |
|
padding: 0 0 1.5em; |
|
font-size: 1rem; |
|
font-weight: 600; |
|
font-family: $font-family-sans-serif; |
|
background: transparent; |
|
-webkit-appearance: none; |
|
-moz-appearance: none; |
|
|
|
&:focus { |
|
outline: none; |
|
border-bottom: solid 2px var(--accent); |
|
} |
|
} |
|
|
|
input[type="submit"] { |
|
cursor: pointer; |
|
} |
|
|
|
.form { |
|
width: rem(354); |
|
|
|
::placeholder { |
|
color: var(--black); |
|
} |
|
|
|
&__notice { |
|
margin-bottom: 2rem; |
|
font-size: 0.875rem; |
|
font-weight: $font-weight-bold; |
|
font-family: $font-family-sans-serif; |
|
text-transform: uppercase; |
|
text-align: center; |
|
|
|
&--error { |
|
color: var(--error); |
|
} |
|
|
|
&--success { |
|
color: var(--success); |
|
} |
|
} |
|
|
|
&__row { |
|
display: flex; |
|
flex-direction: row; |
|
align-items: center; |
|
justify-content: center; |
|
width: 100%; |
|
position: relative; |
|
margin-bottom: 2rem; |
|
|
|
label { |
|
position: absolute; |
|
left: 0; |
|
top: 0; |
|
transition: 0.2s; |
|
line-height: 1; |
|
} |
|
|
|
input, |
|
textarea { |
|
&:focus, |
|
&:valid, |
|
&.error { |
|
+ label { |
|
top: 100%; |
|
margin-top: -1.125rem; |
|
font-size: 0.75rem; |
|
} |
|
} |
|
|
|
&.error { |
|
border-bottom: solid 2px var(--error); |
|
|
|
+ label { |
|
color: var(--error); |
|
} |
|
} |
|
} |
|
|
|
&:last-child { |
|
margin-top: rem(48); |
|
} |
|
} |
|
} |
|
|
|
// Contact form |
|
|
|
.contact { |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: center; |
|
align-items: center; |
|
width: 100%; |
|
padding: rem(65) 0 rem(120); |
|
background: var(--body-bg-alt); |
|
|
|
h2 { |
|
margin-bottom: rem(40); |
|
} |
|
} |
|
|
|
// TODO: Add styles needed for signin/signup pages |
|
.signup { |
|
line-height: 1.4; |
|
|
|
&--wrapper { |
|
display: flex; |
|
flex-direction: row; |
|
gap: 3rem; |
|
font-family: $header-font; |
|
|
|
@media #{$breakpoint-not-large} { |
|
flex-direction: column; |
|
} |
|
} |
|
|
|
&--section { |
|
width: 50%; |
|
padding: 0 2rem; |
|
} |
|
|
|
&--section:first-child { |
|
background: $light-grey-blue; |
|
} |
|
|
|
&--header-title { |
|
text-transform: none; |
|
text-align: left; |
|
font-size: $big-font-size; |
|
font-weight: 400; |
|
|
|
&::before { |
|
content: ""; |
|
margin-bottom: 0; |
|
background: none; |
|
} |
|
} |
|
} |
|
|
|
.form { |
|
width: 100%; |
|
|
|
&--input-wrapper { |
|
position: relative; |
|
} |
|
|
|
input[type="email"], input[type="text"] { |
|
background: white; |
|
border: solid 1px $dark-blue; |
|
padding: 5px; |
|
min-width: 66%; |
|
font-weight: 400; |
|
height: 40px; |
|
} |
|
|
|
label { |
|
position: absolute; |
|
top: 8px; |
|
left: 8px; |
|
color: #666; |
|
transition: .3s; |
|
z-index: 0; |
|
font-size: $small-font-size; |
|
} |
|
|
|
input:not(:placeholder-shown) + label { |
|
top: -10px; |
|
left: 5px; |
|
z-index: 999; |
|
padding: 0 5px; |
|
background: white; |
|
color: #666; |
|
} |
|
|
|
input:focus + label { |
|
top: -11px; |
|
left: 5px; |
|
z-index: 999; |
|
padding: 0 5px; |
|
background: white; |
|
color: $dark-blue; |
|
} |
|
|
|
::placeholder { |
|
color: transparent; |
|
} |
|
|
|
input:focus { |
|
border: 2px solid $dark-blue; |
|
} |
|
|
|
&button { |
|
font-size: $medium-font-size; |
|
text-transform: none; |
|
padding: .5rem 1.5rem; |
|
margin-bottom: .5rem; |
|
} |
|
|
|
&--input-description { |
|
font-size: $tiny-font-size; |
|
} |
|
} |
|
/* |
|
|
|
.social__buttons { |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: center; |
|
align-items: center; |
|
width: 100%; |
|
a { |
|
padding: 10px; |
|
border-radius: rem(8); |
|
background: var(--support-color-secondary); |
|
width: rem(300); |
|
margin-bottom: rem(24); |
|
filter: drop-shadow(0 4px 4px #E5E5E5); |
|
} |
|
} |
|
} |
|
} |
|
*/
|
|
|