diff --git a/flashcards.html b/flashcards.html index 1412ea6..caaca30 100644 --- a/flashcards.html +++ b/flashcards.html @@ -28,6 +28,7 @@ body { display: flex; flex-direction: column; flex-grow: 1; + opacity: 0; } #settings label { @@ -45,11 +46,11 @@ body { flex-grow: 1; } -.adv-settings label { +#adv-settings label { display: flex; } -.adv-settings label span { +#adv-settings label span { flex-grow: 1; } @@ -74,7 +75,7 @@ button { transition: all linear 0.2s; } -#settings .adv-settings { +#settings #adv-settings { max-height: 0; overflow: hidden; transition: max-height linear 0.3s; @@ -84,14 +85,36 @@ button { transform: rotate(90deg); } -#settings.adv-settings-visible .adv-settings { - max-height: 8em; -} - .toggle-adv-settings { cursor: pointer; } + + +/* Settings Visible */ +#settings { + transition: opacity 0.2s linear; + z-index: -1; +} + +.settings-visible #settings { + opacity: 1; + z-index: 1; +} + +/* Card View Visible */ +#cards { + opacity: 1; + transition: opacity 0.2s linear; + transition-delay: 0.2s; + z-index: 1; +} + +.settings-visible #cards { + opacity: 0; + z-index: -1; +} + /* Mobile View */ @media ( max-width: 600px ) { body { @@ -110,10 +133,30 @@ button { margin: 1em auto; padding: 0.5em 3em; } + + #settings.adv-settings-visible #adv-settings { + max-height: 12em; + } } /* Tablet View */ -@media (max-width: 1279px and min-width: 601px) { +@media (max-width: 1279px) and (min-width: 601px) { + body { + font-size: 125%; + margin: 1em; + height: calc(100vh - 2em); + width: calc(100vw - 2em); + } + + #settings > button { + font-size: 125%; + margin: 1em auto; + padding: 0.5em 3em; + } + + #settings.adv-settings-visible #adv-settings { + max-height: 10em; + } } /* Desktop View */ @@ -128,49 +171,138 @@ button { #settings button { align-self: flex-end; } + + #settings.adv-settings-visible #adv-settings { + max-height: 8em; + } } -
+