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

373 lines
5.2 KiB
SCSS
Raw Normal View History

2020-04-21 10:50:26 +02:00
@charset "UTF-8";
2021-11-18 11:22:44 +01:00
@import 'datepicker';
2021-11-14 15:48:27 +01:00
.input:hover,
input:hover,
select:hover,
.textarea:hover,
.select select:hover,
.is-hovered.input,
input.is-hovered,
select.is-hovered,
.is-hovered.textarea,
.select select.is-hovered {
2021-11-30 11:17:44 +01:00
border-color: $font_color !important;
2021-11-14 15:48:27 +01:00
}
2021-11-18 11:41:23 +01:00
2021-11-12 12:09:48 +01:00
app-step-one,
app-step-two,
app-step-three,
app-step-four,
app-step-six,
app-step-seven {
2021-11-14 15:26:26 +01:00
padding: 2em 2.5em;
2021-11-12 12:09:48 +01:00
display: block;
}
2021-11-18 11:41:23 +01:00
2021-11-14 15:48:27 +01:00
app-step-five {
app-stepper {
padding: 2em 2.5em;
display: block;
}
2021-11-18 11:41:23 +01:00
2021-11-14 15:48:27 +01:00
.container {
padding: 2em;
}
}
2021-11-12 12:09:48 +01:00
2021-05-18 10:47:16 +02:00
input,
select,
textarea {
display: inline-block;
padding: 1rem;
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
}
2021-11-30 11:17:44 +01:00
textarea,
input,
.input,
.textarea,
select,
.select {
2021-11-30 17:37:23 +01:00
@extend .clickable;
2021-11-30 11:17:44 +01:00
border: solid 1px $font_color;
}
2021-11-30 11:25:30 +01:00
2020-04-21 10:50:26 +02:00
input,
select,
textarea {
2021-05-18 10:47:16 +02:00
@extend .clickable;
2021-11-30 11:17:44 +01:00
margin-bottom: 2rem;
2021-05-18 10:47:16 +02:00
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;
}
&[required] {
&:after {
content: '*';
color: red;
}
}
2020-04-21 10:50:26 +02:00
}
2021-11-30 17:37:23 +01:00
// radio input structure
.button {
label {
margin-bottom: 0;
width: 100%;
display: inline-block;
text-align: left;
}
}
input[type='radio'] {
padding: 1em;
margin-bottom: 0;
color: $primary-color;
width: 2em;
}
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 {
2021-11-30 11:17:44 +01:00
border-color: #4e4c59 !important;
@extend .text-ellipsis;
2021-05-18 10:47:16 +02:00
}
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;
}
.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;
&:hover {
2021-05-20 10:54:28 +02:00
background: #fefefe;
}
}
.admin-form {
.step {
max-width: 800px;
margin: 0 auto;
}
}
.fa {
margin-right: 1ch;
&.fa-times,
&.fa-trash {
margin-right: 0;
}
}
.example-list {
width: 500px;
max-width: 100%;
border: solid 1px #ccc;
min-height: 60px;
display: block;
background: white;
border-radius: 4px;
overflow: hidden;
2021-11-17 15:36:45 +01:00
padding: 1em 2em;
}
.example-box {
padding: 20px 10px;
border-bottom: solid 1px #ccc;
color: rgba(0, 0, 0, 0.87);
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
cursor: move;
background: white;
font-size: 14px;
}
.cdk-drag-preview {
box-sizing: border-box;
border-radius: 4px;
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14),
0 3px 14px 2px rgba(0, 0, 0, 0.12);
padding: 0.5em;
height: 4em;
background: white;
}
.cdk-drag-placeholder {
opacity: 1;
padding: 1em;
height: 4em;
width: 100%;
2021-05-20 10:54:28 +02:00
background: $primary;
}
.cdk-drag-animating {
padding: 1em;
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}
.example-box:last-child {
border: none;
}
.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder) {
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}
.ng-pristine,
.ng-dirty {
2021-05-20 14:11:30 +02:00
//border-left: #ccc 3px solid;
2021-11-14 15:26:26 +01:00
//padding-left: 1em;
}
.ng-touched.ng-invalid {
2021-11-14 15:26:26 +01:00
//border-left: $danger 3px solid;
//padding-left: 1em;
}
.theme-dark-crystal {
.ng-touched.ng-valid {
2021-11-14 15:26:26 +01:00
//border-left: $success 3px solid;
//padding-left: 1em;
}
}
.bar-nav-admin {
//position:fixed;
//bottom: 0;
background: #ccc;
display: block;
width: 100%;
padding: 1em;
}
2021-11-08 09:32:50 +01:00
2021-11-14 16:15:12 +01:00
.advanced-config {
.box {
background: $light;
border: 3px solid $primary-color;
}
2021-11-18 11:41:23 +01:00
2021-11-14 16:15:12 +01:00
.work-in-progress {
padding: 1em 2em;
background: $border-color;
color: $light;
}
}
2021-11-16 16:16:30 +01:00
2021-11-30 11:17:44 +01:00
.step {
.title {
color: $primary_color;
}
.step-counter-text {
color: $primary_color;
font-size: 1rem;
line-height: 1.25rem;
}
}
2021-11-30 11:25:30 +01:00
2021-11-18 11:41:23 +01:00
// resume de la création de sondage
2021-11-18 12:00:03 +01:00
.step-resume {
.content {
.title {
&.is-2,
&.is-3 {
color: $secondary_color;
}
}
}
}
.rounded-block {
2021-11-18 11:41:23 +01:00
border-radius: 0.25em;
background: $bg-grey;
padding: 1em;
margin-bottom: 0.5em;
hr {
margin: 0.5em -1em;
background: $rules;
}
2021-11-30 11:17:44 +01:00
.go-to-step,
.custom-action {
2021-11-18 11:41:23 +01:00
@extend .clickable;
2021-11-18 12:00:03 +01:00
color: $secondary_color;
padding: 1.5em;
border-radius: 0.25em;
2021-11-18 11:41:23 +01:00
&:hover {
background: $secondary_color;
color: $white;
}
}
}
.block-resume {
@extend .rounded-block;
}
2021-11-30 11:25:30 +01:00
2021-11-30 11:17:44 +01:00
label {
font-family: $default_font;
color: $font_color;
font-weight: bold;
font-size: 0.85rem;
line-height: 1rem;
margin-bottom: 0.5rem;
}