File tree Expand file tree Collapse file tree 6 files changed +23
-30
lines changed Expand file tree Collapse file tree 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;
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 )}
Original file line number Diff line number Diff line change 22import { CardGrid } from ' @astrojs/starlight/components' ;
33import IconLinkCard from ' @src/components/IconLinkCard.astro' ;
44---
5- <hr >
6-
75<CardGrid >
86 <IconLinkCard
97 icon =" seti:powershell"
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { marked } from 'marked';
55import fs from " fs" ;
66import path from " path" ;
77import { Code } from ' @astrojs/starlight/components' ;
8- import ' @src/styles/function-page.css' ;
98import { getSeeAlsoLinksForItem } from ' @src/utils/general' ;
109
1110import NoteBox from ' @src/components/NoteBox.astro' ;
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import path from "path";
99import { Code } from ' @astrojs/starlight/components' ;
1010
1111import NoteBox from ' @src/components/NoteBox.astro' ;
12- import ' @src/styles/function-page.css' ;
1312import type { NotesType } from ' @src/utils/types' ;
1413
1514import SeeAlsoSection from ' @src/components/SeeAlsoSection.astro' ;
Original file line number Diff line number Diff line change 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 );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments