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

127 lines
2.3 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 {
2023-09-28 17:30:01 +02:00
padding-left: 0;
.types-de-champ-errors {
background-color: $background-red;
padding: $default-padding;
}
2018-11-14 16:26:00 +01:00
}
.type-de-champ {
width: 100%;
margin-bottom: $default-padding;
overflow: hidden;
2024-01-08 14:38:59 +01:00
scroll-margin: 1em;
.type-de-champ-container {
width: 100%;
border: 1px solid var(--border-default-grey);
border-radius: 5px;
margin-bottom: $default-padding;
box-shadow: 0px 2px 4px -4px;
}
2023-11-15 17:58:26 +01:00
.handle {
cursor: grab;
&:hover {
background-color: var(--hover-tint);
}
}
.right {
flex-grow: 1;
display: flex;
justify-content: flex-end;
align-items: center;
}
&.first .move-up {
display: none;
}
&.last .move-down {
display: none;
}
2018-11-14 16:26:00 +01:00
.head {
select {
margin-bottom: 0px;
}
2018-11-14 16:26:00 +01:00
}
&.type-header-section {
.head {
background-color: var(--background-contrast-blue-cumulus);
}
2018-11-14 16:26:00 +01:00
}
.flex {
&.flex-gap {
column-gap: $default-spacer * 2;
}
&.section {
margin-bottom: 8px;
padding: $default-spacer / 2 $default-spacer * 2;
}
2018-11-14 16:26:00 +01:00
&.head {
border-bottom: 1px solid var(--border-default-grey);
padding: $default-spacer / 2 $default-spacer; // due to no-outline button horizontal padding, don't add twice the padding so it's aligned with section
}
2018-11-14 16:26:00 +01:00
}
.cell {
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;
background-color: $white;
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
}
#summary nav ul {
height: 80vh;
overflow: auto;
}