Skip to content

Commit 04001af

Browse files
committed
Docs
1 parent e9c1132 commit 04001af

9 files changed

+193
-13
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build
2+
node_modules

Diff for: .travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- 'node'
4+
sudo: false
5+
cache:
6+
directories:
7+
- ~/.npm

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# lunchtype.css Change Log
2+
All notable changes to this project will be documented in this file.
3+
This project adheres to [Semantic Versioning](http://semver.org/).
4+
5+
## 1.0.0 - 2018-03-26
6+
* ...

Diff for: example.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@import './Lunchtype22/Web/stylesheet.css';
2+
@import './Lunchtype23/Web/stylesheet.css';
3+
@import './Lunchtype24/Web/stylesheet.css';
4+
@import './Lunchtype25/Web/stylesheet.css';
5+
6+
body { font-family: "lunchtype22regular", sans-serif; }
7+

Diff for: package.json

+48-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,54 @@
11
{
22
"name": "lunchtype.css",
3+
"description": "Lunchtype fonts as a node packaged module",
34
"version": "1.0.0",
4-
"description": "",
5+
"author": {
6+
"name": "Bret Comnes",
7+
"url": "https://bret.io"
8+
},
9+
"bugs": {
10+
"url": "https://github.com/bcomnes/lunchtype.css/issues"
11+
},
12+
"devDependencies": {
13+
"autoprefixer": "^8.0.0",
14+
"budo": "^11.0.0",
15+
"highlight.js": "^9.8.0",
16+
"mkdirp": "^0.5.1",
17+
"npm-run-all": "^4.0.0",
18+
"postcss": "^6.0.19",
19+
"postcss-browser-reporter": "^0.5.0",
20+
"postcss-cli": "^5.0.0",
21+
"postcss-import": "^11.0.0",
22+
"postcss-reporter": "^5.0.0",
23+
"postcss-url": "^7.3.1",
24+
"rimraf": "^2.5.4",
25+
"sitedown": "^3.0.1",
26+
"style.css": "^1.0.0-beta-1",
27+
"top-bar.css": "^1.2.0",
28+
"watchify": "^3.11.0"
29+
},
30+
"homepage": "https://lunchtype-css.netlify.com",
31+
"keywords": [
32+
"css",
33+
"font",
34+
"lunchtype"
35+
],
36+
"license": "ISC",
537
"main": "Lunchtype22/web/stylesheet.css",
6-
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
38+
"repository": {
39+
"type": "git",
40+
"url": "git@github.com:bcomnes/lunchtype.css.git"
841
},
9-
"author": "",
10-
"license": "ISC"
42+
"scripts": {
43+
"build": "npm run clean && run-p build:*",
44+
"build:css": "postcss site/site.css -o build/bundle.css",
45+
"build:md": "sitedown . -b build -l site/layout.html",
46+
"clean": "rimraf build && mkdirp build",
47+
"start": "npm run watch",
48+
"test": "npm run build",
49+
"watch": "npm run clean && run-p watch:*",
50+
"watch:css": "npm run build:css -- --watch",
51+
"watch:js": "budo --dir build --live --open",
52+
"watch:md": "npm run build:md -- -w"
53+
}
1154
}

Diff for: postcss.config.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = (ctx) => ({
2+
map: { inline: false },
3+
plugins: {
4+
'autoprefixer': {},
5+
'postcss-import': { root: ctx.file.dirname },
6+
'postcss-url': {
7+
url: 'copy',
8+
useHash: true,
9+
assetsPath: 'assets'
10+
},
11+
'postcss-browser-reporter': {},
12+
'postcss-reporter': {}
13+
}
14+
})

Diff for: readme.md

+22-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# lunchtype.css
22

3-
Golang fonts as a node packaged module.
3+
Lunchtype fonts as a node packaged module.
44

55
[![latest version][npm-img]][npm-url] [![build status][travis-img]][travis-url] [![stability][stability-img]][stability-url] [![downloads][downloads-img]][npm-url]
66

@@ -23,11 +23,25 @@ The css is exported from the package.json `main` field and can be imported using
2323
## Usage
2424

2525
```css
26-
@import 'lunchtype.css';
27-
28-
body { font-family: Go, sans-serif; }
29-
30-
pre, code { font-family: "Go Mono", monospace; }
26+
@import "lunchtype.css"; /* or @import "lunchtype.css/LunchType22/Web/stylesheets.css"; */
27+
.lunchtype-regular { font-family: "lunchtype22regular", sans-serif; }
28+
.lunchtype-medium { font-family: "lunchtype22medium", sans-serif; }
29+
.lunchtype-light { font-family: "lunchtype22light", sans-serif; }
30+
31+
@import "lunchtype.css/LunchType23/Web/stylesheets.css";
32+
.lunchtype-italic { font-family: "lunchtype23italic", sans-serif; }
33+
.lunchtype-medium_italic { font-family: "lunchtype23medium_italic", sans-serif; }
34+
.lunchtype-light_italic { font-family: "lunchtype23light_italic", sans-serif; }
35+
36+
@import "lunchtype.css/LunchType24/Web/stylesheets.css";
37+
.lunchtype-expanded_regular { font-family: "lunchtype24expanded_regular", sans-serif; }
38+
.lunchtype-expanded_medium { font-family: "lunchtype24expanded_medium", sans-serif; }
39+
.lunchtype-expanded_light { font-family: "lunchtype24expanded_light", sans-serif; }
40+
41+
@import "lunchtype.css/LunchType25/Web/stylesheets.css";
42+
.lunchtype-condensed_light { font-family: "lunchtype25condensed_light", sans-serif; }
43+
.lunchtype-condensed_medium { font-family: "lunchtype25condensed_medium", sans-serif; }
44+
.lunchtype-condensed_regular { font-family: "lunchtype25condensed_regular", sans-serif; }
3145
```
3246

3347
### PostCSS
@@ -56,12 +70,12 @@ $ postcss styles.css -o dist/bundle.css
5670

5771
## Credits
5872

59-
- [blog.golang.org/lunchtype](https://blog.golang.org/lunchtype)
60-
- [go.googlesource.com/image/+/master/font/gofont](https://go.googlesource.com/image/+/master/font/gofont)
73+
- [lunchtype.com](http://lunchtype.com)
6174

6275
## See also
6376

6477
- [style.css](https://github.com/ungoldman/style.css)
6578
- [top-bar.css](https://github.com/ungoldman/top-bar.css)
6679
- [fraktur.css](https://github.com/bcomnes/fraktur.css)
6780
- [chigaco.css](https://github.com/bcomnes/chicago.css)
81+
- [big-cursors.css](https://github.com/bcomnes/big-cursors.css)

Diff for: site/layout.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>lunchtype.css</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
7+
<link rel="stylesheet" href="/bundle.css">
8+
</head>
9+
<body>
10+
<nav class="top-bar hide-print">
11+
<a href="https://github.com/bcomnes/lunchtype.css" class="top-bar-title" title="home">lunchtype.css</a>
12+
</nav>
13+
<main class="markdown-body"></main>
14+
<footer class="top-bar hide-print">
15+
</footer>
16+
</body>
17+
</html>

Diff for: site/site.css

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
@import 'highlight.js/styles/github.css';
2+
@import 'style.css';
3+
@import 'top-bar.css';
4+
@import '../example.css';
5+
6+
.top-bar { font-family: lunchtype22regular, serif; }
7+
8+
/* Document level */
9+
body {
10+
min-height: 100vh;
11+
display: flex;
12+
flex-direction: column;
13+
font-weight: unset;
14+
}
15+
16+
/* Markdown Body layout */
17+
.markdown-body {
18+
max-width: 50em;
19+
margin: 2em auto;
20+
padding: 0 1em;
21+
overflow: hidden;
22+
word-wrap: break-word;
23+
flex-grow: 1;
24+
}
25+
.markdown-body > *:first-child { margin-top: 0 !important; }
26+
.markdown-body > *:last-child { margin-bottom: 0 !important; }
27+
28+
.markdown-body h1, h2, h3, h4, h5, h6 {
29+
font-weight: 200;
30+
}
31+
32+
.markdown-body h2 {
33+
font-size: 1.85em;
34+
}
35+
36+
/* Sticky header footer top-bar */
37+
.top-bar {
38+
margin-bottom: 0;
39+
margin-top: 0;
40+
}
41+
42+
nav.top-bar {
43+
position: sticky;
44+
top: -1px;
45+
}
46+
47+
footer.top-bar {
48+
position: sticky;
49+
bottom: 1px;
50+
}
51+
52+
footer > .top-bar-link:first-child {
53+
margin-left: unset;
54+
}
55+
56+
@media screen and (max-width: 85em) {
57+
nav.top-bar, footer.top-bar {
58+
position: inherit;
59+
top: inherit;
60+
bottom: inherit;
61+
}
62+
}
63+
64+
@media print {
65+
nav.top-bar, footer.top-bar {
66+
position: inherit;
67+
top: inherit;
68+
bottom: inherit;
69+
}
70+
}

0 commit comments

Comments
 (0)