diff --git a/style/main.scss b/style/main.scss index 0906ab0..e49fe50 100644 --- a/style/main.scss +++ b/style/main.scss @@ -1,3 +1,4 @@ +@import 'playbar.scss'; @import 'theme.scss'; body { diff --git a/style/playbar.scss b/style/playbar.scss new file mode 100644 index 0000000..058b6c4 --- /dev/null +++ b/style/playbar.scss @@ -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; + } +} diff --git a/style/theme.scss b/style/theme.scss index 2d35d94..9ac5872 100644 --- a/style/theme.scss +++ b/style/theme.scss @@ -3,3 +3,6 @@ $accent-color: #4032a8; $text-controls-color: #e0e0e0; $controls-hover-color: #c0c0c0; $controls-click-color: #909090; +$play-bar-background-color: #212121; +$play-grad-start: #0a0533; +$play-grad-end: $accent-color;