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:
@@ -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;
|
||||
|
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user