405 lines
7.6 KiB
CSS
405 lines
7.6 KiB
CSS
.controls {
|
|
width: 100%;
|
|
max-height: 0;
|
|
transition: 0.3s all ease-out;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.controls.is-visible {
|
|
z-index: 10;
|
|
}
|
|
|
|
.controls.is-active {
|
|
opacity: 1;
|
|
max-height: 200px;
|
|
}
|
|
|
|
.has-touch .controls.is-active {
|
|
max-height: 300px;
|
|
}
|
|
|
|
.controls-wrapper {
|
|
width: 100%;
|
|
background-color: #333;
|
|
padding: 10px;
|
|
color: #ccc;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
align-content: flex-start;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.control {
|
|
display: block;
|
|
position: relative;
|
|
min-width: 160px;
|
|
margin-top: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
.has-touch .control {
|
|
height: 45px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.controls .button {
|
|
line-height: 18px;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.control-label {
|
|
display: block;
|
|
float: left;
|
|
width: 100%;
|
|
max-width: 70px;
|
|
height: 100%;
|
|
font-size: 11px;
|
|
margin-right: 10px;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.has-touch .control-label {
|
|
font-size: 14px;
|
|
max-width: 80px;
|
|
line-height: 45px;
|
|
text-align: right;
|
|
}
|
|
|
|
.control-input {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 10px;
|
|
max-width: calc(100% - 115px);
|
|
background-color: transparent;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
float: left;
|
|
}
|
|
|
|
.has-touch .control-input {
|
|
max-width: calc(100% - 130px);
|
|
}
|
|
|
|
.control-value {
|
|
display: block;
|
|
float: right;
|
|
width: 35px;
|
|
height: 100%;
|
|
background-color: transparent;
|
|
border: none;
|
|
text-align: right;
|
|
float: left;
|
|
}
|
|
|
|
.controls .random-button {
|
|
display: none;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
max-width: 90px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/*two columns*/
|
|
@media screen and (min-width: 660px) {
|
|
html:not(.has-touch) .nav ~ .workspace .control {
|
|
width: calc(50% - 5px);
|
|
}
|
|
|
|
html:not(.has-touch) .nav ~ .workspace .control {
|
|
max-width: 320px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 800px) {
|
|
.has-touch .nav ~ .workspace .control {
|
|
width: calc(50% - 5px);
|
|
}
|
|
|
|
html:not(.has-touch) .nav ~ .workspace .control {
|
|
max-width: 320px;
|
|
}
|
|
|
|
.has-touch .nav ~ .workspace .controls-wrapper {
|
|
min-height: 164px;
|
|
}
|
|
}
|
|
|
|
/*four columns*/
|
|
@media screen and (min-width: 721px) {
|
|
html:not(.has-touch) .nav:not(.is-active) ~ .workspace .controls-wrapper {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
html:not(.has-touch) .nav:not(.is-active) ~ .workspace .control {
|
|
min-width: 160px;
|
|
max-width: 320px;
|
|
width: calc(25% - 15px);
|
|
}
|
|
|
|
html:not(.has-touch) .nav:not(.is-active) ~ .workspace .control + .control {
|
|
margin-left: 20px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1021px) {
|
|
html:not(.has-touch) .nav ~ .workspace .controls-wrapper {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
html:not(.has-touch) .nav ~ .workspace .control {
|
|
min-width: 160px;
|
|
max-width: 320px;
|
|
width: calc(25% - 15px);
|
|
}
|
|
|
|
html:not(.has-touch) .nav ~ .workspace .control + .control {
|
|
margin-left: 20px;
|
|
}
|
|
}
|
|
|
|
/*four columns*/
|
|
@media screen and (min-width: 815px) {
|
|
html:not(.has-touch) .nav:not(.is-active) ~ .workspace .control {
|
|
width: calc(25% - 40px);
|
|
}
|
|
|
|
html:not(.has-touch) .nav:not(.is-active) ~ .workspace .random-button {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1215px) {
|
|
html:not(.has-touch) .nav ~ .workspace .control {
|
|
width: calc(25% - 40px);
|
|
}
|
|
|
|
html:not(.has-touch) .nav ~ .workspace .random-button {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1200px) {
|
|
.has-touch .nav:not(.is-active) ~ .workspace .control {
|
|
width: calc(25% - 40px);
|
|
}
|
|
|
|
.has-touch .nav:not(.is-active) ~ .workspace .random-button {
|
|
display: inline-block;
|
|
}
|
|
|
|
.has-touch .nav:not(.is-active) ~ .workspace .controls-wrapper {
|
|
min-height: 0;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1500px) {
|
|
.has-touch .nav ~ .workspace .control {
|
|
width: calc(25% - 40px);
|
|
}
|
|
|
|
.has-touch .nav ~ .workspace .random-button {
|
|
display: inline-block;
|
|
}
|
|
|
|
.has-touch .nav ~ .workspace .controls-wrapper {
|
|
min-height: 0;
|
|
}
|
|
}
|
|
|
|
input[type=range] {
|
|
-webkit-appearance: none;
|
|
width: 100%;
|
|
}
|
|
|
|
input[type=range]:focus {
|
|
outline: none;
|
|
}
|
|
|
|
input[type='range']:not(*:root) {
|
|
overflow: hidden;
|
|
background-color: transparent;
|
|
}
|
|
|
|
input[type=range]::-webkit-slider-runnable-track {
|
|
height: 100%;
|
|
border: none;
|
|
background-color: transparent;
|
|
position: relative;
|
|
background: linear-gradient(
|
|
to bottom,
|
|
rgba(255,255,255,0) 0%,
|
|
rgba(255,255,255,0) 41.9%,
|
|
rgba(255,255,255,0.2) 42%,
|
|
rgba(255,255,255,0.2) 58%,
|
|
rgba(255,255,255,0) 58.1%,
|
|
rgba(255,255,255,0) 100%
|
|
);
|
|
}
|
|
|
|
/*slider thumb clickable area*/
|
|
|
|
input[type=range]::-webkit-slider-thumb {
|
|
height: 20px;
|
|
width: 20px;
|
|
border-radius: 45px;
|
|
transition: background-color 0.2s;
|
|
position: relative;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
border: none;
|
|
background: radial-gradient(
|
|
ellipse at center,
|
|
rgba(255,255,255,1) 0%,
|
|
rgba(255,255,255,1) 30%,
|
|
rgba(255,255,255,0) 33%,
|
|
rgba(255,255,255,0) 100%
|
|
);
|
|
-webkit-appearance: none;
|
|
border: 1px transparent solid;
|
|
}
|
|
|
|
input[type=range]:hover::-webkit-slider-thumb,
|
|
input[type=range]:active::-webkit-slider-thumb,
|
|
input[type=range]:focus::-webkit-slider-thumb {
|
|
background: radial-gradient(
|
|
ellipse at center,
|
|
rgba(255,255,255,1) 0%,
|
|
rgba(255,255,255,1) 30%,
|
|
rgba(255,255,255,0.2) 33%,
|
|
rgba(255,255,255,0.2) 100%
|
|
);
|
|
|
|
border: 1px #fff solid;
|
|
}
|
|
|
|
.has-touch input[type=range]::-webkit-slider-thumb {
|
|
height: 40px;
|
|
width: 40px;
|
|
top: 2px;
|
|
}
|
|
|
|
input[type=range]::-moz-range-track {
|
|
height: 100%;
|
|
border: none;
|
|
background-color: transparent;
|
|
position: relative;
|
|
background: linear-gradient(
|
|
to bottom,
|
|
rgba(255,255,255,0) 0%,
|
|
rgba(255,255,255,0) 41.9%,
|
|
rgba(255,255,255,0.2) 42%,
|
|
rgba(255,255,255,0.2) 58%,
|
|
rgba(255,255,255,0) 58.1%,
|
|
rgba(255,255,255,0) 100%
|
|
);
|
|
}
|
|
|
|
.has-touch input[type=range]::-moz-range-track {
|
|
background: linear-gradient(
|
|
to bottom,
|
|
rgba(255,255,255,0) 0%,
|
|
rgba(255,255,255,0) 49.9%,
|
|
rgba(255,255,255,0.2) 50%,
|
|
rgba(255,255,255,0.2) 55%,
|
|
rgba(255,255,255,0) 55.1%,
|
|
rgba(255,255,255,0) 100%
|
|
);
|
|
}
|
|
|
|
input[type=range]::-moz-range-thumb {
|
|
height: 20px;
|
|
width: 20px;
|
|
border-radius: 45px;
|
|
margin-top: 3px;
|
|
transition: background-color 0.2s;
|
|
position: relative;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
border: none;
|
|
background: radial-gradient(
|
|
ellipse at center,
|
|
rgba(255,255,255,1) 0%,
|
|
rgba(255,255,255,1) 30%,
|
|
rgba(255,255,255,0) 33%,
|
|
rgba(255,255,255,0) 100%
|
|
);
|
|
|
|
border: 1px transparent solid;
|
|
}
|
|
|
|
input[type=range]::-moz-range-thumb:hover,
|
|
.has-touch input[type=range]::-moz-range-thumb {
|
|
background: radial-gradient(
|
|
ellipse at center,
|
|
rgba(255,255,255,1) 0%,
|
|
rgba(255,255,255,1) 30%,
|
|
rgba(255,255,255,0.2) 33%,
|
|
rgba(255,255,255,0.2) 100%
|
|
);
|
|
|
|
border: 1px #fff solid;
|
|
}
|
|
|
|
input[type=range]:focus::-moz-range-thumb,
|
|
input[type=range]:active::-moz-range-thumb,
|
|
.has-touch input[type=range]:focus::-moz-range-thumb,
|
|
.has-touch input[type=range]:active::-moz-range-thumb {
|
|
background: radial-gradient(
|
|
ellipse at center,
|
|
rgba(255,255,255,1) 0%,
|
|
rgba(255,255,255,1) 30%,
|
|
rgba(255,255,255,0.5) 33%,
|
|
rgba(255,255,255,0.5) 100%
|
|
);
|
|
|
|
border: 1px #fff solid;
|
|
}
|
|
|
|
.has-touch input[type=range]::-moz-range-thumb {
|
|
height: 38px;
|
|
width: 38px;
|
|
}
|
|
|
|
input[type=range]::-ms-track {
|
|
width: 100%;
|
|
height: 3px;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border: none;
|
|
color: transparent;
|
|
overflow: visible;
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
input[type=range]::-ms-fill-lower {
|
|
background: #fff;
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
input[type=range]::-ms-thumb {
|
|
box-shadow: none;
|
|
border: none;
|
|
height: 10px;
|
|
width: 10px;
|
|
border-radius: 14px;
|
|
border: none;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.has-touch input[type=range]::-ms-thumb {
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 45px;
|
|
border: 10px rgba(255, 255, 255, 0.5) solid;
|
|
}
|
|
|
|
.has-touch input[type=range]:focus::-ms-thumb,
|
|
.has-touch input[type=range]:active::-ms-thumb {
|
|
border-color: rgba(255, 255, 255, 1);
|
|
} |