mirror of
https://gitlab.com/wirelos/sprocket-ui.git
synced 2025-12-14 14:01:28 +01:00
new design
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<title>ESP Kit</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" href="/favicon-32x32.png">
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
<script src="script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -11107,7 +11107,10 @@ class Form extends __WEBPACK_IMPORTED_MODULE_1__core_Component__["a" /* default
|
||||
obj[item.name] = item.value;
|
||||
return obj;
|
||||
}, {});
|
||||
__WEBPACK_IMPORTED_MODULE_0_jquery___default.a.post(this.config.endpoint, { fileName: this.config.filename, config: JSON.stringify(data) });
|
||||
__WEBPACK_IMPORTED_MODULE_0_jquery___default.a.post(this.config.endpoint, { fileName: this.config.filename, config: JSON.stringify(data) })
|
||||
.done((data) => {
|
||||
alert("data saved");
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,13 @@
|
||||
.sui > .content {
|
||||
padding: 16px;
|
||||
}
|
||||
@media screen and (min-width: 968px) {
|
||||
.sui > .content {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
.sui label {
|
||||
color: #b3b2b2;
|
||||
}
|
||||
@@ -150,6 +157,9 @@ input[type=range]:focus::-ms-fill-lower {
|
||||
input[type=range]:focus::-ms-fill-upper {
|
||||
background: #0eb4bb;
|
||||
}
|
||||
.form-row input[type="range"] {
|
||||
margin-top: 12px;
|
||||
}
|
||||
/* The switch - the box around the slider */
|
||||
.switch {
|
||||
position: relative;
|
||||
@@ -274,13 +284,13 @@ form .form-row input[type="checkbox"] {
|
||||
transform: scale(2);
|
||||
}
|
||||
.ColorPicker {
|
||||
flex: none !important;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
height: 42px;
|
||||
width: 42px;
|
||||
}
|
||||
.sui select {
|
||||
flex: 5;
|
||||
padding: .5em;
|
||||
color: #eeeeee;
|
||||
background: none;
|
||||
|
||||
@@ -61,7 +61,10 @@ export default class Form extends Component {
|
||||
obj[item.name] = item.value;
|
||||
return obj;
|
||||
}, {});
|
||||
$.post(this.config.endpoint, { fileName: this.config.filename, config: JSON.stringify(data) });
|
||||
$.post(this.config.endpoint, { fileName: this.config.filename, config: JSON.stringify(data) })
|
||||
.done((data) => {
|
||||
alert("data saved");
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -5,7 +5,7 @@
|
||||
<title>ESP Kit</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" href="/favicon-32x32.png">
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
<script src="script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -24,6 +24,11 @@
|
||||
|
||||
> .content {
|
||||
padding: @default-padding;
|
||||
@media screen and (min-width: 968px) {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
.ColorPicker {
|
||||
flex: none !important;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
height: 42px;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
.sui {
|
||||
select {
|
||||
flex: 5;
|
||||
padding: .5em;
|
||||
color: @color-white;
|
||||
background: none;
|
||||
|
||||
@@ -85,3 +85,7 @@ input[type=range]:focus::-ms-fill-lower {
|
||||
input[type=range]:focus::-ms-fill-upper {
|
||||
background: #0eb4bb;
|
||||
}
|
||||
|
||||
.form-row input[type="range"] {
|
||||
margin-top: 12px;
|
||||
}
|
||||
Reference in New Issue
Block a user