Skip to content

Commit fda3465

Browse files
committed
Update for d11, latest cke versions
Note: APSC Color Box is problematic, but left intact until a migration of current content is complete
1 parent dfbdf9c commit fda3465

File tree

6 files changed

+2177
-1890
lines changed

6 files changed

+2177
-1890
lines changed

apsc_ckeditor_widgets.info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: APSC CKEditor Widgets
33
type: module
44
description: "Adds wysiwyg buttons and functions for CKEditor"
55
package: CKEditor 5
6-
core_version_requirement: ^10.3
6+
core_version_requirement: ^10.3 || ^11

css/apsc.divided.columns.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@
1313
padding: .5em;
1414
font-size: .5rem;
1515
}
16+
17+
/* fade label when widget is focussed */
18+
.widget-divided-columns.ck-widget:has(.ck-editor__nested-editable_focused)::after {
19+
opacity: .1;
20+
}

css/apsc.widget.default.styles.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
color: #212121 !important;
55
}
66

7+
.ck-editor__nested-editable_focused.bg-gradient,
8+
.ck-editor__nested-editable.bg-gradient:focus,
9+
.ck-editor__nested-editable_focused.bg-gradient--unit,
10+
.ck-editor__nested-editable.bg-gradient--unit:focus {
11+
background-image: none !important;
12+
}
13+
714
/* Misc styles */
815

916
.unit-icon {

css/bg.color.css

Lines changed: 10 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,17 @@
11
/* background colours (with card overrides */
2-
.bg-unit-primary:not(.widget-card),
3-
.widget-card.bg-unit-primary .ubc-card {
4-
background-color: var(--color-primary);
5-
}
6-
7-
.bg-unit-secondary:not(.widget-card),
8-
.widget-card.bg-unit-secondary .ubc-card {
9-
background-color: var(--color-secondary);
10-
}
11-
12-
.bg-unit-tertiary:not(.widget-card),
13-
.widget-card.bg-unit-tertiary .ubc-card {
14-
background-color: var(--color-tertiary);
15-
}
16-
17-
.bg-unit-accent:not(.widget-card),
18-
.widget-card.bg-unit-accent .ubc-card {
19-
background-color: var(--color-accent);
20-
}
21-
22-
.bg-white:not(.widget-card),
23-
.widget-card.bg-grey-100 .ubc-card {
24-
background-color: #fff;
25-
}
26-
27-
.bg-grey-100:not(.widget-card),
28-
.widget-card.bg-grey-100 .ubc-card {
29-
background-color: #f5f5f5;
30-
}
31-
32-
.bg-ubc-blue:not(.widget-card),
33-
.widget-card.bg-ubc-blue .ubc-card {
34-
background-color: #002145;
35-
}
36-
37-
.bg-ubc-blue-sea:not(.widget-card),
38-
.widget-card.bg-ubc-blue-sea .ubc-card {
39-
background-color: #003A79;
40-
}
41-
42-
.bg-ubc-blue-cobalt:not(.widget-card),
43-
.widget-card.bg-ubc-blue-cobalt .ubc-card {
44-
background-color: #0055b7;
45-
}
46-
47-
.bg-ubc-blue-neptune:not(.widget-card),
48-
.widget-card.bg-ubc-blue-neptune .ubc-card {
49-
background-color: #40b4e5;
50-
}
51-
52-
.bg-ubc-blue-cornflower:not(.widget-card),
53-
.widget-card.bg-ubc-blue-cornflower .ubc-card {
54-
background-color: #97d4e9;
55-
}
56-
57-
.bg-ubc-blue-polar:not(.widget-card),
58-
.widget-card.bg-ubc-blue-polar .ubc-card {
59-
background-color: #def1f8;
60-
}
61-
62-
.bg-ubc-blue-frost:not(.widget-card),
63-
.widget-card.bg-ubc-blue-frost .ubc-card {
64-
background-color: #f6fbfd;
65-
}
662

67-
.bg-gradient--unit:not(.widget-card),
68-
.widget-card.bg-gradient--unit .ubc-card {
3+
.bg-gradient--unit:not(.widget-card, .widget-column-options),
4+
.widget-card.bg-gradient--unit .ubc-card,
5+
.widget-column-options.bg-gradient--unit .widget-region-one,
6+
.widget-column-options.bg-gradient--unit .widget-region-two,
7+
.widget-column-options.bg-gradient--unit .widget-region-three {
698
background: linear-gradient(227deg, var(--color-grad--light) 2.5%, var(--color-grad--mid) 33%, var(--color-grad--dark) 80%);
709
}
7110

72-
.bg-gradient:not(.widget-card),
73-
.widget-card.bg-gradient .ubc-card {
11+
.bg-gradient:not(.widget-card, .widget-column-options),
12+
.widget-card.bg-gradient .ubc-card,
13+
.widget-column-options.bg-gradient .widget-region-one,
14+
.widget-column-options.bg-gradient .widget-region-two,
15+
.widget-column-options.bg-gradient .widget-region-three {
7416
background: linear-gradient(227deg, #0055b7 2.5%, #003A79 33%, #002145 80%);
7517
}

0 commit comments

Comments
 (0)