diff --git a/src/components/Layout.module.css b/src/components/Layout.module.css index a27d637f..e0d11a4e 100644 --- a/src/components/Layout.module.css +++ b/src/components/Layout.module.css @@ -36,7 +36,7 @@ .document { margin-top: calc(var(--spacer) * 2.5); /* height of footer */ - margin-bottom: calc(var(--spacer) * 18); + margin-bottom: calc(var(--spacer) * 12); position: relative; z-index: 2; min-height: 500px; diff --git a/src/components/atoms/Breakout.module.css b/src/components/atoms/Breakout.module.css index bddf6165..cb410172 100644 --- a/src/components/atoms/Breakout.module.css +++ b/src/components/atoms/Breakout.module.css @@ -5,7 +5,7 @@ @media (min-width: 70rem) { .breakout { - margin-left: -7rem; - margin-right: -7rem; + margin-left: -6rem; + margin-right: -6rem; } } diff --git a/src/components/atoms/Divider.module.css b/src/components/atoms/Divider.module.css index e22babeb..cd2584a7 100644 --- a/src/components/atoms/Divider.module.css +++ b/src/components/atoms/Divider.module.css @@ -16,3 +16,6 @@ :global(.dark) .divider::before { border-bottom-color: var(--brand-grey); } + +.dividerTop { +} diff --git a/src/components/atoms/Hamburger.module.css b/src/components/atoms/Hamburger.module.css index 87ec1ac4..5d4e429a 100644 --- a/src/components/atoms/Hamburger.module.css +++ b/src/components/atoms/Hamburger.module.css @@ -8,7 +8,7 @@ margin-top: calc(var(--spacer) / 2); } -.hamburgerLine { +.line { display: block; position: absolute; height: 1px; @@ -20,38 +20,38 @@ transition: 0.2s var(--easing); } -.hamburgerLine::nth-child(1) { +.line:nth-child(1) { top: 0; transform-origin: left center; } -.hamburgerLine::nth-child(2) { +.line:nth-child(2) { top: 7px; transform-origin: left center; } -.hamburgerLine::nth-child(3) { +.line:nth-child(3) { top: 14px; transform-origin: left center; } /* open state */ -:global(.has-menu-open) .hamburgerLine::nth-child(1) { +:global(.has-menu-open) .line:nth-child(1) { transform: rotate(45deg); top: -1px; } -:global(.has-menu-open) .hamburgerLine::nth-child(2) { +:global(.has-menu-open) .line:nth-child(2) { width: 0%; opacity: 0; } -:global(.has-menu-open) .hamburgerLine::nth-child(3) { +:global(.has-menu-open) .line:nth-child(3) { transform: rotate(-45deg); top: 16px; } -.hamburgerButton { +.button { padding: calc(var(--spacer) / 2); vertical-align: middle; display: inline-block; @@ -59,12 +59,12 @@ margin-right: -1rem; } -.hamburgerButton:hover, -.hamburgerButton:focus { +.button:hover, +.button:focus { outline: 0; } -.hamburgerButton:hover .hamburgerLine, -.hamburgerButton:focus .hamburgerLine { +.button:hover .line, +.button:focus .line { border-color: var(--link-color); } diff --git a/src/components/atoms/Hamburger.tsx b/src/components/atoms/Hamburger.tsx index 5d355b7e..f0bf9296 100644 --- a/src/components/atoms/Hamburger.tsx +++ b/src/components/atoms/Hamburger.tsx @@ -10,13 +10,13 @@ export default function Hamburger({ ) diff --git a/src/components/atoms/Image.module.css b/src/components/atoms/Image.module.css index 2541649d..431a9e56 100644 --- a/src/components/atoms/Image.module.css +++ b/src/components/atoms/Image.module.css @@ -37,7 +37,7 @@ margin-bottom: calc(var(--spacer) * var(--line-height)); display: block; position: relative; - transition: 0.2s var(--easing); + transition: 0.2s ease-out; } @media (min-width: 40rem) { diff --git a/src/components/atoms/Image.tsx b/src/components/atoms/Image.tsx index c7f5fa3c..09f9ce44 100644 --- a/src/components/atoms/Image.tsx +++ b/src/components/atoms/Image.tsx @@ -26,7 +26,7 @@ export const imageSizeDefault = graphql` original { src } - fluid(maxWidth: 940, quality: 85) { + fluid(maxWidth: 950, quality: 85) { ...GatsbyImageSharpFluid_withWebp_noBase64 } } diff --git a/src/components/molecules/PostTeaser.module.css b/src/components/molecules/PostTeaser.module.css index 44789f43..badaba0c 100644 --- a/src/components/molecules/PostTeaser.module.css +++ b/src/components/molecules/PostTeaser.module.css @@ -5,7 +5,6 @@ margin-bottom: 0; font-size: var(--font-size-base); transition: color 0.2s ease-out; - color: var(--text-color); } .post { @@ -25,7 +24,7 @@ } .empty { - /* @include media-frame; */ + composes: frame from '../atoms/Image.module.css'; display: block; min-height: 95px; diff --git a/src/components/molecules/Vcard.module.css b/src/components/molecules/Vcard.module.css index d9a14062..30ce8650 100644 --- a/src/components/molecules/Vcard.module.css +++ b/src/components/molecules/Vcard.module.css @@ -1,17 +1,8 @@ -.vcard { - margin-bottom: calc(var(--spacer) * 2); -} - .avatar { - /* @include media-frame; */ - - margin-bottom: calc(var(--spacer) / 3); -} - -.avatar, -.avatar img { + composes: frame from '../atoms/Image.module.css'; + border: 2px solid transparent; border-radius: 50%; - overflow: hidden; + margin-bottom: calc(var(--spacer) / 3); } .description { diff --git a/src/components/molecules/Vcard.tsx b/src/components/molecules/Vcard.tsx index 705ab0c2..44dc0bed 100644 --- a/src/components/molecules/Vcard.tsx +++ b/src/components/molecules/Vcard.tsx @@ -29,7 +29,7 @@ export default function Vcard(): ReactElement { const links = [twitter, github, rss, jsonfeed] return ( -
Blog of designer & developer{' '} @@ -39,6 +39,6 @@ export default function Vcard(): ReactElement {