Skip to content

Commit

Permalink
refactor(hero-styles): shift to new file
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin authored and seaerchin committed Oct 3, 2023
1 parent e45c0d1 commit 8342628
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 97 deletions.
82 changes: 80 additions & 2 deletions src/styles/isomer-template/components/homepage/_hero.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:map";

.border-solid-gray {
border: 1px solid $border-light;
}
Expand All @@ -10,12 +12,88 @@
background: rgba(0, 0, 0, 0.25);
}

.hero-body-padding {
.with-padding {
padding: 3rem 1.5rem;
}

@media screen and (min-width: 1024px) {
@media screen and (min-width: map.get($breakpoints, "md")) {
.hero-floating {
padding: 3rem;
}
}

// NOTE: This is to keep the infobox from exceeding
// the width of the nav-bar.
// Hence, any changes here or on nav-bar should be
// duplicated to the other.
.infobox-floating-container {
max-width: $container-max-width;
margin: 0 auto;
}

.hero-background-white {
.hero-text-color {
color: $content-base;
}
background-color: $canvas-base;
}

.hero-background-black {
.hero-text-color {
color: $content-inverse;
}
background-color: $canvas-inverse;
}

.hero-background-gray {
.hero-text-color {
color: $content-inverse;
}
background-color: $canvas-translucent-grey;
}

.hero-floating-sm {
width: 33%;
}

.hero-floating-md {
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")) {
.hero-side-sm {
width: 50%;
}

.side-section-infobox-container {
width: 576px;
}

.side-section-container-left {
text-align: right;
align-self: flex-end;
}

.side-section-container-right {
text-align: left;
align-self: flex-start;
}
}

@media screen and ((max-width: map.get($breakpoints, "xl") - 1)) {
.hero-side-sm {
width: 33%;
}
}

.hero-side-md {
width: 50%;
}
95 changes: 0 additions & 95 deletions src/styles/templates/components/hero.scss

This file was deleted.

0 comments on commit 8342628

Please sign in to comment.