106 lines
1.5 KiB
CSS
106 lines
1.5 KiB
CSS
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 50px;
|
|
height: 20px;
|
|
float: right;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #ddd;
|
|
-webkit-transition: .2s;
|
|
transition: .2s;
|
|
border: 1px solid #aaa;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 12px;
|
|
width: 12px;
|
|
left: 4px;
|
|
bottom: 3px;
|
|
background-color: white;
|
|
-webkit-transition: .2s;
|
|
transition: .2s;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: #0d6efd;
|
|
border-color: #0d6efd;
|
|
}
|
|
|
|
input:focus + .slider {
|
|
box-shadow: none;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
-webkit-transform: translateX(28px);
|
|
-ms-transform: translateX(28px);
|
|
transform: translateX(28px);
|
|
}
|
|
|
|
.slider.round {
|
|
border-radius: 25px;
|
|
}
|
|
|
|
.slider.round:before {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.viewmode-select {
|
|
font-size: 100%;
|
|
}
|
|
|
|
.selected {
|
|
border: 1.5px solid black !important;
|
|
}
|
|
|
|
.button {
|
|
background: white;
|
|
border: 1px dotted black;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.button:hover {
|
|
background: #f4f5f6;
|
|
border: 1px dotted black;
|
|
}
|
|
|
|
.button div {
|
|
color: black;
|
|
}
|
|
|
|
.input-switch {
|
|
width: fit-content;
|
|
}
|
|
|
|
.input-switch label {
|
|
padding-right: 50px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.code {
|
|
display: block;
|
|
background: none;
|
|
white-space: pre;
|
|
-webkit-overflow-scrolling: touch;
|
|
overflow-x: scroll;
|
|
max-width: 100%;
|
|
min-width: 100px;
|
|
padding: 0;
|
|
}
|
|
}
|