This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bottom margin to `pre` elements. This also splits out style for the `pre` and `kbd` elements into their own scss files fix #358 fix #352
- Loading branch information
Schalk Neethling
committed
Dec 11, 2020
1 parent
cb97e1f
commit 4609d57
Showing
4 changed files
with
38 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd */ | ||
kbd { | ||
background: $light-gray-gradient; | ||
background-color: $neutral-550; | ||
border: 1px solid $neutral-525; | ||
border-radius: $default-border-radius; | ||
box-shadow: $light-gray-shadow; | ||
font-family: $code-inline-font-family; | ||
font-size: $small-font-size; | ||
font-weight: bold; | ||
line-height: 1; | ||
margin: $base-unit / 2; | ||
padding: ($base-spacing / 6) ($base-spacing / 4); | ||
} | ||
|
||
/* | ||
* When used inside a table, give it a little more margin | ||
* see: https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/Keyboard_shortcuts | ||
*/ | ||
table { | ||
kbd { | ||
margin: $base-spacing / 4; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pre { | ||
background-color: $neutral-550; | ||
border-left: $code-example-border; | ||
font-size: $code-base-font-size; | ||
line-height: $code-example-line-height; | ||
margin: 0 0 $base-spacing; | ||
max-width: 100%; | ||
overflow: auto; | ||
padding: $base-spacing; | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters