Skip to content

Commit

Permalink
fix: fix controller style
Browse files Browse the repository at this point in the history
  • Loading branch information
misa198 committed Apr 26, 2022
1 parent a346778 commit 8b85b77
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 59 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "youtube-shorts-controller",
"version": "1.0.1",
"version": "1.0.2",
"description": "Youtube Shorts Controller",
"main": "index.js",
"repository": "https://github.com/misa198/youtube-shorts-controller/tree/master",
Expand Down
120 changes: 62 additions & 58 deletions src/styles/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,82 +2,86 @@
opacity: 0 !important;
}

.reel-video-in-sequence.style-scope.ytd-shorts > #player-container {
position: relative !important;
.reel-video-in-sequence.style-scope.ytd-shorts {
#player-container {
position: relative !important;

.mute-button {
width: 36px;
height: 36px;
position: absolute !important;
top: 16px;
right: 16px;
z-index: 11;
cursor: pointer;

svg {
.mute-button {
width: 36px;
height: 36px;
fill: #fff;
position: absolute !important;
top: 16px;
right: 16px;
z-index: 11;
cursor: pointer;

svg {
width: 36px;
height: 36px;
fill: #fff;
}
}
}

.processbar {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 477px;
height: 3px;
.processbar {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: var(--ytd-shorts-player-width);
min-width: var(--ytd-shorts-min-width);
height: 3px;

&__container {
position: relative;
width: 100%;
height: 100%;
}
&__container {
position: relative;
width: 100%;
height: 100%;
}

&__thumb {
position: absolute;
height: 100%;
background-color: #c00;
transition: width 0.1s;
&__thumb {
position: absolute;
height: 100%;
background-color: #c00;
transition: width 0.1s;
}
}
}

#shorts-controller-overlay {
position: absolute;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 10;
width: 477px;
height: 848px;
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease-in-out;

.shorts-controller {
width: 100%;
#shorts-controller-overlay {
position: absolute;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 10;
width: var(--ytd-shorts-player-width);
min-width: var(--ytd-shorts-min-width);
height: 848px;
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease-in-out;

&__buttons {
.shorts-controller {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}

&__button {
width: 60px;
height: 60px;
margin-left: 10px;
margin-right: 10px;
&__buttons {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}

&__button {
width: 60px;
height: 60px;
margin-left: 10px;
margin-right: 10px;
}
}
}
}

&:hover #shorts-controller-overlay {
opacity: 1;
&:hover #shorts-controller-overlay {
opacity: 1;
}
}
}

0 comments on commit 8b85b77

Please sign in to comment.