1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Started support for WYSIWYG details/summary blocks

This commit is contained in:
Dan Brown
2022-02-08 23:08:00 +00:00
parent 7c692ec588
commit 9e0b8a9fb6
4 changed files with 238 additions and 3 deletions

View File

@@ -135,6 +135,27 @@ body.tox-fullscreen, body.markdown-fullscreen {
background: #FFECEC;
}
details {
border: 1px solid #DDD;
margin-bottom: 1em;
padding: $-s;
}
details > summary {
margin-top: -$-s;
margin-left: -$-s;
margin-right: -$-s;
margin-bottom: -$-s;
font-weight: bold;
background-color: #EEEEEE;
padding: $-xs $-s;
}
details[open] > summary {
margin-bottom: 0;
}
details > summary + * {
margin-top: .2em;
}
&.page-revision {
pre code {
white-space: pre-wrap;

View File

@@ -37,6 +37,11 @@ body.page-content.mce-content-body {
pointer-events: none;
}
// Prevent details summary clicks {
.page-content.mce-content-body details summary {
pointer-events: none;
}
/**
* Dark Mode Overrides
*/