Skip to content

Commit

Permalink
fix: remove hover padding on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Enter-tainer committed Sep 30, 2024
1 parent 983f8f7 commit b522450
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions frontend/lib/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

@custom-selector :--review
[data-review-enabled][data-original-document-start][data-original-document-end];
@custom-media --mobile (width <= 768px);
@custom-media --mobile (width <=768px);

@keyframes HighlightBackground {
0% {
background-color: rgba(255, 255, 255, 0);
}

50% {
background-color: var(--review-variant-color);
}

100% {
background-color: rgba(255, 255, 255, 0);
}
Expand Down Expand Up @@ -50,9 +52,11 @@
height: 1em;
vertical-align: 0;
}

.iconify-icon.iconify-inline {
vertical-align: -0.125em;
}

.review_dark_mode .iconify-icon {
color: var(--review-text-color);
}
Expand All @@ -78,16 +82,20 @@
cursor: pointer;
}

[data-review-enabled] {
position: relative;
&::after {
content: "";
position: absolute;
top: 30px;
left: 100%;
width: 30px;
height: calc(100% - 30px);
clip-path: polygon(0 0, 0 100%, 100% 0);
@media not (--mobile) {
[data-review-enabled] {
position: relative;

&::after {
content: "";
position: absolute;
top: 30px;
left: 100%;
width: 30px;
height: calc(100% - 30px);
clip-path: polygon(0 0, 0 100%, 100% 0);
fill: red;
}
}
}

Expand Down

0 comments on commit b522450

Please sign in to comment.