From c75c1cb3e13657a2509f80ce2bfb6d0858c4b314 Mon Sep 17 00:00:00 2001 From: empathicqubit Date: Mon, 21 May 2018 19:05:14 -0400 Subject: [PATCH] Styling tweaks. --- frontend/src/admin.css | 29 +++++++++++++++++++++++++++-- frontend/src/admin.js | 7 ++++--- frontend/src/buffer-client.js | 2 +- 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/frontend/src/admin.css b/frontend/src/admin.css index fd3414f..9de75f9 100644 --- a/frontend/src/admin.css +++ b/frontend/src/admin.css @@ -11,19 +11,30 @@ } .clients > li { + margin: .5em; min-width: 350px; width: 15vw; display: block; float: left; } +.sources { + margin-top: .5em; + border-radius: .3em; + overflow: hidden; + font-weight: 900; +} + .sources > li { - background-color: red; + background-color: #c01030; list-style-type: none; + border-bottom: 1px solid #c55; + padding: .5em .3em; } .sources > li.enabled { - background-color: green; + border-bottom: 1px solid #5c5; + background-color: #109030; } .name-input { @@ -40,6 +51,20 @@ padding: 1em; } +.knobs .pan { + background-image: url('../node_modules/material-design-icons/action/svg/design/ic_pan_tool_24px.svg'); + background-size: 50%; + background-repeat: no-repeat; + background-position: 40% 35%; +} + +.knobs .gain { + background-image: url('../node_modules/material-design-icons/av/svg/design/ic_volume_up_24px.svg'); + background-size: 70%; + background-repeat: no-repeat; + background-position: 70% 46%; +} + .track-controls { display: flex; } diff --git a/frontend/src/admin.js b/frontend/src/admin.js index eca50d3..c790ad1 100644 --- a/frontend/src/admin.js +++ b/frontend/src/admin.js @@ -180,7 +180,7 @@ class Admin extends React.Component { ) : (
- Current play position: {this.state.syncPacket.timecode / 1000}
+ Current play position: {this.state.syncPacket.timecode / 1000} seconds
this.adjustTimecode(evt.target.value) } />
- Current play position: {this.props.realPosition / 1000} + Current play position: {this.props.realPosition / 1000} seconds
Enabled sources: