diff --git a/components/Button/styles.tsx b/components/Button/styles.tsx index 89ee559..b39def4 100644 --- a/components/Button/styles.tsx +++ b/components/Button/styles.tsx @@ -7,13 +7,14 @@ export const Btn = styled.button>` cursor: pointer; background: none; color: var(--text); - border: ${({ variant }) => (variant === 'outline' ? '2px solid var(--text)' : 'none')}; + border: ${({ variant }) => + variant === 'outline' ? '2px solid var(--text)' : '2px solid transparent'}; font-weight: bold; text-transform: ${({ variant }) => (variant === 'outline' ? 'uppercase' : 'inherit')}; padding: ${({ variant }) => (variant === 'outline' ? '.5rem 1rem' : '0rem')}; text-align: left; text-decoration: none; - transition: color 250ms ease-in-out; + transition: color 250ms ease-in-out, border 250ms ease-in-out; z-index: 1; @media (max-width: 768px) { @@ -36,6 +37,7 @@ export const Btn = styled.button>` &:hover { color: ${({ variant }) => (variant === 'outline' ? 'var(--background)' : 'inherit')}; + border: 2px solid transparent; } &:hover::before { diff --git a/components/Card/styles.tsx b/components/Card/styles.tsx index ad20bfa..a19a466 100644 --- a/components/Card/styles.tsx +++ b/components/Card/styles.tsx @@ -13,7 +13,10 @@ export const StyledCard = styled.div<{ image: boolean }>` &:hover { & > div { background: ${({ theme }) => theme.colors.blue}; - color: ${({ theme }) => theme.colors.dark.text}; + + * { + color: ${({ theme }) => theme.colors.dark.text} !important; + } } img { diff --git a/components/GlobalStyles.tsx b/components/GlobalStyles.tsx index 7b75139..0381f7d 100644 --- a/components/GlobalStyles.tsx +++ b/components/GlobalStyles.tsx @@ -36,7 +36,10 @@ const GlobalStyles = createGlobalStyle` position: relative; min-height: 100%; background: var(--background) !important; - color: var(--text) !important; + } + + * { + color: var(--text); } ul, ol { diff --git a/components/MobileNav/index.tsx b/components/MobileNav/index.tsx index 496d691..169d8e7 100644 --- a/components/MobileNav/index.tsx +++ b/components/MobileNav/index.tsx @@ -37,18 +37,30 @@ const MobileNav: FC = ({ open, close }) => { />
-
- +
- +
- +
); diff --git a/styles/blog/index.tsx b/styles/blog/index.tsx index 3db22d1..8da20ff 100644 --- a/styles/blog/index.tsx +++ b/styles/blog/index.tsx @@ -7,9 +7,12 @@ export const Wrapper = styled.div` .back { cursor: pointer; text-align: left; - color: #3f9aee; display: inline-flex; align-items: center; + + span { + color: ${({ theme }) => theme.colors.blue} !important; + } } h1 { diff --git a/styles/blog/slug.tsx b/styles/blog/slug.tsx index 7b083b0..a4e2804 100644 --- a/styles/blog/slug.tsx +++ b/styles/blog/slug.tsx @@ -11,15 +11,6 @@ export const Wrapper = styled.div` row-gap: 1rem; } - h1, - h2, - p, - span, - ul, - ol { - color: var(--text); - } - .meta { .back { cursor: pointer; diff --git a/styles/portfolio/index.tsx b/styles/portfolio/index.tsx index be58c53..69da456 100644 --- a/styles/portfolio/index.tsx +++ b/styles/portfolio/index.tsx @@ -7,9 +7,12 @@ export const Wrapper = styled.div` .back { cursor: pointer; text-align: left; - color: #3f9aee; display: inline-flex; align-items: center; + + span { + color: ${({ theme }) => theme.colors.blue} !important; + } } h1 { diff --git a/styles/portfolio/slug.tsx b/styles/portfolio/slug.tsx index ace0e18..440e33d 100644 --- a/styles/portfolio/slug.tsx +++ b/styles/portfolio/slug.tsx @@ -11,15 +11,6 @@ export const Wrapper = styled.div` row-gap: 1rem; } - h1, - h2, - p, - span, - ul, - ol { - color: var(--text); - } - .meta { .back { cursor: pointer;