more styling
This commit is contained in:
		
							
								
								
									
										201
									
								
								css/main.css
									
									
									
									
									
								
							
							
						
						
									
										201
									
								
								css/main.css
									
									
									
									
									
								
							@@ -1,33 +1,19 @@
 | 
				
			|||||||
/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */
 | 
					:root {
 | 
				
			||||||
 | 
					  --bg-color: #223;
 | 
				
			||||||
 | 
					  --text-color: #eee;
 | 
				
			||||||
 | 
					  --accent-color-1: #ff91d8;
 | 
				
			||||||
 | 
					  --accent-color-1-light: #ffcdff;
 | 
				
			||||||
 | 
					  --accent-color-2: #ffff7d;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
 | 
					 | 
				
			||||||
/*
 | 
					 | 
				
			||||||
 * What follows is the result of much research on cross-browser styling.
 | 
					 | 
				
			||||||
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 | 
					 | 
				
			||||||
 * Kroc Camen, and the H5BP dev community and team.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* ==========================================================================
 | 
					 | 
				
			||||||
   Base styles: opinionated defaults
 | 
					 | 
				
			||||||
   ========================================================================== */
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
html {
 | 
					html {
 | 
				
			||||||
  background-color: #223;
 | 
					  background-color: var(--bg-color);
 | 
				
			||||||
  color: #EEE;
 | 
					  color: var(--text-color);
 | 
				
			||||||
  font-size: 1em;
 | 
					  font-size: 1em;
 | 
				
			||||||
  line-height: 1.4;
 | 
					  line-height: 1.4;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					 | 
				
			||||||
 * Remove text-shadow in selection highlight:
 | 
					 | 
				
			||||||
 * https://twitter.com/miketaylr/status/12228805301
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 | 
					 | 
				
			||||||
 * https://stackoverflow.com/a/16982510/7133471
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * Customize the background color to match your design.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
::-moz-selection {
 | 
					::-moz-selection {
 | 
				
			||||||
  background: #b3d4fc;
 | 
					  background: #b3d4fc;
 | 
				
			||||||
  text-shadow: none;
 | 
					  text-shadow: none;
 | 
				
			||||||
@@ -38,25 +24,15 @@ html {
 | 
				
			|||||||
  text-shadow: none;
 | 
					  text-shadow: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					 | 
				
			||||||
 * A better looking default horizontal rule
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
hr {
 | 
					hr {
 | 
				
			||||||
  display: block;
 | 
					  display: block;
 | 
				
			||||||
  height: 1px;
 | 
					  height: 1px;
 | 
				
			||||||
  border: 0;
 | 
					  border: 0;
 | 
				
			||||||
  border-top: 1px solid #ccc;
 | 
					  border-top: 1px solid var(--text-color);
 | 
				
			||||||
  margin: 1em 0;
 | 
					  margin: 1em 0;
 | 
				
			||||||
  padding: 0;
 | 
					  padding: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					 | 
				
			||||||
 * Remove the gap between audio, canvas, iframes,
 | 
					 | 
				
			||||||
 * images, videos and the bottom of their containers:
 | 
					 | 
				
			||||||
 * https://github.com/h5bp/html5-boilerplate/issues/440
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
audio,
 | 
					audio,
 | 
				
			||||||
canvas,
 | 
					canvas,
 | 
				
			||||||
iframe,
 | 
					iframe,
 | 
				
			||||||
@@ -66,20 +42,12 @@ video {
 | 
				
			|||||||
  vertical-align: middle;
 | 
					  vertical-align: middle;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					 | 
				
			||||||
 * Remove default fieldset styles.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
fieldset {
 | 
					fieldset {
 | 
				
			||||||
  border: 0;
 | 
					  border: 0;
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
  padding: 0;
 | 
					  padding: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					 | 
				
			||||||
 * Allow only vertical resizing of textareas.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
textarea {
 | 
					textarea {
 | 
				
			||||||
  resize: vertical;
 | 
					  resize: vertical;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -108,11 +76,10 @@ html {
 | 
				
			|||||||
  max-width: 480px;
 | 
					  max-width: 480px;
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  flex-wrap: wrap;
 | 
					  flex-wrap: wrap;
 | 
				
			||||||
  gap: 15px;
 | 
					  gap: 2em 1em;
 | 
				
			||||||
  /* flex-direction: column; */
 | 
					  /* flex-direction: column; */
 | 
				
			||||||
  /* align-content: space-between; */
 | 
					  /* align-content: space-between; */
 | 
				
			||||||
  justify-content: space-between;
 | 
					  justify-content: space-between;
 | 
				
			||||||
  /* background-color: green; */
 | 
					 | 
				
			||||||
  padding: 1em;
 | 
					  padding: 1em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -124,62 +91,130 @@ iframe {
 | 
				
			|||||||
  /* box-shadow: 0 0 3em #ffcdff; */
 | 
					  /* box-shadow: 0 0 3em #ffcdff; */
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.volumeSlider {
 | 
					.volume-slider {
 | 
				
			||||||
  /* flex-grow: 1; */
 | 
					  /* flex-grow: 1; */
 | 
				
			||||||
  transform: rotate(270deg);
 | 
					  transform: rotate(270deg);
 | 
				
			||||||
  width: 5em;
 | 
					  width: 5em;
 | 
				
			||||||
  height: 5em;
 | 
					  height: 2em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#playerA .volumeSlider {
 | 
					#playerA .volume-slider {
 | 
				
			||||||
  /* right: 0; */
 | 
					  /* right: 0; */
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#crossfader {
 | 
					 | 
				
			||||||
  width: 30em;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.load-button {
 | 
					.load-button {
 | 
				
			||||||
  /* flex-grow: 2; */
 | 
					  /* flex-grow: 2; */
 | 
				
			||||||
  border: none;
 | 
					  border: none;
 | 
				
			||||||
 | 
					  background-color: var(--accent-color-2);
 | 
				
			||||||
 | 
					  color: var(--bg-color);
 | 
				
			||||||
 | 
					  border-radius: 5px;
 | 
				
			||||||
  /* padding: 2em; */
 | 
					  /* padding: 2em; */
 | 
				
			||||||
  width: 50%;
 | 
					  width: 50%;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.speed-control {
 | 
				
			||||||
 | 
					  width: 20%;
 | 
				
			||||||
 | 
					  display: flex;
 | 
				
			||||||
 | 
					  flex-direction: column;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.speed-control span {
 | 
				
			||||||
 | 
					  font-size: 0.8em;
 | 
				
			||||||
 | 
					  margin: auto;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.speed-slider {
 | 
				
			||||||
 | 
					  width: 100%;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.speed-value {
 | 
				
			||||||
 | 
					  display: inline-block;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#crossfader {
 | 
				
			||||||
 | 
					  width: 30em;
 | 
				
			||||||
 | 
					  padding: 3em 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Custom crossfader styling made using http://danielstern.ca/range.css */
 | 
					/* Custom crossfader styling made using http://danielstern.ca/range.css */
 | 
				
			||||||
input[type=range]#crossfader {
 | 
					input[type=range] {
 | 
				
			||||||
  /* width: 100%; */
 | 
					 | 
				
			||||||
  margin: 18.35px 0;
 | 
					 | 
				
			||||||
  background-color: transparent;
 | 
					  background-color: transparent;
 | 
				
			||||||
  -webkit-appearance: none;
 | 
					  -webkit-appearance: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
input[type=range]#crossfader:focus {
 | 
					input[type=range]:focus {
 | 
				
			||||||
  outline: none;
 | 
					  outline: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
input[type=range]#crossfader::-webkit-slider-runnable-track {
 | 
					input[type=range]::-webkit-slider-runnable-track {
 | 
				
			||||||
  background: #ff91d8;
 | 
					  background: var(--accent-color-1);
 | 
				
			||||||
  /* border: 2.3px solid #dbd58f; */
 | 
					 | 
				
			||||||
  border-radius: 25px;
 | 
					  border-radius: 25px;
 | 
				
			||||||
  width: 100%;
 | 
					  width: 100%;
 | 
				
			||||||
  height: 13.3px;
 | 
					 | 
				
			||||||
  cursor: pointer;
 | 
					  cursor: pointer;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]::-webkit-slider-thumb {
 | 
				
			||||||
 | 
					  background: var(--accent-color-2);
 | 
				
			||||||
 | 
					  border: solid var(--accent-color-1-light);
 | 
				
			||||||
 | 
					  border-width: 0px;
 | 
				
			||||||
 | 
					  cursor: pointer;
 | 
				
			||||||
 | 
					  -webkit-appearance: none;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]:focus::-webkit-slider-runnable-track {
 | 
				
			||||||
 | 
					  background: var(--accent-color-1-light);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]::-moz-range-track {
 | 
				
			||||||
 | 
					  background: var(--accent-color-1);
 | 
				
			||||||
 | 
					  width: 100%;
 | 
				
			||||||
 | 
					  cursor: pointer;
 | 
				
			||||||
 | 
					  border-radius: 25px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]::-moz-range-thumb {
 | 
				
			||||||
 | 
					  background: var(--accent-color-2);
 | 
				
			||||||
 | 
					  border: solid var(--accent-color-1-light);
 | 
				
			||||||
 | 
					  cursor: pointer;
 | 
				
			||||||
 | 
					  border-width: 0px;
 | 
				
			||||||
 | 
					  border-radius: 25px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]::-ms-track {
 | 
				
			||||||
 | 
					  background: transparent;
 | 
				
			||||||
 | 
					  border-color: transparent;
 | 
				
			||||||
 | 
					  color: transparent;
 | 
				
			||||||
 | 
					  width: 100%;
 | 
				
			||||||
 | 
					  cursor: pointer;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]::-ms-fill-lower {
 | 
				
			||||||
 | 
					  background: var(--accent-color-1);
 | 
				
			||||||
 | 
					  border-radius: 25px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]::-ms-fill-upper {
 | 
				
			||||||
 | 
					  background: var(--accent-color-1);
 | 
				
			||||||
 | 
					  border-radius: 25px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]::-ms-thumb {
 | 
				
			||||||
 | 
					  background: var(--accent-color-2);
 | 
				
			||||||
 | 
					  border: solid var(--accent-color-1-light);
 | 
				
			||||||
 | 
					  cursor: pointer;
 | 
				
			||||||
 | 
					  margin-top: 0px;
 | 
				
			||||||
 | 
					  /*Needed to keep the Edge thumb centred*/
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]:focus::-ms-fill-lower {
 | 
				
			||||||
 | 
					  background: var(--accent-color-1);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					input[type=range]:focus::-ms-fill-upper {
 | 
				
			||||||
 | 
					  background: var(--accent-color-1-light);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*------------------------*/
 | 
				
			||||||
 | 
					input[type=range]#crossfader::-webkit-slider-runnable-track {
 | 
				
			||||||
 | 
					  height: 13.3px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
input[type=range]#crossfader::-webkit-slider-thumb {
 | 
					input[type=range]#crossfader::-webkit-slider-thumb {
 | 
				
			||||||
  margin-top: -20.65px;
 | 
					  margin-top: -20.65px;
 | 
				
			||||||
  width: 30px;
 | 
					  width: 30px;
 | 
				
			||||||
  height: 50px;
 | 
					  height: 50px;
 | 
				
			||||||
  background: #ffff7d;
 | 
					  border-width: 5px;
 | 
				
			||||||
  border: 5px solid #ffcdff;
 | 
					 | 
				
			||||||
  border-radius: 12px;
 | 
					  border-radius: 12px;
 | 
				
			||||||
  cursor: pointer;
 | 
					 | 
				
			||||||
  -webkit-appearance: none;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
input[type=range]#crossfader:focus::-webkit-slider-runnable-track {
 | 
					 | 
				
			||||||
  background: #ffbae6;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
input[type=range]#crossfader::-moz-range-track {
 | 
					input[type=range]#crossfader::-moz-range-track {
 | 
				
			||||||
  background: #ff91d8;
 | 
					 | 
				
			||||||
  /* border: 2.3px solid #dbd58f; */
 | 
					 | 
				
			||||||
  border-radius: 25px;
 | 
					  border-radius: 25px;
 | 
				
			||||||
  width: 100%;
 | 
					  width: 100%;
 | 
				
			||||||
  height: 13.3px;
 | 
					  height: 13.3px;
 | 
				
			||||||
@@ -188,54 +223,30 @@ input[type=range]#crossfader::-moz-range-track {
 | 
				
			|||||||
input[type=range]#crossfader::-moz-range-thumb {
 | 
					input[type=range]#crossfader::-moz-range-thumb {
 | 
				
			||||||
  width: 30px;
 | 
					  width: 30px;
 | 
				
			||||||
  height: 50px;
 | 
					  height: 50px;
 | 
				
			||||||
  background: #ffff7d;
 | 
					  border-width: 5px;
 | 
				
			||||||
  border: 5px solid #ffcdff;
 | 
					 | 
				
			||||||
  border-radius: 12px;
 | 
					  border-radius: 12px;
 | 
				
			||||||
  cursor: pointer;
 | 
					  cursor: pointer;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
input[type=range]#crossfader::-ms-track {
 | 
					input[type=range]#crossfader::-ms-track {
 | 
				
			||||||
  background: transparent;
 | 
					 | 
				
			||||||
  border-color: transparent;
 | 
					 | 
				
			||||||
  border-width: 18.75px 0;
 | 
					  border-width: 18.75px 0;
 | 
				
			||||||
  color: transparent;
 | 
					 | 
				
			||||||
  width: 100%;
 | 
					 | 
				
			||||||
  height: 13.3px;
 | 
					  height: 13.3px;
 | 
				
			||||||
  cursor: pointer;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
input[type=range]#crossfader::-ms-fill-lower {
 | 
					input[type=range]#crossfader::-ms-fill-lower {
 | 
				
			||||||
  background: #ff68ca;
 | 
					  border-width: 2.3px;
 | 
				
			||||||
  border: 2.3px solid #dbd58f;
 | 
					 | 
				
			||||||
  border-radius: 50px;
 | 
					  border-radius: 50px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
input[type=range]#crossfader::-ms-fill-upper {
 | 
					input[type=range]#crossfader::-ms-fill-upper {
 | 
				
			||||||
  background: #ff91d8;
 | 
					 | 
				
			||||||
  /* border: 2.3px solid #dbd58f; */
 | 
					 | 
				
			||||||
  border-radius: 50px;
 | 
					  border-radius: 50px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
input[type=range]#crossfader::-ms-thumb {
 | 
					input[type=range]#crossfader::-ms-thumb {
 | 
				
			||||||
  width: 30px;
 | 
					  width: 30px;
 | 
				
			||||||
  height: 50px;
 | 
					  height: 50px;
 | 
				
			||||||
  background: #ffff7d;
 | 
					  border-width: 5px;
 | 
				
			||||||
  border: 5px solid #ffcdff;
 | 
					 | 
				
			||||||
  border-radius: 12px;
 | 
					  border-radius: 12px;
 | 
				
			||||||
  cursor: pointer;
 | 
					  cursor: pointer;
 | 
				
			||||||
  margin-top: 0px;
 | 
					  margin-top: 0px;
 | 
				
			||||||
  /*Needed to keep the Edge thumb centred*/
 | 
					  /*Needed to keep the Edge thumb centred*/
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
input[type=range]#crossfader:focus::-ms-fill-lower {
 | 
					 | 
				
			||||||
  background: #ff91d8;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
input[type=range]#crossfader:focus::-ms-fill-upper {
 | 
					 | 
				
			||||||
  background: #ffbae6;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@supports (-ms-ime-align:auto) {
 | 
					 | 
				
			||||||
  /* Pre-Chromium Edge only styles, selector taken from hhttps://stackoverflow.com/a/32202953/7077589 */
 | 
					 | 
				
			||||||
  input[type=range] {
 | 
					 | 
				
			||||||
    margin: 0;
 | 
					 | 
				
			||||||
    /*Edge starts the margin from the thumb, not the track as other browsers do*/
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* ==========================================================================
 | 
					/* ==========================================================================
 | 
				
			||||||
   Helper classes
 | 
					   Helper classes
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user