From 45c3b7ff3e4dc1406ed70da7070dd05b1de3846c Mon Sep 17 00:00:00 2001 From: ElaMoscicka Date: Mon, 30 Jul 2018 22:28:05 +0200 Subject: [PATCH] added spacing --- 11 - Custom Video Player/style.css | 76 ++++++++++++++++-------------- 1 file changed, 41 insertions(+), 35 deletions(-) diff --git a/11 - Custom Video Player/style.css b/11 - Custom Video Player/style.css index ab3b5b2..f2420cd 100644 --- a/11 - Custom Video Player/style.css +++ b/11 - Custom Video Player/style.css @@ -9,19 +9,19 @@ html { body { margin: 0; padding: 0; - display:flex; - background:#7A419B; - min-height:100vh; + display: flex; + background: #7A419B; + min-height: 100vh; background: linear-gradient(135deg, #7c1599 0%,#921099 48%,#7e4ae8 100%); - background-size:cover; + background-size: cover; align-items: center; justify-content: center; } .player { - max-width:750px; - border:5px solid rgba(0,0,0,0.2); - box-shadow:0 0 20px rgba(0,0,0,0.2); + max-width: 750px; + border: 5px solid rgba(0,0,0,0.2); + box-shadow: 0 0 20px rgba(0,0,0,0.2); position: relative; font-size: 0; overflow: hidden; @@ -43,15 +43,15 @@ body { } .player__button { - background:none; - border:0; - line-height:1; - color:white; + background: none; + border: 0; + line-height: 1; + color: white; text-align: center; - outline:0; + outline: 0; padding: 0; - cursor:pointer; - max-width:50px; + cursor: pointer; + max-width: 50px; } .player__button:focus { @@ -59,19 +59,19 @@ body { } .player__slider { - width:10px; - height:30px; + width: 10px; + height: 30px; } .player__controls { - display:flex; + display: flex; position: absolute; - bottom:0; + bottom: 0; width: 100%; transform: translateY(100%) translateY(-5px); - transition:all .3s; - flex-wrap:wrap; - background:rgba(0,0,0,0.1); + transition: all .3s; + flex-wrap: wrap; + background: rgba(0,0,0,0.1); } .player:hover .player__controls { @@ -79,42 +79,44 @@ body { } .player:hover .progress { - height:15px; + height: 15px; } .player__controls > * { - flex:1; + flex: 1; } .progress { - flex:10; + flex: 10; position: relative; - display:flex; - flex-basis:100%; - height:5px; - transition:height 0.3s; - background:rgba(0,0,0,0.5); - cursor:ew-resize; + display: flex; + flex-basis: 100%; + height: 5px; + transition: height 0.3s; + background: rgba(0,0,0,0.5); + cursor: ew-resize; } .progress__filled { - width:50%; - background:#ffc600; - flex:0; - flex-basis:50%; + width: 50%; + background: #ffc600; + flex: 0; + flex-basis: 50%; } /* unholy css to style input type="range" */ input[type=range] { -webkit-appearance: none; - background:transparent; + background: transparent; width: 100%; margin: 0 5px; } + input[type=range]:focus { outline: none; } + input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8.4px; @@ -124,6 +126,7 @@ input[type=range]::-webkit-slider-runnable-track { border-radius: 1.3px; border: 0.2px solid rgba(1, 1, 1, 0); } + input[type=range]::-webkit-slider-thumb { height: 15px; width: 15px; @@ -134,9 +137,11 @@ input[type=range]::-webkit-slider-thumb { margin-top: -3.5px; box-shadow:0 0 2px rgba(0,0,0,0.2); } + input[type=range]:focus::-webkit-slider-runnable-track { background: #bada55; } + input[type=range]::-moz-range-track { width: 100%; height: 8.4px; @@ -146,6 +151,7 @@ input[type=range]::-moz-range-track { border-radius: 1.3px; border: 0.2px solid rgba(1, 1, 1, 0); } + input[type=range]::-moz-range-thumb { box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0); height: 15px; -- knotmirror 0.0.1