Condition hover effect on posts to bigger screens
This commit is contained in:
parent
7ebdde1af4
commit
06093bedb3
1 changed files with 13 additions and 7 deletions
|
|
@ -774,8 +774,7 @@ body.layout-single-column {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
background: var(--color-content-bg-focus);
|
background: var(--color-content-bg-focus);
|
||||||
}
|
}
|
||||||
.layout-single-column .status__wrapper.focusable:focus,
|
.layout-single-column .status__wrapper.focusable:focus {
|
||||||
.layout-single-column .status__wrapper:has(.status__content:hover) {
|
|
||||||
box-shadow:
|
box-shadow:
|
||||||
inset 72px 0 var(--color-content-bg-focus),
|
inset 72px 0 var(--color-content-bg-focus),
|
||||||
0 -2px var(--color-content-secondary-bg) inset;
|
0 -2px var(--color-content-secondary-bg) inset;
|
||||||
|
|
@ -786,11 +785,18 @@ body.layout-single-column {
|
||||||
inset 72px 0 var(--color-content-bg-focus),
|
inset 72px 0 var(--color-content-bg-focus),
|
||||||
0 -2px var(--color-content-secondary-bg) inset;
|
0 -2px var(--color-content-secondary-bg) inset;
|
||||||
}
|
}
|
||||||
.layout-single-column .status__wrapper:has(.status--first-in-thread .status__content:hover) {
|
@media screen and (min-width:1175px) { /* Subtle hover effect when you hover over a post content in the timeline. Only on bigger screens. */
|
||||||
|
.layout-single-column .status__wrapper:has(.status__content:hover) {
|
||||||
|
box-shadow:
|
||||||
|
inset 72px 0 var(--color-content-bg-focus),
|
||||||
|
0 -2px var(--color-content-secondary-bg) inset;
|
||||||
|
}
|
||||||
|
.layout-single-column .status__wrapper:has(.status--first-in-thread .status__content:hover) {
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 -3px var(--color-bg),
|
0 -3px var(--color-bg),
|
||||||
inset 72px 0 var(--color-content-bg-focus),
|
inset 72px 0 var(--color-content-bg-focus),
|
||||||
0 -2px var(--color-content-secondary-bg) inset;
|
0 -2px var(--color-content-secondary-bg) inset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 👁️ Post detailed view */
|
/* 👁️ Post detailed view */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue