Skip to content

default styles for <pre> and <code> #4689

@math-GH

Description

@math-GH

Hi,

in Origine there is some styling for <pre> and <code>, when it is placed in an article

.content pre {
margin: 10px auto;
padding: 10px 20px;
overflow: auto;
background: #222;
color: #fff;
font-size: 0.9rem;
border-radius: 3px;
}
.content code {
padding: 2px 5px;
background: #fafafa;
color: #d14;
border: 1px solid #eee;
border-radius: 3px;
}
.content pre code {
background: transparent;
color: #fff;
border: none;
}

I would suggest to set a default style to all themes (and not define it just in Origine).

Which style (light or dark background? Mono spaced font?) would you expect?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions