Skip to content

Commit

Permalink
docs: notes on brand packaging discovery
Browse files Browse the repository at this point in the history
Co-authored-by: Mena Hassan <[email protected]>
  • Loading branch information
cintnguyen and httpsmenahassan committed Nov 27, 2023
1 parent 5ca1e9d commit d0d692d
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 20 deletions.
10 changes: 4 additions & 6 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ $input-focus-box-shadow: $input-box-shadow; // hack to get upgrade to paragon 4.
white-space: nowrap;
}

// Hard coded color here, there's a paragon equivalent
.alert.alert-info .alert-icon {
color: black;
color: black;
}

#root {
Expand All @@ -34,6 +35,7 @@ $input-focus-box-shadow: $input-box-shadow; // hack to get upgrade to paragon 4.
flex-grow: 1;
}

// Brand logo header has no way of being overwritten by the imported brand package therefore not customizable. Is this intentional?
header {
flex: 0 0 auto;

Expand All @@ -57,11 +59,7 @@ $input-focus-box-shadow: $input-box-shadow; // hack to get upgrade to paragon 4.
}

#paragon-portal-root {
.pgn__modal-layer {
.pgn__modal-close-container {
right: 1rem !important;
}
}
// Removed because there was no visible difference within the element with or without it
.confirm-modal .pgn__modal-body {
overflow: hidden;
}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/CourseCard/CourseCard.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import "@edx/paragon/scss/core/core";

.course-card {
.course-card { // Can this be replaced with paragon's card component?
.card {
.pgn__card-wrapper-image-cap.vertical {
display: flex;
Expand Down
3 changes: 3 additions & 0 deletions src/containers/CourseFilterControls/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Hard coded max-width and width features, is this needed? And can this be replaced by paragon?
.pgn__sheet-component {
max-width: 75% !important;
width: 75% !important;
Expand All @@ -7,6 +8,8 @@
font-size: 18px;
}
}

// Seems to be hard coded features for a card component. Can this be replaced by paragon's card component?
#course-filter-controls-card {
width: 512px;
height: 288px;
Expand Down
4 changes: 2 additions & 2 deletions src/containers/CourseList/NoCoursesView/index.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@import "@edx/paragon/scss/core/core";

#no-courses-content-view {
border: 2px solid $light-400;
border: 2px solid $light-400; // Can this be replaced by paragon?
flex-direction: column;
padding-bottom: map-get($spacers, 5);
padding-top: map-get($spacers, 5);
height: 100%;
height: 100%; // Can this be replaced by paragon?

& > * {
margin-top: map-get($spacers, 3);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.confirm-email-now-button {
text-decoration: underline !important;
text-decoration: underline !important; // Can we find paragon replacement? Can we remove !important?
}
27 changes: 20 additions & 7 deletions src/containers/LearnerDashboardHeader/index.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// Seems to not be used anywhere, can this be removed?
.dropdown-menu-collapse {
width: 100vw;
position: absolute;
left: 0;
}

// Hard coded border bottom to indicate which tab we are on. The transparent border bottom is to align all the navigation links in the headers. Seems like a similar affect could be accomplishged using margin.
.learner-variant-header {
a {
// needed to make the link not resize the header
// Hard coded, not sure of the best way to address this
border-bottom: 2px solid transparent;
}
.course-link {
Expand All @@ -18,21 +20,32 @@
}
}

// Hard coded many items in the nav collapsed menu, would be hard to style
.nav-small-menu {
> * {
justify-content: flex-start !important;
justify-content: flex-start !important;

border-radius: 0 !important;
border-top: 1px solid #ddd !important;
border-radius: 0 !important; // Could potentially be replaced by paragon's styles?
border-top: 1px solid #ddd !important; // Could potentially be replaced by paragon's styles?

&::after {
content: '\00BB';
padding-left: 10px;
padding-left: 10px; // Could potentially be replaced by paragon's styles?
}
}
}

.logo {
// copy from legacy dashboard
height: 40px;
// Removed hard coded px height. Suggested change comes from frontend component header in order to have some consistencies. It seems to work just fine when using the same exact style that we have for logo in frontend component header
display: block;
box-sizing: content-box;
position: relative;
top: -.05em;
height: 1.75rem;
padding: 1rem 0;
margin-right: 1rem;
img {
display: block;
height: 100%;
}
}
2 changes: 2 additions & 0 deletions src/containers/MasqueradeBar/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
padding: map-get($spacers, 3);
margin-bottom: map-get($spacers, 2);

// Margin-bottom is hard coded, can we replace this with paragon/bootstrap?
.masquerade-form-label {
padding: map-get($spacers, 2) map-get($spacers, 3);
display: flex;
Expand All @@ -18,6 +19,7 @@
}
}

// Margin-bottom is hard coded, can we replace this with paragon/bootstrap?
.masquerade-form-input {
margin-bottom: 0;
flex-grow: 1;
Expand Down
2 changes: 1 addition & 1 deletion src/containers/RelatedProgramsModal/components/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.program-card {
.program-card { // Can entire file be replaced with paragon's card component?
color: white !important;
.program-card-banner {
.pgn__card-image-cap {
Expand Down
1 change: 1 addition & 0 deletions src/containers/RelatedProgramsModal/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Hard coded, can this be replaced by paragon?
.related-programs-modal {
.programs-title {
font-size: 1.5rem;
Expand Down
1 change: 1 addition & 0 deletions src/widgets/ProductRecommendations/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "@edx/paragon/scss/core/core";

// This is essentially creating a card component, can be replaced by using paragon's card component
$horizontal-card-gap: 20px;
$vertical-card-gap: 24px;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@media (max-width: 464px) {
.pgn__action-row{
flex-direction: column;
gap: 5px;
gap: 5px; // Can this be replaced?
button {
width: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/RecommendationsPanel/components/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "@edx/paragon/scss/core/core";

// Seems to be trying to create a card component. Can this entire file be replaced with paragon's card component?
.card-link{
display: block !important;
margin: 0.5rem 0 0.5rem 0 !important;
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/RecommendationsPanel/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "@edx/paragon/scss/core/core";

// Hard coded, should we be using paragon equivalent?
.explore-courses-btn {
padding-top: 16px;
}
Expand All @@ -8,6 +9,7 @@
background: $light-200;
}

// Height value is hard coded. Would we we want poeple to be able to change the height?
.recommendations-loading {
display: flex;
justify-content: center;
Expand Down

0 comments on commit d0d692d

Please sign in to comment.