Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit d5cf1f7

Browse files
committed
fixed some styles
1 parent c11d7b2 commit d5cf1f7

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/components/buttons/GithubButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const Icon = styled(FaGithub)`
3333
`;
3434

3535
const Container = styled.button`
36-
color: ${(props) => props.theme.colors?.on_surface};
37-
background-color: ${(props) => props.theme.colors?.surface};
36+
color: var(--ifm-color-on-surface);
37+
background-color: var(--ifm-color-surface);
3838
3939
border-radius: 3px;
4040
border: none;
@@ -54,6 +54,6 @@ const Container = styled.button`
5454
transition: 0.3s ease all;
5555
5656
&:hover {
57-
background-color: ${(props) => props.theme.colors?.surface_2};
57+
background-color: var(--ifm-color-surface-2);
5858
}
5959
`;

src/components/buttons/PrimaryButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const PrimaryButton: React.FC<Props> = (props) => {
2727
export default PrimaryButton;
2828

2929
const Button = styled.button`
30-
color: ${(props) => props.theme.colors?.on_primary};
31-
background-color: ${(props) => props.theme.colors?.primary};
30+
color: var(--ifm-color-on-primary);
31+
background-color: var(--ifm-color-primary);
3232
border-radius: 3px;
3333
border: none;
3434
@@ -44,6 +44,6 @@ const Button = styled.button`
4444
transition: 0.3s ease all;
4545
4646
&:hover {
47-
background-color: ${(props) => props.theme.colors?.primary_2};
47+
background-color: var(--ifm-color-primary-lighter);
4848
}
4949
`;

src/theme/Navbar/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
font-size: var(--ifm-font-size-base);
4242
}
4343

44+
:global(.dropdown__menu) {
45+
opacity: 1;
46+
}
47+
4448
:global(.navbar-sidebar__brand) {
4549
display: flex;
4650
justify-content: space-between;

0 commit comments

Comments
 (0)