Skip to content

Commit 2e6e741

Browse files
authored
feat: revamp focus video css (#6)
1 parent 5dfada0 commit 2e6e741

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "Flot",
44
"description": "Open websites in a floating window",
5-
"version": "2.1.1",
5+
"version": "2.2.0",
66
"author": {
77
"name": "Andrew Brey",
88
"email": "[email protected]"

renderer/public/css/embed.css

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -45,34 +45,33 @@
4545
/*****************************
4646
* Video css (experimental)
4747
*****************************/
48-
.flotapp.flot-video video,
49-
.flotapp.flot-video video::before,
50-
.flotapp.flot-video video::after {
48+
.flotapp.flot-video {
49+
overflow: hidden !important;
50+
--flot-opacity: 1;
51+
}
52+
.flotapp.flot-video *:not(:has(video)):not(video) {
53+
opacity: 0 !important;
54+
visibility: hidden !important;
55+
pointer-events: none !important;
56+
width: 0 !important;
57+
height: 0 !important;
58+
overflow: hidden !important;
59+
}
60+
.flotapp.flot-video *:has(video) {
61+
background-color: transparent !important;
62+
}
63+
.flotapp.flot-video video {
64+
opacity: var(--flot-opacity) !important;
65+
width: 100vw !important;
66+
height: 100vh !important;
5167
position: fixed !important;
52-
display: block !important;
5368
top: 0 !important;
69+
bottom: 0 !important;
5470
left: 0 !important;
5571
right: 0 !important;
56-
bottom: 0 !important;
57-
width: 100vw !important;
58-
height: 100vh !important;
59-
}
60-
61-
.flotapp.flot-video video {
72+
padding: 0 !important;
73+
margin: 0 !important;
6274
object-fit: contain !important;
75+
background: rgba(0 0 0 / var(--flot-opacity)) !important;
6376
isolation: isolate !important;
64-
visibility: visible !important;
65-
overflow: visible !important;
66-
}
67-
68-
.flotapp.flot-video video::before,
69-
.flotapp.flot-video video::after {
70-
content: "" !important;
71-
background: #000 !important;
72-
}
73-
74-
.flotapp.flot-video :not(video) {
75-
pointer-events: none !important;
76-
visibility: hidden !important;
77-
overflow: hidden !important;
7877
}

0 commit comments

Comments
 (0)