Skip to content

Commit

Permalink
Update example website for add custom css.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Sep 19, 2023
1 parent 03f854b commit 86f9607
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example-website/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import DefaultTheme from 'vitepress/theme';
import '../../style.css';

export default DefaultTheme;
32 changes: 32 additions & 0 deletions example-website/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.callout {
padding: 0.5em 1em;
margin: 2.5em 0;
border: 2px solid #ccc;
border-radius: 5px;
font-size: 1em;
}

.grid {
display: grid;
grid-gap: 10px;
grid-auto-rows: auto;
grid-auto-columns: auto;
background: transparent;
margin: 2.5em 0;
}

.grid-col-2 {
grid-template-columns: repeat(2, 1fr);
}

.grid-col-3 {
grid-template-columns: repeat(3, 1fr);
}

.grid-col-4 {
grid-template-columns: repeat(4, 1fr);
}

.grid-col-5 {
grid-template-columns: repeat(5, 1fr);
}

0 comments on commit 86f9607

Please sign in to comment.