Skip to content

Commit d0e0ab8

Browse files
committed
Issue #3526953: Fixed alignment & margin on ckeditor floating images.
1 parent 9d3dc19 commit d0e0ab8

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
2-
// This file contains styles for the CKEditor component in CivicTheme.
2+
// Drupal CK editor.
33
//
44

55
.ct-figure {
6-
&.align-left,
7-
&.align-center,
6+
&.align-left {
7+
margin: ct-spacing(1) ct-spacing(6) ct-spacing(2) 0;
8+
}
9+
&.align-center {
10+
text-align: center;
11+
}
812
&.align-right {
9-
display: block;
10-
margin-block-start: ct-particle(2);
11-
margin-block-end: ct-particle(2);
12-
margin-inline-start: ct-particle-px(5);
13-
margin-inline-end: ct-particle-px(5);
13+
margin: ct-spacing(1) 0 ct-spacing(2) ct-spacing(6);
1414
}
1515
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// Drupal CK editor.
3+
//
4+
5+
.ct-figure {
6+
&.align-left {
7+
margin: ct-spacing(1) ct-spacing(6) ct-spacing(2) 0;
8+
}
9+
&.align-center {
10+
text-align: center;
11+
}
12+
&.align-right {
13+
margin: ct-spacing(1) 0 ct-spacing(2) ct-spacing(6);
14+
}
15+
}

web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
// @todo Refactor build to use direct import from the CivicTheme theme.
99
@import 'page/page';
1010
@import 'block/local-tasks';
11+
@import 'ckeditor/ckeditor';

0 commit comments

Comments
 (0)