Skip to content

Commit

Permalink
filip(fix): minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fstoqnov-iohk committed Oct 16, 2024
1 parent d39facf commit 04e46fc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
10 changes: 10 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,16 @@ body {
color: #fff;
border-radius: 22.5rem;
flex-direction: row-reverse;
transform: scale(1);

transition: all 0.2s ease-in-out;
}

.theme-edit-this-page:hover {
color: white;
text-decoration: none;
transform: scale(1.05);
transition: all 0.2s ease-in-out;
}

@media (max-width: 768px) {
Expand Down
4 changes: 2 additions & 2 deletions src/theme/Footer/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import Section from '@site/src/components/Homepage/Section'
import FooterLinkItem from '../LinkItem'
import { useLocation } from '@docusaurus/router'
export default function FooterLayout({ style, links, logo, copyright }) {
const location = useLocation()
const { pathname } = useLocation()
return (
<footer
className={clsx(
'footer',
{
'footer--dark': style === 'dark',
},
location.pathname === '/' ? 'footer-home' : 'footer-default',
pathname === '/' ? 'footer-home' : 'footer-default',
)}
>
<Section>
Expand Down
5 changes: 2 additions & 3 deletions src/theme/Footer/Logo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import ThemedImage from '@theme/ThemedImage'
import styles from './styles.module.css'
import { useLocation } from '@docusaurus/router'
export function LogoImage({ logo }) {
console.log(logo)
const { withBaseUrl } = useBaseUrlUtils()
const location = useLocation()
const sources = {
light: withBaseUrl(logo.src),
dark: withBaseUrl(logo.srcDark ?? logo.src),
Expand All @@ -25,6 +23,7 @@ export function LogoImage({ logo }) {
)
}
export default function FooterLogo({ logo }) {
const { pathname } = useLocation()
return logo.href ? (
<Link
href={logo.href}
Expand All @@ -36,7 +35,7 @@ export default function FooterLogo({ logo }) {
) : (
<LogoImage
logo={
location.pathname === '/'
pathname === '/'
? logo
: {
alt: 'Cardano Logo',
Expand Down
2 changes: 0 additions & 2 deletions src/theme/NavbarItem/NavbarNavLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import useBaseUrl from '@docusaurus/useBaseUrl'
import isInternalUrl from '@docusaurus/isInternalUrl'
import { isRegexpStringMatch } from '@docusaurus/theme-common'
import ChevronDown from '@site/src/components/icons/ChevronDown.svg'
import ArrowRight from '@site/src/components/icons/ArrowRight.svg'
import styled from '@emotion/styled'
import IconExternalLink from '../Icon/ExternalLink'

export default function NavbarNavLink({
Expand Down

0 comments on commit 04e46fc

Please sign in to comment.