Skip to content

Duplicate selector .mce-content-body code in themes/default/content.css #2336

Description

@matjazpotocnik

The file themes/default/content.css contains two separate rule blocks for the same selector .mce-content-body code:

line 60:

.mce-content-body code {
	border-radius: 3px;
	padding: 0.1rem 0.2rem;
	/* background-color: var(--pw-muted-color, #f5f2f0); */
	color: var(--pw-text-color, #222);
	font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
}

Line 243:

.mce-content-body code {
	font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
	font-size: 15px;
	color: light-dark(#333, #fff);
	background-color: light-dark(#eee, #333);
}

Suggested fix: Merge both blocks into a single .mce-content-body code { … } rule at one location, and remove the duplicate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions