FuriKani/src/styles.css

156 lines
2.1 KiB
CSS
Raw Normal View History

2022-03-20 14:54:48 +00:00
*
{
margin: 0px;
padding: 0px;
box-sizing: border-box;
2022-03-20 15:25:50 +00:00
border-radius: 0px;
2022-03-20 14:54:48 +00:00
}
body
{
display: grid;
grid-template-rows: 1.5fr 1fr 3fr 2fr;
width: 250px;
2022-03-20 15:25:50 +00:00
margin: 0.5rem;
2022-03-20 14:54:48 +00:00
}
header
{
display: grid;
grid-template-columns: 8fr 1fr;
align-items: baseline;
}
h1
{
text-transform: uppercase;
2022-03-20 15:25:50 +00:00
font-size: 30pt;
2022-03-20 14:54:48 +00:00
}
h2
{
2022-03-20 15:25:50 +00:00
font-size: 12pt;
2022-03-20 14:54:48 +00:00
}
#token-area
{
display: grid;
grid-template-rows: 1fr 1fr;
}
#input-area
{
display: grid;
grid-template-columns: 1fr 8fr 1fr;
}
#token-status
{
font-size: 1rem;
}
2022-03-20 15:25:50 +00:00
#token
{
border-width: 1px;
}
#submit-token
{
border-width: 1px;
background-color: white;
font-size: 1rem;
}
#submit-token:hover
{
background-color: grey;
}
#submit-token:host()
{
background-color: rgb(85, 85, 85);
}
2022-03-20 14:54:48 +00:00
#settings-area
{
display: grid;
grid-template-rows: repeat(3, 1fr);
2022-03-20 15:25:50 +00:00
}
.setting
{
display: grid;
grid-template-columns: 1fr 3fr;
align-items: center;
}
.description
{
display: flex;
align-items: center;
}
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
align-items: center;
width: 60px;
height: 34px;
transform: scale(0.65);
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
2022-03-20 14:54:48 +00:00
}