Skip to content

Commit

Permalink
fix: some styles overrides for links
Browse files Browse the repository at this point in the history
  • Loading branch information
logonoff committed Nov 15, 2024
1 parent 9b3dfe4 commit 6b94ae0
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 24 deletions.
10 changes: 5 additions & 5 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import process from "process";
import builtins from "builtin-modules";

const banner =
`/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit https://github.com/logonoff/obsidian-inline-spoilers
*/
`;
`/*!
* Inline Spoilers for Obsidian
* https://github.com/logonoff/obsidian-inline-spoilers
* SPDX-License-Identifier: GPL-3.0-or-later
*/`;

const prod = (process.argv[2] === "production");

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "inline-spoilers",
"name": "Inline spoilers",
"version": "1.1.1",
"version": "1.1.2",
"minAppVersion": "1.6.5",
"description": "Adds Discord-like syntax for inline spoilers.",
"author": "logonoff",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "obsidian-inline-spoilers",
"author": "logonoff",
"version": "1.1.1",
"version": "1.1.2",
"private": true,
"description": "Adds Discord-like syntax for inline spoilers.",
"license": "GPL-3.0-or-later",
Expand Down
36 changes: 21 additions & 15 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
*/
/*!
* Inline Spoilers for Obsidian
* https://github.com/logonoff/obsidian-inline-spoilers
* SPDX-License-Identifier: GPL-3.0-or-later
*/
/** Reader **/
.inline_spoilers-spoiler {
background-color: var(--text-normal);
color: var(--text-normal);
background-color: var(--text-normal);
color: var(--text-normal);
}

.inline_spoilers-revealed,
.inline_spoilers-revealed .inline_spoilers-spoiler {
background-color: var(--code-background);
color: var(--code-normal);
background-color: var(--code-background);
color: var(--code-normal);
}

/** Editor **/
.inline_spoilers-editor-spoiler {
background-color: var(--text-normal);
color: var(--text-normal);
background-color: var(--text-normal);
color: var(--text-normal);
}

.cm-active .inline_spoilers-editor-spoiler,
.inline_spoilers-revealed .inline_spoilers-editor-spoiler {
background-color: var(--code-background);
color: var(--code-normal);
background-color: var(--code-background);
color: var(--code-normal);
}

/** editor - delimiter **/
.inline_spoilers-editor-spoiler-delimiter {
background-color: var(--code-background);
background-color: var(--code-background);
color: var(--text-normal);
}

Expand All @@ -40,3 +40,9 @@ available in the app when your plugin is enabled.
.is-live-preview .cm-active .inline_spoilers-editor-spoiler-delimiter {
display: unset;
}

/** overrides for links **/
.inline_spoilers-spoiler *:not(.inline_spoilers-revealed .inline_spoilers-spoiler *, .inline_spoilers-revealed *),
.inline_spoilers-editor-spoiler *:not(.cm-active .inline_spoilers-editor-spoiler *, .inline_spoilers-revealed .inline_spoilers-editor-spoiler *) {
color: var(--text-normal) !important;
}
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"1.1.2": "1.6.5",
"1.1.1": "1.6.5",
"1.1.0": "1.6.5",
"1.0.3": "1.6.5",
Expand Down

0 comments on commit 6b94ae0

Please sign in to comment.