mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
refactor, wrap controller within shadowroot
This commit is contained in:
34
shadow.css
34
shadow.css
@@ -4,11 +4,32 @@
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
:host(:hover) .tc-controls {
|
||||
:host(:hover) #controls {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.tc-controls {
|
||||
#controller {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
background: black;
|
||||
color: white;
|
||||
|
||||
border-radius: 5px;
|
||||
padding: 5px;
|
||||
margin: 10px 10px 10px 15px;
|
||||
|
||||
cursor: default;
|
||||
z-index: 9999999;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
#controller:hover {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
#controls {
|
||||
display: none;
|
||||
margin-left: 1em;
|
||||
}
|
||||
@@ -18,7 +39,6 @@ button {
|
||||
color: black;
|
||||
background: white;
|
||||
font-weight: bold;
|
||||
margin: 0 2px;
|
||||
border-radius: 5px;
|
||||
padding: 1px 6px 3px 6px;
|
||||
font-size: 14px;
|
||||
@@ -27,6 +47,10 @@ button {
|
||||
font-family: "Lucida Console", Monaco, monospace;
|
||||
}
|
||||
|
||||
button:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
opacity: 1.0;
|
||||
}
|
||||
@@ -39,7 +63,7 @@ button.rw {
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
button.tc-hideButton {
|
||||
margin: 0 2px 0 20px;
|
||||
button.hideButton {
|
||||
margin: 0 2px 0 15px;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
Reference in New Issue
Block a user