Problem/Motivation
Adminimal currently has a quite unspecific CSS selector for styling <h1> (page title) tags:
.adminimal h1, .adminimal .heading-a {
font-weight: 300;
margin-bottom: 19px;
margin-bottom: 1rem;
font-size: 2.35em;
line-height: 1.2em;
color: #fff;
}Styling all <h1> in white color is problematic when combined with formatted text fields, which also can contain a <h1> and makes them invisible for editors.
Concrete Example
The widely used Paragraphs module has a "preview" form display widget which prints formatted text fields without the surrounding <iframe> from CKeditor. In a case like this editorial headlines inherit the white color from the page title, making them invisible to the editor.
Proposed resolution
Use a more specific CSS selector to avoid interference with editorial texts , e.g.
.adminimal .page-title, .adminimal .heading-a {
font-weight: 300;
margin-bottom: 19px;
margin-bottom: 1rem;
font-size: 2.35em;
line-height: 1.2em;
color: #fff;
}The .page-title class is added by classy theme, which should make it safe enough for Adminimal to rely upon.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2925553-change-css-styles-of-header-1-3.patch | 335 bytes | Anatoliy Vorobyov |
| #3 | 2925553-Change-CSS-styles-of-h1-2.patch | 334 bytes | ious |
Comments
Comment #2
ious commentedHi there,
A solution was found there : https://www.drupal.org/project/adminimal_theme/issues/2848335
I am testing this patch which is similar based on the dev branch.
Note: First patch ever...
Comment #3
ious commentedUpdate patch following error:
Comment #4
Anatoliy Vorobyov commentedPatch added.
Comment #5
bandanasharma commentedComment #6
asya_asina commentedThe patch from comment 4 applied and working.
Comment #7
andrtroe commentedComment #9
andrtroe commentedComment #10
andrtroe commented