UNPKG

use-boolean-state

Version:

React hook providing functions for boolean state handling

119 lines (89 loc) 1.6 kB
.app { width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; } .light.app { background: #F8F7F8; color: #190D1B; } .dark.app { background: #190D1B; color: #F8F7F8; } .container { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-around; padding: 20px; box-sizing: border-box; } .light .container { border: 1px solid #83687E; box-shadow: 0 0 10px #83687E; } .dark .container { border: 1px solid #83687E; box-shadow: 0 0 10px #83687E; } @media (min-width: 568px) { .container { height: 80vh; width: 80vw; } } @media (min-width: 1280px) { .container { height: 60vh; width: 50vw; } } .row { display: flex; justify-content: space-around; } .cat_container { align-self: center; flex-grow: 1; margin-top: 2rem; margin-bottom: 2rem; display: flex; } .cat { width: 100%; height: 100%; } .message { display: block; margin: auto; font-size: larger; } .button { padding: 1em; background: transparent; color: inherit; border: 1px solid #C99EAD; box-shadow: 0 0 5px #C99EAD; border-radius: 5px; cursor: pointer; } .button[aria-selected=true] { background: #c99ead; box-shadow: 0 0 10px #C99EAD; } .button:focus { outline: none; } .button.focus-visible, .button:hover { background: #c99ead1f; box-shadow: 0 0 10px #C99EAD; } .theme { align-self: flex-end; }