diff options
author | 2021-07-21 18:02:45 -0500 | |
---|---|---|
committer | 2021-07-21 18:02:45 -0500 | |
commit | ba6b47eda7589b4794b52218457229bb04e7d139 (patch) | |
tree | e14948d60546edc693bf17e5a3363d5ee3a988fc /docs/src/components | |
parent | 1085542d9d559c9bb94ad4e918970763d28947f1 (diff) | |
download | astro-ba6b47eda7589b4794b52218457229bb04e7d139.tar.gz astro-ba6b47eda7589b4794b52218457229bb04e7d139.tar.zst astro-ba6b47eda7589b4794b52218457229bb04e7d139.zip |
Hsla composition (#790)
* update theme colors to hsla
* Add light navbar bg color
* remove duplicate color assignments in Note.astro
* clean up
Clean up css variables and document use of hsla colors
Diffstat (limited to 'docs/src/components')
-rw-r--r-- | docs/src/components/Note.astro | 3 | ||||
-rw-r--r-- | docs/src/components/SiteSidebar.astro | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/docs/src/components/Note.astro b/docs/src/components/Note.astro index c3ae29cb4..a9c2ebf51 100644 --- a/docs/src/components/Note.astro +++ b/docs/src/components/Note.astro @@ -35,14 +35,11 @@ const { type = 'tip', title } = Astro.props; .note.type-tip { --color: var(--color-green); - --color-rgb: var(--color-green-rgb); } .note.type-warning { --color: var(--color-yellow); - --color-rgb: var(--color-yellow-rgb); } .note.type-error { --color: var(--color-red); - --color-rgb: var(--color-red-rgb); } </style> diff --git a/docs/src/components/SiteSidebar.astro b/docs/src/components/SiteSidebar.astro index ebdf918f5..05779e882 100644 --- a/docs/src/components/SiteSidebar.astro +++ b/docs/src/components/SiteSidebar.astro @@ -84,7 +84,7 @@ const {currentPage} = Astro.props; } :global(:root.theme-dark) .nav-link a[aria-current="page"] { - color: var(--color-white); + color: hsla(var(--color-base-white), 100%, 1); } @media (min-width: 60em) { |