-
Notifications
You must be signed in to change notification settings - Fork 146
[BD-46] feat: added support Paragon design tokens #351
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
Changes from all commits
9e95158
8373dc4
2e3f393
dcae599
17fb1d1
b51c82a
c6e7e87
24b65b6
d066c85
534ed7a
83e0fbb
11ce896
0ab3216
27b8411
57ae6a2
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ module.config.js | |
.idea/ | ||
|
||
.vscode | ||
src/i18n/messages | ||
src/i18n/messages |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
@import "@edx/brand/paragon/fonts"; | ||
@import "@edx/brand/paragon/variables"; | ||
@import "@openedx/paragon/scss/core/core"; | ||
@import "@edx/brand/paragon/overrides"; | ||
@use "@openedx/paragon/dist/core.min.css" as paragonCore; | ||
@use "@openedx/paragon/dist/light.min.css" as paragonLight; | ||
|
||
@import "@edx/frontend-component-header/index"; | ||
PKulkoRaccoonGang marked this conversation as resolved.
Show resolved
Hide resolved
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
.menu { | ||
position: relative; | ||
} | ||
|
||
.menu-content { | ||
position: absolute; | ||
top: 100%; | ||
z-index: 10; | ||
background: #fff; | ||
background: var(--pgn-color-white, #fff); | ||
min-width: 10rem; | ||
|
||
&.pin-left { | ||
left: 0; | ||
} | ||
|
||
&.pin-right { | ||
right: 0; | ||
} | ||
} | ||
|
||
|
||
.menu-dropdown-enter { | ||
opacity: 0; | ||
transform-origin: 75% 0; | ||
transform: scale3d(0.8, 0.8, 1); | ||
} | ||
|
||
.menu-dropdown-enter-active { | ||
transform-origin: 75% 0; | ||
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1); | ||
transform: scale3d(1, 1, 1); | ||
opacity: 1; | ||
} | ||
.menu-dropdown-enter-done { | ||
} | ||
|
||
.menu-dropdown-exit { | ||
transform-origin: 75% 0; | ||
transform: scale3d(1, 1, 1); | ||
opacity: 1; | ||
} | ||
|
||
.menu-dropdown-exit-active { | ||
transform-origin: 75% 0; | ||
transform: scale3d(0.8, 0.8, 1); | ||
transition: all 250ms cubic-bezier(0.8, 0, 0.6, 1); | ||
opacity: 0; | ||
} | ||
.menu-dropdown-exit-done { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,10 @@ $white: #FFFFFF; | |
|
||
height: 3.75rem; | ||
box-shadow: 0 1px 0 0 rgb(0 0 0 / .1); | ||
background: $white; | ||
background: var(--pgn-color-white, $white); | ||
|
||
.btn-outline-primary { | ||
border-color: $white; | ||
border-color: var(--pgn-color-white, $white); | ||
} | ||
|
||
.logo { | ||
|
@@ -19,8 +19,8 @@ $white: #FFFFFF; | |
position: relative; | ||
top: -.05em; | ||
height: 1.75rem; | ||
padding: $spacer 0; | ||
margin-right: $spacer; | ||
padding: var(--pgn-spacing-spacer-base, $spacer) 0; | ||
margin-right: var(--pgn-spacing-spacer-base, $spacer); | ||
|
||
img { | ||
display: block; | ||
|
@@ -33,13 +33,13 @@ $white: #FFFFFF; | |
|
||
@media only screen and (min-width: 769px) { | ||
padding: .5rem; | ||
padding-right: $spacer; | ||
padding-right: var(--pgn-spacing-spacer-base, $spacer); | ||
border-right: 1px solid #E5E5E5; | ||
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. [nit, non-blocking]: hardcoded HEX value; is it worth swapping to a token/CSS variable? This color doesn't appear to an official Paragon color (presumably, it should be one of the officially supported gray levels) |
||
width: 70%; | ||
} | ||
|
||
span { | ||
color: #333333; | ||
color: var(--pgn-color-gray-800, #333333); | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
|
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.
I got errors when I had this in
frontend-app-learning
'sindex.scss
I was able to work around it by using
which feels less than ideal. My assumption is that can be fixed by some webpack config changes. I consider this non-blocking but worth noting.