flashcards/assets/main.css

117 lines
1.6 KiB
CSS

:root {
--correct: limegreen;
--correct-shadow: green;
--hover: gray;
--selection: goldenrod;
}
body {
background-color: #0f1116;
color: #ffffff;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
margin: 0px;
}
#counter {
margin: 10px;
font-size: 20px;
}
#result {
display: none;
position: absolute;
width: 100%;
font-size: 40vw;
margin: auto;
text-align: center;
line-height: 1;
color: var(--correct);
text-shadow: var(--correct-shadow) 1px 1px 30px;
opacity: 0;
user-select: none;
&.visible {
display: block;
animation: 200ms fade-in forwards;
}
}
@keyframes fade-in {
0% {
opacity: 0;
display: none;
}
100% {
opacity: 1;
display: block;
}
}
form {
width: 100%;
text-align: center;
display: flex;
flex-direction: column;
font-size: 24px;
user-select: none;
h1 {
&.success {
color: var(--correct);
}
}
> div {
width: 100%;
height: 80px;
display: flex;
margin-top: 10px;
align-items: center;
align-self: center;
box-sizing: border-box;
border: solid 2px unset;
&.selected {
border: solid 2px var(--selection);
}
&:hover:not(.selected) {
border: solid 1px var(--hoveer);
}
> input[type="checkbox"] {
display: none;
scale: 1.5;
margin-right: 10px;
}
> label {
flex-grow: 1;
}
&:hover,
> *:hover {
cursor: pointer;
}
}
> input[type="submit"] {
margin-top: 40px;
height: 70px;
background-color: transparent;
border: none;
color: white;
font-size: 42px;
&:hover {
font-size: 48px;
color: var(--selection);
cursor: pointer;
}
&:focus {
outline: none;
}
}
}