mirror of
https://github.com/iaremarkus/wol-reference-viewer.git
synced 2026-07-22 14:30:28 +00:00
378 lines
7.3 KiB
CSS
378 lines
7.3 KiB
CSS
/* ============================================================
|
|
Inline reference links (reading mode)
|
|
============================================================ */
|
|
|
|
.wol-ref-link {
|
|
color: var(--color-accent);
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
}
|
|
|
|
.wol-ref-link::before {
|
|
content: " 📖 ";
|
|
}
|
|
|
|
.wol-ref-link:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Legacy verlink class */
|
|
.verlink {
|
|
color: var(--text-accent);
|
|
text-decoration: none;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.verlink:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ============================================================
|
|
Live Preview editor decoration
|
|
============================================================ */
|
|
|
|
.cm-wol-ref {
|
|
color: var(--color-accent);
|
|
opacity: 0.8;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cm-wol-ref::before {
|
|
content: " ";
|
|
}
|
|
|
|
.cm-wol-ref:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ============================================================
|
|
Modal
|
|
============================================================ */
|
|
|
|
.modal-header {
|
|
margin: 0 0 5px;
|
|
}
|
|
|
|
.modal-header .modal-title {
|
|
font-weight: 600;
|
|
font-size: 120%;
|
|
}
|
|
|
|
.modal-content .ref-modal {
|
|
padding: 20px;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.ref-modal p {
|
|
margin-bottom: 0px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.ref-modal p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.ref-modal-reference {
|
|
font-size: 0.9em;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
margin-top: 15px;
|
|
text-align: right;
|
|
}
|
|
|
|
.ref-modal .ref-modal-result {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.ref-modal .ref-modal-result p {
|
|
margin: 0;
|
|
}
|
|
|
|
.ref-modal-result > li {
|
|
list-style: none;
|
|
}
|
|
|
|
.ref-modal .ref-modal-result ol > li::marker,
|
|
.ref-modal .ref-modal-result ul > li::marker {
|
|
display: none;
|
|
}
|
|
|
|
.ref-modal .ref-modal-button-container {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.ref-modal .ref-modal-button-container button {
|
|
font-size: 80%;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ref-modal .mod-cta {
|
|
padding: 8px 10px 10px;
|
|
line-height: 1;
|
|
height: auto;
|
|
}
|
|
|
|
/* ============================================================
|
|
Popover
|
|
============================================================ */
|
|
|
|
.ref-popover {
|
|
position: absolute;
|
|
z-index: 9999;
|
|
top: var(--ref-popover-top, 0px);
|
|
left: var(--ref-popover-left, 0px);
|
|
max-width: 300px;
|
|
padding: 10px;
|
|
border-radius: var(--radius-m);
|
|
background-color: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-small);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.ref-popover p {
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ============================================================
|
|
Shared WOL link style (modal / popover / sidebar)
|
|
============================================================ */
|
|
|
|
.ref-modal-wol-link,
|
|
.ref-popover-wol-link,
|
|
.ref-sidebar-wol-link {
|
|
color: var(--color-accent);
|
|
text-decoration: none;
|
|
font-size: 80%;
|
|
font-weight: 500;
|
|
display: inline-block;
|
|
}
|
|
|
|
.ref-modal-wol-link:hover,
|
|
.ref-popover-wol-link:hover,
|
|
.ref-sidebar-wol-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ============================================================
|
|
Sidebar
|
|
============================================================ */
|
|
|
|
.ref-sidebar {
|
|
padding: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.ref-sidebar-empty {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
font-size: var(--font-ui-small);
|
|
text-align: center;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.ref-sidebar-item {
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.ref-sidebar .ref-sidebar-item:not(:last-of-type) {
|
|
border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.ref-sidebar-header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.ref-sidebar-ref {
|
|
font-size: 90%;
|
|
font-weight: 500;
|
|
color: var(--color-accent);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.ref-sidebar-wol-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--text-muted);
|
|
line-height: 1;
|
|
}
|
|
|
|
.ref-sidebar-wol-icon:hover {
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.ref-sidebar-wol-icon svg {
|
|
width: 13px;
|
|
height: 13px;
|
|
}
|
|
|
|
.ref-sidebar-body p {
|
|
font-size: var(--font-ui-small);
|
|
line-height: 1.6;
|
|
color: var(--text-normal);
|
|
margin: 0 0 6px 0;
|
|
}
|
|
|
|
.ref-sidebar-error {
|
|
color: var(--text-error);
|
|
font-size: var(--font-ui-smaller);
|
|
}
|
|
|
|
/* WOL result cards inside sidebar */
|
|
.ref-sidebar-wol-result {
|
|
font-size: var(--font-ui-small);
|
|
line-height: 1.6;
|
|
color: var(--text-normal);
|
|
padding: 6px 0;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.ref-sidebar-wol-result:first-child {
|
|
border-top: none;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.ref-sidebar-wol-result img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.ref-sidebar-wol-result a {
|
|
color: var(--text-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.ref-sidebar-wol-result a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ============================================================
|
|
Inline callout (reading mode) & inline widget (editor)
|
|
============================================================ */
|
|
|
|
.cm-ref-inline-result,
|
|
.ref-callout {
|
|
background-color: transparent !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.cm-ref-inline-body,
|
|
.ref-callout .callout-content {
|
|
background: rgba(0, 0, 0, 0.1);
|
|
border: 1px solid var(--background-modifier-border);
|
|
padding: 15px;
|
|
border-radius: 10px;
|
|
font-size: 90%;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.cm-ref-inline-result .cm-ref-inline-body p,
|
|
.ref-callout .callout-content p {
|
|
margin: 0;
|
|
}
|
|
|
|
.cm-ref-inline-result .cm-ref-inline-label,
|
|
.ref-callout .callout-title {
|
|
font-size: 90%;
|
|
font-weight: 500;
|
|
color: var(--text-normal);
|
|
margin-left: 3%;
|
|
width: 94%;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
padding: 5px 10px;
|
|
border-radius: 10px 10px 0 0;
|
|
box-shadow: none;
|
|
line-height: inherit;
|
|
}
|
|
|
|
.ref-callout .callout-title-inner {
|
|
font-weight: inherit;
|
|
}
|
|
|
|
.cm-ref-inline-item,
|
|
.ref-callout-result {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.cm-ref-inline-item:last-child,
|
|
.ref-callout-result:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.cm-ref-inline-item a,
|
|
.ref-callout-result a {
|
|
color: var(--text-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.cm-ref-inline-item a:hover,
|
|
.ref-callout-result a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Loading state (sidebar & callout) */
|
|
.ref-sidebar-loading,
|
|
.ref-callout-loading {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* ============================================================
|
|
WOL content formatting (verse numbers, result lists)
|
|
============================================================ */
|
|
|
|
.ref-number,
|
|
.verse-number,
|
|
span.v .vl {
|
|
font-size: 70%;
|
|
font-weight: 600;
|
|
opacity: 0.5;
|
|
padding: 1px 2px;
|
|
position: relative;
|
|
top: -1px;
|
|
margin: 0 3px;
|
|
line-height: 1;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 3px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
span.v .b {
|
|
display: none;
|
|
}
|
|
|
|
.ref-modal-result .resultItems,
|
|
.ref-popover-result .resultItems,
|
|
.ref-sidebar-wol-result .resultItems,
|
|
.ref-callout-result .resultItems,
|
|
.cm-ref-inline-item .resultItems {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.ref-modal-result .resultItems ::marker,
|
|
.ref-popover-result .resultItems ::marker,
|
|
.ref-sidebar-wol-result .resultItems ::marker,
|
|
.ref-callout-result .resultItems ::marker,
|
|
.cm-ref-inline-item .resultItems ::marker {
|
|
display: none;
|
|
opacity: 0;
|
|
color: transparent;
|
|
}
|