hubl/src/styles/form.scss

138 lines
2.4 KiB
SCSS

.frame-form {
padding: 4em 5em 6em;
@extend %frame;
.form-view {
border-bottom: 1px solid $color-platinum;
padding-bottom: 1.5em;
}
}
#project-create,
#project-edit {
font-size: 17px;
h1 {
color: $color-purple-dark;
font-weight: bold;
font-size: 20px;
text-align: center;
}
p {
margin-bottom: 4em;
text-align: center;
}
div[name^='block-'] {
display: flex;
> * {
margin-right: 4rem;
}
}
sib-form-checkbox,
sib-form-label-text,
sib-form-multiple-dropdown,
sib-form-textarea {
align-items: stretch;
display: flex;
flex-direction: column;
> label {
color: $color-spun-pearl;
font-weight: 600;
margin-bottom: 0.5em;
}
input,
select,
textarea {
background: $color-glitter;
border: none;
color: $color-purple-dark;
line-height: 1.5;
}
input,
textarea {
margin-bottom: 2em;
padding: 1em;
}
select {
margin-bottom: 1em;
padding: 0.5em;
}
}
sib-form-checkbox {
flex-direction: row;
[type='checkbox'] {
cursor: pointer;
position: relative;
&:before {
border: 2px solid $color-taupe-gray;
content: '';
height: 1rem;
left: 0;
margin-left: 1rem;
padding-bottom: 0.2rem;
position: absolute;
width: 1.2rem;
z-index: 1;
}
&:checked {
&:before {
border: 2px solid $color-taupe-gray;
color: $color-majorelle-blue;
height: 1rem;
left: 0;
margin-left: 1rem;
padding-bottom: 0.2rem;
position: absolute;
width: 1.2rem;
z-index: 1;
@include mdi('check');
}
}
&:after {
background: $color-white;
content: '';
height: 1rem;
position: absolute;
width: 1rem;
}
}
}
sib-form-multiple-dropdown {
button {
appearance: none;
background-color: $color-white;
border: 1px solid;
border-radius: 100%;
color: $color-majorelle-blue;
cursor: pointer;
font-size: 1.5em;
height: 1em;
line-height: 0;
margin: 0.2em;
padding: 0 0.04em 0.08em;
vertical-align: middle;
width: 1em;
}
}
input[type='submit'] {
margin-top: 3.5em;
@extend %button-form;
}
}