prncc_obsidian-repeat-plugin/styles.css
Andre Perunicic cddd512798
Add the hidden frontmatter field (#18)
* Support the hidden Repetition field

* Blur notes with hidden: true in the repeat view

* Allow empty repetition in getRepeatChoices

* Rename replaceOrInsertFields -> updateRepetitionMetadata

About to change the logic to be repetition-specific, so this will better reflect
the semantics.

* Parse the hidden field in every X commands

* Add a toggle for the hidden field to the repetition modal

* Serialize repetition fully and update metadata writing logic

* Parse hidden field as a boolean

* Refactor 'hidden' field parsing into utility function

* Remove unused imports

* Use constant for serialized hidden value
2023-02-20 20:00:53 -05:00

68 lines
1.3 KiB
CSS

.repeat-message {
text-align: center;
margin-top: 24px;
}
.repeat-buttons {
text-align: center;
margin-bottom: 24px;
}
.repeat-buttons > button {
margin-top: 16px;
margin-left: 16px;
}
.repeat-buttons > button:first-child {
margin-left: 0;
}
/* Make buttons legible on mobile. */
@media (max-width: 450px) {
.repeat-buttons > button {
width: 100%;
margin-left: 0;
}
}
.repeat-embedded_note {
padding: 15px 30px;
max-width: var(--file-line-width);
margin-left: auto;
margin-right: auto;
}
.repeat-markdown_embed_title {
text-overflow: inherit;
white-space: normal;
}
.repeat-setup_modal {
margin-top: 24px;
}
.repeat-markdown_blurred {
filter: blur(5px);
}
/* Transferred from Obsidian's input[] styles. */
.repeat-date_picker {
background: var(--background-modifier-form-field);
border: 1px solid var(--background-modifier-border);
color: var(--text-normal);
font-family: inherit;
padding: 5px 14px;
font-size: 16px;
border-radius: 4px;
outline: none;
height: 39px; /* Deduced experimentally. */
}
.repeat-date_picker:hover {
background-color: var(--background-modifier-form-field-highlighted);
}
.repeat-date_picker:focus {
border-color: var(--interactive-accent);
}
.repeat-date_picker:::placeholder {
color: var(--text-faint);
}