Skip to content

Commit 2727d9d

Browse files
committed
update examples button style
1 parent 5e01a10 commit 2727d9d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/components/docs/Doc.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function color(): string {
108108
<div class="id relative -top-37" id={docType.id}></div> <!-- Anchor all the way up or else its in the nav bar -->
109109
</div>
110110

111-
<div class="flex flex-col gap-1">
111+
<div class="flex flex-col gap-4">
112112
{docType.description?.map((line: string) => <p><Fragment set:html={line}/></p>)}
113113
</div>
114114

@@ -127,7 +127,7 @@ function color(): string {
127127
{[docType.examples]
128128
.filter(x => x !== null)
129129
.map(_ =>
130-
<button class="examples bg-l-icon-hover dark:bg-d-icon-hover">
130+
<button class="examples bg-l-examples dark:bg-d-examples">
131131
<svg class="transition my-auto fill-white" width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
132132
<path d="M8.60627 10.8563L5.88752 8.1375C5.85002 8.1 5.82202 8.0595 5.80352 8.016C5.78502 7.9725 5.77552 7.9255 5.77502 7.875C5.77502 7.775 5.80952 7.6875 5.87852 7.6125C5.94752 7.5375 6.03802 7.5 6.15002 7.5H11.85C11.9625 7.5 12.0533 7.5375 12.1223 7.6125C12.1913 7.6875 12.2255 7.775 12.225 7.875C12.225 7.9 12.1875 7.9875 12.1125 8.1375L9.39377 10.8563C9.33127 10.9188 9.26877 10.9625 9.20627 10.9875C9.14377 11.0125 9.07502 11.025 9.00002 11.025C8.92502 11.025 8.85627 11.0125 8.79377 10.9875C8.73127 10.9625 8.66877 10.9188 8.60627 10.8563Z"/>
133133
</svg>
@@ -139,7 +139,7 @@ function color(): string {
139139
.filter(x => x !== null)
140140
.toSorted()
141141
.map(_ =>
142-
<button class="eventValues bg-l-icon-hover dark:bg-d-icon-hover">
142+
<button class="eventValues bg-l-examples dark:bg-d-examples">
143143
<svg class="transition my-auto fill-white" width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
144144
<path d="M8.60627 10.8563L5.88752 8.1375C5.85002 8.1 5.82202 8.0595 5.80352 8.016C5.78502 7.9725 5.77552 7.9255 5.77502 7.875C5.77502 7.775 5.80952 7.6875 5.87852 7.6125C5.94752 7.5375 6.03802 7.5 6.15002 7.5H11.85C11.9625 7.5 12.0533 7.5375 12.1223 7.6125C12.1913 7.6875 12.2255 7.775 12.225 7.875C12.225 7.9 12.1875 7.9875 12.1125 8.1375L9.39377 10.8563C9.33127 10.9188 9.26877 10.9625 9.20627 10.9875C9.14377 11.0125 9.07502 11.025 9.00002 11.025C8.92502 11.025 8.85627 11.0125 8.79377 10.9875C8.73127 10.9625 8.66877 10.9188 8.60627 10.8563Z"/>
145145
</svg>

src/style.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@
3737
--color-l-search-text: #333333;
3838
--color-d-search-text: #c2c2c2;
3939

40-
--color-l-icon-hover: #929292;
40+
--color-l-icon-hover: #BEBFBF;
4141
--color-d-icon-hover: #373737;
4242

4343
--color-l-bg-secondary: #DCDCDC;
4444
--color-d-bg-secondary: #1a1a1a;
4545

4646
--color-l-border: #BFBFBF;
4747
--color-d-border: #3A3A3A;
48+
49+
--color-l-examples: #5A5A5A;
50+
--color-d-examples: #373737;
4851
}
4952

5053
body, p, div, table {

0 commit comments

Comments
 (0)