Skip to content

Commit b8ae4be

Browse files
authored
Merge pull request #6590 from WoltLab/62-css-cleanup
Remove obsolete CSS declarations
2 parents 04f0b38 + 0e0c447 commit b8ae4be

File tree

10 files changed

+22
-43
lines changed

10 files changed

+22
-43
lines changed

wcfsetup/install/files/style/layout/gridList.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@
6666
position: absolute;
6767
}
6868

69-
&:hover,
70-
&:focus {
69+
&:hover {
7170
color: inherit;
7271
text-decoration: underline;
7372
text-underline-offset: 3px;

wcfsetup/install/files/style/ui/contentItem.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
top: 0;
4646
}
4747

48-
&:hover,
49-
&:focus {
48+
&:hover {
5049
color: inherit;
5150
}
5251
}

wcfsetup/install/files/style/ui/discussionList.scss

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -208,16 +208,11 @@
208208
inset: 0;
209209
position: absolute;
210210
}
211-
212-
&:hover,
213-
&:focus {
214-
color: inherit;
215-
}
216211
}
217212

218213
@media (hover: hover) {
219-
.discussionList__item__link:hover,
220-
.discussionList__item__link:focus {
214+
.discussionList__item__link:hover {
215+
color: inherit;
221216
text-decoration: underline;
222217
text-underline-offset: 3px;
223218
}
@@ -248,16 +243,11 @@
248243
inset: 0;
249244
position: absolute;
250245
}
251-
252-
&:hover,
253-
&:focus {
254-
color: inherit;
255-
}
256246
}
257247

258248
@media (hover: hover) {
259-
.discussionList__item__lastPost__link:hover,
260-
.discussionList__item__lastPost__link:focus {
249+
.discussionList__item__lastPost__link:hover {
250+
color: inherit;
261251
text-decoration: underline;
262252
text-underline-offset: 3px;
263253
}

wcfsetup/install/files/style/ui/embeddedContent.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
z-index: 1;
4949
}
5050

51-
&:hover,
52-
&:focus {
51+
&:hover {
5352
color: inherit;
5453
}
5554
}

wcfsetup/install/files/style/ui/entryCardList.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ html:not(.touch) .entryCardList__item:hover .entryCardList__item__image__element
142142
position: absolute;
143143
}
144144

145-
&:hover,
146-
&:focus {
145+
&:hover {
147146
color: inherit;
148147
}
149148
}

wcfsetup/install/files/style/ui/notificationList.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
position: absolute;
5353
}
5454

55-
&:hover,
56-
&:focus {
55+
&:hover {
5756
color: inherit;
5857
}
5958
}

wcfsetup/install/files/style/ui/recentActivityList.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,10 @@
134134
inset: 0;
135135
position: absolute;
136136
}
137+
}
137138

138-
&:hover,
139-
&:focus {
139+
@media (hover: hover) {
140+
.recentActivityListItem__link:hover {
140141
color: inherit;
141142
text-decoration: underline;
142143
text-underline-offset: 3px;

wcfsetup/install/files/style/ui/sidebarList.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@
5555
inset: 0;
5656
position: absolute;
5757
}
58+
}
5859

59-
&:hover,
60-
&:focus {
60+
@media (hover: hover) {
61+
.sidebarListItem .sidebarListItem__link:hover {
6162
color: inherit;
6263
text-decoration: underline;
6364
text-underline-offset: 3px;
@@ -71,8 +72,7 @@
7172
.sidebarListItem__meta a {
7273
color: inherit;
7374

74-
&:hover,
75-
&:focus {
75+
&:hover {
7676
color: inherit;
7777
}
7878
}

wcfsetup/install/files/style/ui/unfurlUrl.scss

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,17 @@ html[data-color-scheme="dark"] .unfurlUrlCard {
8383
-webkit-line-clamp: 2;
8484

8585
&::before {
86-
bottom: 0;
8786
content: "";
88-
left: 0;
87+
inset: 0;
8988
position: absolute;
90-
right: 0;
91-
top: 0;
92-
}
93-
94-
&:hover,
95-
&:focus {
96-
color: inherit;
9789
}
9890
}
9991

100-
@media (pointer: fine) {
101-
.unfurlUrlCard:hover .unfurlUrlTitle {
92+
@media (hover: hover) {
93+
.unfurlUrlTitle:hover {
94+
color: inherit;
10295
text-decoration: underline;
96+
text-underline-offset: 3px;
10397
}
10498
}
10599

wcfsetup/install/files/style/ui/userCard.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@
141141
position: absolute;
142142
}
143143

144-
&:hover,
145-
&:focus {
144+
&:hover {
146145
color: inherit;
147146
}
148147
}

0 commit comments

Comments
 (0)