Skip to content

Commit 251876d

Browse files
committed
Harmonize box-shadow and backdrop-filter on floating buttons and move host-btn to bottom on mobile to declutter
1 parent 5b6b235 commit 251876d

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

pcd-website/src/components/LanguageSwitcher.vue

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ onUnmounted(() => document.removeEventListener('click', handleOutsideClick));
101101
font-family: var(--font-family);
102102
font-size: 0.8125rem;
103103
font-weight: 600;
104-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
104+
box-shadow: 0 10px 28px rgba(18, 19, 33, 0.18);
105+
backdrop-filter: blur(14px);
105106
transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
106107
white-space: nowrap;
107108
}
@@ -166,13 +167,4 @@ onUnmounted(() => document.removeEventListener('click', handleOutsideClick));
166167
font-weight: 600;
167168
}
168169
169-
@media (max-width: 480px) {
170-
.lang-current {
171-
display: none;
172-
}
173-
174-
.lang-chevron {
175-
display: none;
176-
}
177-
}
178170
</style>

pcd-website/src/styles/global.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ html.theme-transition *::after {
143143
font-weight: 600;
144144
text-decoration: none;
145145
white-space: nowrap;
146-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
146+
box-shadow: 0 10px 28px rgba(18, 19, 33, 0.18);
147+
backdrop-filter: blur(14px);
147148
transition: background-color 0.15s ease, box-shadow 0.15s ease;
148149
cursor: pointer;
149150
}
@@ -158,6 +159,14 @@ html.theme-transition *::after {
158159
color: #1a1a1a;
159160
}
160161

162+
@media (max-width: 600px) {
163+
#host-btn {
164+
top: auto;
165+
bottom: calc(var(--spacing-md) + 80px);
166+
transform: translateX(-50%);
167+
}
168+
}
169+
161170
/* ─── Burger Button ─────────────────────────────────────────── */
162171
#burger-btn {
163172
position: fixed;
@@ -175,7 +184,8 @@ html.theme-transition *::after {
175184
display: flex;
176185
align-items: center;
177186
justify-content: center;
178-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
187+
box-shadow: 0 10px 28px rgba(18, 19, 33, 0.18);
188+
backdrop-filter: blur(14px);
179189
transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
180190
}
181191

0 commit comments

Comments
 (0)