diff --git a/src/styles/isomer-template/components/homepage/_hero.scss b/src/styles/isomer-template/components/homepage/_hero.scss index 6883c1e2c..4b2d52256 100644 --- a/src/styles/isomer-template/components/homepage/_hero.scss +++ b/src/styles/isomer-template/components/homepage/_hero.scss @@ -16,7 +16,7 @@ padding: 3rem 1.5rem; } -@media screen and (min-width: map.get($breakpoints, "md")) { +@media screen and (min-width: map-get($breakpoints, "md")) { .hero-floating { padding: 3rem; } @@ -60,15 +60,7 @@ width: 50%; } -.hero-alignment-left { - align-self: flex-end; -} - -.hero-alignment-right { - align-self: flex-start; -} - -@media screen and (min-width: map.get($breakpoints, "xl")) { +@media screen and (min-width: map-get($breakpoints, "xl")) { .hero-side-sm { width: 50%; } @@ -88,7 +80,7 @@ } } -@media screen and ((max-width: map.get($breakpoints, "xl") - 1)) { +@media screen and ((max-width: (map-get($breakpoints, "xl") - 1))) { .hero-side-sm { width: 33%; } diff --git a/src/styles/isomer-template/theme/_breakpoints.scss b/src/styles/isomer-template/theme/_breakpoints.scss index e3eb92f3e..54d739564 100644 --- a/src/styles/isomer-template/theme/_breakpoints.scss +++ b/src/styles/isomer-template/theme/_breakpoints.scss @@ -11,4 +11,4 @@ $breakpoints: ( ); // Maximum width of site contents -$container-max-width: map.get($breakpoints, "xl"); +$container-max-width: map-get($breakpoints, "xl"); diff --git a/src/styles/isomer-template/theme/_display.scss b/src/styles/isomer-template/theme/_display.scss index 09fff1a29..0d2b0d667 100644 --- a/src/styles/isomer-template/theme/_display.scss +++ b/src/styles/isomer-template/theme/_display.scss @@ -1,7 +1,7 @@ @use "sass:map"; -@media screen and (min-width: map.get($breakpoints, "lg")), - screen and (max-width: (map.get($breakpoints, "md") - 1)) { +@media screen and (min-width: map-get($breakpoints, "lg")), + screen and (max-width: (map-get($breakpoints, "md") - 1)) { .is-visible-tablet-only { display: none !important; } diff --git a/src/styles/isomer-template/theme/_layout.scss b/src/styles/isomer-template/theme/_layout.scss index 6c1824a9d..ad244c431 100644 --- a/src/styles/isomer-template/theme/_layout.scss +++ b/src/styles/isomer-template/theme/_layout.scss @@ -2,6 +2,10 @@ justify-content: flex-end; } +.flex-start { + justify-content: flex-start; +} + .w-100 { width: 100%; } diff --git a/src/templates/homepage/HeroSection/HeroInfoboxDesktop.tsx b/src/templates/homepage/HeroSection/HeroInfoboxDesktop.tsx index 6b45783a9..29ef0de17 100644 --- a/src/templates/homepage/HeroSection/HeroInfoboxDesktop.tsx +++ b/src/templates/homepage/HeroSection/HeroInfoboxDesktop.tsx @@ -12,10 +12,6 @@ import { EditorHeroDropdownSection } from "types/homepage" import { HeroButton } from "./HeroButton" import { HeroDropdown } from "./HeroDropdown" -const getButtonStyling = (alignment: SectionAlignment = "left") => { - return `hero-alignment-${alignment}` -} - interface HeroInfoboxDesktopProps { alignment: SectionAlignment @@ -31,8 +27,6 @@ interface HeroInfoboxDesktopProps { variant: "side" | "floating" } -const BASE_TITLE_CONTAINER_STYLES = ["mb-8", "is-flex"] - export const HeroInfoboxDesktop = ({ variant, alignment = "left", @@ -46,11 +40,6 @@ export const HeroInfoboxDesktop = ({ url, button, }: HeroInfoboxDesktopProps) => { - const SIDE_SECTION_TITLE_CONTAINER_STYLES = [ - "side-section-infobox-container", - `side-section-container-${alignment}`, - ] - return (
- {subtitle} -
- )} -+ {subtitle} +
+ )}