richie-education 2.34.1-dev21 → 2.34.1-dev23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,6 +35,7 @@ export enum IconTypeEnum {
35
35
  CHEVRON_RIGHT_OUTLINE = 'icon-chevron-right-outline',
36
36
  CHEVRON_UP_OUTLINE = 'icon-chevron-up-outline',
37
37
  CLOCK = 'icon-clock',
38
+ COURSES = 'icon-courses',
38
39
  CREDIT_CARD = 'icon-creditCard',
39
40
  CROSS = 'icon-cross',
40
41
  DURATION = 'icon-duration',
@@ -49,6 +50,7 @@ export enum IconTypeEnum {
49
50
  LOGOUT_SQUARE = 'icon-logout-square',
50
51
  MAGNIFYING_GLASS = 'icon-magnifying-glass',
51
52
  MENU = 'icon-menu',
53
+ MONEY = 'icon-money',
52
54
  MORE = 'icon-more',
53
55
  ORG = 'icon-org',
54
56
  PACE = 'icon-pace',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "richie-education",
3
- "version": "2.34.1-dev21",
3
+ "version": "2.34.1-dev23",
4
4
  "description": "A CMS to build learning portals for Open Education",
5
5
  "main": "sandbox/manage.py",
6
6
  "scripts": {
@@ -491,6 +491,8 @@ $r-theme: (
491
491
  ),
492
492
  program-detail: (
493
493
  cover-empty-background: r-color('smoke'),
494
+ checkmark-list-decoration: url('../../richie/images/components/checkmark.svg'),
495
+ checkmark-list-decoration-color: r-color('indianred3'),
494
496
  ),
495
497
  registered-credit-card: (
496
498
  title-color: r-color('charcoal'),
@@ -2,11 +2,13 @@
2
2
  //
3
3
 
4
4
  .program-detail {
5
+ $detail-selector: &;
5
6
  margin: 0 auto;
6
7
  padding: 0;
7
8
 
8
9
  &__block {
9
10
  @include detail-block;
11
+
10
12
  @if $body-padding-fix {
11
13
  @include content-padding-fix($target: '&:last-child');
12
14
  }
@@ -54,6 +56,75 @@
54
56
  padding-right: $grid-gutter-width;
55
57
  }
56
58
 
59
+ &__objectives {
60
+ ul {
61
+ padding-left: 0.3rem;
62
+ list-style-type: none;
63
+
64
+ li {
65
+ position: relative;
66
+ margin-top: 0.5rem;
67
+ font-size: 1rem;
68
+ padding-left: 1.5rem;
69
+
70
+ &::before {
71
+ content: '';
72
+ display: block;
73
+ position: absolute;
74
+ top: 0.2rem;
75
+ left: 0;
76
+ width: 0.8rem;
77
+ height: 0.8rem;
78
+ background-repeat: no-repeat;
79
+ background-color: r-theme-val(program-detail, checkmark-list-decoration-color);
80
+ -webkit-mask: r-theme-val(program-detail, checkmark-list-decoration);
81
+ mask: r-theme-val(program-detail, checkmark-list-decoration);
82
+ -webkit-mask-size: cover;
83
+ mask-size: cover;
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ &__content {
90
+ @include media-breakpoint-up(lg) {
91
+ padding-right: 3rem;
92
+ }
93
+ }
94
+
95
+ &__aside {
96
+ padding: 1rem 0;
97
+
98
+ @include media-breakpoint-up(lg) {
99
+ @include sv-flex(1, 0, $r-program-aside);
100
+ padding: 3rem 1rem;
101
+ }
102
+
103
+ #{$detail-selector}__row {
104
+ margin-bottom: 1.5rem;
105
+ }
106
+
107
+ #{$detail-selector}__title {
108
+ @include font-size($h3-font-size);
109
+ padding-bottom: 1rem;
110
+
111
+ @if r-theme-val(course-detail, aside-title-border) {
112
+ border-bottom: $onepixel solid r-theme-val(course-detail, aside-title-border);
113
+ }
114
+ }
115
+ }
116
+
117
+ &__main {
118
+ @include media-breakpoint-up(lg) {
119
+ @include sv-flex(1, 0, calc(100% - #{$r-program-subheader-aside}));
120
+ display: flex;
121
+ justify-content: flex-start;
122
+ align-content: flex-start;
123
+ align-items: flex-start;
124
+ flex-wrap: wrap;
125
+ }
126
+ }
127
+
57
128
  &__courses {
58
129
  @include make-col-ready();
59
130
  @include make-col(12);
@@ -152,11 +152,13 @@ $r-footer-logo-width-lg: 11.875rem !default;
152
152
  // full width like common blocks. Usefull if you plan to remove course run from
153
153
  // template
154
154
  $r-course-aside: 35% !default;
155
+ $r-program-aside: 25% !default;
155
156
 
156
157
  // Subheader aside column width in course detail. Unlike, $r-course-aside this
157
158
  // variable cannot be null. Otherwise to homegenize layout, it should have the
158
159
  // same value than $r-course-aside.
159
160
  $r-course-subheader-aside: 35% !default;
161
+ $r-program-subheader-aside: 25% !default;
160
162
 
161
163
  // Course search page shared variables
162
164
  $r-search-filters-gutter: 0.2rem !default;
@@ -173,6 +175,8 @@ $r-section-grid-sizes: (
173
175
  '33x33x33': 1fr 1fr 1fr,
174
176
  '25x75': 25% 2fr,
175
177
  '75x25': 2fr 25%,
178
+ '35x65': 35% 2fr,
179
+ '65x35': 2fr 35%,
176
180
  );
177
181
 
178
182
  // Define gutter size to apply on Section grid