100-project-100-days-website/100_projects/77-control-brightness/style.css

42 lines
761 B
CSS
Raw Normal View History

2023-05-09 17:41:12 +03:00
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container{
background: url(bg.jpg) no-repeat center;
2023-05-09 18:08:14 +03:00
height: 100vh;
2023-05-09 17:41:12 +03:00
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
}
.brightness-box{
width: 400px;
height: 60px;
background: #f9f9f9;
border-radius: 8px;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.brightness-box i{
margin: 0 10px;
}
#range{
width: 100%;
2023-05-09 18:08:14 +03:00
/* -webkit-appearance: none; */
2023-05-09 17:41:12 +03:00
background: #0a85ff;
height: 3px;
outline: none;
}
#range::-webkit-slider-thumb{
-webkit-appearance: none;
width: 22px;
height: 22px;
background: #333;
border-radius: 50%;
cursor: pointer;
}