mirror of
https://github.com/gra0007/obsidian-css-inlay-colors.git
synced 2026-07-22 05:18:59 +00:00
29 lines
620 B
CSS
29 lines
620 B
CSS
.css-color-inlay {
|
|
height: 1em;
|
|
width: 1em;
|
|
border: 1px solid currentColor;
|
|
display: inline-block;
|
|
border-radius: .2em;
|
|
vertical-align: middle;
|
|
margin-right: .3em;
|
|
margin-top: -.1em;
|
|
|
|
input {
|
|
height: 0;
|
|
width: 0;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Make inlay colors in the live editor appear part of the code block */
|
|
.css-color-wrapper.cm-inline-code:not(.cm-formatting) {
|
|
padding-inline-end: 0;
|
|
border-start-end-radius: 0;
|
|
border-end-end-radius: 0;
|
|
|
|
& + .cm-inline-code:not(.cm-formatting) {
|
|
padding-inline-start: 0;
|
|
border-start-start-radius: 0;
|
|
border-end-start-radius: 0;
|
|
}
|
|
}
|