docbrown/app/assets/stylesheets/shared.scss
ludwiczakpawel 2c0245dd5c
[deploy] Bringing back the original progress bar (#9019)
* flare tag line height

* .

* dropdown fix + actions bar fix

* actions bar on mob

* .

* .
2020-06-30 17:18:38 -04:00

226 lines
4.8 KiB
SCSS

@import 'config/import';
@import 'variables';
#audiocontent {
position: fixed;
bottom: 0px;
left: 0px;
right: 0px;
z-index: 15;
font-family: var(--ff-default);
display: block;
#progressBar {
color: #fff;
width: 100%;
height: calc(48px + 1vh);
margin-top: 100px;
position: fixed;
left: 0;
bottom: 0;
right: 0;
text-align: left;
background: rgb(236, 236, 236);
z-index: 19;
display: none;
&.playing {
display: block;
}
#episode-profile-image {
height: calc(48px + 1vh);
width: calc(48px + 1vh);
}
#animated-bars {
position: absolute;
bottom: -12px;
left: -15px;
width: 80px;
opacity: 0.3;
display: none;
&.playing {
display: block;
}
}
#barPlayPause {
height: calc(48px + 1vh);
width: calc(48px + 1vh);
background: rgb(32, 32, 32);
position: absolute;
left: calc(48px + 1vh);
bottom: 0px;
cursor: pointer;
.butt {
width: calc(35px + 0.5vh);
margin: calc(8px + 0.17vh) 7px;
}
.pause-butt {
display: none;
}
&.playing {
.play-butt {
display: none;
}
.pause-butt {
display: block;
}
}
}
.showing {
display: block;
}
.hidden {
display: none;
}
#volume {
height: calc(48px + 1vh);
width: 36px;
background: rgb(32, 32, 32);
position: absolute;
left: calc(100px + 1vh);
bottom: 0px;
cursor: pointer;
img {
padding: 3px;
margin-top: 4px;
margin-left: 4px;
margin-bottom: -11px;
}
#speed {
font-weight: 300;
font-size: calc(12px + 0.2vh);
padding: 3px 0px;
width: 28px;
margin-left: -0.5px;
text-align: center;
margin-top: calc(2px + 0.5vh);
display: block;
user-select: none;
background: transparent;
color: rgb(201, 201, 201);
}
.volume-icon-wrapper {
padding: 1px 0px;
}
#volumeindicator {
.range-wrapper {
position: absolute;
top: 0px;
left: 26px;
background: rgb(32, 32, 32);
z-index: 30;
width: 0;
overflow: hidden;
transition: width 200ms ease-out 95ms;
padding: 8px 0px 5px;
text-align: center;
input {
width: 80%;
cursor: pointer;
}
}
@media screen and (min-width: 430px) {
&:hover {
.range-wrapper {
width: 170px;
}
}
}
}
}
.buffer-wrapper {
height: calc(48px + 1vh);
position: absolute;
left: calc(136px + 1vh);
right: 0;
bottom: 0;
cursor: pointer;
#progress {
background-color: #00ffa3;
height: calc(48px + 1vh);
display: inline-block;
position: relative;
z-index: 23;
transition: width 0.25s ease-in-out;
}
#buffer {
background-color: #96ffd9;
height: calc(48px + 1vh);
display: inline-block;
position: absolute;
bottom: 0;
z-index: 22;
transition: width 0.15s ease-in-out;
}
#time {
position: absolute;
right: calc(50px + 0.1vh + 1.5vw);
top: calc(16px + 0.1vh);
z-index: 23;
color: rgb(161, 161, 161);
font-size: calc(14px + 0.2vh);
background: rgba(236, 236, 236, 0.74);
padding: 2px;
}
#closebutt {
position: absolute;
user-select: none;
right: 0;
top: 0;
bottom: 0;
background: white;
border-left: rgba(236, 236, 236, 1);
margin: 0px;
padding: 0px;
padding-top: calc(8px + 0.2vh);
color: #535353;
font-size: 13.5px;
z-index: 25;
width: calc(42px + 0.1vh + 1.5vw);
text-align: center;
transition: all 0.3s ease 0s;
white-space: nowrap;
font-size: calc(25px + 0.2vh);
&:hover {
color: #ff4343;
}
}
}
}
}
.navigation-progress {
--duration: 3600ms;
--delay: 250ms;
position: fixed;
top: 0;
background: var(--accent-brand);
z-index: 103;
height: var(--su-1);
width: 0;
&.showing {
display: block;
animation: showProgressBar var(--duration) ease-in-out;
animation-delay: var(--delay);
animation-fill-mode: forwards;
}
}
@keyframes showProgressBar {
0% {
width: 0;
}
100% {
width: 100%;
}
}
.global-notice {
font-family: var(--ff-default);
background: $green;
color: black;
padding: 20px 0px 20px;
text-align: center;
position: relative;
top: 0px;
left: 0px;
right: 0px;
}