-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: lainio24 <[email protected]>
- Loading branch information
1 parent
0a56c32
commit df8db4e
Showing
9 changed files
with
289 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
:root { | ||
--border-color: #7e7e7e; | ||
--bg-color: #f0f0f0; | ||
--fg-color: #181818; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
--bg-color: #181818; | ||
--fg-color: #f0f0f0; | ||
} | ||
} | ||
|
||
.hide { | ||
display: none !important; | ||
} | ||
.invisible { | ||
visibility: hidden !important; | ||
} | ||
|
||
.visible { | ||
opacity: 1; | ||
visibility: visible; | ||
} | ||
.invisible { | ||
opacity: 0; | ||
visibility: hidden; | ||
} | ||
.visibility-transition { | ||
/* transition: opacity 400ms ease, visibility 400ms ease; */ | ||
} | ||
|
||
.center { | ||
text-align: center; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
background-color: var(--bg-color); | ||
color: var(--fg-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
& { | ||
position: absolute; | ||
height: 100%; | ||
width: 100%; | ||
background-color: black !important; | ||
user-select: none; | ||
} | ||
|
||
&[data-mouse-idle='true'] { | ||
.overlays { | ||
cursor: none; | ||
} | ||
} | ||
|
||
video { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.overlays { | ||
position: fixed !important; | ||
bottom: 0; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
} | ||
|
||
.box { | ||
background-color: var(--bg-color); | ||
border: { | ||
width: 1px; | ||
style: solid; | ||
color: var(--border-color); | ||
} | ||
} | ||
|
||
&.fullscreen .controls { | ||
padding: 2px 4px; | ||
} | ||
|
||
.controls-wrapper { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
z-index: 999999; | ||
|
||
.controls { | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
gap: 4px; | ||
padding: 2px 4px 4px 4px; | ||
border-width: 1px 0 0 0 !important; | ||
|
||
button.play-toggle { | ||
padding: 2px 5px; | ||
} | ||
|
||
.volume-wrapper { | ||
display: flex; | ||
gap: 2px; | ||
height: 22px; | ||
|
||
.volume { | ||
max-width: 3em; | ||
} | ||
} | ||
|
||
.progress-wrapper { | ||
flex: 1; | ||
position: relative; | ||
display: flex; | ||
height: 22px; | ||
|
||
.progress { | ||
width: 100%; | ||
} | ||
|
||
.progress-popup { | ||
position: absolute; | ||
padding: 2px 4px; | ||
top: -32px; | ||
} | ||
} | ||
|
||
.time-label { | ||
line-height: 0; | ||
|
||
.time-input { | ||
font-family: auto; | ||
font-size: inherit; | ||
padding: 0; | ||
cursor: text; | ||
border: none; | ||
background-color: var(--bg-color); | ||
|
||
&::-webkit-datetime-edit { | ||
display: contents; | ||
} | ||
&::-webkit-calendar-picker-indicator { | ||
display: none; | ||
} | ||
&::-webkit-datetime-edit-fields-wrapper, | ||
&::-webkit-datetime-edit-hour-field, | ||
&::-webkit-datetime-edit-minute-field, | ||
&::-webkit-datetime-edit-second-field { | ||
padding: 0; | ||
} | ||
} | ||
} | ||
|
||
.playback-rate { | ||
height: 22px; | ||
} | ||
|
||
.danmaku-controls { | ||
display: flex; | ||
gap: 2px; | ||
|
||
input { | ||
max-width: 3em; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.toast { | ||
position: absolute; | ||
padding: 2px 4px; | ||
width: fit-content; | ||
top: 4px; | ||
left: 6px; | ||
z-index: 999999; | ||
} | ||
|
||
.danmaku-list { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
margin: auto; | ||
padding: 12px 10px 12px 18px; | ||
max-width: 460px; | ||
max-height: 540px; | ||
z-index: 999990; | ||
|
||
ul { | ||
width: 100%; | ||
height: 100%; | ||
overflow-y: auto; | ||
padding: 0; | ||
margin: 0; | ||
|
||
li { | ||
padding: 4px 0; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
|
||
& > span:first-child { | ||
margin-right: 12px; | ||
} | ||
|
||
&::marker { | ||
display: none; | ||
} | ||
} | ||
} | ||
} | ||
|
||
input[type='number']::-webkit-inner-spin-button, | ||
input[type='number']::-webkit-outer-spin-button { | ||
opacity: 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
& { | ||
margin: 2em auto; | ||
max-width: 75%; | ||
} | ||
|
||
&, | ||
tr, | ||
td { | ||
border: 1px solid; | ||
border-collapse: collapse; | ||
padding: 4px 6px; | ||
} | ||
|
||
tr > td:nth-child(1) { | ||
text-wrap: nowrap; | ||
} | ||
|
||
th { | ||
padding: 0.5em; | ||
|
||
& > div { | ||
font-weight: lighter; | ||
font-size: smaller; | ||
color: var(--border-color); | ||
} | ||
} |
Oops, something went wrong.