Skip to content

Commit

Permalink
Feature: 4.x banner button updates (#726)
Browse files Browse the repository at this point in the history
* Added bttn scss updates to work with new button classes

* Fixed broken formatting
  • Loading branch information
bspeare committed Jul 15, 2022
1 parent 5fa8b9c commit 1f5e457
Showing 1 changed file with 61 additions and 5 deletions.
66 changes: 61 additions & 5 deletions src/components/banner/banner.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@import '../../assets/scss/variables';
@import '../../assets/scss/utilities';

// --------------------------------
@import '../../assets/scss/utilities'; // --------------------------------
// Banner sizes
//
// @todo Use https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio
Expand Down Expand Up @@ -30,7 +28,7 @@
content: '';
}
}

// Full screen 100vh option
&--full {
&.banner--large {
@include breakpoint(page-container) {
Expand Down Expand Up @@ -121,6 +119,32 @@
}
}
}

&:last-child {
margin-right: 0;
}

&.banner--gradient-dark:not([class*="bg-"]) {
&.banner--stacked {
.banner__action {
.bttn--transparent {
@include breakpoint(sm) {
border-color: rgba(255, 255, 255, .525);
color: #fff;
}
}
}
}
}

&:not([class*="banner--stacked"]) {
.banner__action {
.bttn--transparent {
border: 1px solid #fff;
color: #fff;
}
}
}
}
// --------------------------------
// Pre-title
Expand All @@ -143,6 +167,10 @@
margin-bottom: -.1rem;
}

&.headline.headline--highlight.headline--serif {
margin-bottom: -.4rem;
}

&.headline.headline--highlight {
span {
background: none;
Expand Down Expand Up @@ -243,6 +271,10 @@
z-index: 1;
color: #fff;

blockquote {
margin-left: 0;
}

a {
color: #fff;
}
Expand Down Expand Up @@ -281,6 +313,16 @@
}
}

&[class*="banner--gradient-light"]:not([class*="bg-"]) {
.banner__text {
blockquote {
[class*="bg--gold"] & {
border-left-color: $primary;
}
}
}
}

&[class*="bg--gray"] {
.banner__text {
color: $secondary;
Expand Down Expand Up @@ -356,7 +398,6 @@
}

&--stacked {

.banner__text {
color: $secondary;
@include breakpoint(sm) {
Expand Down Expand Up @@ -400,6 +441,19 @@
}
}

&[class*="banner--gradient-light"]:not([class*="bg--"]) {
.banner__text {
[class*="bg--gold"] & {
blockquote {
border-left-color: #fff;
@include breakpoint(sm) {
border-left-color: $primary;
}
}
}
}
}

&[class*="banner--gradient-light"]:not([class*="bg--black"]) {
.banner__text {
[class*="bg--gold"] & {
Expand All @@ -416,6 +470,7 @@

&[class*="bg--black"] {
display: flex;

.banner__text {
color: #fff;

Expand Down Expand Up @@ -836,6 +891,7 @@
}
}
}

&[class*="banner--gradient-dark"] {
.headline--negative {
color: $secondary;
Expand Down

0 comments on commit 1f5e457

Please sign in to comment.