funky-framadate-front/src/styles/partials/_forms.scss

154 lines
2.1 KiB
SCSS
Raw Normal View History

2020-04-21 10:50:26 +02:00
@charset "UTF-8";
2020-06-12 19:17:39 +02:00
label {
2021-05-18 10:47:16 +02:00
margin-top: 0.25em;
line-height: 2.5em;
}
2021-05-18 11:21:40 +02:00
2021-05-18 10:47:16 +02:00
input,
select,
textarea {
display: inline-block;
padding: 1rem;
border: 1px solid $secondary_color;
border-bottom: 3px solid $primary_color;
2021-05-18 11:21:40 +02:00
width: calc(100% - 45px);
2021-05-18 10:47:16 +02:00
margin-right: 2px;
margin-bottom: 1em;
2021-05-03 15:10:29 +02:00
+ button,
+ .mat-icon-button {
margin-bottom: 1em;
}
2020-04-21 10:50:26 +02:00
}
input,
select,
textarea {
2021-05-18 10:47:16 +02:00
@extend .clickable;
margin-bottom: 0.25rem;
border-bottom: 2px solid $primary_color;
padding: 0.5rem;
2020-04-21 10:50:26 +02:00
2021-05-18 10:47:16 +02:00
&:active,
&:focus,
&:hover {
color: $primary_color;
}
&.ng-invalid {
border: $warning 3px solid !important;
}
&[required] {
&:after {
content: '*';
color: red;
}
}
2020-04-21 10:50:26 +02:00
}
li {
list-style-type: none;
}
2021-05-18 11:21:40 +02:00
2020-04-21 10:50:26 +02:00
.next {
2021-05-18 10:47:16 +02:00
max-width: 200px;
2020-04-21 10:50:26 +02:00
margin-bottom: 50px;
}
.btn-block {
display: block;
width: 100%;
}
2020-06-07 13:52:14 +02:00
2020-06-12 19:17:39 +02:00
button[type='submit'] {
margin-top: 2em;
2020-06-07 13:52:14 +02:00
}
2021-05-03 14:54:32 +02:00
.hint {
margin-top: 0;
margin-bottom: 1em;
padding: 1em;
background: $warning;
color: $white;
}
2021-05-18 10:47:16 +02:00
select,
option {
-webkit-appearance: none;
-moz-appearance: none;
border-radius: 0;
background-color: transparent;
//background-image: url('assets/img/fleche_bas.svg') !important;
2021-05-18 10:47:16 +02:00
padding-right: 2.5rem;
background-repeat: no-repeat;
background-size: 9px 8px;
background-position: right 1rem center;
background-clip: border-box;
min-width: 10rem;
margin-bottom: 0.25rem;
border-bottom: 2px solid $primary_color !important;
}
select {
@extend .select, .input;
}
#multi_hours select {
min-width: 300px !important;
}
input {
@extend .input, .text-ellipsis;
}
label {
margin-top: 0.5rem;
}
textarea {
width: 100%;
max-width: 100%;
min-height: 213px;
padding: 0.5em 1em;
margin-bottom: 1em;
border-left: 3px solid $primary_color;
}
.comment {
border-left: 6px solid $primary_color;
margin-top: 25px;
margin-bottom: 25px;
flex-wrap: wrap;
padding-left: 17px;
}
.cname {
font-weight: bold;
}
.deletable-field-hint {
margin-right: 2.8em;
margin-top: -0.7em;
-moz-border-radius-bottomright: 1em;
}
.mat-error {
display: block;
background: $warning;
padding: 1em;
}
2021-05-18 11:21:40 +02:00
2021-05-18 10:47:16 +02:00
mat-checkbox {
display: block;
}
.cdk-drag {
cursor: pointer;
border-left: 3px white;
&:hover {
border-left: 3px #ccc;
}
}