itsblue-website/themes/itsblue/scss/theme/_forms.scss

224 lines
3.6 KiB
SCSS
Raw Normal View History

form {
.button-wrapper {
margin-top: 0.75rem;
margin-bottom: 1rem;
}
/* Button */
.btn {
background-color: transparent;
border: 0;
border-radius: 0;
box-shadow: inset 0 0 0 2px $border-color;
color: $dark-color !important;
cursor: pointer;
display: inline-block;
font-size: 0.9em;
font-weight: _font(weight-bold);
height: 3em;
letter-spacing: _font(kerning-alt);
line-height: 3em;
padding: 0 2.5em;
text-align: center;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap;
font-size: 12pt;
@include breakpoint(md) {
font-size: 9pt;
}
&:hover {
box-shadow: inset 0 0 0 2px $primary-color;
background-color: transparent;
&:active {
background-color: transparentize($primary-color, 0.85);
}
}
&.icon {
padding-left: 1.35em;
&:before {
margin-right: 0.5em;
}
}
&.fit {
display: block;
width: 100%;
}
&.small {
font-size: 0.8em;
}
&.big {
font-size: 1.35em;
}
&.btn-primary {
background-color: $primary-color;
box-shadow: none;
color: $light-color !important;
&:hover {
background-color: darken($primary-color, 10);
&:active {
background-color: lighten($primary-color, 10);
}
}
}
}
/* Inputs */
.form-label {
display: none;
}
span.required {
color: $error-color;
font-weight: 700;
font-size: 1.2rem;
}
.form-input[type=range] {
appearance: slider-horizontal;
&:focus {
box-shadow: none;
border: none;
}
}
.form-input[type=text],
.form-input[type=email],
textarea.form-input {
background: lighten($dark-color, 62);
border: 0;
border-radius: 0;
color: $dark-color;
display: block;
outline: 0;
padding: 1em;
text-decoration: none;
width: 100%;
height: 2.75em;
text-size-adjust: 1.5;
font-size: 15pt;
@include breakpoint(md) {
font-size: 11pt;
}
&::placeholder {
color: $dark-color;
opacity: .5;
}
&:invalid {
box-shadow: none;
}
&:focus {
box-shadow: inset 0 0 0 2px $primary-color;
}
}
textarea.form-input {
padding: .65em 1em;
height: 7em;
resize: vertical;
}
.form-field.half {
float: left;
width: 50%;
@include breakpoint(sm) {
float: none;
width: 100%;
}
}
.form-field.half.left {
padding: 0 .65em 0 0;
@include breakpoint(sm) {
padding: 0;
}
}
.form-field.half.right {
padding: 0 0 0 .65em;
@include breakpoint(sm) {
padding: 0;
}
}
/** Reset some defaults for Quark Theme **/
.form-group:not(.form-field-toggleable) {
.checkboxes {
display: inherit;
label {
display: inherit;
padding: (($control-size-sm - $line-height) / 2) $control-padding-x (($control-size-sm - $line-height) / 2) ($control-icon-size + $control-padding-x);
margin: inherit;
&:before {
display: none;
}
}
}
}
.form-group:not(:last-child) {
margin-bottom: 1.2rem;
}
}
#grav-login {
> form {
margin: 2rem auto 0;
max-width: 350px;
}
.form-label {
display: none;
}
.form-data {
margin: 1rem 0;
}
.form-input {
text-align: center;
}
.button-wrapper {
text-align: right;
.form-data.rememberme {
margin: 0;
float: left;
}
}
.login-form {
button[type="submit"] {
@include button-primary;
}
}
.twofa-form {
button[type="submit"]:first-child {
@include button-primary;
float: right;
margin-left: 4px;
}
}
}