Skip to content

Commit 5715210

Browse files
.
1 parent 5393162 commit 5715210

File tree

6 files changed

+23
-30
lines changed

6 files changed

+23
-30
lines changed

web/src/components/CodeExamplesSection.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const { codeExamples } = Astro.props;
1818
<div class="examples-section">
1919
<h4>Code Examples</h4>
2020
{codeExamples.map((example) => (
21-
<div class="function-example">
21+
<div class="code-example">
2222
{example.description && (
2323
<Fragment set:html={marked(example.description)} />
2424
)}

web/src/overrides/Pagination.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import { CardGrid } from '@astrojs/starlight/components';
33
import IconLinkCard from '@src/components/IconLinkCard.astro';
44
---
5-
<hr>
6-
75
<CardGrid>
86
<IconLinkCard
97
icon="seti:powershell"

web/src/pages/[event].astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { marked } from 'marked';
55
import fs from "fs";
66
import path from "path";
77
import { Code } from '@astrojs/starlight/components';
8-
import '@src/styles/function-page.css';
98
import { getSeeAlsoLinksForItem } from '@src/utils/general';
109
1110
import NoteBox from '@src/components/NoteBox.astro';

web/src/pages/[func].astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import path from "path";
99
import { Code } from '@astrojs/starlight/components';
1010
1111
import NoteBox from '@src/components/NoteBox.astro';
12-
import '@src/styles/function-page.css';
1312
import type { NotesType } from '@src/utils/types';
1413
1514
import SeeAlsoSection from '@src/components/SeeAlsoSection.astro';

web/src/styles/custom.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,28 @@
1414
font-size: 0.7em;
1515
}
1616

17+
.function-syntax,
18+
.function-oop,
19+
.notes-section,
20+
.examples-section {
21+
margin-top: 1.5rem;
22+
margin-bottom: 1.5rem;
23+
}
24+
25+
.see-also-section {
26+
margin-top: 2rem;
27+
}
28+
29+
.code-example {
30+
margin-bottom: 1.5rem;
31+
}
32+
.code-example > :first-child {
33+
margin-bottom: 0.5rem;
34+
}
35+
.code-example > :last-child {
36+
margin-bottom: 0;
37+
}
38+
1739
/* Styling for "Client-side / Server-side / Shared" */
1840
.side-shared {
1941
color: var(--color-type-shared);

web/src/styles/function-page.css

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)