-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: notes on brand packaging discovery #248
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be replaced with Paragon's Card component: https://paragon-openedx.netlify.app/components/card/ |
||
.card { | ||
.pgn__card-wrapper-image-cap.vertical { | ||
display: flex; | ||
|
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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is a container so here are a couple of max-width options I noticed:
|
||
width: 75% !important; | ||
|
@@ -7,6 +8,8 @@ | |
font-size: 18px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could be replaced by |
||
} | ||
} | ||
|
||
// Seems to be hard coded features for a card component. Can this be replaced by paragon's card component? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be replaced with Paragon's Card component: https://paragon-openedx.netlify.app/components/card/ |
||
#course-filter-controls-card { | ||
width: 512px; | ||
height: 288px; | ||
|
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? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This only has a value of 1px but still noting this |
||
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? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unclear what the best replacement for |
||
|
||
& > * { | ||
margin-top: map-get($spacers, 3); | ||
|
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? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Paragon replacement:
|
||
} |
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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not 100% confident in these but a couple of options here:
|
||
} | ||
.course-link { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For line 15 under this ( It seems to essentially be just an underline. Potential replacement is |
||
|
@@ -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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There’s not a |
||
|
||
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? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not 100% confident but
|
||
} | ||
} | ||
} | ||
|
||
.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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since Frontend Component Header is being used everywhere else, we can replace the previous pixel value with 1.75rem for the sake of being consistent |
||
display: block; | ||
box-sizing: content-box; | ||
position: relative; | ||
top: -.05em; | ||
height: 1.75rem; | ||
padding: 1rem 0; | ||
margin-right: 1rem; | ||
img { | ||
display: block; | ||
height: 100%; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -18,6 +19,7 @@ | |
} | ||
} | ||
|
||
// Margin-bottom is hard coded, can we replace this with paragon/bootstrap? | ||
.masquerade-form-input { | ||
margin-bottom: 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Potential replacements:
|
||
flex-grow: 1; | ||
|
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? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be replaced by Paragon's Card component? https://paragon-openedx.netlify.app/components/card/ |
||
color: white !important; | ||
.program-card-banner { | ||
.pgn__card-image-cap { | ||
|
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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not seeing an exact 1.5rem replacement but here are some alternatives that may work:
|
||
|
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be replaced with Paragon's Card component: https://paragon-openedx.netlify.app/components/card/ |
||
$horizontal-card-gap: 20px; | ||
$vertical-card-gap: 24px; | ||
|
||
|
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? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To do: replace this file with Paragon's Card component and see what it looks like: https://paragon-openedx.netlify.app/components/card/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if replacing this with the Card component doesn't work, note that there's a lot of |
||
.card-link{ | ||
display: block !important; | ||
margin: 0.5rem 0 0.5rem 0 !important; | ||
|
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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if this is the best fit but potential replacement here: https://github.com/openedx/paragon/blob/0e6631bd1f26edc2871c522ad88ffba33bc32617/scss/core/_variables.scss#L341 |
||
} | ||
|
@@ -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; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found paragon variable replacement: https://github.com/openedx/paragon/blob/0e6631bd1f26edc2871c522ad88ffba33bc32617/scss/core/_variables.scss#L18