Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
willuhmjs committed Jul 17, 2024
1 parent 4f1ea91 commit e9ab9d8
Show file tree
Hide file tree
Showing 11 changed files with 720 additions and 729 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install dependencies
run: |
yarn
yarn playwright install
yarn playwright install
- name: test and build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
Expand Down
1 change: 0 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const config: PlaywrightTestConfig = {
},
testDir: 'tests',
testMatch: /(.+\.)?(test|spec)\.[jt]s/

};

export default config;
58 changes: 28 additions & 30 deletions src/app.pcss
Original file line number Diff line number Diff line change
@@ -1,41 +1,39 @@
/* Write your global styles here, in PostCSS syntax */
:root {
/* only used for background color */
--primary: #fffaf2;
/* used for hint button, shuffle colors */
--secondary: #ffe1b8;
/* used for menus and inputs */
--tertiary: white;
/* used for all text */
--text: #002147;
--text-hover: #f5f2e4;

/* difficulty */
--easy: #b2f2af;
--medium: #f2e8af;
--hard: #f2afaf;
--expert: #afaff2;

--hint5: #ffebcc;

/* only used for background color */
--primary: #fffaf2;
/* used for hint button, shuffle colors */
--secondary: #ffe1b8;
/* used for menus and inputs */
--tertiary: white;
/* used for all text */
--text: #002147;
--text-hover: #f5f2e4;

/* difficulty */
--easy: #b2f2af;
--medium: #f2e8af;
--hard: #f2afaf;
--expert: #afaff2;

--hint5: #ffebcc;
}


html[data-theme='dark'] {
--primary: #1E1E1E;
--primary: #1e1e1e;

--secondary: #2F2F2F;
--secondary: #2f2f2f;

--tertiary: #333333;
--tertiary: #333333;

--text: #FFFFFF;
--text: #ffffff;

--text-hover: #C0C0C0;
--text-hover: #c0c0c0;

--easy: #2F2F2F;
--medium: #2F2F2F;
--hard: #2F2F2F;
--expert: #2F2F2F;
--easy: #2f2f2f;
--medium: #2f2f2f;
--hard: #2f2f2f;
--expert: #2f2f2f;

--hint5: #2F2F2F;
}
--hint5: #2f2f2f;
}
5 changes: 3 additions & 2 deletions src/lib/ContextMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
>
</li>
<li>
<button on:click={() => $theme = $theme === "light" ? "dark" : "light"} class="menubutton">
<Fa fw="true" style="margin-right: 8px" icon={$theme === "light" ? faMoon : faSun} />Toggle Theme
<button on:click={() => ($theme = $theme === 'light' ? 'dark' : 'light')} class="menubutton">
<Fa fw="true" style="margin-right: 8px" icon={$theme === 'light' ? faMoon : faSun} />Toggle
Theme
</button>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/GuessBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
autocapitalize="off"
bind:value={guess}
id="guessInput"
class="{isAnswerIncorrect ? 'incorrect' : ''}"
class={isAnswerIncorrect ? 'incorrect' : ''}
bind:this={guessInput}
autocomplete="off"
placeholder="type a word"
Expand Down
Loading

0 comments on commit e9ab9d8

Please sign in to comment.