mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Tweak link/code styles (#435)
- Tone down link background - Tone down code background - Shrink font -- I'd prefer 15px Menlo and 17px Consolas but we'll meet in the middle at 16px where both look reasonable, unlike 17px Menlo which was comically large. 
This commit is contained in:
11
src/theme.js
11
src/theme.js
@@ -98,7 +98,7 @@ const fonts = {
|
||||
// Except when they must be used within nested CSS selectors.
|
||||
// This is the case for eg markdown content.
|
||||
const linkStyle = {
|
||||
backgroundColor: hex2rgba(colors.brandLight, 0.5),
|
||||
backgroundColor: hex2rgba(colors.brandLight, 0.3),
|
||||
borderBottom: `1px solid ${hex2rgba(colors.black, 0.2)}`,
|
||||
color: colors.text,
|
||||
|
||||
@@ -233,10 +233,13 @@ const sharedStyles = {
|
||||
},
|
||||
|
||||
'& p > code, & li > code': {
|
||||
background: hex2rgba(colors.note, 0.3),
|
||||
padding: '0 3px',
|
||||
fontSize: 'inherit',
|
||||
background: hex2rgba(colors.note, 0.2),
|
||||
color: colors.text,
|
||||
},
|
||||
|
||||
'& p > code, & li > code, & p > a > code, & li > a > code': {
|
||||
padding: '0 3px',
|
||||
fontSize: 16,
|
||||
wordBreak: 'break-word',
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user