Skip to content

Commit

Permalink
Resolving styling issues with Note Toolbar Plugin #169
Browse files Browse the repository at this point in the history
  • Loading branch information
damiankorcz committed May 22, 2024
1 parent ac9f243 commit e552ce6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scss/Editor/callouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ body:not(.pt-disable-callout-styling) {
--callout-radius: var(--radius-m);
--callout-background-alpha: 20%;

.callout {
.callout:not(.cg-note-toolbar-callout) {
background-color: unset;

.callout-title {
Expand Down
17 changes: 17 additions & 0 deletions src/scss/Plugins/Community/noteToolbar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// [Plugins - Community] Note Toolbar
body {
--cg-nt-tbar-top-sticky-pos-desktop: calc(calc(var(--header-height) - 8px) * -1);

&.theme-dark {
--cg-nt-tbar-bg-color: var(--background-secondary);
}
}

.callout[data-callout="note-toolbar"] {
&[data-callout-metadata*="button"] ul {
&a,
span.external-link {
border: var(--window-border);
}
}
}
5 changes: 4 additions & 1 deletion src/scss/Variables/coreVariables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ body {

--indentation-guide-color: hsla(var(--background-secondary-alt-hsl), 75%);

--interactive-normal: var(--background-primary);

// Style Settings Defaults
--graph-line-color-lt: var(--background-secondary-alt);
--graph-fill-color-lt: var(--color-grey-tint);
Expand Down Expand Up @@ -313,7 +315,6 @@ body {
}
}


&.pt-highlight-text-light-lt {
--highlight-text-normal: var(--background-primary);
}
Expand Down Expand Up @@ -491,6 +492,8 @@ body {

--indentation-guide-color: hsla(var(--background-primary-alt-hsl), 80%);

--interactive-normal: var(--background-secondary);

// Style Settings Defaults
--graph-line-color-dt: var(--background-primary-alt);
--graph-fill-color-dt: var(--color-grey-tint);
Expand Down
1 change: 1 addition & 0 deletions src/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
@use "Plugins/Community/jumpToDate.scss";
@use "Plugins/Community/settingsSearch.scss";
@use "Plugins/Community/dataLoom.scss";
@use "Plugins/Community/noteToolbar.scss";

// Config Files
@use "Info/styleSettingsConfig.scss";
Expand Down

0 comments on commit e552ce6

Please sign in to comment.