1
1
mirror of https://github.com/primer/css.git synced 2024-11-29 14:14:26 +03:00

Add mono font stack to <samp> tag (#1876)

* Add mono font stack to <samp> tag

* Create nice-beers-peel.md

* Add `<samp>` example to docs

* Test

* Another try without the HTML entities

Co-authored-by: simurai <simurai@github.com>
This commit is contained in:
Vinicius Depizzol 2022-01-25 22:07:32 -08:00 committed by GitHub
parent fdacefdbf5
commit bcf447ab22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
"@primer/css": minor
---
Add mono font stack to <samp> tag

View File

@ -268,6 +268,10 @@ bundle: markdown
<hr />
<p>The <code>samp</code> HTML element is used to enclose inline text which represents sample (or quoted) output from a computer program. Here an example of an error message: <samp>File not found</samp></p>
<hr />
<p>Small images should be shown at their actual size.</p>
<p><img src="http://placekitten.com/g/300/200/"></p>
@ -458,6 +462,10 @@ Inline code inside table cells should still be distinguishable.
----------------
The `<samp>` HTML element is used to enclose inline text which represents sample (or quoted) output from a computer program. Here an example of an error message: <samp>File not found</samp>
----------------
Small images should be shown at their actual size.
![](http://placekitten.com/g/300/200/)

View File

@ -225,7 +225,7 @@ code,
kbd,
pre,
samp {
font-family: monospace, monospace; /* 1 */
font-family: monospace; /* 1 */
font-size: 1em; /* 2 */
}

View File

@ -62,11 +62,12 @@ dd {
margin-left: 0;
}
// Code
// Monospaced
// --------------------------------------------------
tt,
code {
code,
samp {
font-family: $mono-font;
font-size: $font-size-small;
}

View File

@ -16,6 +16,11 @@
del code { text-decoration: inherit; }
samp {
// stylelint-disable-next-line primer/typography
font-size: 85%;
}
pre {
word-wrap: normal;