dragonish_obsidian-heading-.../styles.css
2025-03-11 10:13:18 +08:00

300 lines
11 KiB
CSS

/* reading start */
.reading-custom-heading-decorator.before-heading-decorator::before,
.reading-custom-heading-decorator.after-heading-decorator::after {
content: attr(data-heading-decorator);
opacity: 20%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="10%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="10%"]::after {
opacity: 10%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="20%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="20%"]::after {
opacity: 20%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="30%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="30%"]::after {
opacity: 30%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="40%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="40%"]::after {
opacity: 40%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="50%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="50%"]::after {
opacity: 50%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="60%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="60%"]::after {
opacity: 60%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="70%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="70%"]::after {
opacity: 70%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="80%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="80%"]::after {
opacity: 80%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="90%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="90%"]::after {
opacity: 90%;
}
.reading-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="100%"]::before,
.reading-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="100%"]::after {
opacity: 100%;
}
/* reading end */
/* preview start */
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator:not(
.cm-active .preview-custom-heading-decorator
)::after {
content: attr(data-heading-decorator);
opacity: 20%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="10%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="10%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 10%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="20%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="20%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 20%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="30%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="30%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 30%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="40%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="40%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 40%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="50%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="50%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 50%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="60%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="60%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 60%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="70%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="70%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 70%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="80%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="80%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 80%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="90%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="90%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 90%;
}
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="100%"]:not(
.cm-active .preview-custom-heading-decorator
)::before,
.is-live-preview
.cm-line:not(:has(.cm-header.cm-formatting))
.preview-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="100%"]:not(
.cm-active .preview-custom-heading-decorator
)::after {
opacity: 100%;
}
/* preview end */
/* source start */
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator:not(
.cm-active .source-custom-heading-decorator
)::after {
content: attr(data-heading-decorator);
opacity: 20%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="10%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="10%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 10%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="20%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="20%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 20%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="30%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="30%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 30%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="40%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="40%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 40%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="50%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="50%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 50%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="60%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="60%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 60%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="70%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="70%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 70%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="80%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="80%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 80%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="90%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="90%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 90%;
}
.cm-formatting-header
> .source-custom-heading-decorator.before-heading-decorator[data-decorator-opacity="100%"]:not(
.cm-active .source-custom-heading-decorator
)::before,
:not(.cm-formatting-header)
> .source-custom-heading-decorator.after-heading-decorator[data-decorator-opacity="100%"]:not(
.cm-active .source-custom-heading-decorator
)::after {
opacity: 100%;
}
/* source end */