diff --git a/src/Controller.html b/src/Controller.html
index 1c55cf26..ae172c70 100644
--- a/src/Controller.html
+++ b/src/Controller.html
@@ -10,7 +10,17 @@
{#each [1, 2, 4, 8] as s}
@@ -118,12 +128,12 @@
.rr-controller {
width: 100%;
height: 80px;
- background: rgba(0, 0, 0, .5);
+ background: #fff;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
- padding: 10px;
+ border-radius: 0 0 5px 5px;
}
.rr-timeline {
@@ -134,13 +144,13 @@
.rr-timeline__time {
padding: 0 20px;
- color: white;
+ color: #11103e;
}
.rr-progress {
width: 100%;
height: 4px;
- background: white;
+ background: #eee;
position: relative;
border-radius: 3px;
}
@@ -150,7 +160,7 @@
position: absolute;
left: 0;
top: 0;
- background: orange
+ background: #E0E1FE;
}
.rr-progress__handler {
@@ -160,10 +170,32 @@
position: absolute;
top: 2px;
transform: translate(-50%, -50%);
- background: orange;
+ background: rgb(73, 80, 246);
+ }
+
+ .rr-controller__btns {
+ display: flex;
+ }
+
+ .rr-controller__btns button {
+ width: 32px;
+ height: 32px;
+ display: flex;
+ padding: 0;
+ align-items: center;
+ justify-content: center;
+ background: none;
+ border: none;
+ border-radius: 50%;
+ cursor: pointer;
+ }
+
+ .rr-controller__btns button:active {
+ background: #E0E1FE;
}
.rr-controller__btns button.active {
- color: orange;
+ color: #fff;
+ background: rgb(73, 80, 246);
}
\ No newline at end of file
diff --git a/src/Player.html b/src/Player.html
index 412f2fbf..8a191986 100644
--- a/src/Player.html
+++ b/src/Player.html
@@ -33,8 +33,8 @@
methods: {
updateScale(el, frameDimension) {
const { width, height } = this.get();
- const widthScale = (width - 20) / frameDimension.width;
- const heightScale = (height - 20) / frameDimension.height;
+ const widthScale = width / frameDimension.width;
+ const heightScale = height / frameDimension.height;
el.style.transform =
`scale(${Math.min(widthScale, heightScale, 1)})` +
'translate(-50%, -50%)';
@@ -60,9 +60,23 @@