happy_lights/index.html
2021-11-29 17:21:44 +03:00

122 lines
3.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.table {
width: 500px;
padding: 10px;
border: 2px solid rgb(196, 195, 195);
border-radius: 4px;
background-color: rgb(223, 223, 223);
}
td {
padding: 10px;
border: 1px solid black;
background-color: white;
}
.input{
float: left;
margin: 15px;
}
.btn {
float: left;
padding: 10px;
background-color: rgb(253, 253, 250);
border: 2px solid rgb(196, 195, 195);
border-radius: 4px;
height: 55px;
}
.btn:hover{
background-color: yellow;
}
.container {
float: left;
padding-top: 15px;
width: 400px;
}
.color_element {
display: flex;
text-align: center;
flex-direction: column;
float: left;
margin: 0px 5px;
width: 50px;
border-radius: 2px;
}
.color_button{
width: 50px;
height: 27px;
border-radius: 2px;
}
.del_btn{
height: 27px;
background-color: white;
border: none;
}
.icon {
font-size:30px;
}
.main {
margin: 15px;
}
.del{
opacity: 0;
font-size: 20px;
}
.del:hover{
opacity: 1;
}
.HW{
margin-bottom: 15px;
}
.HW:focus {
background-color: #e4f0f5;
}
.save_btn{
margin: 15px;
padding: 5px;
border-radius: 4px;
}
.save_btn:hover{
background-color: yellow;
}
</style>
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.1/font/bootstrap-icons.css">
</head>
<body>
<input type="number" class="HW" id="H" oninput= "q()" value="20">
<input type="number" class="HW" id="W" oninput= "q()" value="20">
<button class="save_btn ">Сохранить</button>
<table class="table" id="qq"></table>
<div class = "main">
<input class = "input" type="color" id="palitra">
<button class="btn" onclick="add_color()" id="btn"><i class="bi bi-plus-circle icon"></i></button>
<div class="container" id="container"></div>
</div>
<div id="add_div"></div>
<script src="main.js"></script>
</body>
</html>