Skip to content

Commit 4cb891c

Browse files
committed
Auto merge of #3282 - Turbo87:summary-cards, r=pichfl
FrontPageList::Item: Improve styling ![Bildschirmfoto 2021-02-12 um 16 23 57](https://user-images.githubusercontent.com/141300/107795574-22e6cc80-6d59-11eb-90be-ede8e9640c99.png) This improves the contrast on these links, but also the focus styles are much more visible now :)
2 parents c6774f5 + 8b5e10f commit 4cb891c

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

app/components/front-page-list/item.module.css

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,33 @@
11
.link {
2+
--shadow: 0 2px 3px hsla(51, 50%, 44%, .35);
3+
24
display: flex;
35
align-items: center;
46
width: 100%;
5-
min-height: 60px;
7+
height: 60px;
68
margin: 8px 0;
7-
padding: 0 10px;
8-
background-color: var(--main-bg-dark);
9+
padding: 0 15px;
10+
background-color: white;
911
color: #525252;
1012
text-decoration: none;
13+
border-radius: 7px;
14+
box-shadow: var(--shadow);
15+
transition: background-color 300ms;
16+
17+
&:focus-visible {
18+
outline: none;
19+
box-shadow: 0 0 0 3px var(--yellow500), var(--shadow);
20+
}
21+
22+
&:hover, &:focus-visible {
23+
color: #525252;
24+
background-color: hsl(58deg 72% 97%);
25+
transition: background-color 0ms;
26+
}
1127

12-
&:hover {
13-
background-color: #e4e1cc;
28+
&:active {
29+
transform: translateY(2px);
30+
--shadow: inset 0 0 0 1px hsla(51, 50%, 44%, .15);
1431
}
1532
}
1633

0 commit comments

Comments
 (0)