richie-education 2.31.1-dev4 → 2.32.1-dev4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "richie-education",
3
- "version": "2.31.1-dev4",
3
+ "version": "2.32.1-dev4",
4
4
  "description": "A CMS to build learning portals for Open Education",
5
5
  "main": "sandbox/manage.py",
6
6
  "scripts": {
@@ -132,7 +132,7 @@
132
132
  "tsconfig-paths-webpack-plugin": "4.1.0",
133
133
  "typescript": "5.6.3",
134
134
  "uuid": "11.0.2",
135
- "webpack": "5.95.0",
135
+ "webpack": "5.96.0",
136
136
  "webpack-cli": "5.1.4",
137
137
  "whatwg-fetch": "3.6.20",
138
138
  "xhr-mock": "2.5.1",
@@ -151,6 +151,12 @@ $r-theme: (
151
151
  primary-color: r-color('denim'),
152
152
  secondary-color: r-color('white'),
153
153
  ),
154
+ slider-plugin: (
155
+ arrows-color: r-color('white'),
156
+ arrows-hover-color: r-color('firebrick6'),
157
+ index-color: r-color('charcoal'),
158
+ index-hover-color: r-color('black'),
159
+ ),
154
160
  blogpost-glimpse: (
155
161
  card-background: r-color('white'),
156
162
  title-color: r-color('black'),
@@ -60,6 +60,7 @@
60
60
  @import './templates/courses/plugins/category_plugin';
61
61
  @import './templates/courses/plugins/licence_plugin';
62
62
  @import './templates/richie/simpletext/simpletext';
63
+ @import './templates/richie/slider/slider';
63
64
  @import './templates/richie/section/section';
64
65
  @import './templates/richie/large_banner/large_banner';
65
66
  @import './templates/richie/large_banner/compacted_banner';
@@ -0,0 +1,142 @@
1
+ $r-slider-title-fontsize: $h1-font-size !default;
2
+ $r-slider-title-fontweight: $font-weight-bold !default;
3
+ $r-slider-title-fontfamily: $headings-font-family !default;
4
+ $r-slider-content-fontsize: $h4-font-size !default;
5
+ $r-slider-content-line-height: 1.1 !default;
6
+
7
+ .slider {
8
+ position: relative;
9
+ width: 100%;
10
+ // Reserved space for slide indexes
11
+ padding-bottom: 1.75rem;
12
+
13
+ &__items {
14
+ display: flex;
15
+ overflow-x: hidden;
16
+ }
17
+
18
+ &__tools {
19
+ @include make-container-max-widths();
20
+ margin: 0 auto;
21
+ padding: 0;
22
+ display: flex;
23
+ justify-content: center;
24
+ align-content: center;
25
+ }
26
+
27
+ &__next,
28
+ &__previous {
29
+ position: absolute;
30
+ top: 25%;
31
+ left: 0;
32
+ right: 0;
33
+ background: none;
34
+ border: 0;
35
+
36
+ svg {
37
+ width: 5rem;
38
+ height: 5rem;
39
+ color: r-theme-val(slider-plugin, arrows-color);
40
+ }
41
+
42
+ &:hover {
43
+ svg {
44
+ color: r-theme-val(slider-plugin, arrows-hover-color);
45
+ }
46
+ }
47
+ }
48
+
49
+ &__next {
50
+ left: auto;
51
+ right: 0;
52
+ }
53
+
54
+ &__previous {
55
+ left: 0;
56
+ right: auto;
57
+ }
58
+
59
+ &__indexes {
60
+ @include make-container-max-widths();
61
+ margin: 0 auto;
62
+ width: 100%;
63
+ padding: 0.5rem;
64
+ position: absolute;
65
+ bottom: 0;
66
+ display: flex;
67
+ justify-content: flex-end;
68
+ align-items: center;
69
+ }
70
+
71
+ &__index {
72
+ @include sv-flex(1, 0, 1.9rem);
73
+ padding: 0;
74
+ height: 1rem;
75
+ background: transparent;
76
+ border: 0;
77
+
78
+ &::before {
79
+ content: '';
80
+ display: block;
81
+ height: 0.2rem;
82
+ background: r-theme-val(slider-plugin, index-color);
83
+ border: 0;
84
+ }
85
+
86
+ &--active {
87
+ pointer-events: none;
88
+
89
+ &::before {
90
+ height: 0.5rem;
91
+ }
92
+ }
93
+
94
+ &:hover {
95
+ &::before {
96
+ background: r-theme-val(slider-plugin, index-hover-color);
97
+ }
98
+ }
99
+ }
100
+
101
+ &__index + &__index {
102
+ margin-left: 0.3rem;
103
+ }
104
+ }
105
+
106
+ .slider-item {
107
+ @include sv-flex(1, 0, 100%);
108
+ display: block;
109
+ color: inherit;
110
+ text-decoration: none;
111
+
112
+ // Disable any hover event on content since it can be in a link
113
+ &:hover,
114
+ *:hover {
115
+ color: inherit !important;
116
+ text-decoration: none !important;
117
+ }
118
+
119
+ &__image {
120
+ display: block;
121
+ margin: 0 0 1rem 0;
122
+ width: 100%;
123
+ }
124
+
125
+ &__container {
126
+ @include make-container-max-widths();
127
+ position: relative;
128
+ margin: 0 auto;
129
+ }
130
+
131
+ &__title {
132
+ @include font-size($r-slider-title-fontsize);
133
+ font-family: $r-slider-title-fontfamily;
134
+ font-weight: $r-slider-title-fontweight;
135
+ margin: 0 0 0.5rem 0;
136
+ }
137
+
138
+ &__content {
139
+ @include font-size($r-slider-content-fontsize);
140
+ line-height: $r-slider-content-line-height;
141
+ }
142
+ }
@@ -182,3 +182,6 @@ $r-section-grid-gutters: (
182
182
  'sm': 0.5rem,
183
183
  'xl': 1rem,
184
184
  );
185
+
186
+ // Slider plugin adjustments
187
+ $r-slider-title-fontweight: $font-weight-extrabold;