Improve card background
This commit is contained in:
parent
dc86d30eb2
commit
e8177c9c0a
2 changed files with 11 additions and 3 deletions
|
|
@ -76,8 +76,7 @@ section.timeline-element {
|
|||
width: 50%;
|
||||
|
||||
.date {
|
||||
transform: translateX(calc(var(--icon-size) / 2 + 12px))
|
||||
translateY(-10%);
|
||||
transform: translateX(calc(var(--icon-size) / 2 + 12px)) translateY(-10%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -85,7 +84,12 @@ section.timeline-element {
|
|||
.card {
|
||||
@include card-base();
|
||||
border-radius: var(--border-radius);
|
||||
background-color: var(--card-color);
|
||||
|
||||
background-color: var(--blurred-card-color);
|
||||
backdrop-filter: blur(var(--blur-radius));
|
||||
@supports not (backdrop-filter: blur(var(--blur-radius))) {
|
||||
background-color: var(--card-color);
|
||||
}
|
||||
|
||||
& > *:not(:first-child) {
|
||||
margin-top: var(--line-height);
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
--background: #ffffff;
|
||||
--normal-text-color: #31343f;
|
||||
--card-color: #ffffff;
|
||||
--blurred-card-color: transparent;
|
||||
--blur-radius: 16px;
|
||||
--special-text-color: var(--accent-color);
|
||||
}
|
||||
|
||||
|
|
@ -50,6 +52,8 @@
|
|||
--background: #242638;
|
||||
--normal-text-color: #ffffff;
|
||||
--card-color: #263551;
|
||||
--blurred-card-color: #26355166;
|
||||
--blur-radius: 24px;
|
||||
--special-text-color: #ffffff;
|
||||
--inset-shadow: inset 0 0 10px 2px rgba(0, 0, 0, 0.175),
|
||||
inset 0 0 1px rgba(0, 0, 0, 0.4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue