Skip to content

Commit

Permalink
fix: support mask images on webkit browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
IdoBouskila committed May 29, 2023
1 parent af61b59 commit fd2b821
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ a {
mask: url("/images/pokeball-transparent.svg");
mask-repeat: no-repeat;
mask-size: cover;
-webkit-mask: url("/images/pokeball-transparent.svg");
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: cover;
}

.pokemon-card > div:first-of-type {
Expand Down Expand Up @@ -426,6 +429,8 @@ a {
font-weight: 800;
text-transform: uppercase;
mask-image: linear-gradient(to bottom, #000 50%, transparent 80%);
text-stroke: 2px rgba(255, 255, 255, 0.065);
-webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 80%);
-webkit-text-stroke: 2px rgba(255, 255, 255, 0.065);
z-index: -1;
}
Expand Down Expand Up @@ -563,6 +568,9 @@ a {
left: 50%;
top: 10%;
transform: translate(-50%, 0);
-webkit-mask: url("/images/pokeball-transparent.svg");
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: 100%;
mask: url("/images/pokeball-transparent.svg");
mask-repeat: no-repeat;
mask-size: 100%;
Expand Down Expand Up @@ -786,9 +794,21 @@ td.range-slide {
}

.data-container {
scrollbar-width: thin;
scrollbar-color: currentColor transparent;
padding-bottom: 2vw;
}

.data-container::-webkit-scrollbar-thumb {
background: currentColor;
border-radius: 50px;
}

.data-container::-webkit-scrollbar {
background: transparent;
width: 6px;
}

.data-container .category {
padding: 0;
}
Expand Down

0 comments on commit fd2b821

Please sign in to comment.