Skip to content

Commit

Permalink
dry in styles.css swr-site example
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Sep 11, 2024
1 parent 585f8a8 commit aa5d7f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ out/

tsup.config.bundled*
tsconfig.tsbuildinfo
pagefind/
28 changes: 11 additions & 17 deletions examples/swr-site/styles.css
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
@import 'nextra-theme-docs/dist/style.css' layer(nextra-base);

@tailwind utilities;

.dark .invert-on-dark {
filter: invert(1) brightness(1.8);
}

body {
background:
linear-gradient(
to bottom,
rgba(255, 255, 255, 0) 0%,
rgb(var(--nextra-bg)) 300px
),
fixed 0 0 / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0),
fixed 10px 10px / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0);
}
--bg-dot-color: #d1d1d1;

.dark & {
--bg-dot-color: #313131;
}

.dark body {
background:
linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgb(var(--nextra-bg)) 300px
),
fixed 0 0 / 20px 20px radial-gradient(#313131 1px, transparent 0),
fixed 10px 10px / 20px 20px radial-gradient(#313131 1px, transparent 0);
linear-gradient(to bottom, transparent, rgb(var(--nextra-bg)) 300px),
fixed 0 0 / 20px 20px
radial-gradient(var(--bg-dot-color) 1px, transparent 0),
fixed 10px 10px / 20px 20px
radial-gradient(var(--bg-dot-color) 1px, transparent 0);
}

0 comments on commit aa5d7f8

Please sign in to comment.