richie-education 2.30.1-dev22 → 2.30.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "richie-education",
3
- "version": "2.30.1-dev22",
3
+ "version": "2.30.1-dev23",
4
4
  "description": "A CMS to build learning portals for Open Education",
5
5
  "main": "sandbox/manage.py",
6
6
  "scripts": {
@@ -147,6 +147,10 @@ $r-theme: (
147
147
  content-color: r-color('slate-grey'),
148
148
  description-color: r-color('slate-grey'),
149
149
  ),
150
+ simpletext-variant-box: (
151
+ primary-color: r-color('denim'),
152
+ secondary-color: r-color('white'),
153
+ ),
150
154
  blogpost-glimpse: (
151
155
  card-background: r-color('white'),
152
156
  title-color: r-color('black'),
@@ -59,6 +59,7 @@
59
59
 
60
60
  @import './templates/courses/plugins/category_plugin';
61
61
  @import './templates/courses/plugins/licence_plugin';
62
+ @import './templates/richie/simpletext/simpletext';
62
63
  @import './templates/richie/section/section';
63
64
  @import './templates/richie/large_banner/large_banner';
64
65
  @import './templates/richie/large_banner/compacted_banner';
@@ -0,0 +1,43 @@
1
+ // CKEditor 'simple text' plugin
2
+ //
3
+ // This aims to only adjust every possible plugins so they correctly fit since they
4
+ // were done for 100% size only. No colour, font or anything else should be changed
5
+ // here.
6
+ //
7
+ $r-simpletext-margin-bottom: 0.5rem !default;
8
+ $r-simpletext-variant-padding: 1rem !default;
9
+ $r-simpletext-variant-radius: 0.75rem !default;
10
+
11
+ .simple-text {
12
+ margin-bottom: $r-simpletext-margin-bottom;
13
+
14
+ & > *:last-child {
15
+ margin-bottom: 0;
16
+ }
17
+
18
+ &__variant-round-box {
19
+ padding: $r-simpletext-variant-padding;
20
+ border: 1px solid transparent;
21
+ border-radius: $r-simpletext-variant-radius;
22
+ }
23
+
24
+ &__variant-stroked {
25
+ border-color: r-theme-val(simpletext-variant-box, primary-color);
26
+ background: r-theme-val(simpletext-variant-box, secondary-color);
27
+
28
+ h1,
29
+ h2,
30
+ h3,
31
+ h4,
32
+ h5,
33
+ h6 {
34
+ color: r-theme-val(simpletext-variant-box, primary-color);
35
+ }
36
+ }
37
+
38
+ &__variant-fulfilled {
39
+ color: r-theme-val(simpletext-variant-box, secondary-color);
40
+ border-color: r-theme-val(simpletext-variant-box, primary-color);
41
+ background: r-theme-val(simpletext-variant-box, primary-color);
42
+ }
43
+ }