diff --git a/webui/src/components/AttributeView.svelte b/webui/src/components/AttributeView.svelte index a37afa5..e32204d 100644 --- a/webui/src/components/AttributeView.svelte +++ b/webui/src/components/AttributeView.svelte @@ -129,52 +129,19 @@ diff --git a/webui/src/components/util.scss b/webui/src/components/util.scss new file mode 100644 index 0000000..cd9a3eb --- /dev/null +++ b/webui/src/components/util.scss @@ -0,0 +1,31 @@ +section.labelborder { + position: relative; + overflow: visible; + + margin-top: 1.66em; + padding: 1ex 0.95ex; + + border: 0.1em solid var(--foreground); + border-radius: 4px; + + header { + margin-bottom: 0.2em; + + & > * { + position: absolute; + top: -0.66em; + + margin: 0; + + background: var(--background-lighter); + font-weight: 600; + + line-height: 1; + padding: 0 0.75ex; + } + + h3 { + left: 1ex; + } + } + } \ No newline at end of file