Skip to content

Commit 9b3e90d

Browse files
committed
Move style to custom.css
1 parent 2340fd5 commit 9b3e90d

File tree

2 files changed

+25
-27
lines changed

2 files changed

+25
-27
lines changed

web/src/pages/reference/[func].astro

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -81,33 +81,6 @@ const needsChecking = metaArray.find(m => m.needs_checking)?.needs_checking ?? u
8181
let funcSyntaxes = parseFunctionSyntaxes(func.id, func.data);
8282
---
8383

84-
<style>
85-
.added-updated-description-box {
86-
display: flex;
87-
flex-direction: column;
88-
background-color: var(--sl-color-bg-nav);
89-
border-radius: 10px;
90-
}
91-
92-
.added-updated-description-box-header {
93-
padding: 0.5rem 1.0rem;
94-
color: var(--sl-color-text);
95-
background-color: var(--sl-color-gray-5);
96-
border-radius: 10px 10px 0 0;
97-
}
98-
99-
.added-updated-description-box.removed-box .added-updated-description-box-header {
100-
background-color: var(--color-type-client-background-high);
101-
color: #f85c50;
102-
font-weight: bold;
103-
}
104-
105-
.added-updated-description-box-body {
106-
margin: 0;
107-
padding: 1rem 1rem;
108-
}
109-
</style>
110-
11184
<div class={"show-type-badge-" + funcType}>
11285
<StarlightPage frontmatter={{
11386
template: 'doc',

web/src/styles/custom.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,29 @@
6666

6767
.mta-keyword-link:hover {
6868
font-weight: 100;
69+
}
70+
71+
.added-updated-description-box {
72+
display: flex;
73+
flex-direction: column;
74+
background-color: var(--sl-color-bg-nav);
75+
border-radius: 10px;
76+
}
77+
78+
.added-updated-description-box-header {
79+
padding: 0.5rem 1.0rem;
80+
color: var(--sl-color-text);
81+
background-color: var(--sl-color-gray-5);
82+
border-radius: 10px 10px 0 0;
83+
}
84+
85+
.added-updated-description-box.removed-box .added-updated-description-box-header {
86+
background-color: var(--color-type-client-background-high);
87+
color: #f85c50;
88+
font-weight: bold;
89+
}
90+
91+
.added-updated-description-box-body {
92+
margin: 0;
93+
padding: 1rem 1rem;
6994
}

0 commit comments

Comments
 (0)