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

122 lines
2.2 KiB
SCSS
Raw Normal View History

2024-11-05 19:02:31 +01:00
@import 'colors';
@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);
padding-top: 12px;
border-left-width: 4px;
border-radius: 5px;
margin-bottom: 3 * $default-spacer;
box-shadow: 0px 2px 4px -4px;
}
&.type-header-section {
.type-de-champ-container {
border-left: 4px solid var(--background-action-high-blue-france);
}
}
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
.flex {
&.flex-gap {
column-gap: $default-spacer * 2;
}
&.section {
padding: $default-spacer $default-spacer * 2;
2018-11-14 16:26:00 +01:00
&.footer {
padding: 1.5 * $default-spacer $default-spacer * 2;
border-top: 1px solid var(--border-default-grey);
}
}
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)
2024-11-05 19:02:31 +01:00
&[target='_blank']::after {
display: none;
}
}
}
2018-11-14 16:26:00 +01:00
}
#summary nav ul {
height: 80vh;
overflow: auto;
}