Skip to content

Commit 559213c

Browse files
Merge pull request #644 from ISSOtm/patch-1
Style the `samp` element like `code`
2 parents ae9f842 + 26e7cf9 commit 559213c

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

scss/content/_code.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
font-family: var(#{$css-var-prefix}font-family); // 1
2222
}
2323

24-
#{$parent-selector} pre code {
24+
#{$parent-selector} pre code,
25+
#{$parent-selector} pre samp {
2526
font-size: inherit;
2627
font-family: inherit;
2728
}
@@ -37,7 +38,8 @@
3738

3839
#{$parent-selector} pre,
3940
#{$parent-selector} code,
40-
#{$parent-selector} kbd {
41+
#{$parent-selector} kbd,
42+
#{$parent-selector} samp {
4143
border-radius: var(#{$css-var-prefix}border-radius);
4244
background: var(#{$css-var-prefix}code-background-color);
4345
color: var(#{$css-var-prefix}code-color);
@@ -46,7 +48,8 @@
4648
}
4749

4850
#{$parent-selector} code,
49-
#{$parent-selector} kbd {
51+
#{$parent-selector} kbd,
52+
#{$parent-selector} samp {
5053
display: inline-block;
5154
padding: 0.375rem;
5255
}
@@ -56,7 +59,8 @@
5659
margin-bottom: var(#{$css-var-prefix}spacing);
5760
overflow-x: auto;
5861

59-
> code {
62+
> code,
63+
> samp {
6064
display: block;
6165
padding: var(#{$css-var-prefix}spacing);
6266
background: none;

0 commit comments

Comments
 (0)