Skip to content

Commit 3c021c9

Browse files
committed
Tweak typography based on latest post
* Correct MD formatting in post
1 parent 83bc51a commit 3c021c9

File tree

7 files changed

+86
-68
lines changed

7 files changed

+86
-68
lines changed

_posts/2016-11-04-propelling-dx-through-config.md

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,67 @@ title: 'Propelling developer experience through configuration'
55
The number of config files per repo is slowly but surely overtaking the number of code files.
66

77
<figure>
8-
<img src="/images/angular-github.png" alt="Angular">
8+
<a href="https://cloudup.com/c8BGrAQmmgd"><img src="/images/angular-github.png" alt="Angular"></a>
99
<figcaption>
10-
<a href="https://cloudup.com/c8BGrAQmmgd">Hi-res source</a>
1110
<strong>Warning</strong>: large image <em>1.6 MB</em></figcaption>
1211
</figure>
1312

1413

1514
A brief, but not in any way exhaustive list of just the ones I've dealt with:
1615

1716
### Code meta (dependencies, instructions, declarations)
18-
- .eslintrc(.json)*
19-
- .gitconfig
20-
- .editorconfig
21-
- package.json
22-
- bower.json
23-
- gulpfile.js
24-
- gruntfile.js
25-
- project.xml
26-
- .vscode
27-
- .flowconfig
28-
- .tsconfig.json
29-
- .jsconfig.json
30-
- Gemfile
31-
- Gemfile.lock
32-
- Rakefile
33-
- .ruby-version
34-
- config.ru
35-
- Makefile
36-
- Dockerfile
37-
- Vagrantfile
38-
- _config.yml
39-
- config/
40-
- CNAME
41-
- travis.yml
42-
- docker-compose.yml
43-
- requirements.txt
44-
- manifest.yml
45-
- sass-lint.yml
46-
- .stylelint*
47-
- Procfile
48-
- .babelrc*
49-
- Cargo.toml
17+
18+
* `.eslintrc(.json)`*
19+
* `.gitconfig`
20+
* `.editorconfig`
21+
* `package.json`
22+
* `bower.json`
23+
* `gulpfile.js`
24+
* `gruntfile.js`
25+
* `project.xml`
26+
* `.vscode`
27+
* `.flowconfig`
28+
* `.tsconfig.json`
29+
* `.jsconfig.json`
30+
* `Gemfile`
31+
* `Gemfile.lock`
32+
* `Rakefile`
33+
* `.ruby-version`
34+
* `config.ru`
35+
* `Makefile`
36+
* `Dockerfile`
37+
* `Vagrantfile`
38+
* `_config.yml`
39+
* `config/`
40+
* `CNAME`
41+
* `travis.yml`
42+
* `docker-compose.yml`
43+
* `requirements.txt`
44+
* `manifest.yml`
45+
* `sass-lint.yml`
46+
* `.stylelint`*
47+
* `Procfile`
48+
* `.babelrc`*
49+
* `Cargo.toml`
5050

5151
_* Can also be embedded into package.json_
5252

53-
#### Ignore files
54-
- .cfignore
55-
- .eslintignore
56-
- .npmignore
57-
- .gitignore
53+
### Ignore files
54+
* `.cfignore`
55+
* `.eslintignore`
56+
* `.npmignore`
57+
* `.gitignore`
5858

5959
### Docs
60-
- README
61-
- CONTRIBUTING
62-
- DOCS
63-
- CODE OF CONDUCT
64-
- HISTORY/CHANGELOG
65-
- LICENSE
66-
- .github
67-
- .github/ISSUE_TEMPLATE.md
68-
- .github/PULL_REQUEST.md
60+
* `README`
61+
* `CONTRIBUTING`
62+
* `DOCS`
63+
* `CODE OF CONDUCT`
64+
* `HISTORY/CHANGELOG`
65+
* `LICENSE`
66+
* `.github`
67+
* `.github/ISSUE_TEMPLATE.md`
68+
* `.github/PULL_REQUEST.md`
6969

7070

7171
## The Problems
@@ -130,15 +130,15 @@ on top of already supporting the aforementioned HTML5 Microdata, and [RDFa](http
130130
Why does it matter that HTML likes this kind of structured data? UX. Therer are multiple tools that have emerged in recent years that help people navigate dependencies and understand code at a better level.
131131

132132
Two such that come to mind, recalling that the "LD" stands for "Linked Data".
133-
- http://octolinker.github.io/
134-
- https://sourcegraph.com/
133+
- [Octolinker](http://octolinker.github.io/)
134+
- [Sourcegraph](https://sourcegraph.com/)
135135

136136
Now, think of the projects that span runtimes, leveraging web languages.
137-
- http://electron.atom.io/
138-
- https://facebook.github.io/react-native/
139-
- http://ionicframework.com/
137+
- [Electron](http://electron.atom.io/)
138+
- [React Native](https://facebook.github.io/react-native/)
139+
- [Ionic](http://ionicframework.com/)
140140
- tons more
141-
141+
142142
There's no way I could even speculate the possibilties.
143143

144144
### Other potential benefits

_sass/_colors.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ a.home-link {
6161
article header {
6262
.article-title {
6363
color: lighten($body-copy-color, 50%);
64+
margin-bottom: 0.25em;
65+
6466
.article-permalink {
6567
text-decoration: none;
6668
}

_sass/_layout.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ pre, samp {
4141
}
4242

4343
ul {
44-
list-style-type: none;
45-
margin: 0;
44+
margin: 0 0 1em 0;
4645

4746
li {
4847
margin: 0;
@@ -116,8 +115,9 @@ article {
116115
details > p {
117116
margin-top: 1em;
118117
}
119-
h2 {
120-
padding-bottom: .25em;
118+
h2, h3 {
119+
margin-top: 1.5em;
120+
margin-bottom: .5em;
121121
}
122122
ul, & ol{
123123
margin-left: 1em;

_sass/_reflow.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
.page-wrapper, .footer-wrapper {
1414
max-width: 25em;
1515
}
16-
article ol, article ul {
17-
margin-left: 0;
18-
}
1916
}
2017

18+
2119
@media all and (min-width: 41.875em) {
2220
body {
2321
font-size: 130%;

_sass/_typography.scss

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ samp,
3838
.highlight {
3939
font-family: $code-font;
4040
font-style: normal;
41+
font-weight: normal;
4142
white-space: pre-wrap;
4243
}
4344

@@ -80,16 +81,21 @@ a:hover {
8081
line-height: 1.6;
8182
font-size: $base-font-size;
8283

83-
h2 {
84+
h2, h3 {
8485
font-family: $ui-font;
8586
line-height: 1.3;
8687
}
88+
h4 {
89+
font-family: $ui-font;
90+
font-weight: 100;
91+
text-transform: uppercase;
92+
letter-spacing: 1px;
93+
color: lightslategrey;
94+
margin: 1em 0 0.25em;
95+
}
8796
ul, ol {
8897
list-style-type: square;
8998
list-style-position: outside;
90-
li {
91-
margin-bottom: 1em;
92-
}
9399
}
94100
aside {
95101
font-style: italic;
@@ -118,9 +124,20 @@ a:hover {
118124
line-height: 1.35;
119125
}
120126

127+
figure {
128+
border: 1px solid lightslategrey;
129+
}
130+
131+
figcaption {
132+
text-align: center;
133+
padding: 0.5em;
134+
border-bottom-left-radius: 4px;
135+
border-bottom-right-radius: 4px;
136+
background-color: #f5f5f5;
137+
}
138+
121139
.article-pubdate, figcaption {
122140
font-family: $ui-font;
123-
text-transform: uppercase;
124141
letter-spacing: .0625em;
125142
font-size: .75em;
126143
font-weight: 300;

_sass/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $base-line-height: 1.5;
44

55
$ui-font: -apple-system-font, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Noto", "Droid Sans", "Open Sans", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
66
$content-font: "Charter", "Roboto Slab", "Noto Serif", "Droid Serif", "PT Serif", "Cambria", "Constantia", "Liberation Serif", Georgia, serif;
7-
$code-font: "SF Mono", "Roboto Mono", "Noto Mono", "Droid Mono", "Monaco", "Inconsolata", "Ubuntu Mono", "Liberation Mono", monospace;
7+
$code-font: "SF Mono Regular", "Roboto Mono", "Noto Mono", "Droid Mono", "Monaco", "Inconsolata", "Ubuntu Mono", "Liberation Mono", monospace;
88

99
// Colors
1010
$page-bg-color: #fdfdfd;

css/main.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
@import '../_sass/variables';
55
@import '../_sass/colors';
6+
@import '../_sass/reflow';
67
@import '../_sass/typography';
78
@import '../_sass/layout';
8-
@import '../_sass/reflow';
9+

0 commit comments

Comments
 (0)