Skip to content

Commit

Permalink
fix: replace breakpoints with css variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-canon committed Nov 21, 2024
1 parent bbed3b6 commit 89b77a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.discussions-sidebar-frame {
@media (max-width: -1 + map-get($grid-breakpoints, "xl")) {
@media (--pgn-size-breakpoint-max-width-xl) {
max-height: calc(100vh - 65px);
}
}
13 changes: 6 additions & 7 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@
max-width: 640px;
margin: 0 auto;

@media (max-width: -1 + map-get($grid-breakpoints, "sm")) {
@media (--pgn-size-breakpoint-max-width-xs) {
flex-direction: column;
gap: $spacer;
gap: var(--pgn-spacing-spacer-base);
}

.previous-button,
Expand All @@ -345,15 +345,15 @@
.next-button {
flex-basis: 75%;

@media (max-width: -1 + map-get($grid-breakpoints, "sm")) {
@media (--pgn-size-breakpoint-max-width-xs) {
flex-basis: 100%;
}
}

.previous-button {
flex-basis: 25%;

@media (max-width: -1 + map-get($grid-breakpoints, "sm")) {
@media (--pgn-size-breakpoint-max-width-xs) {
flex-basis: 100%;
}
}
Expand All @@ -365,7 +365,7 @@

.next-button,
.previous-button {
@media (min-width: map-get($grid-breakpoints, "md")) {
@media (--pgn-size-breakpoint-min-width-md) {
flex-basis: auto;
min-width: 8rem;
}
Expand Down Expand Up @@ -429,7 +429,6 @@

// Import component-specific sass files
@import "courseware/course/celebration/CelebrationModal.scss";
@import "courseware/course/sidebar/sidebars/discussions/Discussions.scss";
@import "courseware/course/sidebar/sidebars/notifications/NotificationIcon.scss";
@import "courseware/course/sequence/lock-paywall/LockPaywall.scss";
@import "shared/streak-celebration/StreakCelebrationModal.scss";
Expand All @@ -447,4 +446,4 @@
@import "course-home/courseware-search/courseware-search.scss";
@import "course-tabs/course-tabs-navigation.scss";
@import "courseware/course/sidebar/common/SidebarBase.scss";
@import "courseware/course/sidebar/sidebars/course-outline/CourseOutlineTray.scss";
@import "courseware/course/sidebar/sidebars/course-outline/CourseOutlineTray.scss";

0 comments on commit 89b77a7

Please sign in to comment.