Skip to content

Commit

Permalink
Merge pull request #912 from prezly/feature/care-5047-make-lena-colla…
Browse files Browse the repository at this point in the history
…pse-into-mobile-header-sooner-same-as-bea

[CARE-5047] Fix - Replicate responsive behaviour from Bea
  • Loading branch information
kudlajz authored May 17, 2024
2 parents 66da352 + 57fc20d commit 0f3fe13
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 23 deletions.
4 changes: 2 additions & 2 deletions components/RichText/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
.htmlContent h1 {
@include heading-2;

@include desktop-large-up {
@include desktop-up {
@include heading-1;
}

Expand All @@ -39,7 +39,7 @@
.htmlContent h2 {
@include heading-3;

@include desktop-large-up {
@include desktop-up {
@include heading-2;
}

Expand Down
2 changes: 1 addition & 1 deletion components/StoryCards/HighlightedStoryCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@include heading-2;
@include ensure-max-text-height(4, $line-height-m);

@include desktop-large-up {
@include desktop-up {
@include heading-1-xxl;
@include ensure-max-text-height(2, $line-height-xl);
}
Expand Down
2 changes: 1 addition & 1 deletion modules/Story/HeaderRenderer/HeaderRenderer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.prezly-slate-heading--heading-1 {
@include heading-2;

@include desktop-large-up {
@include desktop-up {
@include heading-1;
}

Expand Down
5 changes: 0 additions & 5 deletions styles/mixins/_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
padding-right: $grid-spacing-desktop;
max-width: $grid-container-max-width;
}

@include desktop-large-up {
padding-left: $grid-spacing-desktop-large;
padding-right: $grid-spacing-desktop-large;
}
}

/*
Expand Down
14 changes: 4 additions & 10 deletions styles/mixins/_responsive.scss
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
@import "../variables/breakpoints";

@mixin mobile-only {
@media screen and (max-width: $breakpoint-tablet) {
@media screen and (max-width: $breakpoint-tablet - 1px) {
@content;
}
}

@mixin tablet-up {
@media screen and (min-width: $breakpoint-tablet + 1px) {
@media screen and (min-width: $breakpoint-tablet) {
@content;
}
}

@mixin tablet-only {
@media screen and (min-width: $breakpoint-tablet + 1px) and (max-width: $breakpoint-desktop) {
@media screen and (min-width: $breakpoint-tablet) and (max-width: $breakpoint-desktop) {
@content;
}
}

@mixin desktop-up {
@media screen and (min-width: $breakpoint-desktop + 1px) {
@content;
}
}

@mixin desktop-large-up {
@media screen and (min-width: $breakpoint-desktop-large + 1px) {
@media screen and (min-width: $breakpoint-desktop) {
@content;
}
}
Expand Down
5 changes: 2 additions & 3 deletions styles/variables/_breakpoints.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
$breakpoint-tablet: 414px;
$breakpoint-desktop: 768px;
$breakpoint-desktop-large: 1024px;
$breakpoint-tablet: 768px;
$breakpoint-desktop: 1024px;
$breakpoint-cards-small: 600px;
$breakpoint-cards-medium: 940px;
1 change: 0 additions & 1 deletion styles/variables/_spacing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ $grid-gutter-tablet: 2.5rem; // 40px
$grid-spacing-tablet: 2.5rem; // 40px
$grid-gutter-desktop: 2.5rem; // 40px
$grid-spacing-desktop: 2.5rem; // 40px
$grid-spacing-desktop-large: 5rem; // 80px

$grid-container-max-width: 1280px; // 1120px + 80px spacing on the sides

0 comments on commit 0f3fe13

Please sign in to comment.