59 lines
1.1 KiB
CSS

.ck .footnote-section {
padding: 10px;
margin: 1em 0;
border: solid 1px hsl(0, 0%, 77%);
border-radius: 2px;
counter-reset: footnote-counter;
}
.ck .footnote-item {
list-style: none;
counter-increment: footnote-counter;
margin-left: 0.5em;
display: flex;
}
.ck .footnote-item > * {
vertical-align: text-top;
}
.ck .footnote-back-link {
position: relative;
margin-right: 0.1em;
top: -0.2em;
}
.ck .footnotes .footnote-back-link > sup {
margin-right: 0;
}
.ck .footnote-item::before {
content: counter(footnote-counter) ". ";
display: inline-block;
position: relative;
right: 0.2em;
min-width: fit-content;
text-align: right;
}
.ck .footnote-content {
display: inline-block;
padding: 0 0.3em;
width: 95%;
border-radius: 2px;
flex-grow: 1;
}
.ck .ck-widget.footnote-section > .ck-reset_all.ck-widget__type-around > .ck-widget__type-around__button_after {
display: none; /* hides the 'insert after' button from the ckeditor widget, but displays the button inside the footnote content. */
}
.placeholder {
padding: 2px 2px;
outline-offset: -2px;
line-height: 1em;
margin: 0 1px;
}
.placeholder::selection {
display: none;
}