forked from openedx/frontend-app-learner-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: add css-variables support to redwood (#2)
- Loading branch information
Showing
13 changed files
with
3,392 additions
and
1,315 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/containers/CourseCard/components/CourseCardDetails/index.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
@import "~@edx/brand/paragon/variables"; | ||
@import "~@openedx/paragon/scss/core/core"; | ||
@import "~@edx/brand/paragon/overrides"; | ||
|
||
a.course-card-title { | ||
color: $black; | ||
color: var(--pgn-color-black); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
@import "@openedx/paragon/scss/core/core"; | ||
|
||
#no-courses-content-view { | ||
border: 2px solid $light-400; | ||
border: 2px solid var(--pgn-color-light-400); | ||
flex-direction: column; | ||
padding-bottom: map-get($spacers, 5); | ||
padding-top: map-get($spacers, 5); | ||
padding-bottom: var(--pgn-spacing-spacer-5); | ||
padding-top: var(--pgn-spacing-spacer-5); | ||
height: 100%; | ||
|
||
& > * { | ||
margin-top: map-get($spacers, 3); | ||
margin-bottom: map-get($spacers, 3); | ||
margin-top: var(--pgn-spacing-spacer-3); | ||
margin-bottom: var(--pgn-spacing-spacer-3); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
@import "@openedx/paragon/scss/core/core"; | ||
|
||
.course-list-column { | ||
padding: 0 map-get($spacers, 4); | ||
padding: 0 var(--pgn-spacing-spacer-4); | ||
} | ||
|
||
.sidebar-column { | ||
padding: 0 map-get($spacers, 3) 0 map-get($spacers, 1); | ||
padding: 0 var(--pgn-spacing-spacer-3) 0 var(--pgn-spacing-spacer-1); | ||
} | ||
|
||
@include media-breakpoint-down(lg) { | ||
@media (--max-pgn-size-breakpoint-lg) { | ||
.sidebar-column { | ||
// grid are inheriting dir="ltr" from the body, so we need to override it | ||
[dir=ltr] & { | ||
padding: 0 map-get($spacers, 3); | ||
padding: 0 var(--pgn-spacing-spacer-3); | ||
} | ||
[dir=rtl] & { | ||
padding: 0 map-get($spacers, 3); | ||
padding: 0 var(--pgn-spacing-spacer-3); | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/containers/LearnerDashboardHeader/ConfirmEmailBanner/ConfirmEmailBanner.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.confirm-email-now-button { | ||
text-decoration: underline !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,36 @@ | ||
@import "@openedx/paragon/scss/core/core"; | ||
|
||
.masquerade-bar { | ||
display: flex; | ||
align-items: flex-start; | ||
padding: map-get($spacers, 3); | ||
margin-bottom: map-get($spacers, 2); | ||
padding: var(--pgn-spacing-spacer-3); | ||
margin-bottom: var(--pgn-spacing-spacer-2); | ||
|
||
.masquerade-form-label { | ||
padding: map-get($spacers, 2) map-get($spacers, 3); | ||
padding: var(--pgn-spacing-spacer-2) var(--pgn-spacing-spacer-3); | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 0; | ||
white-space: nowrap; | ||
|
||
&>.pgn__icon { | ||
margin-right: map-get($spacers, 3); | ||
margin-right: var(--pgn-spacing-spacer-3); | ||
} | ||
} | ||
|
||
.masquerade-form-input { | ||
margin-bottom: 0; | ||
flex-grow: 1; | ||
max-width: map-get($grid-breakpoints, 'md'); | ||
max-width: var(--pgn-size-breakpoint-min-width-md); | ||
} | ||
|
||
.masquerade-chip { | ||
padding: map-get($spacers, 2) map-get($spacers, 3); | ||
font-size: $font-size-base; | ||
padding: var(--pgn-spacing-spacer-2) var(--pgn-spacing-spacer-3); | ||
font-size: var(--pgn-typography-font-size-base); | ||
} | ||
} | ||
|
||
@include media-breakpoint-down(md) { | ||
@media (--max-pgn-size-breakpoint-md){ | ||
.masquerade-bar { | ||
margin: auto; | ||
padding: map-get($spacers, 3) map-get($spacers, 4); | ||
padding: var(--pgn-spacing-spacer-3) var(--pgn-spacing-spacer-4); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
@import "@openedx/paragon/scss/core/core"; | ||
|
||
.explore-courses-btn { | ||
padding-top: 16px; | ||
} | ||
|
||
.panel-background { | ||
background: $light-200; | ||
background: var(--pgn-color-light-200); | ||
} | ||
|
||
.recommendations-loading { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 7.813rem; | ||
background: $light-200; | ||
background: var(--pgn-color-light-200); | ||
} |