File tree 6 files changed +23
-30
lines changed
6 files changed +23
-30
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const { codeExamples } = Astro.props;
18
18
<div class = " examples-section" >
19
19
<h4 >Code Examples</h4 >
20
20
{ codeExamples .map ((example ) => (
21
- <div class = " function -example" >
21
+ <div class = " code -example" >
22
22
{ example .description && (
23
23
<Fragment set :html = { marked (example .description )} />
24
24
)}
Original file line number Diff line number Diff line change 2
2
import { CardGrid } from ' @astrojs/starlight/components' ;
3
3
import IconLinkCard from ' @src/components/IconLinkCard.astro' ;
4
4
---
5
- <hr >
6
-
7
5
<CardGrid >
8
6
<IconLinkCard
9
7
icon =" seti:powershell"
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { marked } from 'marked';
5
5
import fs from " fs" ;
6
6
import path from " path" ;
7
7
import { Code } from ' @astrojs/starlight/components' ;
8
- import ' @src/styles/function-page.css' ;
9
8
import { getSeeAlsoLinksForItem } from ' @src/utils/general' ;
10
9
11
10
import NoteBox from ' @src/components/NoteBox.astro' ;
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import path from "path";
9
9
import { Code } from ' @astrojs/starlight/components' ;
10
10
11
11
import NoteBox from ' @src/components/NoteBox.astro' ;
12
- import ' @src/styles/function-page.css' ;
13
12
import type { NotesType } from ' @src/utils/types' ;
14
13
15
14
import SeeAlsoSection from ' @src/components/SeeAlsoSection.astro' ;
Original file line number Diff line number Diff line change 14
14
font-size : 0.7em ;
15
15
}
16
16
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
+
17
39
/* Styling for "Client-side / Server-side / Shared" */
18
40
.side-shared {
19
41
color : var (--color-type-shared );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments