update
This commit is contained in:
76
.obsidian/plugins/cloze/styles.css
vendored
Normal file
76
.obsidian/plugins/cloze/styles.css
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
|
||||
This CSS file will be included with your plugin, and
|
||||
available in the app when your plugin is enabled.
|
||||
|
||||
If your plugin does not need CSS, delete this file.
|
||||
|
||||
*/
|
||||
|
||||
body {
|
||||
--cloze-underline-width: 1px;
|
||||
--cloze-underline-style: solid;
|
||||
/*noinspection CssUnresolvedCustomProperty*/
|
||||
--cloze-underline-color: var(--text-normal);
|
||||
--cloze-fixed-width: 30px;
|
||||
/*noinspection CssUnresolvedCustomProperty*/
|
||||
--cloze-hint-color: var(--text-muted);
|
||||
/*noinspection CssUnresolvedCustomProperty*/
|
||||
--cloze-hint-font-size: var(--font-ui-smaller);
|
||||
}
|
||||
|
||||
.cloze-span,
|
||||
.cloze{
|
||||
border-bottom: var(--cloze-underline-width) var(--cloze-underline-style) var(--cloze-underline-color) !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.cloze-span,
|
||||
.cloze[data-cloze-hide=true]{
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
[data-cloze-hide=true]:not(.cloze-hint) {
|
||||
color: transparent !important;
|
||||
text-shadow: none !important;
|
||||
}
|
||||
|
||||
/* embedded segments */
|
||||
[data-cloze-hide=true] .cloze-content,
|
||||
[data-cloze-hide=true] mark,
|
||||
[data-cloze-hide=true] u,
|
||||
[data-cloze-hide=true] strong,
|
||||
[data-cloze-hide=true] a {
|
||||
color: transparent !important;
|
||||
text-shadow: none !important;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* fixed cloze width */
|
||||
.cloze-fixed-width .cloze[data-cloze-hide=true]:not(.cloze-hint) {
|
||||
white-space: nowrap;
|
||||
width: var(--cloze-fixed-width);
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* cloze hint */
|
||||
.cloze-hint {
|
||||
color: var(--cloze-hint-color);
|
||||
font-size: var(--cloze-hint-font-size);
|
||||
text-shadow: none !important;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: max-content;
|
||||
display: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
[data-cloze-hide=true] .cloze-hint {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.modal-hint-setting input{
|
||||
width: 100%;
|
||||
}
|
Reference in New Issue
Block a user