diff --git a/src/components/JobLocation/JobFilters/components/AccordionItem/AccordionItem.module.scss b/src/components/JobLocation/JobFilters/components/AccordionItem/AccordionItem.module.scss index 0c20424c..d3185d79 100644 --- a/src/components/JobLocation/JobFilters/components/AccordionItem/AccordionItem.module.scss +++ b/src/components/JobLocation/JobFilters/components/AccordionItem/AccordionItem.module.scss @@ -14,6 +14,14 @@ .chevron { @include transition($transition-base-short); + @include light { + color: var(--mantine-color-gray-9); + } + + @include dark { + color: var(--mantine-color-gray-5); + } + &[data-rotate] { transform: rotate(-180deg); } @@ -22,3 +30,13 @@ .item { padding-bottom: var(--mantine-spacing-lg); } + +.title { + @include light { + color: var(--mantine-color-gray-9); + } + + @include dark { + color: var(--mantine-color-gray-5); + } +} diff --git a/src/components/JobLocation/JobFilters/components/AccordionItem/AccordionItem.tsx b/src/components/JobLocation/JobFilters/components/AccordionItem/AccordionItem.tsx index 162bba1b..ee016244 100644 --- a/src/components/JobLocation/JobFilters/components/AccordionItem/AccordionItem.tsx +++ b/src/components/JobLocation/JobFilters/components/AccordionItem/AccordionItem.tsx @@ -15,7 +15,7 @@ export function AccordionItem({children, _key, title}: AccordionItemProps) { - + <Title className={styles.title} order={4} variant='text'> {title} diff --git a/src/components/JobLocation/JobLocationHeader/JobLocationHeader.module.scss b/src/components/JobLocation/JobLocationHeader/JobLocationHeader.module.scss index 006db283..2f058b6d 100644 --- a/src/components/JobLocation/JobLocationHeader/JobLocationHeader.module.scss +++ b/src/components/JobLocation/JobLocationHeader/JobLocationHeader.module.scss @@ -4,7 +4,14 @@ left: 0; right: 0; - background-color: var(--mantine-color-white); + @include light { + background-color: var(--mantine-color-white); + } + + @include dark { + background-color: var(--mantine-color-gray-8); + } + z-index: var(--mantine-z-index-popover); @include smaller-than($mantine-breakpoint-md) { @@ -37,13 +44,26 @@ } } .navbarItem { - color: var(--mantine-color-gray-6); + @include light { + color: var(--mantine-color-gray-6); + } + + @include dark { + color: var(--mantine-color-gray-5); + } + cursor: pointer; font-weight: 500; } .active { - color: var(--mantine-color-black); + @include light { + color: var(--mantine-color-black); + } + @include dark { + color: var(--mantine-color-white); + } + position: relative; &:before { @@ -57,6 +77,7 @@ top: calc(-1 * var(--mantine-spacing-lg) - rem(7px)); background-color: var(--mantine-color-indigo-6); + @include border-bottom-radius(); } } @@ -65,7 +86,17 @@ box-sizing: border-box; cursor: pointer; - border: 1px solid var(--mantine-color-gray-4); + border-width: 1px; + border-style: solid; + + @include light { + border-color: var(--mantine-color-gray-4); + } + + @include dark { + border-color: var(--mantine-color-gray-6); + } + @include border-radius(var(--mantine-radius-md)); padding: calc(var(--mantine-spacing-xs) / 3); margin-left: auto; @@ -73,11 +104,27 @@ .notificationsTarget { stroke-width: 1; - color: var(--mantine-color-blue-4); + + @include light { + color: var(--mantine-color-blue-4); + } + + @include dark { + color: var(--mantine-color-gray-4); + } + padding: rem(1px); } + .separator { - color: var(--mantine-color-gray-4); + @include light { + color: var(--mantine-color-gray-4); + } + + @include dark { + color: var(--mantine-color-gray-3); + } + transform: rotate(90deg); } diff --git a/src/components/JobLocation/JobSortMenu/JobSortMenu.module.scss b/src/components/JobLocation/JobSortMenu/JobSortMenu.module.scss index 6965212e..14646fbb 100644 --- a/src/components/JobLocation/JobSortMenu/JobSortMenu.module.scss +++ b/src/components/JobLocation/JobSortMenu/JobSortMenu.module.scss @@ -1,9 +1,21 @@ .action { - color: var(--mantine-color-gray-7); + @include light { + color: var(--mantine-color-gray-7); + } + + @include dark { + color: var(--mantine-color-gray-5); + } } .value { - color: var(--mantine-color-black); + @include light { + color: var(--mantine-color-black); + } + + @include dark { + color: var(--mantine-color-gray-5); + } font-weight: 500; } diff --git a/src/components/JobLocation/JobsCard/JobCard.module.scss b/src/components/JobLocation/JobsCard/JobCard.module.scss index 303497f6..50cc90de 100644 --- a/src/components/JobLocation/JobsCard/JobCard.module.scss +++ b/src/components/JobLocation/JobsCard/JobCard.module.scss @@ -7,14 +7,14 @@ @include transition(); @include border-radius(var(--mantine-radius-sm)); + color: var(--mantine-color-gray-5); + @include light { - color: var(--mantine-color-gray-5); background: var(--mantine-color-gray-0); } @include dark { - color: var(--mantine-color-gray-5); - background: var(--mantine-color-gray-8); + background: var(--mantine-color-gray-7); } @include hover { @@ -101,7 +101,14 @@ } .card { - background-color: var(--mantine-color-white); + @include light { + background-color: var(--mantine-color-white); + } + + @include dark { + background-color: var(--mantine-color-gray-8); + } + padding: var(--mantine-spacing-xl); @include border-radius(var(--mantine-radius-md)); diff --git a/src/components/JobLocation/JobsSidebar/JobsSiderbar.module.scss b/src/components/JobLocation/JobsSidebar/JobsSiderbar.module.scss index 53a0963c..69064a44 100644 --- a/src/components/JobLocation/JobsSidebar/JobsSiderbar.module.scss +++ b/src/components/JobLocation/JobsSidebar/JobsSiderbar.module.scss @@ -1,5 +1,11 @@ .sidebar { - background-color: var(--mantine-color-white); + @include light { + background-color: var(--mantine-color-white); + } + + @include dark { + background-color: var(--mantine-color-gray-8); + } padding: var(--mantine-spacing-xl) var(--mantine-spacing-sm); position: absolute; @include border-end-radius(var(--mantine-radius-xl)); diff --git a/src/components/common/providers.tsx b/src/components/common/providers.tsx index 7ed0cd08..e26c095d 100644 --- a/src/components/common/providers.tsx +++ b/src/components/common/providers.tsx @@ -1,5 +1,5 @@ import '@mantine/core/styles.css' -import '@/lib/styles/global.css' +import '@/lib/styles/global.scss' import {MantineProvider} from '@mantine/core' import type {ReactNode} from 'react' diff --git a/src/lib/styles/global.css b/src/lib/styles/global.css deleted file mode 100644 index 17e62bf2..00000000 --- a/src/lib/styles/global.css +++ /dev/null @@ -1,12 +0,0 @@ -body { - background: var(--mantine-color-gray-0); -} - -* { - user-select: none; -} - -a { - text-decoration: none; - color: inherit; -} diff --git a/src/lib/styles/global.scss b/src/lib/styles/global.scss new file mode 100644 index 00000000..d6c52710 --- /dev/null +++ b/src/lib/styles/global.scss @@ -0,0 +1,18 @@ +body { + @include light { + background: var(--mantine-color-gray-0); + } + + @include dark { + background: var(--mantine-color-gray-9); + } +} + +* { + user-select: none; +} + +a { + text-decoration: none; + color: inherit; +}