mirror of
https://github.com/rivea0/obsidian-match-syntax.git
synced 2026-07-22 12:40:28 +00:00
refactor: update class names to be more specific to the plugin
This commit is contained in:
parent
2468a31dad
commit
0407d4fa71
3 changed files with 6 additions and 6 deletions
|
|
@ -110,7 +110,7 @@ class HighlighterPlugin implements PluginValue {
|
|||
makeDeco(ranges: IRange[]) {
|
||||
const deco = [];
|
||||
const highlightDeco = Decoration.mark({
|
||||
class: 'highlight-text',
|
||||
class: 'match-syntax-highlight-text',
|
||||
attributes: { 'data-contents': 'string' },
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ export class MatchTextModal extends Modal {
|
|||
const settingContent = this.contentEl;
|
||||
|
||||
const matchInput = new Setting(settingContent);
|
||||
matchInput.setClass('match-input-setting');
|
||||
matchInput.setClass('match-syntax-input-setting');
|
||||
matchInput.addText((text) => {
|
||||
text.inputEl.addClass('match-input');
|
||||
text.inputEl.addClass('match-syntax-input-element');
|
||||
text.setPlaceholder('#adverb+ good...');
|
||||
text.onChange((value) => {
|
||||
matchStr = value;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
.highlight-text {
|
||||
.match-syntax-highlight-text {
|
||||
background-color: var(--text-highlight-bg);
|
||||
}
|
||||
|
||||
.match-input-setting {
|
||||
.match-syntax-input-setting {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.match-input {
|
||||
.match-syntax-input-element {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue