Slight CSS cleanup

alternate-visualiser
William Toohey 10 years ago
parent c88c9839eb
commit 7872dc8562
  1. 4
      css/hues-res.css
  2. 22
      css/style.css
  3. 2
      js/HuesCore.js

@ -226,10 +226,12 @@
border: 2px solid black; border: 2px solid black;
padding: 5px; padding: 5px;
cursor: pointer; cursor: pointer;
/* Actually wider than the container, but has a centering effect */
width: 200px;
} }
#res-packtabs > input:checked + label { #res-packtabs > input:checked + label {
background: rgba(255,255,255,0.5); background: rgba(255,255,255,0.3);
border-bottom: none; border-bottom: none;
} }

@ -125,8 +125,6 @@ h1, h2, h3 {
#tabs { #tabs {
margin: -1px; margin: -1px;
padding-top: 22px; padding-top: 22px;
height: 455px;
min-width: 500px;
} }
input[type=radio] { input[type=radio] {
@ -161,28 +159,24 @@ input.tab-input[type="radio"]:checked + label {
} }
#settingsHelper { #settingsHelper {
display:-webkit-flex;
display:flex;
-webkit-justify-content:center;
justify-content:center;
-webkit-align-items:center;
align-items:center;
position: absolute; position: absolute;
z-index: 9; left: 50%;
top: 0; top: 50%;
left: 0;
width:100%;
height:100%;
} }
#settingsWindow { #settingsWindow {
position: relative; position: relative;
z-index: 9;
width: 640px;
height: 470px;
left: -320px;
top: -235px;
background: rgba(200,200,200, 0.7); background: rgba(200,200,200, 0.7);
border-color: "black"; border-color: "black";
border-width: 2px; border-width: 2px;
border-style: solid; border-style: solid;
font-family: 'PetMe64Web'; font-family: 'PetMe64Web';
width: 640px;
} }
#huesSettings { #huesSettings {

@ -273,7 +273,7 @@ HuesCore.prototype.resetAudio = function() {
HuesCore.prototype.randomImage = function() { HuesCore.prototype.randomImage = function() {
var len = this.resourceManager.enabledImages.length; var len = this.resourceManager.enabledImages.length;
var index=Math.floor(Math.random() * len); var index = Math.floor(Math.random() * len);
if ((index == this.imageIndex || this.lastImageArray.indexOf(index) != -1) && len > 1) { if ((index == this.imageIndex || this.lastImageArray.indexOf(index) != -1) && len > 1) {
this.randomImage(); this.randomImage();
} else { } else {

Loading…
Cancel
Save