Skip to content

Commit b6150a6

Browse files
committed
increase distance between colors
1 parent 5b714ff commit b6150a6

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/components/docs/Doc.astro

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function color(): string {
4646
case DocType.CONDITION:
4747
return "6f1896";
4848
case DocType.EFFECT:
49-
return "337A00";
49+
return "6d9604";
5050
case DocType.EXPRESSION:
5151
return "006e43";
5252
case DocType.FUNCTION:
@@ -56,7 +56,7 @@ function color(): string {
5656
case DocType.SECTION:
5757
return "718400";
5858
case DocType.STRUCTURE:
59-
return "7a0074";
59+
return "966518";
6060
default:
6161
return "000000";
6262
}
@@ -67,7 +67,7 @@ function color(): string {
6767
class="doc-container">
6868

6969
<div class="flex sm:flex-row flex-col gap-y-2 -mb-2">
70-
<div class="flex flex-row gap-3 flex-shrink-0">
70+
<div class="flex flex-row gap-4 flex-shrink-0">
7171
{docType.deprecated ? <h2 class="opacity-50 line-through">{docType.name}</h2> : <h2>{docType.name}</h2>}
7272
<div class="flex-auto sm:flex-0"></div>
7373
<button class="share flex sm:hidden">
@@ -85,12 +85,12 @@ function color(): string {
8585
{[docType.deprecated].filter(x => x).map(x => <DocsFiche text="Deprecated" color="520f0f"/>)}
8686
{[docType.cancellable].filter(x => x).map(x => <DocsFiche text="Cancellable" color="112998"/>)}
8787
{[docType.requirements?.join("")].filter(x => x).map(x => {
88-
x = x?.replaceAll(/[.+0-9]/g, "")?.trim();
88+
x = x?.replaceAll(/[.+0-9]|(or newer)/g, "")?.trim();
8989

9090
if (x?.toLowerCase() === "paper") {
91-
return <DocsFiche text="Paper" color="7d037f"/>;
91+
return <DocsFiche text="Paper" color="c900a0"/>;
9292
} else if (x?.toLowerCase().includes("paper")) {
93-
return <DocsFiche text="Partially Paper" color="7d037f"/>;
93+
return <DocsFiche text="Partially Paper" color="c900a0"/>;
9494
} else {
9595
return null;
9696
}
@@ -139,6 +139,7 @@ function color(): string {
139139

140140
{[docType.eventValues]
141141
.filter(x => x !== null)
142+
.toSorted()
142143
.map(_ =>
143144
<button class="eventValues bg-l-icon-hover dark:bg-d-icon-hover">
144145
<svg class="transition my-auto fill-white" width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">

src/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
--color-l-search-text: #333333;
2323
--color-d-search-text: #CCCCCC;
2424

25-
--color-l-icon-hover: #DEDEDE;
25+
--color-l-icon-hover: #A8A8A8;
2626
--color-d-icon-hover: #373737;
2727

2828
--color-l-bg-secondary: #DCDCDC;
@@ -94,7 +94,7 @@ pre {
9494
}
9595

9696
.syntax-active {
97-
@apply bg-skript;
97+
@apply bg-skript text-white font-bold;
9898
}
9999

100100
.doc-container {

0 commit comments

Comments
 (0)