Skip to content

Commit 8232dee

Browse files
committed
fix bad contrast and improve fake glass material
1 parent e4e47e9 commit 8232dee

File tree

6 files changed

+25
-15
lines changed

6 files changed

+25
-15
lines changed

src/components/Card.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { name, url, description, image, alt = "", background } = Astro.props;
1212
transition: all 300ms cubic-bezier(0.17, 0.89, 0.32, 1.28);
1313
margin: 0;
1414
padding: 0;
15-
border-radius: 1.5rem;
15+
border-radius: 1.1rem;
1616
background-color: oklab(0 0 0/5%);
1717
@media (prefers-color-scheme: dark) {
1818
background-color: oklab(1 0 0/5%);

src/components/Navigation/AccentButton.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@
6969
border-radius: 1rem;
7070
margin: 0.5rem 0rem;
7171
padding: 1rem;
72-
background-color: oklch(from var(--accent-color) 0.95 0.03 h / 75%);
72+
background-color: oklch(from var(--accent-color) 0.95 0.03 h / 90%);
7373
box-shadow:
7474
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
7575
0 0 1rem rgba(0, 0, 0, 0.05),
7676
inset 0 1px 1px rgba(255, 255, 255, 0.5),
7777
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
7878

7979
@media (prefers-color-scheme: dark) {
80-
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 75%);
80+
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 90%);
8181
box-shadow:
8282
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
8383
0 0 1rem rgba(0, 0, 0, 0.05),
@@ -87,7 +87,7 @@
8787
position: absolute;
8888
z-index: 2;
8989

90-
backdrop-filter: blur(25px);
90+
backdrop-filter: blur(2px);
9191
font-size: 0.8rem;
9292

9393
display: flex;
@@ -105,7 +105,7 @@
105105
}
106106

107107
#accent-button {
108-
backdrop-filter: blur(25px);
108+
backdrop-filter: blur(2px);
109109
height: 44px;
110110
width: 44px;
111111
border-radius: 100px;
@@ -119,15 +119,15 @@
119119
color: oklch(from var(--accent-color) 0.7 0.15 h);
120120
font-weight: 600;
121121
font-size: inherit;
122-
background-color: oklch(from var(--accent-color) 0.95 0.03 h / 75%);
122+
background-color: oklch(from var(--accent-color) 0.98 0.03 h / 90%);
123123
box-shadow:
124124
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
125125
0 0 1rem rgba(0, 0, 0, 0.05),
126126
inset 0 1px 1px rgba(255, 255, 255, 0.5),
127127
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
128128

129129
@media (prefers-color-scheme: dark) {
130-
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 75%);
130+
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 90%);
131131
box-shadow:
132132
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
133133
0 0 1rem rgba(0, 0, 0, 0.05),

src/components/Navigation/Headerbar.astro

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { pageTitle } = Astro.props;
1010
display: flex;
1111
box-sizing: border-box;
1212
height: 80px;
13-
padding: 18px;
13+
padding: 1rem;
1414
position: sticky;
1515
top: 0;
1616
align-items: stretch;
@@ -40,7 +40,16 @@ const { pageTitle } = Astro.props;
4040
font-size: 16px;
4141
font-weight: 590;
4242
text-align: center;
43-
qqqqqq
43+
background-color: oklch(from var(--accent-color) 0.98 0.03 h / 90%);
44+
padding: 4px 16px;
45+
border-radius: 18px;
46+
backdrop-filter: blur(2px);
47+
48+
box-shadow:
49+
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
50+
0 0 1rem rgba(0, 0, 0, 0.05),
51+
inset 0 1px 1px rgba(255, 255, 255, 0.5),
52+
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
4453
}
4554
}
4655
</style>

src/components/Navigation/TabBarLarge.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
padding: 0.25rem;
88
width: fit-content;
99
height: fit-content;
10-
backdrop-filter: blur(25px);
10+
backdrop-filter: blur(2px);
1111
border-radius: 999px;
12-
background-color: oklch(from var(--accent-color) 0.95 0.03 h / 75%);
12+
background-color: oklch(from var(--accent-color) 0.98 0.03 h / 90%);
1313
box-shadow:
1414
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
1515
0 0 1rem rgba(0, 0, 0, 0.05),
1616
inset 0 1px 1px rgba(255, 255, 255, 0.5),
1717
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
1818

1919
@media (prefers-color-scheme: dark) {
20-
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 75%);
20+
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 90%);
2121
box-shadow:
2222
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
2323
0 0 1rem rgba(0, 0, 0, 0.05),

src/components/Navigation/TabBarSmall.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
box-sizing: border-box;
1111
width: fit-content;
1212
height: 62px;
13-
backdrop-filter: blur(25px);
13+
backdrop-filter: blur(2px);
1414
border-radius: 999px;
15-
background-color: oklch(from var(--accent-color) 0.95 0.03 h / 75%);
15+
background-color: oklch(from var(--accent-color) 0.98 0.03 h / 90%);
1616
box-shadow:
1717
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
1818
0 0 1rem rgba(0, 0, 0, 0.05),
1919
inset 0 1px 1px rgba(255, 255, 255, 0.5),
2020
inset 0 0 0.27rem rgba(255, 255, 255, 0.5);
2121

2222
@media (prefers-color-scheme: dark) {
23-
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 75%);
23+
background-color: oklch(from var(--accent-color) 0.24 0.017 h / 90%);
2424
box-shadow:
2525
0 0.3rem 0.3rem rgba(0, 0, 0, 0.1),
2626
0 0 1rem rgba(0, 0, 0, 0.05),

src/styles/global.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ main {
4141
img {
4242
max-width: 100%;
4343
height: auto;
44+
border-radius: 1.1rem;
4445
}
4546

4647
/* Fonts */

0 commit comments

Comments
 (0)