2018-02-21 18:32:07 +01:00
|
|
|
|
@import "colors";
|
|
|
|
|
@import "constants";
|
|
|
|
|
|
2020-01-08 15:53:07 +01:00
|
|
|
|
$dossier-actions-bar-border-width: 1px;
|
|
|
|
|
|
2023-11-14 11:24:15 +01:00
|
|
|
|
[data-fr-theme="dark"] .dossier-edit .dossier-edit-sticky-footer {
|
|
|
|
|
background-color: var(--background-action-low-blue-france);
|
|
|
|
|
border: none;
|
2023-11-13 11:22:14 +01:00
|
|
|
|
}
|
2023-11-14 11:24:15 +01:00
|
|
|
|
|
2018-07-11 14:38:24 +02:00
|
|
|
|
.dossier-header {
|
2023-06-29 15:03:22 +02:00
|
|
|
|
.fr-container {
|
2018-07-11 14:38:24 +02:00
|
|
|
|
padding-bottom: $default-padding;
|
|
|
|
|
}
|
2018-02-21 18:32:07 +01:00
|
|
|
|
|
2018-07-11 14:38:24 +02:00
|
|
|
|
h1 {
|
2021-10-27 18:23:38 +02:00
|
|
|
|
font-size: 2rem;
|
2018-02-21 18:32:07 +01:00
|
|
|
|
}
|
|
|
|
|
|
2018-07-11 14:38:24 +02:00
|
|
|
|
.dossier-form-actions {
|
2021-10-27 18:23:38 +02:00
|
|
|
|
margin-top: 2rem;
|
|
|
|
|
margin-bottom: 1rem;
|
2018-07-11 14:38:24 +02:00
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dossier-edit {
|
2018-07-11 17:11:44 +02:00
|
|
|
|
.prologue {
|
|
|
|
|
margin: (1.5 * $default-padding) 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
|
|
|
|
|
.mandatory-explanation {
|
|
|
|
|
flex-grow: 1; // Push the "notice" button to the right
|
|
|
|
|
flex-shrink: 1; // Allow the text to shrink
|
|
|
|
|
margin-bottom: $default-spacer; // Leave space when the "notice" button wraps under the text
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.button.notice {
|
|
|
|
|
flex-shrink: 0; // Display the button label on a single line
|
2021-10-27 18:23:38 +02:00
|
|
|
|
margin-top: 1rem;
|
2018-07-11 17:11:44 +02:00
|
|
|
|
}
|
2018-02-21 18:32:07 +01:00
|
|
|
|
}
|
2018-08-31 00:10:16 +02:00
|
|
|
|
|
|
|
|
|
.warning {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
background-color: #f9b91666;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
2019-09-12 14:16:15 +02:00
|
|
|
|
|
2020-01-08 15:53:07 +01:00
|
|
|
|
.dossier-edit-sticky-footer {
|
|
|
|
|
position: fixed; // Fallback for IE 11, and other browser that don't support sticky
|
2019-09-12 15:56:24 +02:00
|
|
|
|
position: -webkit-sticky; // This is needed on Safari (tested on 12.1)
|
|
|
|
|
position: sticky;
|
2020-01-08 15:53:07 +01:00
|
|
|
|
|
|
|
|
|
// IE 11 uses `position:fixed` – and thus needs an explicit width, content-box for better layout, etc.
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: $page-width + 2 * $default-padding;
|
|
|
|
|
box-sizing: content-box;
|
|
|
|
|
|
2019-09-12 15:56:24 +02:00
|
|
|
|
bottom: 0;
|
|
|
|
|
|
2019-09-12 14:16:15 +02:00
|
|
|
|
margin-top: $default-padding;
|
2019-09-12 15:56:24 +02:00
|
|
|
|
margin-left: -$default-padding;
|
|
|
|
|
margin-right: -$default-padding;
|
|
|
|
|
margin-bottom: 0;
|
2020-01-08 15:53:07 +01:00
|
|
|
|
|
|
|
|
|
padding-right: $default-padding - $dossier-actions-bar-border-width;
|
|
|
|
|
padding-left: $default-padding - $dossier-actions-bar-border-width;
|
|
|
|
|
|
2019-09-12 14:16:15 +02:00
|
|
|
|
background: #FFFFFF;
|
2020-01-08 15:53:07 +01:00
|
|
|
|
|
|
|
|
|
border: $dossier-actions-bar-border-width solid #CCCCCC;
|
2019-09-12 14:16:15 +02:00
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
|
border-bottom: none;
|
2022-11-22 18:46:04 +01:00
|
|
|
|
|
|
|
|
|
z-index: 10; // above DSFR btn which are at 1
|
2020-01-08 15:53:07 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.send-dossier-actions-bar {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: center;
|
2019-09-12 14:16:15 +02:00
|
|
|
|
|
2019-11-19 17:55:30 +01:00
|
|
|
|
.button:not(:small) {
|
2019-09-12 15:56:24 +02:00
|
|
|
|
min-height: 38px;
|
|
|
|
|
line-height: 16px;
|
2019-09-12 14:16:15 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-09-12 15:56:24 +02:00
|
|
|
|
// If there are more than one button, align the "Send" button to the right
|
2019-11-19 17:55:30 +01:00
|
|
|
|
.button:not(:first-child).send {
|
2019-09-12 15:56:24 +02:00
|
|
|
|
margin-left: auto;
|
2019-09-12 14:16:15 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-09-12 15:56:24 +02:00
|
|
|
|
// Normal layout
|
2020-01-08 15:53:07 +01:00
|
|
|
|
@media (min-width: 620px) {
|
2019-09-12 15:56:24 +02:00
|
|
|
|
padding-top: $default-spacer * 2;
|
|
|
|
|
padding-bottom: $default-spacer * 2;
|
2019-09-12 14:16:15 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-09-12 15:56:24 +02:00
|
|
|
|
// Compact layout
|
2020-01-08 15:53:07 +01:00
|
|
|
|
@media (max-width: 620px) {
|
2019-09-12 15:56:24 +02:00
|
|
|
|
padding-top: $default-spacer;
|
|
|
|
|
padding-bottom: $default-spacer;
|
2019-09-12 14:16:15 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-11-19 17:55:30 +01:00
|
|
|
|
|
|
|
|
|
.autosave {
|
|
|
|
|
// Make the autosave block occupy the entire horizontal space,
|
|
|
|
|
// to ensure the failed state has room to display its content.
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
}
|
2018-02-21 18:32:07 +01:00
|
|
|
|
}
|