2021-03-09 19:53:09 +00:00
|
|
|
:root {
|
|
|
|
--ruffle-blue: #37528c;
|
|
|
|
--ruffle-dark-blue: #184778;
|
|
|
|
--ruffle-orange: #ffad33;
|
|
|
|
--ruffle-dark-orange: #966214;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notransition,
|
|
|
|
.notransition *,
|
|
|
|
.notransition::before,
|
|
|
|
.notransition::after {
|
|
|
|
transition: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background: var(--ruffle-blue);
|
|
|
|
font: 14px Arial, sans-serif;
|
|
|
|
margin: auto;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
position: relative;
|
|
|
|
background: var(--ruffle-dark-blue);
|
|
|
|
text-align: center;
|
|
|
|
padding: 16px;
|
|
|
|
box-shadow: 0 0 15px #0008;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
width: 100%;
|
2023-03-23 00:22:24 +00:00
|
|
|
transition: transform 0.2s;
|
2021-03-09 19:53:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.logo:hover {
|
2023-03-23 00:22:24 +00:00
|
|
|
transform: scale(104%);
|
2021-03-09 19:53:09 +00:00
|
|
|
}
|
|
|
|
|
2023-04-27 14:11:49 +00:00
|
|
|
/* Controls */
|
|
|
|
|
|
|
|
.options {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
gap: 24px;
|
|
|
|
}
|
2023-04-27 09:47:56 +00:00
|
|
|
|
2021-03-09 19:53:09 +00:00
|
|
|
.option {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2021-09-25 10:02:01 +00:00
|
|
|
.option input,
|
|
|
|
.option select {
|
2021-03-09 19:53:09 +00:00
|
|
|
position: absolute;
|
2021-09-25 10:02:01 +00:00
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2023-04-27 09:47:56 +00:00
|
|
|
.option label {
|
|
|
|
display: inline-block;
|
|
|
|
padding-right: 80px;
|
|
|
|
}
|
|
|
|
|
2023-04-27 14:11:49 +00:00
|
|
|
/* Checkbox (Based on "Pure CSS Slider Checkboxes": https://codepen.io/Qvcool/pen/bdzVYW) */
|
2023-04-27 09:47:56 +00:00
|
|
|
|
2021-09-25 10:02:01 +00:00
|
|
|
.option.checkbox input {
|
2021-03-09 19:53:09 +00:00
|
|
|
width: 40px;
|
|
|
|
height: 20px;
|
|
|
|
margin: auto;
|
|
|
|
cursor: pointer;
|
|
|
|
z-index: 1;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2021-09-25 10:02:01 +00:00
|
|
|
.option.checkbox label::before,
|
|
|
|
.option.checkbox label::after {
|
2021-03-09 19:53:09 +00:00
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
border-radius: 10px;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
margin: auto;
|
|
|
|
transition: background 0.2s, right 0.2s;
|
|
|
|
}
|
|
|
|
|
2021-09-25 10:02:01 +00:00
|
|
|
.option.checkbox label::before {
|
2021-03-09 19:53:09 +00:00
|
|
|
height: 20px;
|
|
|
|
width: 40px;
|
|
|
|
right: 0;
|
|
|
|
background: gray;
|
|
|
|
}
|
|
|
|
|
2021-09-25 10:02:01 +00:00
|
|
|
.option.checkbox label::after {
|
2021-03-09 19:53:09 +00:00
|
|
|
height: 18px;
|
|
|
|
width: 18px;
|
|
|
|
right: 21px;
|
|
|
|
background: silver;
|
|
|
|
}
|
|
|
|
|
2021-09-25 10:02:01 +00:00
|
|
|
.option.checkbox input:checked + label::before {
|
2021-03-09 19:53:09 +00:00
|
|
|
background: var(--ruffle-dark-orange);
|
|
|
|
}
|
|
|
|
|
2021-09-25 10:02:01 +00:00
|
|
|
.option.checkbox input:checked + label::after {
|
2021-03-09 19:53:09 +00:00
|
|
|
background: var(--ruffle-orange);
|
|
|
|
right: 1px;
|
|
|
|
}
|
2023-04-27 09:47:56 +00:00
|
|
|
|
2023-04-27 14:11:49 +00:00
|
|
|
/* Number input */
|
2023-04-27 09:47:56 +00:00
|
|
|
|
|
|
|
.option.number-input input {
|
|
|
|
width: 60px;
|
|
|
|
height: 20px;
|
|
|
|
margin: auto;
|
|
|
|
}
|