mirror of
https://github.com/0x1d/esp8266-laser.git
synced 2025-12-15 18:38:20 +01:00
more styling
This commit is contained in:
@@ -13,6 +13,9 @@ form {
|
||||
.form-row > label + label {
|
||||
flex: 0;
|
||||
}
|
||||
.form-row > label.switch + label {
|
||||
flex: 1;
|
||||
}
|
||||
.form-row > input {
|
||||
flex: 2;
|
||||
|
||||
85
frontend/styles/form/slider.less
Normal file
85
frontend/styles/form/slider.less
Normal file
@@ -0,0 +1,85 @@
|
||||
input[type=range] {
|
||||
-webkit-appearance: none;
|
||||
width: 100%;
|
||||
margin: 8.4px 0;
|
||||
}
|
||||
input[type=range]:focus {
|
||||
outline: none;
|
||||
}
|
||||
input[type=range]::-webkit-slider-runnable-track {
|
||||
width: 100%;
|
||||
height: 3.2px;
|
||||
cursor: pointer;
|
||||
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
|
||||
background: #097479;
|
||||
border-radius: 1.3px;
|
||||
border: 0.2px solid #010101;
|
||||
}
|
||||
input[type=range]::-webkit-slider-thumb {
|
||||
box-shadow: 0.6px 0.6px 2.8px #000000, 0px 0px 0.6px #0d0d0d;
|
||||
border: 0.4px solid #000000;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
border-radius: 50px;
|
||||
background: #0eb8c0;
|
||||
cursor: pointer;
|
||||
-webkit-appearance: none;
|
||||
margin-top: -8.6px;
|
||||
}
|
||||
input[type=range]:focus::-webkit-slider-runnable-track {
|
||||
background: #0eb4bb;
|
||||
}
|
||||
input[type=range]::-moz-range-track {
|
||||
width: 100%;
|
||||
height: 3.2px;
|
||||
cursor: pointer;
|
||||
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
|
||||
background: #097479;
|
||||
border-radius: 1.3px;
|
||||
border: 0.2px solid #010101;
|
||||
}
|
||||
input[type=range]::-moz-range-thumb {
|
||||
box-shadow: 0.6px 0.6px 2.8px #000000, 0px 0px 0.6px #0d0d0d;
|
||||
border: 0.4px solid #000000;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
border-radius: 50px;
|
||||
background: #0eb8c0;
|
||||
cursor: pointer;
|
||||
}
|
||||
input[type=range]::-ms-track {
|
||||
width: 100%;
|
||||
height: 3.2px;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
color: transparent;
|
||||
}
|
||||
input[type=range]::-ms-fill-lower {
|
||||
background: #043437;
|
||||
border: 0.2px solid #010101;
|
||||
border-radius: 2.6px;
|
||||
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
|
||||
}
|
||||
input[type=range]::-ms-fill-upper {
|
||||
background: #097479;
|
||||
border: 0.2px solid #010101;
|
||||
border-radius: 2.6px;
|
||||
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
|
||||
}
|
||||
input[type=range]::-ms-thumb {
|
||||
box-shadow: 0.6px 0.6px 2.8px #000000, 0px 0px 0.6px #0d0d0d;
|
||||
border: 0.4px solid #000000;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
border-radius: 50px;
|
||||
background: #0eb8c0;
|
||||
cursor: pointer;
|
||||
height: 3.2px;
|
||||
}
|
||||
input[type=range]:focus::-ms-fill-lower {
|
||||
background: #097479;
|
||||
}
|
||||
input[type=range]:focus::-ms-fill-upper {
|
||||
background: #0eb4bb;
|
||||
}
|
||||
58
frontend/styles/form/switch.less
Normal file
58
frontend/styles/form/switch.less
Normal file
@@ -0,0 +1,58 @@
|
||||
/* The switch - the box around the slider */
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline;
|
||||
|
||||
input {display:none;}
|
||||
|
||||
/* The slider */
|
||||
.slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: @color-grey;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
margin-left: -40px;
|
||||
}
|
||||
|
||||
.slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 26px;
|
||||
width: 26px;
|
||||
left: 4px;
|
||||
bottom: 4px;
|
||||
background-color: white;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
input:checked + .slider {
|
||||
background-color: @color-main;
|
||||
}
|
||||
|
||||
input:focus + .slider {
|
||||
box-shadow: 0 0 1px @color-main-light;
|
||||
}
|
||||
|
||||
input:checked + .slider:before {
|
||||
-webkit-transform: translateX(26px);
|
||||
-ms-transform: translateX(26px);
|
||||
transform: translateX(26px);
|
||||
}
|
||||
|
||||
/* Rounded sliders */
|
||||
.slider.round {
|
||||
border-radius: 34px;
|
||||
height: 34px;
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.slider.round:before {
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
@@ -1,22 +1,8 @@
|
||||
@import "form.less";
|
||||
@import "form/slider.less";
|
||||
@import "form/switch.less";
|
||||
@import "form/layout.less";
|
||||
|
||||
@default-font: "Open Sans";
|
||||
|
||||
@color-black: #000000;
|
||||
@color-white: #eeeeee;
|
||||
@color-grey: #b3b2b2;
|
||||
@color-main: #097479;
|
||||
@color-main-light: #0eb8c0;
|
||||
@color-container: #333333;
|
||||
|
||||
@default-padding: 16px;
|
||||
@default-margin: 16px;
|
||||
@default-margin-small: 8px;
|
||||
@default-border-radius: 4px;
|
||||
@default-border-color: #555555;
|
||||
|
||||
@input-text-height: 16px;
|
||||
@input-checkbox-scale: 2;
|
||||
@import "theme.less";
|
||||
|
||||
.sui {
|
||||
background: @color-black;
|
||||
|
||||
@@ -1,119 +0,0 @@
|
||||
|
||||
label {
|
||||
width: 10%;
|
||||
display: inline-block;
|
||||
}
|
||||
.slider {
|
||||
width: 80%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
||||
|
||||
body {
|
||||
font-size: 14px;
|
||||
font-family: "Bookman Old Style","Serifa BT","URW Bookman L","itc bookman",times,serif;
|
||||
background: #00979d none repeat scroll 0px 0px;
|
||||
align: Center;
|
||||
}
|
||||
#Main {
|
||||
width: 600px;
|
||||
margin: 5px 3px 3px 12px;
|
||||
}
|
||||
|
||||
text#titleGlitch {
|
||||
fill: #006666;
|
||||
font-weight: bold;
|
||||
text-shadow: 2px 2px black;
|
||||
font-family: sans-serif;
|
||||
font-size: 36px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
text#titleText {
|
||||
fill: #006666;
|
||||
text-shadow: 1px 1px black;
|
||||
font-family: sans-serif;
|
||||
font-size: 26px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
svg {
|
||||
border: solid 1px black;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
display: block;
|
||||
position: relative;
|
||||
/*overflow: hidden; */
|
||||
background: #66bebe;
|
||||
-webkit-border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
#prototypControls {
|
||||
margin-top:3px;
|
||||
padding: 10px;
|
||||
border: solid black 1px;
|
||||
background: #66bebe;
|
||||
-webkit-border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.sectionTitle {
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
font-family: "impact","Bookman Old Style","Serifa BT","URW Bookman L","itc bookman",times,serif;
|
||||
float: left;
|
||||
clear: left;
|
||||
color: #006666;
|
||||
text-shadow: 2px 2px black;
|
||||
}
|
||||
.sectionDesc {
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
clear: left;
|
||||
}
|
||||
|
||||
|
||||
#ledMacroButtonsCont {
|
||||
padding: 18px 5px 15px 5px;
|
||||
text-decoration: none;
|
||||
float:none;
|
||||
clear:left;
|
||||
}
|
||||
|
||||
|
||||
.ledMacroButton {
|
||||
height: 50px;
|
||||
background: #00989d;
|
||||
background-image: -webkit-linear-gradient(top, #00989d, #0a787a);
|
||||
background-image: -moz-linear-gradient(top, #00989d, #0a787a);
|
||||
background-image: -ms-linear-gradient(top, #00989d, #0a787a);
|
||||
background-image: -o-linear-gradient(top, #00989d, #0a787a);
|
||||
background-image: linear-gradient(to bottom, #00989d, #0a787a);
|
||||
-webkit-border-radius: 17;
|
||||
-moz-border-radius: 17;
|
||||
border-radius: 17px;
|
||||
text-shadow: 6px 4px 4px #4d424d;
|
||||
-webkit-box-shadow: 0px 1px 3px #666666;
|
||||
-moz-box-shadow: 0px 1px 3px #666666;
|
||||
box-shadow: 0px 1px 3px #666666;
|
||||
color: #fafafa;
|
||||
font-size:12px;
|
||||
padding: 10px 15px 10px 15px;
|
||||
border: solid #26b3b3 4px;
|
||||
text-decoration: none;
|
||||
margin: 23px 4px 23px 6px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ledMacroButton:hover {
|
||||
background: #307070;
|
||||
background-image: -webkit-linear-gradient(top, #307070, #66bebe);
|
||||
background-image: -moz-linear-gradient(top, #307070, #66bebe);
|
||||
background-image: -ms-linear-gradient(top, #307070, #66bebe);
|
||||
background-image: -o-linear-gradient(top, #307070, #66bebe);
|
||||
background-image: linear-gradient(to bottom, #307070, #66bebe);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
17
frontend/styles/theme.less
Normal file
17
frontend/styles/theme.less
Normal file
@@ -0,0 +1,17 @@
|
||||
@default-font: "Open Sans";
|
||||
|
||||
@color-black: #000000;
|
||||
@color-white: #eeeeee;
|
||||
@color-grey: #b3b2b2;
|
||||
@color-main: #097479;
|
||||
@color-main-light: #0eb8c0;
|
||||
@color-container: #333333;
|
||||
|
||||
@default-padding: 16px;
|
||||
@default-margin: 16px;
|
||||
@default-margin-small: 8px;
|
||||
@default-border-radius: 4px;
|
||||
@default-border-color: #555555;
|
||||
|
||||
@input-text-height: 16px;
|
||||
@input-checkbox-scale: 2;
|
||||
Reference in New Issue
Block a user