Skip to content

Commit 6c9cc28

Browse files
authored
Merge pull request linode#19 from linode/DLC-157
DLC-157 adjust intro code blocks
2 parents 1ef77a7 + 287093b commit 6c9cc28

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ module.exports = {
5151
path: `${__dirname}/src/images`
5252
}
5353
},
54+
`gatsby-plugin-catch-links`,
5455
`gatsby-transformer-sharp`,
5556
`gatsby-plugin-sharp`,
5657
{

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"crypto": "^1.0.1",
1111
"gatsby": "^2.9.2",
1212
"gatsby-image": "^2.0.29",
13+
"gatsby-plugin-catch-links": "^2.1.2",
1314
"gatsby-plugin-manifest": "^2.0.17",
1415
"gatsby-plugin-netlify-cms": "^4.0.1",
1516
"gatsby-plugin-offline": "^2.0.22",

src/css/components/0_utilities/typography.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ input[type="text"] {
2222
@apply p-4 mt-2 mb-2 bg-ThemeBeige block;
2323
}
2424

25-
.api-body code {
25+
.api-body pre code {
2626
@apply p-2 mt-2 mb-4 bg-ThemeBeige block;
2727
overflow-x: auto;
2828
}
2929

30+
.api-body code {
31+
@apply p-1 bg-ThemeBeige;
32+
}
33+
3034
.api-desc code {
3135
@apply font-normal px-1 bg-ThemeTagGrey inline text-xs relative;
3236
padding-top: 4px;
@@ -55,6 +59,8 @@ input[type="text"] {
5559
}
5660

5761
.api-body table code {
58-
@apply py-0 px-2 m-0 mb-1 inline-block text-BaseRed rounded;
62+
@apply py-0 px-1 m-0 mb-1 inline-block text-BaseRed;
5963
line-height: 1.7;
64+
position: relative;
65+
top: 5px;
6066
}

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5378,6 +5378,14 @@ gatsby-link@^2.1.1:
53785378
"@types/reach__router" "^1.0.0"
53795379
prop-types "^15.6.1"
53805380

5381+
gatsby-plugin-catch-links@^2.1.2:
5382+
version "2.1.2"
5383+
resolved "https://registry.yarnpkg.com/gatsby-plugin-catch-links/-/gatsby-plugin-catch-links-2.1.2.tgz#f7e04e2b390341ba4b1f8f0e12d4bcf78b1e542d"
5384+
integrity sha512-ur17fNloBJItWH1CtADFyPDqBHfe2NKV0OenuVpCEIHq4mKdWjPO1Q7cC+0/ZKN1GikpsTAabwXy4JwWIKUSew==
5385+
dependencies:
5386+
"@babel/runtime" "^7.0.0"
5387+
escape-string-regexp "^1.0.5"
5388+
53815389
gatsby-plugin-manifest@^2.0.17:
53825390
version "2.1.1"
53835391
resolved "https://registry.yarnpkg.com/gatsby-plugin-manifest/-/gatsby-plugin-manifest-2.1.1.tgz#e987d6e655b1dcfba6e10d65ff20722aaeb75391"

0 commit comments

Comments
 (0)