You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
148 lines
2.0 KiB
CSS
148 lines
2.0 KiB
CSS
6 years ago
|
.wrapper {
|
||
6 years ago
|
height: 100%;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
6 years ago
|
}
|
||
|
|
||
|
|
||
|
.main-controls {
|
||
6 years ago
|
padding: 0.5rem 0;
|
||
6 years ago
|
}
|
||
|
|
||
|
canvas {
|
||
6 years ago
|
display: block;
|
||
|
margin-bottom: 0.5rem;
|
||
6 years ago
|
}
|
||
|
|
||
|
#buttons {
|
||
6 years ago
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
justify-content: space-between;
|
||
6 years ago
|
}
|
||
|
|
||
|
#buttons button {
|
||
6 years ago
|
font-size: 1rem;
|
||
|
padding: 1rem;
|
||
|
width: calc(50% - 0.25rem);
|
||
6 years ago
|
}
|
||
|
|
||
|
button {
|
||
6 years ago
|
font-size: 1rem;
|
||
|
background: #0088cc;
|
||
|
text-align: center;
|
||
|
color: white;
|
||
|
border: none;
|
||
|
transition: all 0.2s;
|
||
|
padding: 0.5rem;
|
||
6 years ago
|
}
|
||
|
|
||
|
button:hover, button:focus {
|
||
6 years ago
|
box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 1);
|
||
|
background: #0ae;
|
||
6 years ago
|
}
|
||
|
|
||
|
button:active {
|
||
6 years ago
|
box-shadow: inset 0px 0px 20px rgba(0,0,0,0.5);
|
||
|
transform: translateY(2px);
|
||
6 years ago
|
}
|
||
|
|
||
|
|
||
|
/* Make the clips use as much space as possible, and
|
||
6 years ago
|
* also show a scrollbar when there are too many clips to show
|
||
|
* in the available space */
|
||
6 years ago
|
.sound-clips {
|
||
6 years ago
|
flex: 1;
|
||
|
overflow: auto;
|
||
6 years ago
|
}
|
||
|
|
||
|
section, article {
|
||
6 years ago
|
display: block;
|
||
6 years ago
|
}
|
||
|
|
||
|
.clip {
|
||
6 years ago
|
padding-bottom: 1rem;
|
||
6 years ago
|
}
|
||
|
|
||
|
audio {
|
||
6 years ago
|
width: 100%;
|
||
|
display: block;
|
||
|
margin: 1rem auto 0.5rem;
|
||
6 years ago
|
}
|
||
|
|
||
|
.clip p {
|
||
6 years ago
|
display: inline-block;
|
||
|
font-size: 1rem;
|
||
6 years ago
|
}
|
||
|
|
||
|
.clip button {
|
||
6 years ago
|
font-size: 1rem;
|
||
|
float: right;
|
||
6 years ago
|
}
|
||
|
|
||
|
button.delete {
|
||
6 years ago
|
background: #f00;
|
||
|
padding: 0.5rem 0.75rem;
|
||
|
font-size: 0.8rem;
|
||
6 years ago
|
}
|
||
|
|
||
|
/* Checkbox hack to control information box display */
|
||
|
|
||
|
label {
|
||
6 years ago
|
font-size: 3rem;
|
||
|
position: absolute;
|
||
|
top: 2px;
|
||
|
right: 3px;
|
||
|
z-index: 5;
|
||
|
cursor: pointer;
|
||
6 years ago
|
}
|
||
|
|
||
|
input[type=checkbox] {
|
||
6 years ago
|
position: absolute;
|
||
|
top: -100px;
|
||
6 years ago
|
}
|
||
|
|
||
|
aside {
|
||
6 years ago
|
position: fixed;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
transform: translateX(100%);
|
||
|
transition: 0.3s all ease-out;
|
||
|
background-color: #efefef;
|
||
|
padding: 1rem;
|
||
6 years ago
|
}
|
||
|
|
||
|
aside p {
|
||
6 years ago
|
font-size: 1.2rem;
|
||
|
margin: 0.5rem 0;
|
||
6 years ago
|
}
|
||
|
|
||
|
aside a {
|
||
6 years ago
|
color: #666;
|
||
6 years ago
|
}
|
||
|
|
||
|
/* Toggled State of information box */
|
||
|
input[type=checkbox]:checked ~ aside {
|
||
6 years ago
|
transform: translateX(0);
|
||
6 years ago
|
}
|
||
|
|
||
|
/* Cursor when clip name is clicked over */
|
||
|
|
||
|
.clip p {
|
||
6 years ago
|
cursor: pointer;
|
||
6 years ago
|
}
|
||
|
|
||
|
/* Adjustments for wider screens */
|
||
|
@media all and (min-width: 800px) {
|
||
6 years ago
|
/* Don't take all the space as readability is lost when line length
|
||
|
goes past a certain size */
|
||
|
.wrapper {
|
||
|
width: 90%;
|
||
|
max-width: 1000px;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
6 years ago
|
}
|
||
6 years ago
|
|
||
|
|