Prettify style in playground and code block languages (#3419)

master
Lipis 2017-12-06 03:48:11 +01:00 committed by suchipi
parent 2663fd8c6d
commit 20373d6fee
4 changed files with 18 additions and 14 deletions

View File

@ -2,7 +2,7 @@
To get up and running, install the dependencies and run the tests:
```
```bash
yarn
yarn lint
yarn test

View File

@ -5,19 +5,19 @@ title: Install
Install with `yarn`:
```
```bash
yarn add prettier --dev --exact
```
You can install it globally if you like:
```
```bash
yarn global add prettier
```
_We're using `yarn` but you can use `npm` if you like:_
```
```bash
npm install --save-dev --save-exact prettier
# or globally
npm install --global prettier

View File

@ -54,7 +54,7 @@ Files placed in `static/` will be accessible in the following way: `static/img/i
To run your website locally run the script:
```
```bash
yarn start
```
@ -64,7 +64,7 @@ This will start a server hosting your website locally at `localhost:3000`. This
To create a static build of your website, run the script:
```
```bash
yarn build
```

View File

@ -45,7 +45,7 @@
html {
background-color: #fafafa;
color: #6a6a6a;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 1.25;
}
@ -81,7 +81,7 @@
header a:focus,
header a:active,
header a:hover {
color: white;
color: #fff;
text-decoration: none;
}
@ -242,7 +242,7 @@
}
label {
font-family: "Consolas", "Courier New", Courier, monospace;
font-family: Consolas, Courier New, Courier, monospace;
margin: 10px 0;
display: block;
}
@ -270,14 +270,17 @@
outline: none;
position: relative;
}
.btn:focus {
border-color: #c8e1ff;
}
.btn:hover {
background-color:#e6ebf1;
background-color: #e6ebf1;
background-image: linear-gradient(to bottom, #f0f3f6, #dce3ec);
border-color:#afb1b2;
border-color: #afb1b2;
}
.btn:active {
background-color: #e9ecef;
background-image: none;
@ -293,11 +296,12 @@
transform: translateX(-50%);
margin-top: 4px;
padding: 0.4em 0.8em;
background-color: black;
color: white;
background-color: #000;
color: #fff;
border-radius: 0.4em;
pointer-events: none;
}
.tooltip::before {
content: "";
position: absolute;
@ -306,7 +310,7 @@
transform: translateX(-50%);
border: 6px solid transparent;
border-bottom: none;
border-top-color: black;
border-top-color: #000;
}
</style>
</head>