Skip to content

Commit 308f132

Browse files
committed
style(docs): fixes tables css in the docs
1 parent de81a6e commit 308f132

3 files changed

Lines changed: 47 additions & 8 deletions

File tree

docs/_sass/main.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
@import 'font-awesome';
2+
3+
@import 'tables';
4+
25
@import 'anchors';

docs/_sass/tables.scss

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// https://github.com/pure-css/pure/blob/master/src/tables/css/tables.css
2+
3+
table {
4+
/* Remove spacing between table cells (from Normalize.css) */
5+
border-collapse: collapse;
6+
border-spacing: 0;
7+
empty-cells: show;
8+
border: 1px solid #cbcbcb;
9+
10+
td, th {
11+
border-left: 1px solid #cbcbcb;/* inner column border */
12+
border-width: 0 0 0 1px;
13+
font-size: inherit;
14+
margin: 0;
15+
overflow: visible; /*to make ths where the title is really long work*/
16+
padding: 0.5em 1em; /* cell padding */
17+
&:first-child {
18+
border-left-width: 0;
19+
}
20+
code.highlighter-rouge {
21+
background-color: transparent;
22+
}
23+
}
24+
25+
thead {
26+
background-color: #e0e0e0;
27+
color: #000;
28+
text-align: left;
29+
vertical-align: bottom;
30+
}
31+
td {
32+
background-color: transparent;
33+
}
34+
35+
tr:nth-child(2n-1) td {
36+
background-color: #f2f2f2;
37+
}
38+
}

docs/user/config.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,31 +93,29 @@ All options have default values which should fit most of the projects. Click on
9393

9494
| Option | Description | Default |
9595
|---:|---|---|
96-
| [**`compiler`**](config/compiler) | TypeScript module to use as compiler. | `'typescript'` |
96+
| [**`compiler`**](config/compiler) | TypeScript module to use as compiler. | `"typescript"` |
9797
| [**`tsConfig`**](config/tsConfig) | TypeScript compiler related configuration. | _auto_ |
9898
| [**`isolatedModules`**](config/isolatedModules) | Enables/disables the TypeScript language service | `false` |
9999
| [**`diagnostics`**](config/diagnostics) | Diagnostics related configuration. | `true` |
100100
| [**`babelConfig`**](config/babelConfig) | Babel(Jest) related configuration. | _disabled_ |
101-
| [**`stringifyContentPathRegex`**](config/stringifyContentPathRegex) | Configure which file(s) will become a module returning its content. | _disabled_
101+
| [**`stringifyContentPathRegex`**](config/stringifyContentPathRegex) | Configure which file(s) will become a module returning its content. | _disabled_ |
102102

103103
### Upgrading
104104

105105
You can use the `config:migrate` tool of TSJest CLI if you're coming from an older version to help you migrate your Jest configuration.
106106

107107
<div class="row"><div class="col-md-6" markdown="block">
108108

109-
If you're using `jest.config.json`:
109+
_If you're using `jest.config.json`:_
110110
```sh
111-
node ./node_modules/.bin/ts-jest config:migrate jest.config.js
111+
npx ts-jest config:migrate jest.config.js
112112
```
113113

114114
</div><div class="col-md-6" markdown="block">
115115

116-
If you're using `jest` config property of `package.json`:
116+
_If you're using `jest` config property of `package.json`:_
117117
```sh
118-
node ./node_modules/.bin/ts-jest config:migrate package.json
118+
npx ts-jest config:migrate package.json
119119
```
120120

121-
> **Pro tip**: `node ./node_modules/.bin/ts-jest` can be replaced with `npx ts-jest` (or `yarn ts-jest` if you are using `yarn`)
122-
123121
</div></div>

0 commit comments

Comments
 (0)