Skip to content

Commit

Permalink
fix(style): wrong light dark use for review page
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed May 12, 2024
1 parent a003757 commit 7b89307
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 24 deletions.
3 changes: 1 addition & 2 deletions src/GZCTF/ClientApp/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-unused-vars": "warn"
"@typescript-eslint/no-non-null-asserted-optional-chain": "off"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"embla-carousel-autoplay": "^8.0.4",
"embla-carousel-react": "^8.0.4",
"i18next": "^23.11.4",
"i18next-browser-languagedetector": "^7.2.1",
"i18next-browser-languagedetector": "^8.0.0",
"katex": "^0.16.10",
"lz-string": "^1.5.0",
"marked": "^12.0.2",
Expand Down
20 changes: 6 additions & 14 deletions src/GZCTF/ClientApp/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import { OnceSWRConfig } from '@Utils/useConfig'
import { useUserRole } from '@Utils/useUser'
import api, { CheatInfoModel, ParticipationStatus, Role } from '@Api'
import classes from '@Styles/Accordion.module.css'
import tableClasses from '@Styles/Table.module.css'

enum CheatType {
Submit = 'Submit',
Expand Down
5 changes: 1 addition & 4 deletions src/GZCTF/ClientApp/src/styles/shared/Accordion.module.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
.root {
border-radius: var(--mantine-radius-sm);

background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));
}

.item {
border: 1px solid rgba(0, 0, 0, 0.2);
position: relative;

background-color: light-dark(var(--mantine-color-dark-6), var(--mantine-color-gray-0));
background-color: light-dark(var(--mantine-color-gray-0) var(--mantine-color-dark-6));

&[data-active] {
box-shadow: var(--mantine-shadows-md);

background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-7));
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/GZCTF/ClientApp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
],
"@Styles/*": [
"src/styles/components/*",
"src/styles/shared/*",
"src/styles/pages/*"
"src/styles/shared/*"
],
}
},
Expand Down

0 comments on commit 7b89307

Please sign in to comment.