Files
website/checkbox_test.css
T
Elliptic Ellipsis e7c92459c0 checkboxes version
2021-05-09 04:08:59 +01:00

161 lines
2.8 KiB
CSS

div#progressChart {
min-width: 310px;
height: 400px;
max-width: 800px;
margin: 0 auto;
}
/* Zelda Accordion styles */
.content-container {
/* border-radius: 8px; */
/* overflow: hidden; */ /* Masks with the glowing if enabled */
/* box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5); */
}
details {
z-index: 1;
margin: 0;
padding: 0;
/* transition: all 1s ease; */
}
details > summary {
list-style: none;
}
details > summary::-webkit-details-marker {
display: none;
}
/* Size glow to File button size (a less hacky way probably exists) */
summary .glow {
z-index: 2;
position: absolute;
top: 0;
left: 0;
width: var(--zelda-file-button-width);
height: calc(47px*var(--scaling-factor));
border-radius: calc(4px*var(--scaling-factor));
display: none;
}
summary:hover .glow {
display: block;
transition:all 0.2s ease;
background: rgba(200, 200, 200, 0.5);
box-shadow: 0 0 20px rgba(200, 200, 200, .7);
}
details:not([open]) hr {
opacity: 0;
}
summary .zelda-file-box-filename {
/* border-bottom-width: 0px; */
border-bottom-style: solid;
}
details[open] .zelda-file-box-filename {
border-bottom-style: hidden;
}
details[open] summary ~ * {
animation: fade-in .5s ease-in-out;
}
@keyframes fade-in {
0% {opacity: 0 }
100% {opacity: 1 }
}
/* Chart stuff */
/* .chart {
width: 0;
} */
details[open] .chart {
animation: grow .5s ease;
}
@keyframes grow {
0% {height: 0; width: 0;}
100% {height: auto; width: initial;}
}
/* Checkboxes version */
label > .glow {
z-index: 2;
position: absolute;
top: 0;
left: 0;
width: var(--zelda-file-button-width);
height: calc(47px*var(--scaling-factor));
border-radius: calc(4px*var(--scaling-factor));
display: none;
}
label:hover > .glow {
display: block;
transition:all 0.2s ease;
background: rgba(200, 200, 200, 0.5);
box-shadow: 0 0 20px rgba(200, 200, 200, .7);
}
label::before {
content: "";
}
input ~ label {
width: 100%;
margin: 0;
}
input ~ label ~ * {
/* display: none; */
/* padding: 0 !important;
border-style: none !important; */
/* height: 0;
overflow: hidden;
opacity: 0; */
/* transition: max-height 0.4s ease; */
transition: opacity 1s ease;
}
input:not(:checked) ~ label ~ * {
border-top-style: none;
border-bottom-style: none;
padding: 0;
height: 0;
overflow: hidden;
opacity: 0;
/* transition: max-height 0.4s ease; */
/* transition: opacity 1s ease; */
}
input:checked ~ label ~ * {
opacity: 1;
height: auto;
}
input ~ label hr {
opacity: 0;
}
input:checked ~ label hr {
opacity: 1;
}
label .zelda-file-box-filename {
border-bottom-style: solid;
}
input:checked ~ label .zelda-file-box-filename {
border-bottom-style: hidden;
}