Skip to content

Commit

Permalink
remove dynamic range query
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoho committed Jan 15, 2024
1 parent ddc150b commit fd4b29b
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions hugo/assets/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@
@import url('https://unpkg.com/open-props/oklch-hues.min.css');
@import url('https://unpkg.com/open-props/gray-oklch.min.css');

@media (dynamic-range: high) {
/* does this browser understand display-p3? */
@supports (color: oklch(99% 0.03 0)) {
:root {
--color-hue: var(--hue-indigo);
--gray-hue: var(--hue-indigo);
--gray-chroma: 0.02;
}
}
}

:where(html) {
--font-sans: Prompt, sans-serif;
}

:root {
--link: var(--color-10);
--text-1: var(--gray-12);
Expand All @@ -43,6 +28,18 @@
}
}

@supports (color: oklch(99% 0.03 0)) {
:root {
--color-hue: var(--hue-indigo);
--gray-hue: var(--hue-indigo);
--gray-chroma: 0.02;
}
}

:where(html) {
--font-sans: Prompt, sans-serif;
}

// body {
// background-image: url('/images/christmas-spirit-day.avif');
// background-size: contain;
Expand Down Expand Up @@ -102,6 +99,7 @@ p + p {

.header {
background-color: var(--surface-2);

padding: var(--size-fluid-3) 0;
margin-block-end: var(--size-fluid-3);
align-items: center;
Expand Down Expand Up @@ -131,6 +129,7 @@ p + p {
color: var(--text-2);
text-transform: uppercase;
gap: var(--size-fluid-1);
letter-spacing: 1px;
}

.title {
Expand Down

0 comments on commit fd4b29b

Please sign in to comment.