Skip to content

Commit

Permalink
fix play/pause button state. closes #698
Browse files Browse the repository at this point in the history
  • Loading branch information
weblancaster committed Mar 28, 2016
1 parent 0aec845 commit 1d42d14
Showing 1 changed file with 58 additions and 44 deletions.
102 changes: 58 additions & 44 deletions app/public/stylesheets/sass/_components/_appState.scss
Original file line number Diff line number Diff line change
@@ -1,75 +1,89 @@
body[data-isVisible="false"] {
& .ui_app {
display: none;
}
& .box-loader {
display: block;
}
& .ui_app {
display: none;
}
& .box-loader {
display: block;
}
}

body[data-isVisible="true"] {
& .ui_app {
display: block;
}
& .box-loader {
display: none;
}
& .ui_app {
display: block;
}
& .box-loader {
display: none;
}
}

/* playing/ not playing state */
.ui_app {
& .fa-pause {
.fa-pause {
display: none;
}
}

.songPlaying {
& .currentSong {
& .fa:first-child {
display: none;
& .currentSong {
& .fa:first-child {
display: none;
}

& .fa:last-child {
display: table-cell;
vertical-align: middle;
}
}

& .fa:last-child {
display: table-cell;
vertical-align: middle;
.player_controls {
.player_play-pause {
.fa-play {
display: none;
}
.fa-pause {
display: block;
}
}
}
}
}

/* sub navigation states */
.subNav_nav[data-isVisible="false"] {
display: none;
display: none;
}

.subNav_nav[data-isVisible="true"] {
display: block;
display: block;
}

.subNav {
position: relative;
position: relative;
}
.subNav .subNav_button {
display: block;

& i {
.subNav .subNav_button {
display: block;
color: $defaultColor;
cursor: pointer;
font-size: 20px;
}
&:hover i {
color: #fff;
}

& i {
display: block;
color: $defaultColor;
cursor: pointer;
font-size: 20px;
}
&:hover i {
color: #fff;
}
}

.subNav_nav {
background: $sectionBackground;
border-right: 1px solid $separatorDarkColor;
box-shadow: 0 0 7px 0px #000;
padding: 5px 20px;
border-radius: 5px;
position: absolute;
top: 25px;
right: 0;
background: $sectionBackground;
border-right: 1px solid $separatorDarkColor;
box-shadow: 0 0 7px 0px #000;
padding: 5px 20px;
border-radius: 5px;
position: absolute;
top: 25px;
right: 0;
}

.subNav_nav_item {
margin: 5px 0;
margin: 5px 0;
text-transform: lowercase;
}

0 comments on commit 1d42d14

Please sign in to comment.