Add styling for player bar
This commit is contained in:
parent
6afc982721
commit
c9ad030e70
@ -1,3 +1,4 @@
|
|||||||
|
@import 'playbar.scss';
|
||||||
@import 'theme.scss';
|
@import 'theme.scss';
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
91
style/playbar.scss
Normal file
91
style/playbar.scss
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
@import 'theme.scss';
|
||||||
|
|
||||||
|
.playbar {
|
||||||
|
width: 100%;
|
||||||
|
height: 75px;
|
||||||
|
background-color: $play-bar-background-color;
|
||||||
|
opacity: 0.9;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
|
.invisible-media-progress {
|
||||||
|
width: 100%;
|
||||||
|
height: 14px;
|
||||||
|
background-color: transparent;
|
||||||
|
position: absolute;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
padding-top: 7px;
|
||||||
|
|
||||||
|
.media-progress {
|
||||||
|
width: 100%;
|
||||||
|
height: 3px;
|
||||||
|
background-color: $controls-click-color;
|
||||||
|
|
||||||
|
.media-progress-solid {
|
||||||
|
position: relative;
|
||||||
|
height: 3px;
|
||||||
|
background: linear-gradient(90deg, $play-grad-start, $play-grad-end);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-progress-solid::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
height: 3px;
|
||||||
|
width: 100%;
|
||||||
|
background: linear-gradient(90deg, $play-grad-start, $play-grad-end);
|
||||||
|
z-index: -1;
|
||||||
|
filter: blur(3px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-info {
|
||||||
|
font-size: 16;
|
||||||
|
margin-left: 10px;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 50px 1fr;
|
||||||
|
|
||||||
|
.media-info-img {
|
||||||
|
width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-info-text {
|
||||||
|
text-align: left;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.playcontrols {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
button {
|
||||||
|
.controlbtn {
|
||||||
|
color: $text-controls-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controlbtn:hover {
|
||||||
|
color: $controls-hover-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controlbtn:active {
|
||||||
|
color: $controls-click-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
background-color: transparent;
|
||||||
|
border: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.playduration {
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
top: 13px;
|
||||||
|
}
|
||||||
|
}
|
@ -3,3 +3,6 @@ $accent-color: #4032a8;
|
|||||||
$text-controls-color: #e0e0e0;
|
$text-controls-color: #e0e0e0;
|
||||||
$controls-hover-color: #c0c0c0;
|
$controls-hover-color: #c0c0c0;
|
||||||
$controls-click-color: #909090;
|
$controls-click-color: #909090;
|
||||||
|
$play-bar-background-color: #212121;
|
||||||
|
$play-grad-start: #0a0533;
|
||||||
|
$play-grad-end: $accent-color;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user