Skip to content

Commit

Permalink
feat: transparent nav header
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Dec 30, 2022
1 parent b2153fa commit 58e51d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/main/MainContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defineProps<{
<div relative>
<div
sticky top-0 z10
border="b base" bg-base
border="b base" bg="[rgba(var(--c-bg-base-rgb),0.7)]" backdrop-blur
>
<div flex justify-between px5 py4>
<div flex gap-3 items-center overflow-hidden>
Expand Down
2 changes: 2 additions & 0 deletions styles/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
--c-border-dark: #dccfcf;

--c-bg-base: #fafafa;
--c-bg-base-rgb: 250, 250, 250;
--c-bg-active: #f2f2f2;
--c-bg-code: #00000006;
--c-bg-selection: #8885;
Expand Down Expand Up @@ -34,6 +35,7 @@
--c-border-dark: #545251;

--c-bg-base: #111;
--c-bg-base-rgb: 17, 17, 17;
--c-bg-active: #191919;
--c-bg-code: #ffffff06;
--c-bg-fade: #EA9E4411;
Expand Down

0 comments on commit 58e51d4

Please sign in to comment.