Skip to content

Commit 495a1d3

Browse files
committed
💄 コントローラーの画面オーバーレイ濃度を調整
1 parent cfc264d commit 495a1d3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/contentPlayer/Controller.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export const CoiledController: React.VFC<{}> = () => {
230230
)}
231231
>
232232
<div
233-
className={`select-none transition-opacity duration-150 ease-in-out pt-3 p-4 pb-6 bg-gradient-to-b bg-opacity-50 from-black to-transparent ${
233+
className={`select-none transition-opacity duration-150 ease-in-out pt-3 p-4 pb-4 bg-gradient-to-b bg-opacity-60 from-blackOpacity to-transparent ${
234234
isVisible ? "opacity-100" : "opacity-0"
235235
}`}
236236
>
@@ -265,7 +265,7 @@ export const CoiledController: React.VFC<{}> = () => {
265265
</div>
266266
</div>
267267
<div
268-
className={`flex flex-col text-gray-100 select-none transition-opacity duration-150 ease-in-out w-full p-2 bg-gradient-to-t from-black to-transparent ${
268+
className={`flex flex-col text-gray-100 select-none transition-opacity duration-150 ease-in-out w-full p-2 bg-gradient-to-t bg-opacity-60 from-blackOpacity to-transparent ${
269269
isVisible ? "opacity-100" : "opacity-0"
270270
}`}
271271
onDoubleClick={(e) => e.stopPropagation()}

tailwind.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ module.exports = {
1717
require("tailwind-scrollbar"),
1818
],
1919
theme: {
20+
gradientColorStops: (theme) => ({
21+
...theme("colors"),
22+
blackOpacity: "rgba(0, 0, 0, var(--tw-bg-opacity))",
23+
}),
2024
extend: {
2125
cursor: {
2226
none: "none",

0 commit comments

Comments
 (0)