Skip to content

Commit 42d0069

Browse files
authored
Backgrounds for video buttons (#2405)
* Backgrounds for video buttons * Portrait only
1 parent e205c97 commit 42d0069

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

frontends/main/src/app-pages/HomePage/VideoShortsModal.tsx

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,41 @@ const Overlay = styled.div(({ theme }) => ({
1919
},
2020
}))
2121

22-
const CloseButton = styled(ActionButton)({
22+
const BaseButton = styled(ActionButton)(({ theme }) => ({
2323
position: "absolute",
24-
top: "16px",
25-
right: "16px",
2624
zIndex: 1201,
2725
svg: {
2826
fill: "white",
2927
},
30-
})
28+
[`${theme.breakpoints.down("md")} and (orientation: portrait)`]: {
29+
backgroundColor: "rgba(0, 0, 0, 0.3)",
30+
borderRadius: "50%",
31+
height: "58px",
32+
width: "58px",
33+
right: "26px",
34+
"&&:hover": {
35+
backgroundColor: "rgba(40, 40, 40, 0.6)",
36+
},
37+
},
38+
}))
3139

32-
const MuteButton = styled(ActionButton)({
33-
position: "absolute",
40+
const CloseButton = styled(BaseButton)(({ theme }) => ({
41+
top: "16px",
42+
right: "16px",
43+
[`${theme.breakpoints.down("md")} and (orientation: portrait)`]: {
44+
top: "26px",
45+
right: "26px",
46+
},
47+
}))
48+
49+
const MuteButton = styled(BaseButton)(({ theme }) => ({
3450
right: "16px",
3551
bottom: "16px",
36-
zIndex: 1201,
37-
svg: {
38-
fill: "white",
52+
[`${theme.breakpoints.down("md")} and (orientation: portrait)`]: {
53+
bottom: "26px",
54+
right: "26px",
3955
},
40-
})
56+
}))
4157

4258
const CarouselSlide = styled.div<{ width: number }>(({ width, theme }) => ({
4359
width,

0 commit comments

Comments
 (0)