mirror of
https://github.com/documize/community.git
synced 2025-07-25 16:19:46 +02:00
Standardize style of PRE & CODE blocks
For Markdown, styling was not consistent between inline blocks and full code blocks. Fixes #203
This commit is contained in:
parent
f47f09661f
commit
fc17ea5225
1 changed files with 23 additions and 4 deletions
|
@ -62,11 +62,30 @@
|
||||||
h5 { font-size: 1.3rem; }
|
h5 { font-size: 1.3rem; }
|
||||||
h6 { font-size: 1.1rem; }
|
h6 { font-size: 1.1rem; }
|
||||||
|
|
||||||
pre {
|
code {
|
||||||
background-color: map-get($gray-shades, 100);
|
font-size: 13px;
|
||||||
padding: 10px;
|
background-color: map-get($yellow-shades, 100);
|
||||||
border: 1px solid map-get($gray-shades, 300);
|
padding: 2px 5px;
|
||||||
|
border: 1px solid map-get($yellow-shades, 300);
|
||||||
@include border-radius(3px);
|
@include border-radius(3px);
|
||||||
|
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background-color: map-get($yellow-shades, 100);
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid map-get($yellow-shades, 300);
|
||||||
|
@include border-radius(3px);
|
||||||
|
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
|
||||||
|
|
||||||
|
> code {
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0;
|
||||||
|
border: none;
|
||||||
|
@include border-radius(0px);
|
||||||
|
font-size: 1rem;
|
||||||
|
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-mirror {
|
.code-mirror {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue