fix example Card component style (#6123)
* fix example Card component style Card component has uneven border on hover, and in some cases the border is visible even when not hovering * Delete neat-taxis-thank.md --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
This commit is contained in:
parent
f20a85b642
commit
61d47d25c6
1 changed files with 4 additions and 3 deletions
|
@ -23,11 +23,11 @@ const { href, title, body } = Astro.props;
|
|||
.link-card {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
padding: 0.15rem;
|
||||
padding: 0.25rem;
|
||||
background-color: white;
|
||||
background-image: var(--accent-gradient);
|
||||
background-image: none;
|
||||
background-size: 400%;
|
||||
border-radius: 0.5rem;
|
||||
border-radius: 0.6rem;
|
||||
background-position: 100%;
|
||||
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
||||
|
@ -55,6 +55,7 @@ const { href, title, body } = Astro.props;
|
|||
}
|
||||
.link-card:is(:hover, :focus-within) {
|
||||
background-position: 0;
|
||||
background-image: var(--accent-gradient);
|
||||
}
|
||||
.link-card:is(:hover, :focus-within) h2 {
|
||||
color: rgb(var(--accent));
|
||||
|
|
Loading…
Reference in a new issue