Skip to content

Commit

Permalink
fix slight color outline rendering artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
vincerubinetti committed Jan 5, 2024
1 parent cae4da3 commit 4bbf180
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions src/grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
aspect-ratio: 1 / var(--ratio);
width: 100%;
gap: 5px;
background: var(--mid);
color: var(--white);
text-align: center;
overflow-wrap: anywhere;
Expand All @@ -41,10 +40,10 @@
transition: opacity var(--fast);
}

@keyframes link {
from {
opacity: 0;
}
.link:hover,
.link:focus,
.link:not(:has(.image)) {
background: var(--mid);
}

.grid:has(.link:hover, .link:focus) .link {
Expand All @@ -56,6 +55,12 @@
opacity: 1 !important;
}

@keyframes link {
from {
opacity: 0;
}
}

.link > * {
position: absolute;
pointer-events: none;
Expand All @@ -77,9 +82,7 @@

.initials,
.image {
transition:
opacity var(--fast),
transform var(--fast);
transition: opacity var(--fast), transform var(--fast);
}

.link:hover .initials,
Expand All @@ -97,9 +100,7 @@
font-weight: 600;
font-size: 1.1rem;
opacity: 0;
transition:
opacity var(--fast),
transform var(--fast);
transition: opacity var(--fast), transform var(--fast);
}

.link:hover .name,
Expand All @@ -120,9 +121,7 @@
text-align: center;
opacity: 0;
pointer-events: none;
transition:
opacity var(--fast),
transform var(--fast);
transition: opacity var(--fast), transform var(--fast);
transition-delay: 0;
}

Expand All @@ -144,9 +143,7 @@
color: var(--white);
clip-path: polygon(0% 0%, 105% 0%, 0% 105%);
pointer-events: none;
transition:
opacity var(--fast),
transform var(--fast);
transition: opacity var(--fast), transform var(--fast);
}

.outline {
Expand Down

0 comments on commit 4bbf180

Please sign in to comment.