#files { display: grid; grid-template-columns: repeat(auto-fit, minmax(15em, 1fr)); grid-auto-rows: 15em; gap: 0.8em; place-items: center; padding: 0.8em 0; .file { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; height: 100%; text-decoration: none; color: black; font-family: inherit; font-size: inherit; padding: 0.4em; border-radius: 1.2em; &.hidden { display: none; } &:hover { background-color: #f8f8f8; } img { width: 10em; height: 10em; } .title { overflow-wrap: anywhere; text-align: center; font-weight: bold; } } } .toolbar { display: flex; gap: 1.2em; border-bottom: solid black 1px; padding: 0.4em 0; .tool { display: flex; flex-direction: column; gap: 0.2em; label[for] { font-weight: bold; } input, select { font-family: inherit; font-size: inherit; height: 100%; } .toggle { height: 2em; border-radius: 1em; display: grid; grid-template-columns: 1fr 1fr; user-select: none; cursor: pointer; input { display: none; &:not(:checked) ~ .off, &:checked ~ .on { background-color: #6ee74a; } } div { padding: 0 0.4em; display: grid; place-items: center; &.off { border-radius: 1em 0 0 1em; } &.on { border-radius: 0 1em 1em 0; } } } } }