forked from os2loop/os2loop
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed injection of CKEditor stylesheet
- Loading branch information
Showing
5 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
20 changes: 11 additions & 9 deletions
20
web/profiles/custom/os2loop/modules/os2loop_documents/ckeditor/os2loop_documents_table.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
/* Cherry pick some styling from os2loop_theme/assets/documents.scss. */ | ||
table { | ||
/* Cherry pick some styling from os2loop_theme/assets/documents.scss and prefix | ||
* with .ck-editor to only target content in CKEditor | ||
*/ | ||
.ck-content table { | ||
width: 100%; | ||
} | ||
|
||
th { | ||
.ck-content th { | ||
background: #ccc; | ||
text-align: center; | ||
} | ||
|
||
th, | ||
td { | ||
.ck-content th, | ||
.ck-content td { | ||
vertical-align: top; | ||
} | ||
|
||
.number, | ||
.right { | ||
.ck-content .number, | ||
.ck-content .right { | ||
text-align: right; | ||
} | ||
|
||
.left { | ||
.ck-content .left { | ||
text-align: left; | ||
} | ||
|
||
.center { | ||
.ck-content .center { | ||
text-align: center; | ||
} |
6 changes: 6 additions & 0 deletions
6
web/profiles/custom/os2loop/modules/os2loop_documents/os2loop_documents.libraries.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# @see https://www.drupal.org/docs/contributed-themes/gin-admin-theme/custom-theming#s-module-recommended-way. | ||
ckeditor: | ||
version: 1.x | ||
css: | ||
theme: | ||
ckeditor/os2loop_documents_table.css: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
web/profiles/custom/os2loop/modules/os2loop_documents/os2loop_documents.services.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters