Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style(options): improve extended admonition
Elian Dorancfab182005ac
diff --git a/apps/client/src/widgets/react/Admonition.css b/apps/client/src/widgets/react/Admonition.cssindex 7bbec47bb3..1faa10a713 100644--- a/apps/client/src/widgets/react/Admonition.css+++ b/apps/client/src/widgets/react/Admonition.css@@ -7,6 +7,7 @@with the type accent shown only as the leading bar below. */padding-inline-start: 1em;border-color: var(--main-border-color);+ background: var(--main-background-color);}/* Thick accent bar on the leading edge. It has no radius of its own; the card'sdiff --git a/apps/client/src/widgets/type_widgets/options/components/OptionsSection.css b/apps/client/src/widgets/type_widgets/options/components/OptionsSection.cssnew file mode 100644index 0000000000..cfb2aff332--- /dev/null+++ b/apps/client/src/widgets/type_widgets/options/components/OptionsSection.css@@ -0,0 +1,7 @@+.options-section-card {+ .admonition {+ margin: calc(var(--options-card-padding) * -1) calc(var(--options-card-padding) * -1) 0 calc(var(--options-card-padding) * -1);+ border-bottom-left-radius: 0;+ border-bottom-right-radius: 0;+ }+}diff --git a/apps/client/src/widgets/type_widgets/options/components/OptionsSection.tsx b/apps/client/src/widgets/type_widgets/options/components/OptionsSection.tsxindex 883801731c..2e2bee1854 100644--- a/apps/client/src/widgets/type_widgets/options/components/OptionsSection.tsx+++ b/apps/client/src/widgets/type_widgets/options/components/OptionsSection.tsx@@ -1,5 +1,8 @@+import "./OptionsSection.css";+import type { ComponentChildren } from "preact";import { CSSProperties } from "preact/compat";+import HelpButton from "../../../react/HelpButton";interface OptionsSectionProps {