kopia lustrzana https://github.com/msurguy/SquiggleCam
461 wiersze
8.2 KiB
SCSS
461 wiersze
8.2 KiB
SCSS
//@import url("https://fonts.googleapis.com/css?family=Roboto");
|
|
|
|
$btn-bg: #4d4d4d;
|
|
$btn-text-color: #d2d2d2;
|
|
|
|
html,
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
background-color: white;
|
|
font-family: "Roboto", sans-serif;
|
|
color: #d2d2d2;
|
|
}
|
|
|
|
a {
|
|
color: #298bff;
|
|
}
|
|
|
|
.btn:not(:disabled):not(.disabled) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
[type="reset"],
|
|
[type="submit"],
|
|
button,
|
|
html [type="button"] {
|
|
-webkit-appearance: button;
|
|
}
|
|
|
|
.btn {
|
|
background-color: transparent;
|
|
color: #fff;
|
|
display: inline-block;
|
|
font-weight: 400;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
border: 1px solid transparent;
|
|
padding: 0.375rem 0.75rem;
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
border-radius: 0.25rem;
|
|
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
|
|
border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
//border-radius: 50% 50%;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: transparent;
|
|
border-color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
color: #fff;
|
|
background-color: #0069d9;
|
|
border-color: #0062cc;
|
|
}
|
|
|
|
.btn:focus,
|
|
.btn:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-primary.focus,
|
|
.btn-primary:focus {
|
|
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
|
|
}
|
|
|
|
.btn-primary:not(:disabled):not(.disabled).active:focus,
|
|
.btn-primary:not(:disabled):not(.disabled):active:focus,
|
|
.show > .btn-primary.dropdown-toggle:focus {
|
|
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
|
|
}
|
|
|
|
.btn-primary:not(:disabled):not(.disabled).active,
|
|
.btn-primary:not(:disabled):not(.disabled):active,
|
|
.show > .btn-primary.dropdown-toggle {
|
|
color: #fff;
|
|
background-color: #0062cc;
|
|
border-color: #005cbf;
|
|
}
|
|
|
|
.btn.focus,
|
|
.btn:focus {
|
|
outline: 0;
|
|
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
|
|
}
|
|
|
|
.btn-block {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-circle {
|
|
width: 36px;
|
|
height: 36px;
|
|
text-align: center;
|
|
padding: 6px 0;
|
|
font-size: 1rem;
|
|
line-height: 1rem;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.button-group {
|
|
margin: 5px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&.stretch > * {
|
|
flex: 1;
|
|
}
|
|
|
|
label {
|
|
text-align: left;
|
|
}
|
|
|
|
.btn {
|
|
border-radius: 0;
|
|
background-color: $btn-bg;
|
|
color: $btn-text-color;
|
|
padding: 1px;
|
|
font-size: 0.9rem;
|
|
|
|
&.active {
|
|
background-color: #898989;
|
|
}
|
|
&.active:hover {
|
|
background-color: #bbbbbb;
|
|
color: #fff;
|
|
}
|
|
&.active:active {
|
|
background-color: #bbbbbb;
|
|
}
|
|
&:hover {
|
|
background-color: #6b6b6b;
|
|
}
|
|
&:active {
|
|
background-color: #6b6b6b;
|
|
}
|
|
}
|
|
.btn + .btn:not(:last-child) {
|
|
border-right: none;
|
|
}
|
|
|
|
.btn:first-of-type {
|
|
border-right: 0;
|
|
border-radius: 4px 0 0 4px;
|
|
}
|
|
.btn:last-child {
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 2px 5px;
|
|
font-size: 0.8rem;
|
|
line-height: 0.8rem;
|
|
}
|
|
|
|
.wrapper {
|
|
display: flex;
|
|
width: 100vw;
|
|
min-height: 100vh;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
|
|
aside {
|
|
background-image: linear-gradient(-90deg, #2e2e2e 0%, #353535 100%);
|
|
box-shadow: 0 0 5px 0 #0f0f0f;
|
|
flex: 0 0 270px;
|
|
//transform: translate(0px, 0px);
|
|
padding: 15px;
|
|
text-align: center;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
//height: 100%;
|
|
//min-height: ;
|
|
//transition: transform 0.3s ease-in-out;
|
|
//
|
|
//&.hidden {
|
|
// transform: translate(-300px, 0);
|
|
//}
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
position: -webkit-sticky; /* Safari */
|
|
position: sticky;
|
|
top: 0;
|
|
align-self: flex-start;
|
|
|
|
.svg-container {
|
|
padding: 10px;
|
|
}
|
|
}
|
|
|
|
input[type="range"] {
|
|
-webkit-appearance: none;
|
|
width: 100%;
|
|
margin: 7.5px 0;
|
|
background: transparent;
|
|
}
|
|
input[type="range"]:focus {
|
|
outline: none;
|
|
}
|
|
input[type="range"]::-webkit-slider-runnable-track {
|
|
width: 100%;
|
|
height: 5px;
|
|
cursor: pointer;
|
|
background-color: #717171;
|
|
// background-image: linear-gradient(-270deg, #fad961 0%, #f76b1c 100%);
|
|
//box-shadow: 0px 0px 0px #6f2200, 0px 0px 0px #892a00;
|
|
//background: #f76b1c;
|
|
//border-radius: 5px;
|
|
//border: 1px solid #18d501;
|
|
}
|
|
input[type="range"]::-webkit-slider-thumb {
|
|
//box-shadow: 1.6px 1.6px 2.5px #cccccc, 0px 0px 1.6px #d9d9d9;
|
|
border: 1px solid #b3b3b3;
|
|
height: 20px;
|
|
width: 20px;
|
|
border-radius: 10px;
|
|
background: #298bff;
|
|
cursor: pointer;
|
|
-webkit-appearance: none;
|
|
margin-top: -7.5px;
|
|
}
|
|
input[type="range"]:hover::-webkit-slider-runnable-track {
|
|
//background: #f8813e;
|
|
background-image: linear-gradient(-270deg, #fad961 0%, #f76b1c 100%);
|
|
}
|
|
input[type="range"]:focus::-webkit-slider-runnable-track {
|
|
background-image: linear-gradient(-270deg, #fad961 0%, #f76b1c 100%);
|
|
}
|
|
input[type="range"]::-moz-range-track {
|
|
width: 100%;
|
|
height: 5px;
|
|
cursor: pointer;
|
|
background: #f76b1c;
|
|
background-image: linear-gradient(-270deg, #fad961 0%, #f76b1c 100%);
|
|
border-radius: 5px;
|
|
}
|
|
input[type="range"]::-moz-range-thumb {
|
|
box-shadow: 1.6px 1.6px 2.5px #cccccc, 0px 0px 1.6px #d9d9d9;
|
|
border: 1px solid #b3b3b3;
|
|
height: 20px;
|
|
width: 20px;
|
|
border-radius: 10px;
|
|
background: #298bff;
|
|
cursor: pointer;
|
|
}
|
|
input[type="range"]::-ms-track {
|
|
width: 100%;
|
|
height: 5px;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border-color: transparent;
|
|
color: transparent;
|
|
}
|
|
input[type="range"]::-ms-fill-lower {
|
|
background: #e75908;
|
|
border: none;
|
|
border-radius: 2px;
|
|
//box-shadow: 0px 0px 0px #6f2200, 0px 0px 0px #892a00;
|
|
}
|
|
input[type="range"]::-ms-fill-upper {
|
|
background: #f76b1c;
|
|
border: none;
|
|
border-radius: 2px;
|
|
//box-shadow: 0px 0px 0px #6f2200, 0px 0px 0px #892a00;
|
|
}
|
|
input[type="range"]::-ms-thumb {
|
|
box-shadow: 1.6px 1.6px 2.5px #cccccc, 0px 0px 1.6px #d9d9d9;
|
|
border: 1px solid #b3b3b3;
|
|
height: 20px;
|
|
width: 20px;
|
|
border-radius: 10px;
|
|
background: #298bff;
|
|
cursor: pointer;
|
|
}
|
|
input[type="range"]:focus::-ms-fill-lower {
|
|
background: #f76b1c;
|
|
}
|
|
input[type="range"]:focus::-ms-fill-upper {
|
|
background: #f8813e;
|
|
}
|
|
|
|
.image-inputs {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-bottom: 20px;
|
|
.btn {
|
|
background-color: $btn-bg;
|
|
color: $btn-text-color;
|
|
width: 80px;
|
|
|
|
&:hover {
|
|
background-color: #6b6b6b;
|
|
}
|
|
|
|
}
|
|
|
|
.btn-block{
|
|
width: 100%;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.section-title {
|
|
margin-top: 15px;
|
|
margin-bottom: 15px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.slider {
|
|
position: relative;
|
|
display: flex;
|
|
margin-bottom: 7px;
|
|
|
|
.label {
|
|
position: absolute;
|
|
top: 8px;
|
|
line-height: 18px;
|
|
right: 0;
|
|
font-family: Monaco, monospace;
|
|
font-size: 12px;
|
|
color: #d2d2d2;
|
|
text-align: right;
|
|
}
|
|
|
|
.metric {
|
|
position: absolute;
|
|
top: 8px;
|
|
line-height: 18px;
|
|
left: 0;
|
|
font-family: Monaco, monospace;
|
|
font-size: 12px;
|
|
color: #d2d2d2;
|
|
text-align: left;
|
|
}
|
|
|
|
input[type="range"] {
|
|
margin-top: 35px;
|
|
}
|
|
|
|
.output {
|
|
margin-top: 28px;
|
|
margin-left: 15px;
|
|
height: 20px;
|
|
width: 34px;
|
|
text-align: right;
|
|
background-color: #1d1d1d;
|
|
color: #d2d2d2;
|
|
font-family: monaco, Consolas, Lucida Console, monospace;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
h2 {
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
.video-controls {
|
|
margin: 10px 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-content: space-between;
|
|
}
|
|
|
|
.image-webcam {
|
|
position: relative;
|
|
margin-bottom: 30px;
|
|
|
|
.btn-record {
|
|
position: absolute;
|
|
padding: 0;
|
|
margin: 0;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translate(-50%,27px);
|
|
|
|
}
|
|
}
|
|
|
|
.toggle {
|
|
display: none;
|
|
}
|
|
|
|
.option {
|
|
position: relative;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.title {
|
|
text-transform: uppercase;
|
|
text-align: left;
|
|
background-color: $btn-bg;
|
|
color: $btn-text-color;
|
|
padding: 10px;
|
|
}
|
|
|
|
.title,
|
|
.content {
|
|
backface-visibility: hidden;
|
|
transform: translateZ(0);
|
|
transition: all 0.3s;
|
|
display: block;
|
|
}
|
|
|
|
.title:before {
|
|
content: '';
|
|
border-style: solid;
|
|
border-width: 2px 2px 0 0;
|
|
position: absolute;
|
|
right: 15px;
|
|
top: 15px;
|
|
width: 12px;
|
|
height: 12px;
|
|
transform: rotate(45deg);
|
|
transform-origin: 75% 20%;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.content {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.toggle:checked {
|
|
& + .title + .content {
|
|
max-height: 600px;
|
|
}
|
|
& + .title:before {
|
|
transform: rotate(135deg) !important;
|
|
}
|
|
}
|
|
|
|
.credits {
|
|
margin-top: auto;
|
|
}
|