2024-11-05 19:02:31 +01:00
|
|
|
@import 'constants';
|
2023-12-19 12:51:30 +01:00
|
|
|
|
2023-11-15 09:53:07 +01:00
|
|
|
#attestation-edit {
|
2024-02-13 14:16:33 +01:00
|
|
|
.attestation-preview {
|
2024-01-10 18:17:12 +01:00
|
|
|
width: 100%;
|
2024-02-13 14:16:33 +01:00
|
|
|
|
|
|
|
@media (min-width: 62em) {
|
|
|
|
height: 664px; // empirical height for an A4 ratio at this width
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 62em) {
|
|
|
|
// PDF height is approximately tied to width
|
|
|
|
height: calc(90vw * 29.7 / 21);
|
|
|
|
}
|
2024-01-10 18:17:12 +01:00
|
|
|
}
|
|
|
|
|
2023-11-15 09:53:07 +01:00
|
|
|
.tiptap {
|
2023-12-19 12:51:30 +01:00
|
|
|
padding: $default-spacer;
|
2023-11-28 11:44:32 +01:00
|
|
|
overflow-y: scroll;
|
2024-01-25 13:20:43 +01:00
|
|
|
min-height: 400px;
|
2023-12-19 12:51:30 +01:00
|
|
|
}
|
|
|
|
|
2024-03-11 16:20:00 +01:00
|
|
|
.tiptap-editor {
|
2023-12-19 12:51:30 +01:00
|
|
|
// Visual zones
|
|
|
|
.header .flex-1,
|
2024-01-25 13:20:43 +01:00
|
|
|
h1 {
|
2024-01-10 11:59:08 +01:00
|
|
|
border: 1px solid var(--background-contrast-grey-hover);
|
2023-12-19 12:51:30 +01:00
|
|
|
padding: $default-spacer / 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header,
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3 {
|
|
|
|
margin-bottom: $default-spacer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Styles
|
|
|
|
.header {
|
|
|
|
align-content: center;
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-bottom: 0rem;
|
|
|
|
font-size: 0.8rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2 {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
line-height: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
2024-02-02 13:49:22 +01:00
|
|
|
font-size: 1rem; // same as text
|
|
|
|
font-weight: bold;
|
2023-12-19 12:51:30 +01:00
|
|
|
line-height: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
li p {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2023-11-15 09:53:07 +01:00
|
|
|
}
|
2024-02-15 23:13:38 +01:00
|
|
|
|
|
|
|
// scss-lint:disable SelectorFormat
|
|
|
|
#show_maybe_null + label {
|
|
|
|
margin-bottom: 0.25rem;
|
|
|
|
|
|
|
|
.fr-hint-text {
|
|
|
|
position: absolute;
|
|
|
|
top: 1.15rem;
|
|
|
|
}
|
|
|
|
}
|
2023-11-15 09:53:07 +01:00
|
|
|
}
|