InviTube/options/options.html
2023-06-17 14:12:32 +02:00

95 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 23px;
margin: 1.5em 1em;
}
.slider {
position: absolute;
border-radius: 34px;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
border-radius: 34px;
content: "";
height: 17px;
width: 17px;
left: 4px;
bottom: 3px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #009EE0;
}
input:focus + .slider {
box-shadow: 0 0 1px #009EE0;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(16px);
}
p {
font-size: 1.4em;
color: white;
text-align: center;
}
.textfield {
text-align: center;
background-color: #131313;
color: white;
font-size: 1em;
border: none;
border-bottom: 1px solid #ccc;
outline: none;
margin: 1.5em 1em;
}
#saveBtn {
margin: 1.5em 0;
border-radius: 0;
font-size: 1em;
padding: .5em 1em;
border: none;
background-color: #131313;
color: white;
}
</style>
<meta charset="utf-8">
</head>
<body bgcolor="202023" style="padding: 2em">
<form>
<p>
Instance URL:
<input id="instance" class="textfield" placeholder="piped.kavin.rocks"/>
<br>
<button id="saveBtn" type="submit">Save</button>
</p>
</form>
<script src="options.js"></script>
</body>
</html>