Skip to content

Commit

Permalink
feat: added css variables support to sumac (#9)
Browse files Browse the repository at this point in the history
* feat: added css variables support to sumac

* fix: added paragon urls property to env

* fix: added webpack config
  • Loading branch information
Asespinel authored Jan 22, 2025
1 parent 35d9ae8 commit cfd1b5c
Show file tree
Hide file tree
Showing 8 changed files with 1,550 additions and 160 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ APP_ID=''
MFE_CONFIG_API_URL=''
SEARCH_CATALOG_URL=''
ENABLE_SKILLS_BUILDER_PROFILE=''
PARAGON_THEME_URLS={}
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ APP_ID=''
MFE_CONFIG_API_URL=''
SEARCH_CATALOG_URL='http://localhost:18000/courses'
ENABLE_SKILLS_BUILDER_PROFILE=''
PARAGON_THEME_URLS={}
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ LEARNER_RECORD_MFE_BASE_URL='http://localhost:1990'
COLLECT_YEAR_OF_BIRTH=true
APP_ID=''
MFE_CONFIG_API_URL=''
PARAGON_THEME_URLS={}
1,669 changes: 1,526 additions & 143 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"snapshot": "fedx-scripts jest --updateSnapshot",
"start": "fedx-scripts webpack-dev-server --progress",
"test": "TZ=UTC fedx-scripts jest --coverage --passWithNoTests",
"stubs": "pact-stub-service ./src/pacts/frontend-app-profile-edx-platform.json --port 18000"
"stubs": "pact-stub-service ./src/pacts/frontend-app-profile-edx-platform.json --port 18000",
"replace-variables": "paragon replace-variables -p src -t usage",
"dev": "PUBLIC_PATH=/learning/ MFE_CONFIG_API_URL='http://localhost:8000/api/mfe_config/v1' fedx-scripts webpack-dev-server --progress --host apps.local.openedx.io"
},
"bugs": {
"url": "https://github.com/openedx/frontend-app-profile/issues"
Expand All @@ -29,16 +31,17 @@
],
"dependencies": {
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.2",
"@edx/frontend-component-header": "^5.6.0",
"@edx/frontend-platform": "8.1.2",
"@edx/frontend-component-header": "npm:@edunext/[email protected]",
"@edx/frontend-component-footer": "npm:@edunext/[email protected]",
"@edx/frontend-platform": "npm:@edunext/[email protected]",
"@edx/openedx-atlas": "^0.6.0",
"@fortawesome/fontawesome-svg-core": "6.6.0",
"@fortawesome/free-brands-svg-icons": "6.6.0",
"@fortawesome/free-regular-svg-icons": "6.6.0",
"@fortawesome/free-solid-svg-icons": "6.6.0",
"@fortawesome/react-fontawesome": "0.2.2",
"@openedx/frontend-slot-footer": "^1.0.2",
"@openedx/paragon": "^22.2.2",
"@openedx/paragon": "^23.0.0-alpha.7",
"@pact-foundation/pact": "^11.0.2",
"@redux-devtools/extension": "3.3.0",
"classnames": "2.5.1",
Expand Down
3 changes: 2 additions & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@use "@openedx/paragon/styles/css/core/custom-media-breakpoints.css" as paragonCustomMediaBreakpoints;

@import "~@edx/brand/paragon/fonts";
@import "~@edx/brand/paragon/variables";
@import "~@openedx/paragon/scss/core/core";
@import "~@edx/brand/paragon/overrides";
@import "~@edx/frontend-component-header/dist/index";
@import "~@edx/frontend-component-footer/dist/footer";
Expand Down
24 changes: 12 additions & 12 deletions src/profile/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
position: absolute;
left: 1.5rem;
top: 5.25rem;
color: $gray-500;
color: var(--pgn-color-gray-500);
line-height: 0.9rem;
font-size: 0.8rem;
font-style: normal;
Expand All @@ -42,24 +42,24 @@

.icon-visibility-off {
height: 1rem;
color: $gray-500;
color: var(--pgn-color-gray-500);
}

.profile-page {
.edit-section-header {
@extend .h6;
font-size: var(--pgn-typography-font-size-h6);
display: block;
font-weight: normal;
letter-spacing: 0;
margin: 0;
}

label.edit-section-header {
margin-bottom: $spacer * .5;
margin-bottom: var(--pgn-spacing-spacer-2);
}

.profile-avatar-wrap {
@include media-breakpoint-up(md) {
@media (--pgn-size-breakpoint-min-width-md ) {
max-width: 12rem;
margin-right: 0;
margin-top: -8rem;
Expand All @@ -77,25 +77,25 @@
align-items: center;
border-radius: 50%;

@include media-breakpoint-up(md) {
@media (--pgn-size-breakpoint-min-width-md ) {
background: linear-gradient(to top, rgba(0,0,0,.65) 4rem, rgba(0,0,0,0) 4rem);
align-items: flex-end;
}

.btn {
text-decoration: none;
@include media-breakpoint-up(md) {
@media (--pgn-size-breakpoint-min-width-md ) {
margin-bottom: 1.2rem;
}
}

.dropdown {
@include media-breakpoint-up(md) {
@media (--pgn-size-breakpoint-min-width-md ) {
margin-bottom: 1.2rem;
}

.btn {
color: $white;
color: var(--pgn-color-white);
background: transparent;
border-color: transparent;
margin: 0;
Expand All @@ -108,7 +108,7 @@
height: 5rem;
position: relative;

@include media-breakpoint-up(md) {
@media (--pgn-size-breakpoint-min-width-md ) {
width: 12rem;
height: 12rem;
}
Expand All @@ -128,7 +128,7 @@
border-radius:0;
transition: opacity 200ms ease;

@include media-breakpoint-up(md) {
@media (--pgn-size-breakpoint-min-width-md ) {
height: 4rem;
}

Expand All @@ -142,7 +142,7 @@
position: relative;

.certificate-title {
font-family: $font-family-serif;
font-family: var(--pgn-typography-font-family-serif);
font-weight: 400;
}

Expand Down
Empty file added webpack.dev-tutor.config.js
Empty file.

0 comments on commit cfd1b5c

Please sign in to comment.