small styling changes
This commit is contained in:
parent
df720cd978
commit
a2085c39e2
5 changed files with 28 additions and 69 deletions
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
<span id="bridgeInput">
|
<span id="bridgeInput">
|
||||||
{{paper-input label="Hue bridge IP address" value=manualBridgeIp}}
|
{{paper-input label="Hue bridge IP address" value=manualBridgeIp}}
|
||||||
{{#paper-button action="findBridgeByIp" primary=true}}Find{{/paper-button}}
|
{{#paper-button action="findBridgeByIp" raised=true primary=true}}Find{{/paper-button}}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{{#if manualBridgeIpNotFound}}
|
{{#if manualBridgeIpNotFound}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import Em from 'ember';
|
import Em from 'ember';
|
||||||
|
|
||||||
export default Em.Component.extend({
|
export default Em.Component.extend({
|
||||||
classNames: ['col-lg-4', 'col-lg-offset-4', 'col-md-6', 'col-md-offset-3', 'col-xs-12'],
|
classNames: ['col-lg-4', 'col-lg-offset-4', 'col-md-6', 'col-md-offset-3', 'col-sm-8', 'col-sm-offset-2', 'col-xs-12'],
|
||||||
classNameBindings: ['active::hidden'],
|
classNameBindings: ['active::hidden'],
|
||||||
|
|
||||||
activeLights: [],
|
activeLights: [],
|
||||||
|
|
@ -29,8 +29,8 @@ export default Em.Component.extend({
|
||||||
|
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
var self = this;
|
var self = this;
|
||||||
// TODO remove debug
|
// TODO figure out how to convert this
|
||||||
this.xyToRgb(0.5,0.5);
|
//this.xyToRgb(0.5,0.5);
|
||||||
Em.$(document).click(function() {
|
Em.$(document).click(function() {
|
||||||
if(self.get('colorPickerDisplayed') && !event.target.classList.contains('color') && !Em.$(event.target).closest('.colorpicker, .colorRow').length) {
|
if(self.get('colorPickerDisplayed') && !event.target.classList.contains('color') && !Em.$(event.target).closest('.colorpicker, .colorRow').length) {
|
||||||
self.toggleProperty('colorPickerDisplayed');
|
self.toggleProperty('colorPickerDisplayed');
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ export default Em.Component.extend(musicControlMixin, visualizerMixin, {
|
||||||
this.changePlayerControl('transitionTime', beatOptions.transitionTime.defaultValue, true);
|
this.changePlayerControl('transitionTime', beatOptions.transitionTime.defaultValue, true);
|
||||||
},
|
},
|
||||||
playerAreaPlay(){
|
playerAreaPlay(){
|
||||||
if(Em.isEmpty(Em.$('#playerControls:hover'))){
|
if(Em.isEmpty(Em.$('#playerControls:hover')) && this.get('playQueuePointer') !== -1 ){
|
||||||
this.send('play');
|
this.send('play');
|
||||||
this.set('fadeOutNotification', true);
|
this.set('fadeOutNotification', true);
|
||||||
Em.$('#playNotification').removeClass('fadeOut').prop('offsetWidth', Em.$('#playNotification').prop('offsetWidth')).addClass('fadeOut');
|
Em.$('#playNotification').removeClass('fadeOut').prop('offsetWidth', Em.$('#playNotification').prop('offsetWidth')).addClass('fadeOut');
|
||||||
|
|
@ -500,7 +500,7 @@ export default Em.Component.extend(musicControlMixin, visualizerMixin, {
|
||||||
});
|
});
|
||||||
|
|
||||||
// prevent space/text selection when the user repeatedly clicks on the center
|
// prevent space/text selection when the user repeatedly clicks on the center
|
||||||
Em.$('#beatSpeakerContainer').on('mousedown', '#beatSpeakerCenterInner', function(event) {
|
Em.$('#beatContainer').on('mousedown', '#beatSpeakerCenterInner', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -165,6 +165,7 @@
|
||||||
<div id="beatContainer" class="col-lg-4 col-xs-12">
|
<div id="beatContainer" class="col-lg-4 col-xs-12">
|
||||||
{{#if speakerViewed}}
|
{{#if speakerViewed}}
|
||||||
<div class="bezel">
|
<div class="bezel">
|
||||||
|
<div class="rivet1"></div>
|
||||||
<div class="rivet2"></div>
|
<div class="rivet2"></div>
|
||||||
<div class="rivet3"></div>
|
<div class="rivet3"></div>
|
||||||
<div class="rivet4"></div>
|
<div class="rivet4"></div>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
$playerBackColor: #F12B24;
|
$playerBackColor: #F12B24;
|
||||||
$playerHeight: 400px;
|
$playerHeight: 400px;
|
||||||
$playListBackgroundColor: #1E1E1E;
|
|
||||||
$playerDefaultIconColor: #BBBBBB;
|
$playerDefaultIconColor: #BBBBBB;
|
||||||
$footerHeight: 40px;
|
$footerHeight: 40px;
|
||||||
|
|
||||||
|
|
@ -463,7 +462,7 @@ md-switch.md-default-theme.md-checked .md-thumb {
|
||||||
}
|
}
|
||||||
|
|
||||||
.playerControllIcon.active {
|
.playerControllIcon.active {
|
||||||
color: #F12B24 !important;
|
color: white !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.playerControllIcon:hover {
|
.playerControllIcon:hover {
|
||||||
|
|
@ -509,7 +508,7 @@ md-switch.md-default-theme.md-checked .md-thumb {
|
||||||
|
|
||||||
#playlist {
|
#playlist {
|
||||||
height: $playerHeight;
|
height: $playerHeight;
|
||||||
background-color: $playListBackgroundColor;
|
background-color: #1E1E1E;
|
||||||
padding: 0 5px 0 5px;
|
padding: 0 5px 0 5px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
@ -522,6 +521,9 @@ md-switch.md-default-theme.md-checked .md-thumb {
|
||||||
#playerArea * .noUi-base {
|
#playerArea * .noUi-base {
|
||||||
background-color: $playerBackColor;
|
background-color: $playerBackColor;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noUi-base {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -626,7 +628,7 @@ md-switch.md-default-theme.md-checked .md-thumb {
|
||||||
}
|
}
|
||||||
|
|
||||||
.songArtist {
|
.songArtist {
|
||||||
font-style: italic;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#playListArea.dragHereHighlight {
|
#playListArea.dragHereHighlight {
|
||||||
|
|
@ -646,25 +648,26 @@ md-switch.md-default-theme.md-checked .md-thumb {
|
||||||
}
|
}
|
||||||
|
|
||||||
.playlistItem {
|
.playlistItem {
|
||||||
min-height: 50px;
|
height: 65px;
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
padding: 5px 20px 5px 5px;
|
padding: 5px 20px 5px 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: darken(white, 20%);
|
color: black;
|
||||||
|
background: darken(white, 5%);
|
||||||
.close {
|
.close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 25%;
|
top: 10%;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.playlistItem.active {
|
.playlistItem.active {
|
||||||
background-color: lighten($playListBackgroundColor, 30%);
|
background: darken(white, 15%) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.playlistItem:hover {
|
.playlistItem:hover {
|
||||||
background-color: lighten($playListBackgroundColor, 40%);
|
background: darken(white, 10%);
|
||||||
color: white;
|
|
||||||
.close {
|
.close {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
@ -682,7 +685,6 @@ md-switch.md-default-theme.md-checked .md-thumb {
|
||||||
|
|
||||||
#beatArea * .noUi-base, #beatArea * .noUi-background {
|
#beatArea * .noUi-base, #beatArea * .noUi-background {
|
||||||
background-color: #ADADAD;
|
background-color: #ADADAD;
|
||||||
cursor: pointer;
|
|
||||||
border: 1px solid #797979;
|
border: 1px solid #797979;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -787,59 +789,15 @@ $vibrateblur1:1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Keyframes */
|
/* Keyframes */
|
||||||
@keyframes vibrate {
|
@keyframes vibrateInner {
|
||||||
0% {
|
|
||||||
-webkit-filter: blur($vibrateblur);
|
|
||||||
filter: blur($vibrateblur);
|
|
||||||
height: $vibratesize;
|
|
||||||
width: $vibratesize;
|
|
||||||
margin-left: $vibratemargin;
|
|
||||||
margin-top: $vibratemargin;
|
|
||||||
}
|
|
||||||
30% {
|
|
||||||
-webkit-filter: blur(0);
|
|
||||||
filter: blur(0);
|
|
||||||
height: $centersize;
|
|
||||||
width: $centersize;
|
|
||||||
}
|
|
||||||
50% {
|
50% {
|
||||||
-webkit-filter: blur($vibrateblur);
|
-webkit-filter: blur($vibrateblur);
|
||||||
filter: blur($vibrateblur);
|
filter: blur($vibrateblur);
|
||||||
height: $vibratesize;
|
transform: scale(1.1);
|
||||||
width: $vibratesize;
|
|
||||||
margin-left: $vibratemargin;
|
|
||||||
margin-top: $vibratemargin;
|
|
||||||
}
|
|
||||||
65% {
|
|
||||||
-webkit-filter: blur(0);
|
|
||||||
filter: blur(0);
|
|
||||||
height: $centersize;
|
|
||||||
width: $centersize;
|
|
||||||
}
|
|
||||||
70% {
|
|
||||||
-webkit-filter: blur($vibrateblur);
|
|
||||||
filter: blur($vibrateblur);
|
|
||||||
height: $vibratesize;
|
|
||||||
width: $vibratesize;
|
|
||||||
margin-left: $vibratemargin;
|
|
||||||
margin-top: $vibratemargin;
|
|
||||||
}
|
|
||||||
80% {
|
|
||||||
-webkit-filter: blur($vibrateblur);
|
|
||||||
filter: blur($vibrateblur);
|
|
||||||
height: $centersize;
|
|
||||||
width: $centersize;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
-webkit-filter: blur($vibrateblur);
|
|
||||||
filter: blur($vibrateblur);
|
|
||||||
height: $vibratesize;
|
|
||||||
width: $vibratesize;
|
|
||||||
margin-left: $vibratemargin;
|
|
||||||
margin-top: $vibratemargin;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@keyframes vibrate1 {
|
|
||||||
|
@keyframes vibrateOuter {
|
||||||
0% {
|
0% {
|
||||||
-webkit-filter: blur($vibrateblur1);
|
-webkit-filter: blur($vibrateblur1);
|
||||||
filter: blur($vibrateblur1);
|
filter: blur($vibrateblur1);
|
||||||
|
|
@ -896,8 +854,8 @@ $vibrateblur1:1px;
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 1);
|
box-shadow: 0 0 10px rgba(0, 0, 0, 1);
|
||||||
}
|
}
|
||||||
.vibrateInner{
|
.vibrateInner{
|
||||||
-webkit-animation: vibrate 0.25s linear 1;
|
-webkit-animation: vibrateInner 0.15s linear 1;
|
||||||
animation: vibrate 0.15s linear 1;
|
animation: vibrateInner 0.15s linear 1;
|
||||||
}
|
}
|
||||||
#beatSpeakerCenterOuter {
|
#beatSpeakerCenterOuter {
|
||||||
@extend %base;
|
@extend %base;
|
||||||
|
|
@ -915,8 +873,8 @@ $vibrateblur1:1px;
|
||||||
background: linear-gradient(130deg, rgba(117, 117, 117, 1) 55%, rgba(220, 220, 220, 1) 100%);
|
background: linear-gradient(130deg, rgba(117, 117, 117, 1) 55%, rgba(220, 220, 220, 1) 100%);
|
||||||
}
|
}
|
||||||
.vibrateOuter {
|
.vibrateOuter {
|
||||||
-webkit-animation: vibrate1 0.25s linear 1;
|
-webkit-animation: vibrateOuter 0.15s linear 1;
|
||||||
animation: vibrate1 0.15s linear 1;
|
animation: vibrateOuter 0.15s linear 1;
|
||||||
}
|
}
|
||||||
.bezel {
|
.bezel {
|
||||||
@extend %base;
|
@extend %base;
|
||||||
|
|
|
||||||
Reference in a new issue