123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- /* Reset */
- *,
- *::before,
- *::after {
- box-sizing: border-box;
- }
- * {
- margin: 0;
- padding: 0;
- }
- html {
- color-scheme: dark light;
- }
- body {
- min-height: 100vh;
- }
- img,
- picture,
- video,
- canvas,
- svg {
- display: block;
- max-width: 100%;
- }
- input,
- button,
- textarea,
- select {
- font: inherit;
- }
- /* Colors */
- :root {
- --color-dark: #1f2123;
- --color-light: #e8e6e3;
- }
- :root {
- /* separated since these are used by the actual script */
- --highlight: var(--color-light);
- --background: var(--color-dark);
- --shadow-component: 255;
- --shadow: rgb(
- var(--shadow-component),
- var(--shadow-component),
- var(--shadow-component),
- 0.2
- );
- }
- /* Font */
- body {
- font-family: Arial, Helvetica, sans-serif;
- }
- /* Composition */
- .flex {
- display: flex;
- gap: var(--gap, 1rem);
- }
- .even {
- justify-content: space-between;
- align-items: stretch;
- }
- .col {
- flex-direction: column;
- }
- .grid {
- display: grid;
- gap: var(--gap, 1rem);
- }
- .flow > * + * {
- margin-block-start: var(--flow-space, 1rem);
- }
- .no-gap {
- --gap: 0px;
- }
- .small-gap {
- --gap: 0.5rem;
- }
- .big-gap {
- --gap: 1.5rem;
- }
- .section {
- padding-block-start: var(--flow-space, 1rem);
- padding-inline: var(--flow-space-inline, 1ch);
- }
- /* Utility */
- .emphasis {
- font-size: 1.125rem;
- font-weight: 600;
- }
- .center {
- text-align: center;
- margin-inline: auto;
- }
- .margin-after {
- margin-block-end: 0.5rem;
- }
- button {
- border-radius: 100vmax;
- padding-block: 0.25rem;
- border: 1px solid var(--highlight);
- transition: background-color 100ms;
- }
- button.color-select {
- background-color: var(--button-bg);
- }
- button.color-select:hover {
- background-color: var(--button-bg-hover);
- }
- /* Block */
- body {
- color: var(--highlight);
- background-color: var(--background);
- accent-color: var(--highlight);
- transition: accent-color 250ms, color 250ms, background-color 250ms;
- display: grid;
- grid-template-columns: 14rem 1fr 8rem;
- }
- body > * + * {
- border-inline-start: 1px solid var(--highlight);
- }
- hr {
- color: var(--highlight);
- }
- #prevColors button {
- width: 100%;
- margin-block-end: 0.5ch;
- }
- #targetSelect input[type="text"] {
- border-radius: 100vmax;
- text-align: center;
- border: 1px solid var(--highlight);
- min-width: 0px;
- }
- #targetSelect input[type="color"] {
- flex: 0 0 2rem;
- }
- #sidebar select:disabled {
- display: none;
- }
- .fn-fraction > *:first-child {
- padding-bottom: 2px;
- border-block-end: 1px solid var(--highlight);
- }
- :is(#cls-fn-mount, #cls-metric-mount) form {
- transition: opacity 200ms;
- }
- [data-faded="true"] {
- opacity: 25%;
- }
- .pkmn-tile img {
- height: 64px;
- }
- .pkmn-tile button {
- font-size: 0.85rem;
- font-weight: 600;
- padding-inline: 1ch; /* TODO remove this after using grid for layout*/
- }
- .pkmn-tile button[data-best="true"]::before {
- content: "▸";
- display: inline-block;
- width: 1ch;
- margin-inline: 0.25ch;
- }
|