Adrian Gaudebert
28a93baeed
This is a vue.js app that loads a JSON file from the server and uses that to generate a sound board. Audio files are put into audio/. It takes most of it CSS from kaamelott-soundboard.2ec0b4.fr.
91 lines
1.7 KiB
CSS
91 lines
1.7 KiB
CSS
* {
|
|
font-family: Helvetica Neue, Helvetica, sans-serif;
|
|
box-sizing: border-box;
|
|
}
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
html {
|
|
font-size: 16px;
|
|
}
|
|
body {
|
|
background: #3f3552;
|
|
color: #fefdfd;
|
|
font-size: 100%;
|
|
font-weight: 300;
|
|
line-height: 1.3;
|
|
/**/
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
header {
|
|
margin: 0.5em;
|
|
text-align: center;
|
|
}
|
|
header h1 {
|
|
font-size: 3em;
|
|
}
|
|
header h2 {
|
|
text-transform: capitalize;
|
|
color: #6f6f6f;
|
|
}
|
|
|
|
button, button:hover, button:focus {
|
|
background-color: #CB4D59;
|
|
background-image: none;
|
|
border: 0;
|
|
border-bottom: 3px solid #8B121E;
|
|
border-radius: 0;
|
|
color: #FEFDFD;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 1.42857;
|
|
outline: none;
|
|
padding: 5px 20px;
|
|
position: relative;
|
|
text-decoration: none;
|
|
vertical-align: top;
|
|
white-space: nowrap;
|
|
-moz-user-select: none;
|
|
-webkit-appearance: none;
|
|
}
|
|
button.play, button.play:hover, button.play:focus {
|
|
background: #18AE90;
|
|
border-bottom: 3px solid #017F66;
|
|
padding: 10px 30px;
|
|
}
|
|
button.play:before {
|
|
content: "";
|
|
background: url('../img/play.svg') no-repeat center center;
|
|
font-size: 1em;
|
|
height: 30px;
|
|
left: 0;
|
|
position: absolute;
|
|
top: 5px;
|
|
width: 30px;
|
|
}
|
|
button.play.playing:before {
|
|
background: url('../img/stop.svg') no-repeat center center;
|
|
}
|
|
button:active {
|
|
top:3px;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.sounds ul {
|
|
list-style-type: none;
|
|
}
|
|
.sounds ul li {
|
|
display: inline-block;
|
|
height: 43px;
|
|
line-height: 43px;
|
|
margin: 1em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
position: relative;
|
|
}
|