-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
[Bug] [1.9.0-2b]: Admonitions (callouts) strange behavior #521
Comments
I'll check this out and try to make sure it works in the next release. Thanks! |
1.9.0-3b update fixed callouts collapsability for me. But again, custom .css snippets doesn't work. Used .css snippet: body {
--callout-border-width: 0 0 0 4px;
--callout-border-opacity: 1;
--callout-radius: 0;
--callout-padding: 0;
--callout-title-padding: var(--size-4-4) var(--size-4-4);
--callout-content-padding: var(--size-4-2) var(--size-4-4);
}
.admonition-bug, .admonition-note, .admonition-abstract .admonition-info
.admonition-tip, .admonition-success, .admonition-question, .admonition-warning,
.admonition-failure, .admonition-danger, .admonition-bug, .admonition-example,
.admonition-quote {
page-break-inside: avoid !important;
}
.admonition-title-content .admonition-title-content {
padding-left: 3px;
}
.admonition, .callout {
page-break-inside: avoid !important;
}
.admonition-title-inner, .callout-title-inner {
padding-left: 3px;
color: var(--text-normal);
}
.admonition-content, .callout-content {
background-color: var(--background-primary-alt);
padding: 20px;
}
.admonition-title-icon, .svg-inline--fa {
width: 18px;
height: 18px;
}
div #webpage-icon {
width: 0px;
height: 0px;
} |
Found "custom html/js feature". Inserting my .css content to |
Ah yes you have to wrap it in style tags, because it is an HTML file which just gets inserted into the page |
What happened?
Reproduction
Just create note with admonition or callout (syntax style doesn't matter) and try to export it via any option to .html
Last Working Version
1.8.1-2b
Version
1.9.0-2b
Operating System
Windows 11 Pro 23H2
Obsidian Version
1.6.7 both
Which browsers can you reproduce this in?
Firefox, Microsoft Edge
Relevant log output
N/A
Additional Info
I don't have additional info about collapse, I don't strong enough in web stuff, but about snippets I have an idea: it seems to me plugin's style of
.callout-content
overrides my snippet's style, 'cause I able to removebackground-color
andpadding
via developer tools in Firefox and my snippet become working.Temporary solution: rollback to 1.8.1-2b where snippets and collapse work as intended.
The text was updated successfully, but these errors were encountered: