Commit f7896db5 authored by Moody Salem's avatar Moody Salem

fix linting error, fix header responsiveness in non-english languages, try to...

fix linting error, fix header responsiveness in non-english languages, try to fix the background color issue on safari
parent 0a0053c6
...@@ -52,8 +52,7 @@ const HeaderFrame = styled.div<{ showBackground: boolean }>` ...@@ -52,8 +52,7 @@ const HeaderFrame = styled.div<{ showBackground: boolean }>`
${({ theme }) => theme.mediaWidth.upToMedium` ${({ theme }) => theme.mediaWidth.upToMedium`
padding: 1rem; padding: 1rem;
grid-template-columns: 120px 1fr; grid-template-columns: auto 1fr;
`}; `};
${({ theme }) => theme.mediaWidth.upToExtraSmall` ${({ theme }) => theme.mediaWidth.upToExtraSmall`
...@@ -226,6 +225,7 @@ const StyledNavLink = styled(NavLink).attrs({ ...@@ -226,6 +225,7 @@ const StyledNavLink = styled(NavLink).attrs({
width: fit-content; width: fit-content;
font-weight: 500; font-weight: 500;
padding: 8px 12px; padding: 8px 12px;
word-break: break-word;
&.${activeClassName} { &.${activeClassName} {
border-radius: 12px; border-radius: 12px;
......
...@@ -45,6 +45,10 @@ html { ...@@ -45,6 +45,10 @@ html {
z-index: -1; z-index: -1;
} }
html {
min-height: 100%;
}
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
html { html {
background-color: #212429; background-color: #212429;
......
import React, { Suspense } from 'react' import React from 'react'
import { Route, Switch } from 'react-router-dom' import { Route, Switch } from 'react-router-dom'
import styled from 'styled-components/macro' import styled from 'styled-components/macro'
import GoogleAnalyticsReporter from '../components/analytics/GoogleAnalyticsReporter' import GoogleAnalyticsReporter from '../components/analytics/GoogleAnalyticsReporter'
......
...@@ -191,7 +191,7 @@ export const TYPE = { ...@@ -191,7 +191,7 @@ export const TYPE = {
export const ThemedGlobalStyle = createGlobalStyle` export const ThemedGlobalStyle = createGlobalStyle`
html { html {
color: ${({ theme }) => theme.text1}; color: ${({ theme }) => theme.text1};
background-color: ${({ theme }) => theme.bg1}; background-color: ${({ theme }) => theme.bg1} !important;
} }
a { a {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment