Skip to content

Commit 3d3afd1

Browse files
committed
update style
1 parent 6ea75b0 commit 3d3afd1

File tree

7 files changed

+65
-7
lines changed

7 files changed

+65
-7
lines changed

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default defineConfig({
8888
tsconfig: 'obsidian-meta-bind-plugin/packages/obsidian/tsconfig.json',
8989
sidebar: {
9090
label: 'API Reference',
91-
collapsed: true,
91+
collapsed: false,
9292
},
9393
}),
9494
],

src/components/inputField/InputFieldAllowedArguments.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface Props {
1010
const { type } = Astro.props;
1111
---
1212

13-
<p>The following input field arguments are allowed for the <code>{type}</code> input field.</p>
13+
<p>The following input field arguments can be used on the <code>{type}</code> input field.</p>
1414

1515
<ul>
1616
{

src/components/inputField/InputFieldArgumentAllowedInputFields.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ const { type } = Astro.props;
1212
{
1313
ConfigHelper.inputFieldArgument.doesAllowAllInputFieldTypes(type) ? (
1414
<p>
15-
The input field argument <code>{type}</code> is allowed in all input fields.
15+
The input field argument <code>{type}</code> can be used on all input fields.
1616
</p>
1717
) : (
1818
<>
1919
<p>
20-
The input field argument <code>{type}</code> is allowed in the following input fields.
20+
The input field argument <code>{type}</code> can be used on the following input fields.
2121
</p>
2222
<ul>
2323
{ConfigHelper.inputFieldArgument.getAllowedInputFieldTypes(type).map(x => (

src/components/viewField/ViewFieldAllowedArguments.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface Props {
1010
const { type } = Astro.props;
1111
---
1212

13-
<p>The following view field arguments are allowed for the <code>{type}</code> view field.</p>
13+
<p>The following view field arguments can be used on the <code>{type}</code> view field.</p>
1414

1515
<ul>
1616
{

src/components/viewField/ViewFieldArgumentAllowedInputFields.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ const config = ViewFieldArgumentConfigs[type];
1313
{
1414
ConfigHelper.viewFieldArgument.doesAllowAllViewFieldTypes(type) ? (
1515
<p>
16-
The view field argument <code>{type}</code> is allowed in all view fields.
16+
The view field argument <code>{type}</code> can be used on all view fields.
1717
</p>
1818
) : (
1919
<>
2020
<p>
21-
The view field argument <code>{type}</code> is allowed in the following view fields.
21+
The view field argument <code>{type}</code> can be used on the following view fields.
2222
</p>
2323
<ul>
2424
{ConfigHelper.viewFieldArgument.getAllowedViewFieldTypes(type).map(x => (

src/content/docs/reference/inputFieldArguments/class.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { InputFieldArgumentType, InputFieldType } from '../../../../config/stati
1414
### Description
1515

1616
The `class` argument lets you add one or multiple CSS classes to an input field.
17+
For more info on styling input fields, see the [Styling guide](/obsidian-meta-bind-plugin-docs/guides/stylingandcss/).
1718

1819
### Values
1920

src/styles/custom.css

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,60 @@ table.full-width {
1111
display: table;
1212
width: 100%;
1313
}
14+
15+
/* remove extra colors */
16+
:root,
17+
:root[data-theme='light'] {
18+
--sl-color-bg-nav: var(--sl-color-bg);
19+
--sl-color-bg-sidebar: var(--sl-color-bg);
20+
21+
/* rounded code blocks */
22+
--ec-brdRad: 0.5rem !important;
23+
--ec-brdWd: 0px !important;
24+
}
25+
26+
/* Nice scroll bars */
27+
* {
28+
scrollbar-color: var(--sl-color-gray-6) var(--sl-color-bg);
29+
scrollbar-width: thin;
30+
}
31+
32+
.expressive-code pre {
33+
scrollbar-color: var(--sl-color-gray-5) var(--sl-color-gray-6) !important;
34+
scrollbar-width: thin !important;
35+
}
36+
37+
/* Sidebar active page */
38+
[aria-current='page'],
39+
[aria-current='page']:hover,
40+
[aria-current='page']:focus {
41+
color: var(--sl-color-text-accent);
42+
background-color: var(--sl-color-gray-6);
43+
}
44+
45+
/* Remove some borders */
46+
.right-sidebar {
47+
border: none;
48+
}
49+
50+
.content-panel + .content-panel {
51+
border: none;
52+
}
53+
54+
.sidebar-pane {
55+
border: none;
56+
}
57+
58+
.header {
59+
border: none;
60+
}
61+
62+
summary#starlight__on-this-page--mobile {
63+
border: none;
64+
}
65+
66+
/* rounded asides */
67+
aside.starlight-aside {
68+
border: none;
69+
border-radius: 0.5rem;
70+
}

0 commit comments

Comments
 (0)