Skip to content
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

feat: add support for design tokens and CSS variables #383

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7,007 changes: 2,547 additions & 4,460 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"homepage": "https://github.com/edx/frontend-lib-content-components#readme",
"devDependencies": {
"@edx/browserslist-config": "^1.1.1",
"@edx/frontend-build": "12.8.27",
"@edx/frontend-platform": "4.2.0",
"@edx/paragon": "^20.45.0",
"@edx/frontend-build": "github:openedx/frontend-build#ags/2321",
"@edx/frontend-platform": "github:openedx/frontend-platform#ags/inject-theme-css",
"@edx/paragon": "21.0.0-alpha.41",
"@edx/reactifex": "^2.1.1",
"@testing-library/dom": "^8.13.0",
"@testing-library/jest-dom": "^5.16.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
content: '';
position: relative;
left: 5px;
border: 1px solid #eae6e5;
border: 1px solid var(--pgn-color-light-400);
height: 24px;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "@edx/paragon/scss/core/core";

.total-label {
border: 1px solid $gray-500;
border: 1px solid var(--pgn-color-gray-500);
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import ThumbnailWidget from './components/ThumbnailWidget';
import TranscriptWidget from './components/TranscriptWidget';
import VideoSourceWidget from './components/VideoSourceWidget';
import VideoPreviewWidget from './components/VideoPreviewWidget';
import './index.scss';
import SocialShareWidget from './components/SocialShareWidget';
import messages from '../../messages';

Expand Down

This file was deleted.

11 changes: 8 additions & 3 deletions src/editors/containers/VideoUploadEditor/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.dropzone-middle {
border: 2px dashed #ccc;
border: 2px dashed var(--pgn-color-gray-200);

&.active {
border: 2px solid #262626; /* change color when active */
Expand Down Expand Up @@ -28,7 +28,7 @@
transform: translateX(-50%);

input::placeholder {
color: #454545;
color: var(--pgn-color-gray-700);
// color: #5E35B1;
font-family: 'Inter';
font-weight: 500;
Expand All @@ -37,14 +37,19 @@

button {
border: none !important;
background-color: #FFFFFF;
background-color: var(--pgn-color-white);
}

.prompt-button {
background: rgba(239, 234, 247, 0.70);
}
}

.error-message {
color: var(--pgn-color-danger-500);
margin-top: 20rem;
}

.close-button-container {
position: absolute;
top: 25px;
Expand Down
9 changes: 7 additions & 2 deletions src/editors/sharedComponents/CodeEditor/index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
.cm-editor { height: 100% }
.cm-scroller { overflow: auto }
.cm-editor {
height: 100%
}

.cm-scroller {
overflow: auto
}
10 changes: 5 additions & 5 deletions src/editors/sharedComponents/ExpandableTextArea/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.expandable-mce {

.error {
outline: 2px solid #CA3A2F;
outline: 2px solid var(--pgn-color-danger-300);
}
.mce-content-body {
padding: 10px;
Expand All @@ -12,14 +12,14 @@
margin: 16px 40px;
}
}

*[contentEditable=false] {
outline: 1px solid #D7D3D1;
outline: 1px solid var(--pgn-color-light-700);
}
*[contentEditable=true] {
outline: 1px solid #707070;
outline: 1px solid var(--pgn-color-gray-500);
&:focus, &:active {
outline: 2px solid #000;
outline: 2px solid var(--pgn-color-black);
}
}
}
Loading