diff --git a/src/css/custom.css b/src/css/custom.css index 6d5bfa1..ad20545 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -414,95 +414,4 @@ html[data-theme='dark'] { border: 0; border-radius: var(--ifm-global-radius); color: #fff -} - -.hidden { - display: none; -} - -.font-normal { - font-weight: normal; -} - -.button { - width: 150px; - outline: 3px solid var(--ifm-tabs-color-active); - outline-offset: -3px; - border: 0; - border-radius: var(--ifm-global-radius); - background-color: transparent; - text-align: center; - font-size: 18px; - font-weight: normal; - transition: background-color 0.5s ease, color 0.5s ease; - padding-top: 10px; - padding-bottom: 10px; - color: var(--ifm-tabs-color-active); -} - -.button:hover { - background-color: var(--ifm-color-primary); - color: #fff; -} - -.button-secondary { - outline: 3px solid var(--ifm-color-secondary); -} - -.button-secondary:hover { - background-color: var(--ifm-color-secondary); -} - -.form-input { - border-radius: var(--ifm-global-radius); - outline: 1px solid var(--ifm-color-secondary); - outline-offset: -1px; - padding: 10px; - min-width: 50%; - font-size: 16px; -} - -.no-outline { - outline: none; -} - -@media screen and (max-width: 768px) { - .form-input { - min-width: 100%; - } -} - -/* https://codepen.io/JAGATHISH1123/pen/PvayMB */ -.switch { - position: relative; - display: inline-block; - width: 40px; - height: 20px; - background-color: var(--switch-background-color); - border-radius: 20px; - transition: all 0.3s; -} - -.switch::after { - content: ''; - position: absolute; - width: 18px; - height: 18px; - border-radius: 50%; - background-color: white; - top: 1px; - left: 1px; - transition: all 0.3s; -} - -.checkbox:checked+.switch::after { - left: 20px; -} - -.checkbox:checked+.switch { - background-color: var(--ifm-color-secondary); -} - -.checkbox { - display: none; } \ No newline at end of file diff --git a/src/pages/utilities/config-editor.tsx b/src/pages/utilities/config-editor.tsx index 8fe1da1..3e41686 100644 --- a/src/pages/utilities/config-editor.tsx +++ b/src/pages/utilities/config-editor.tsx @@ -169,7 +169,7 @@ const ConfigEditorPage: React.FC = () => { // Handle all the dropdowns case 'remote.auth-type': return ( - @@ -177,7 +177,7 @@ const ConfigEditorPage: React.FC = () => { ); case 'show-cooldown': return ( - @@ -185,16 +185,16 @@ const ConfigEditorPage: React.FC = () => { ); case 'emote-offhand-workaround': return ( - ); case 'config-version': - return ; + return ; case 'metrics.uuid': - return ; + return ; default: // Handle all the other inputs @@ -202,16 +202,16 @@ const ConfigEditorPage: React.FC = () => { // Boolean return (
- +
); } else if (!isNaN(value)) { // Number - return ; + return ; } else { // String - return ; + return ; } } } @@ -235,18 +235,18 @@ const ConfigEditorPage: React.FC = () => { const NoConfigSection = () => ( <>

No config selected.

-

Upload a file or get started with the default config!

+

Upload a file or get started with the default config!

- -
diff --git a/src/pages/utilities/dump-viewer.tsx b/src/pages/utilities/dump-viewer.tsx index fac370f..8d93692 100644 --- a/src/pages/utilities/dump-viewer.tsx +++ b/src/pages/utilities/dump-viewer.tsx @@ -6,6 +6,7 @@ import { useEffect, useRef, useState } from 'react'; import styles from './utilities.module.css'; import { Grid } from '@site/src/components/Grid'; import CodeBlock from '@theme/CodeBlock'; +import clsx from 'clsx'; const DumpViewerPage: React.FC = () => { const [dumpId, setDumpId] = useState(''); @@ -89,7 +90,7 @@ const DumpViewerPage: React.FC = () => { {Object.keys(data).length === 0 ? ( <>

Enter Dump ID or URL below and click load.

- setDumpId(e.target.value)} placeholder='Dump ID/URL' /> + setDumpId(e.target.value)} placeholder='Dump ID/URL' /> diff --git a/src/pages/utilities/utilities.module.css b/src/pages/utilities/utilities.module.css index 3a1305e..1a1b9c7 100644 --- a/src/pages/utilities/utilities.module.css +++ b/src/pages/utilities/utilities.module.css @@ -107,4 +107,96 @@ height: 10px; width: 10px; border-radius: 50%; -} \ No newline at end of file +} + +/* https://codepen.io/JAGATHISH1123/pen/PvayMB */ +.switch { + position: relative; + display: inline-block; + width: 40px; + height: 20px; + background-color: var(--switch-background-color); + border-radius: 20px; + transition: all 0.3s; +} + +.switch::after { + content: ''; + position: absolute; + width: 18px; + height: 18px; + border-radius: 50%; + background-color: white; + top: 1px; + left: 1px; + transition: all 0.3s; +} + +.checkbox:checked+.switch::after { + left: 20px; +} + +.checkbox:checked+.switch { + background-color: var(--ifm-color-secondary); +} + +.checkbox { + display: none; +} + + +.hidden { + display: none; +} + +.fontNormal { + font-weight: normal; +} + +.button { + width: 150px; + outline: 3px solid var(--ifm-tabs-color-active); + outline-offset: -3px; + border: 0; + border-radius: var(--ifm-global-radius); + background-color: transparent; + text-align: center; + font-size: 18px; + font-weight: normal; + transition: background-color 0.5s ease, color 0.5s ease; + padding-top: 10px; + padding-bottom: 10px; + color: var(--ifm-tabs-color-active); +} + +.button:hover { + background-color: var(--ifm-color-primary); + color: #fff; +} + +.buttonSecondary { + outline: 3px solid var(--ifm-color-secondary); +} + +.buttonSecondary:hover { + background-color: var(--ifm-color-secondary); +} + +.formInput { + border-radius: var(--ifm-global-radius); + outline: 1px solid var(--ifm-color-secondary); + outline-offset: -1px; + padding: 10px; + min-width: 50%; + font-size: 16px; +} + +.noOutline { + outline: none; +} + +@media screen and (max-width: 768px) { + .formInput { + min-width: 100%; + } +}