forked from aminomancer/uc.css.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
picture-in-picture.css
96 lines (83 loc) · 2.78 KB
/
picture-in-picture.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* styles the picture-in-picture overlay */
#pictureInPictureToggle.pip-wrapper {
top: calc(50% - 1px) !important;
}
#pictureInPictureToggle .pip-expanded {
display: flex !important;
opacity: 1 !important;
scale: 1 1 !important;
box-shadow: 0 0 4px 0 hsla(240, 4%, 4.9%, 0.25) !important;
border: none !important;
padding: unset !important;
cursor: pointer !important;
background-color: var(--picture-in-picture-toggle-bgcolor) !important;
max-height: 26px !important;
border-top-left-radius: 2px !important;
border-bottom-left-radius: 2px !important;
border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
pointer-events: auto !important;
}
#pictureInPictureToggle .pip-icon {
background-image: url(chrome://userchrome/content/tab-picture-in-picture.svg) !important;
background-position: 0 1.6px !important;
background-repeat: no-repeat;
margin-left: 0 !important;
margin-right: 5.5px !important;
width: 18px !important;
height: 18px !important;
min-width: 18px !important;
background-size: contain !important;
}
#pictureInPictureToggle .pip-icon-label {
padding-block: 4px !important;
padding-inline-start: 5.5px;
font-size: 13px !important;
margin-block: 1px 0;
font-weight: 500 !important;
}
@supports -moz-bool-pref("userChrome.css.mac-ui-fonts") {
#pictureInPictureToggle .pip-icon-label {
font-family: SF Pro, Segoe UI, sans-serif !important;
font-kerning: normal !important;
}
.pictureInPictureOverlay {
font-family: SF Pro Display, Segoe UI, sans-serif !important;
font-kerning: normal !important;
}
}
#pictureInPictureToggle .pip-label {
margin-block: 0 !important;
margin-right: 5px !important;
min-height: 18px !important;
max-height: 18px !important;
}
#pictureInPictureToggle .pip-explainer,
#pictureInPictureToggle .pip-small,
#pictureInPictureToggle > .pip-icon {
display: none !important;
}
#pictureInPictureToggle {
pointer-events: none !important;
}
.controlsOverlay.hovering #pictureInPictureToggle {
opacity: 1 !important;
}
#pictureInPictureToggle .pip-expanded,
.controlsOverlay[hidetoggle="true"].hovering > #pictureInPictureToggle > .pip-expanded {
opacity: 0 !important;
transform-style: flat !important;
backface-visibility: hidden !important;
transition: opacity 250ms, translate 190ms !important;
translate: calc(48px) !important;
}
.controlsOverlay.hovering #pictureInPictureToggle .pip-expanded {
opacity: 1 !important;
translate: 0 !important;
translate: calc(19px) !important;
}
.controlsOverlay.hovering #pictureInPictureToggle .pip-expanded:hover {
opacity: 1 !important;
translate: 0 !important;
translate: calc(-100% + 48px) !important;
}