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