Skip to content

Commit caeeceb

Browse files
committed
refator: replace styles with css variables
1 parent 50cd06e commit caeeceb

File tree

3 files changed

+27
-20
lines changed

3 files changed

+27
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
.program-record-wrapper {
2-
@extend .my-4\.5;
2+
margin-top: calc(var(--pgn-spacing-spacer-base) * 2) !important;
33

44
.back-to-records:hover {
55
background: none;
66
}
77

88
.program-record-nav {
9-
@extend .d-flex, .justify-content-between, .mb-3;
9+
display: flex !important;
10+
justify-content: space-between !important;
11+
margin-bottom: var(--pgn-spacing-spacer-base) !important;
1012

1113
.program-record-actions {
12-
@extend .d-flex;
14+
display: flex !important;
1315
gap: 0.5rem;
1416
}
1517

1618
.download-record {
17-
@extend .d-flex, .flex-row-reverse;
19+
display: flex !important;
20+
flex-direction: row-reverse !important;
1821
}
1922
}
2023

@@ -23,15 +26,17 @@
2326
.program-record-header {
2427

2528
.program-headings {
26-
@extend .d-flex, .justify-content-between;
27-
color: $primary-500;
29+
display: flex !important;
30+
justify-content: space-between !important;
31+
color: var(--pgn-color-primary-500);
2832

2933
h4 {
3034
color: inherit;
3135
}
3236

3337
.program-title {
34-
@extend .d-flex, .flex-column;
38+
display: flex !important;
39+
flex-direction: column !important;
3540

3641
.heading-label {
3742
text-transform: capitalize;
@@ -44,20 +49,22 @@
4449
}
4550

4651
.program-status {
47-
@extend .d-flex, .align-items-center;
52+
display: flex !important;
53+
align-items: center !important;
4854
gap: 0.5rem;
4955

5056
span.badge {
51-
@extend .d-flex;
57+
display: flex !important;
5258
}
5359

5460
span.updated {
55-
@extend .small;
61+
font-size: var(--pgn-typography-font-size-sm);
62+
font-weight: var(--pgn-typography-font-weight-normal);
5663
}
5764
}
5865

5966
.learner-info {
60-
@extend .d-flex;
67+
display: flex !important;
6168
gap: 0.25rem;
6269
}
6370
}
@@ -68,6 +75,6 @@
6875
}
6976

7077
.help {
71-
color: $primary-500;
78+
color: var(--pgn-color-primary-500);
7279
}
7380
}

src/components/ProgramRecordSendModal/SendLearnerRecordModal.scss

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
.send-record-modal {
2-
@extend .d-flex, .flex-column;
2+
display: flex !important;
3+
flex-direction: column !important;
34

45
> div:nth-child(2) {
5-
@extend .d-flex, .flex-column;
6-
color: $primary-500;
6+
display: flex !important;
7+
flex-direction: column !important;
8+
color: var(--pgn-color-primary-500);
79
}
810

911
> div:nth-child(3) {
1012
overflow: hidden;
1113
}
1214

1315
.checkbox-group {
14-
@extend .d-flex, .flex-column;
16+
display: flex !important;
17+
flex-direction: column !important;
1518

1619
> div {
1720
width: 100%;

src/index.scss

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
@import "~@edx/brand/paragon/fonts";
2-
@import "~@edx/brand/paragon/variables";
3-
@import "~@openedx/paragon/scss/core/core";
4-
@import "~@edx/brand/paragon/overrides";
1+
@use "@openedx/paragon/styles/css/core/custom-media-breakpoints" as paragonCustomMediaBreakpoints;
52

63
@import './components/index.scss';
74

0 commit comments

Comments
 (0)