demarches-normaliennes/app/assets/stylesheets/procedure_champs_editor.scss

158 lines
2.8 KiB
SCSS
Raw Normal View History

2018-11-14 16:26:00 +01:00
@import "colors";
2019-02-12 15:50:49 +01:00
@import "constants";
@import "placeholders";
2018-11-14 16:26:00 +01:00
.types-de-champ-editor {
> .types-de-champ-block {
padding-bottom: 50px;
.types-de-champ-errors {
background-color: $background-red;
padding: $default-padding;
}
2018-11-14 16:26:00 +01:00
}
.type-de-champ {
width: 100%;
background-color: #FAFDFF;
border: 1px solid $border-grey;
border-radius: 5px;
margin-bottom: $default-padding * 2;
box-shadow: 0px 2px 4px -4px;
overflow: hidden;
.handle.icon {
width: 32px;
height: 32px;
background-size: 32px;
margin-left: 7px;
margin-right: 16px;
align-self: center;
cursor: grab;
opacity: 0.8;
&:hover {
opacity: 0.4;
}
}
.delete {
flex-grow: 1;
display: flex;
justify-content: flex-end;
}
.move-up,
.move-down {
@extend %outline;
display: inline-block;
width: 30px;
padding-bottom: 5px;
border-radius: 5px;
border: 1px solid $border-grey;
background-color: #FFFFFF;
color: $black;
text-align: center;
-webkit-appearance: none;
&:hover:not(:disabled) {
cursor: pointer;
background: $light-grey;
text-decoration: none;
}
}
&.first .move-up {
display: none;
}
&.last .move-down {
display: none;
}
2018-11-14 16:26:00 +01:00
.head {
background-color: #FAFDFF;
2018-11-14 16:26:00 +01:00
select {
margin-bottom: 0px;
}
2018-11-14 16:26:00 +01:00
}
&.type-header-section {
background-color: $blue-cumulus-950;
2018-11-14 16:26:00 +01:00
.head {
background-color: $blue-cumulus-950;
}
2018-11-14 16:26:00 +01:00
}
.flex {
&.section {
2022-07-06 09:55:08 +02:00
padding: $default-spacer $default-spacer 0;
margin-bottom: 8px;
2022-09-01 13:49:51 +02:00
input {
background-color: $white;
}
}
2018-11-14 16:26:00 +01:00
&.hr {
border-bottom: 1px solid $border-grey;
2018-11-14 16:26:00 +01:00
&.head {
border-bottom: 1px solid #D4E5F5;
padding-bottom: 10px;
}
}
2018-11-14 16:26:00 +01:00
}
.cell {
margin-right: $default-padding;
2018-11-14 16:26:00 +01:00
label {
margin-bottom: 8px;
text-transform: uppercase;
font-size: 12px;
}
2018-11-14 16:26:00 +01:00
}
.carte-options {
label {
font-weight: initial;
}
2018-11-14 16:26:00 +01:00
}
}
.buttons {
display: flex;
justify-content: space-between;
2019-04-03 16:38:33 +02:00
margin-left: -30px;
position: fixed;
bottom: 0px;
background-color: $white;
2019-04-03 16:38:33 +02:00
max-width: 1100px;
width: 100%;
border: 1px solid $border-grey;
2019-04-03 16:38:33 +02:00
padding: 30px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
2019-04-03 16:38:33 +02:00
border-bottom: none;
padding-bottom: 15px;
padding-top: 15px;
z-index: 10; // above DSFR buttons
}
.fill-duration {
align-self: center;
font-size: 14px;
a {
// Remove the icon indicating an external link (for less visual noise)
&[target="_blank"]::after {
display: none;
}
}
}
2018-11-14 16:26:00 +01:00
}