Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Share css] A css for the new divider line with title #71

Closed
Moyf opened this issue Aug 7, 2024 · 1 comment
Closed

[Share css] A css for the new divider line with title #71

Moyf opened this issue Aug 7, 2024 · 1 comment

Comments

@Moyf
Copy link

Moyf commented Aug 7, 2024

image

.omd-section-line {
    text-align: right;
    opacity: 0.8;
    padding-right: 1em;
    margin: 0px !important;
    &::before {
        content: "🔖";
    }
}

/* 新的笔记本的分隔线样式 */
.omd-section-line hr {
    border-width: 1px;
    border-radius: 3px;
    border-style: dashed;
    border-color: var(--text-normal);
    opacity: 0.5;
}
@Moyf
Copy link
Author

Moyf commented Aug 7, 2024

Another style with less line height:
image

.cm-line:has(.omd-section-line) {
    line-height: 0em;
}

.omd-section-line {
    text-align: right;
    opacity: 0.8;
    padding-right: 1em;
    margin: 0px !important;
    /*line-height: 1.5em;*/
    &::before {
        content: "🔖";
    }
}

/* 新的笔记本的分隔线样式 */
.omd-section-line hr {
    border-width: 1px;
    border-radius: 3px;
    border-style: dashed;
    border-color: var(--text-normal);
    opacity: 0.5;
    max-width: 80%;
}

@Quorafind Quorafind pinned this issue Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants