mirror of
https://github.com/bladeacer/flexcyon.git
synced 2026-07-22 04:00:26 +00:00
[Misc]: Added Banners Reloaded plugin support
This commit is contained in:
parent
5b5f5acff5
commit
34c928ff2e
11 changed files with 105 additions and 46 deletions
|
|
@ -350,13 +350,13 @@ def get_schema():
|
|||
("input-radius", (float, int), 0, "editor", False),
|
||||
("input-verti-padding", (float, int), 4, "editor"),
|
||||
("input-horiz-padding", (float, int), 8, "editor"),
|
||||
("settings-scrollbar-removed", bool, False, "editor"),
|
||||
|
||||
("settings-comm-item-enabled", bool, True, "settings"),
|
||||
(
|
||||
"settings-installed-tooltip-left-margin", (float, int),
|
||||
1, "settings"
|
||||
),
|
||||
("settings-scrollbar-removed", bool, False, "settings"),
|
||||
("enable-alt-active-item-effect", bool, True, "settings"),
|
||||
("style-settings-indent-width", (float, int), 4, "settings"),
|
||||
("style-settings-dim-collapsed-headings", bool, True, "settings"),
|
||||
|
|
|
|||
|
|
@ -7,11 +7,6 @@ body {
|
|||
|
||||
/* obsi-snip-coll end */
|
||||
|
||||
body .ͼo.cm-focused > .cm-scroller > .cm-cursorLayer > .cm-fat-cursor {
|
||||
color: inherit;
|
||||
background-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
// This needs !important because the devs placed the animation duration inside the html tag :v
|
||||
body.flexcyon-disable-vim-cursor-blink {
|
||||
.cm-cursorLayer {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@ body {
|
|||
padding-inline-start: var(--flexcyon-meta-container-padding-left);
|
||||
}
|
||||
|
||||
.metadata-property-value .mod-unknown {
|
||||
color: var(--color-cyan);
|
||||
}
|
||||
|
||||
.cm-hmd-frontmatter.cm-atom {
|
||||
color: var(--color-cyan);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
// Display none scrollbar in settings container
|
||||
body.flexcyon-settings-scrollbar-removed {
|
||||
--scrollbar-bg: transparent;
|
||||
|
||||
div.community-modal-search-results-wrapper,
|
||||
div.modal.mod-settings .vertical-tab-header,
|
||||
div.modal-content.vertical-tabs-container {
|
||||
|
|
@ -13,6 +11,7 @@ body.flexcyon-settings-scrollbar-removed {
|
|||
|
||||
body {
|
||||
--flexcyon-scrollbar-width: 12px;
|
||||
--scrollbar-bg: transparent;
|
||||
}
|
||||
|
||||
body:not(.native-scrollbars) ::-webkit-scrollbar {
|
||||
|
|
|
|||
|
|
@ -1422,6 +1422,21 @@ settings:
|
|||
default: 8
|
||||
format: px
|
||||
|
||||
- title: Scrollbars
|
||||
type: heading
|
||||
level: 1
|
||||
collapsed: true
|
||||
- title: Scrollbar width
|
||||
type: variable-number
|
||||
id: flexcyon-scrollbar-width
|
||||
default: 12
|
||||
format: px
|
||||
- title: Do not show scrollbar in settings
|
||||
id: flexcyon-settings-scrollbar-removed
|
||||
description: Do not show scrollbar in settings where it is not necessary.
|
||||
type: class-toggle
|
||||
default: true
|
||||
|
||||
- title: Lists and Checkboxes
|
||||
type: heading
|
||||
level: 1
|
||||
|
|
|
|||
|
|
@ -19,11 +19,6 @@ settings:
|
|||
type: variable-number
|
||||
default: 1
|
||||
format: rem
|
||||
- title: Do not show scrollbar in settings
|
||||
id: flexcyon-settings-scrollbar-removed
|
||||
description: Do not show scrollbar in settings where it is not necessary.
|
||||
type: class-toggle
|
||||
default: true
|
||||
- title: Enable alternate active item effect in settings
|
||||
id: flexcyon-enable-alt-active-item-effect
|
||||
type: class-toggle
|
||||
|
|
|
|||
|
|
@ -20,14 +20,24 @@ body:not(
|
|||
}
|
||||
}
|
||||
|
||||
body
|
||||
.workspace
|
||||
.mod-root
|
||||
.mod-active:has(
|
||||
.workspace-tab-container
|
||||
> .workspace-leaf:only-child
|
||||
> .workspace-leaf-content[data-type="empty"]
|
||||
)
|
||||
.workspace-tab-header
|
||||
.workspace-tab-header-inner-close-button {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
body {
|
||||
--flexcyon-side-toggle-button-no-ribbon: 11px 16px 7px 0px;
|
||||
|
||||
.workspace-ribbon .sidebar-toggle-button {
|
||||
inset-block-start: -1px;
|
||||
}
|
||||
|
||||
.sidebar-toggle-button.mod-left {
|
||||
inset-block-start: -1px;
|
||||
block-size: unset;
|
||||
padding-block-start: 12px;
|
||||
background-color: transparent;
|
||||
|
|
@ -35,15 +45,20 @@ body {
|
|||
}
|
||||
|
||||
.sidebar-toggle-button.mod-right {
|
||||
inset-block-start: -1px;
|
||||
padding-block-start: 8px;
|
||||
}
|
||||
|
||||
.workspace-tab-header {
|
||||
padding: 0 4px;
|
||||
}
|
||||
.is-left-sidedock-open > .mod-left-split,
|
||||
.is-right-sidedock-open > .mod-right-split,
|
||||
.mod-root {
|
||||
.workspace-tab-header {
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.workspace-tab-header-inner {
|
||||
padding: 2px 8px;
|
||||
.workspace-tab-header-inner {
|
||||
padding: 2px 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.workspace-tabs:not(.mod-stacked) {
|
||||
|
|
@ -64,7 +79,7 @@ body {
|
|||
}
|
||||
}
|
||||
|
||||
.workspace-split.mod-root .workspace-tabs.mod-active:not(.mod-stacked) {
|
||||
.workspace-split.mod-root .workspace-tabs:not(.mod-stacked) {
|
||||
.workspace-tab-header-container-inner {
|
||||
padding-inline-start: 0;
|
||||
margin-block-start: 0;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
body.banners-reloaded {
|
||||
.banner-view-active {
|
||||
.banner-error-container {
|
||||
.banner-error-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.banner-error-message::before {
|
||||
color: var(--color-red);
|
||||
content: "Error - ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21,3 +21,4 @@
|
|||
@use "./Diff/diff";
|
||||
@use "./PDF/pdf";
|
||||
@use "./Publish/publish";
|
||||
@use "./Banners_Reloaded/banners_reloaded";
|
||||
|
|
|
|||
|
|
@ -254,9 +254,9 @@
|
|||
"flexcyon@@input-radius": 0,
|
||||
"flexcyon@@flexcyon-input-verti-padding": 4,
|
||||
"flexcyon@@flexcyon-input-horiz-padding": 8,
|
||||
"flexcyon@@flexcyon-settings-scrollbar-removed": false,
|
||||
"flexcyon@@flexcyon-settings-comm-item-enabled": true,
|
||||
"flexcyon@@flexcyon-settings-installed-tooltip-left-margin": 1,
|
||||
"flexcyon@@flexcyon-settings-scrollbar-removed": false,
|
||||
"flexcyon@@flexcyon-enable-alt-active-item-effect": true,
|
||||
"flexcyon@@flexcyon-style-settings-indent-width": 4,
|
||||
"flexcyon@@flexcyon-style-settings-dim-collapsed-headings": true,
|
||||
|
|
|
|||
65
theme.css
65
theme.css
|
|
@ -1525,6 +1525,9 @@ body {
|
|||
body .metadata-container {
|
||||
padding-inline-start: var(--flexcyon-meta-container-padding-left);
|
||||
}
|
||||
body .metadata-property-value .mod-unknown {
|
||||
color: var(--color-cyan);
|
||||
}
|
||||
body .cm-hmd-frontmatter.cm-atom {
|
||||
color: var(--color-cyan);
|
||||
}
|
||||
|
|
@ -8087,9 +8090,6 @@ body.flexcyon-vert-callouts .callout:not(:is([data-callout*=tui], [data-callout*
|
|||
}
|
||||
|
||||
/* obsi-snip-coll end */
|
||||
body.flexcyon-settings-scrollbar-removed {
|
||||
--scrollbar-bg: transparent;
|
||||
}
|
||||
body.flexcyon-settings-scrollbar-removed div.community-modal-search-results-wrapper ::-webkit-scrollbar-thumb,
|
||||
body.flexcyon-settings-scrollbar-removed div.modal.mod-settings .vertical-tab-header ::-webkit-scrollbar-thumb,
|
||||
body.flexcyon-settings-scrollbar-removed div.modal-content.vertical-tabs-container ::-webkit-scrollbar-thumb {
|
||||
|
|
@ -8098,6 +8098,7 @@ body.flexcyon-settings-scrollbar-removed div.modal-content.vertical-tabs-contain
|
|||
|
||||
body {
|
||||
--flexcyon-scrollbar-width: 12px;
|
||||
--scrollbar-bg: transparent;
|
||||
}
|
||||
|
||||
body:not(.native-scrollbars) ::-webkit-scrollbar {
|
||||
|
|
@ -8124,25 +8125,32 @@ body:not(.show-ribbon).flexcyon-workspace-card-layout.flexcyon-workspace-cards-t
|
|||
padding-block-start: 8px;
|
||||
}
|
||||
|
||||
body .workspace .mod-root .mod-active:has(.workspace-tab-container > .workspace-leaf:only-child > .workspace-leaf-content[data-type=empty]) .workspace-tab-header .workspace-tab-header-inner-close-button {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
body {
|
||||
--flexcyon-side-toggle-button-no-ribbon: 11px 16px 7px 0px;
|
||||
}
|
||||
body .workspace-ribbon .sidebar-toggle-button {
|
||||
inset-block-start: -1px;
|
||||
}
|
||||
body .sidebar-toggle-button.mod-left {
|
||||
inset-block-start: -1px;
|
||||
block-size: unset;
|
||||
padding-block-start: 12px;
|
||||
background-color: transparent;
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
body .sidebar-toggle-button.mod-right {
|
||||
inset-block-start: -1px;
|
||||
padding-block-start: 8px;
|
||||
}
|
||||
body .workspace-tab-header {
|
||||
body .is-left-sidedock-open > .mod-left-split .workspace-tab-header,
|
||||
body .is-right-sidedock-open > .mod-right-split .workspace-tab-header,
|
||||
body .mod-root .workspace-tab-header {
|
||||
padding: 0 4px;
|
||||
}
|
||||
body .workspace-tab-header-inner {
|
||||
body .is-left-sidedock-open > .mod-left-split .workspace-tab-header-inner,
|
||||
body .is-right-sidedock-open > .mod-right-split .workspace-tab-header-inner,
|
||||
body .mod-root .workspace-tab-header-inner {
|
||||
padding: 2px 8px;
|
||||
}
|
||||
body .workspace-tabs:not(.mod-stacked) .workspace-tab-header:is(.mod-active, .is-active) > .workspace-tab-header-inner {
|
||||
|
|
@ -8156,18 +8164,18 @@ body .workspace-tabs:not(.mod-stacked) .workspace-tab-header > .workspace-tab-he
|
|||
border-block-end: 1px solid var(--background-secondary);
|
||||
opacity: var(--dimmed);
|
||||
}
|
||||
body .workspace-split.mod-root .workspace-tabs.mod-active:not(.mod-stacked) .workspace-tab-header-container-inner {
|
||||
body .workspace-split.mod-root .workspace-tabs:not(.mod-stacked) .workspace-tab-header-container-inner {
|
||||
padding-inline-start: 0;
|
||||
margin-block-start: 0;
|
||||
margin-inline-start: -8px;
|
||||
}
|
||||
body .workspace-split.mod-root .workspace-tabs.mod-active:not(.mod-stacked) .workspace-tab-header-container-inner > .workspace-tab-header {
|
||||
body .workspace-split.mod-root .workspace-tabs:not(.mod-stacked) .workspace-tab-header-container-inner > .workspace-tab-header {
|
||||
padding: 2px 4px 0;
|
||||
}
|
||||
body .workspace-split.mod-root .workspace-tabs.mod-active:not(.mod-stacked) .workspace-tab-header-inner-title {
|
||||
body .workspace-split.mod-root .workspace-tabs:not(.mod-stacked) .workspace-tab-header-inner-title {
|
||||
padding-inline-start: 8px;
|
||||
}
|
||||
body .workspace-split.mod-root .workspace-tabs.mod-active:not(.mod-stacked) .workspace-tab-header-inner-icon {
|
||||
body .workspace-split.mod-root .workspace-tabs:not(.mod-stacked) .workspace-tab-header-inner-icon {
|
||||
padding-inline-end: 0;
|
||||
}
|
||||
body .workspace-split:is(.mod-left-split, .mod-right-split) .workspace-tab-header-container-inner {
|
||||
|
|
@ -10220,11 +10228,6 @@ body {
|
|||
}
|
||||
|
||||
/* obsi-snip-coll end */
|
||||
body .ͼo.cm-focused > .cm-scroller > .cm-cursorLayer > .cm-fat-cursor {
|
||||
color: inherit;
|
||||
background-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
body.flexcyon-disable-vim-cursor-blink .cm-cursorLayer {
|
||||
animation: none !important;
|
||||
}
|
||||
|
|
@ -12879,6 +12882,21 @@ settings:
|
|||
default: 8
|
||||
format: px
|
||||
|
||||
- title: Scrollbars
|
||||
type: heading
|
||||
level: 1
|
||||
collapsed: true
|
||||
- title: Scrollbar width
|
||||
type: variable-number
|
||||
id: flexcyon-scrollbar-width
|
||||
default: 12
|
||||
format: px
|
||||
- title: Do not show scrollbar in settings
|
||||
id: flexcyon-settings-scrollbar-removed
|
||||
description: Do not show scrollbar in settings where it is not necessary.
|
||||
type: class-toggle
|
||||
default: true
|
||||
|
||||
- title: Lists and Checkboxes
|
||||
type: heading
|
||||
level: 1
|
||||
|
|
@ -13421,11 +13439,6 @@ settings:
|
|||
type: variable-number
|
||||
default: 1
|
||||
format: rem
|
||||
- title: Do not show scrollbar in settings
|
||||
id: flexcyon-settings-scrollbar-removed
|
||||
description: Do not show scrollbar in settings where it is not necessary.
|
||||
type: class-toggle
|
||||
default: true
|
||||
- title: Enable alternate active item effect in settings
|
||||
id: flexcyon-enable-alt-active-item-effect
|
||||
type: class-toggle
|
||||
|
|
@ -16337,6 +16350,14 @@ body .pdf-container .textLayer .highlight:not(.selected) {
|
|||
background-color: oklch(from var(--background-modifier-error) l c h/20%);
|
||||
}
|
||||
|
||||
body.banners-reloaded .banner-view-active .banner-error-container .banner-error-icon {
|
||||
display: none;
|
||||
}
|
||||
body.banners-reloaded .banner-view-active .banner-error-container .banner-error-message::before {
|
||||
color: var(--color-red);
|
||||
content: "Error - ";
|
||||
}
|
||||
|
||||
/* Modifications for HandaArchitect's banner snippet */
|
||||
body .banner img[alt=banner] {
|
||||
z-index: 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue