Skip to content

Commit

Permalink
Improve tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 27, 2018
1 parent 15ee83a commit db65cdc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/style.min.css

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
"tips"
],
"devDependencies": {
"browser-sync": "latest",
"concurrently": "latest",
"docsify-cli": "~4.2.1",
"docsify-cli": "latest",
"gulp": "latest",
"gulp-autoprefixer": "latest",
"gulp-concat": "latest",
Expand All @@ -32,10 +33,14 @@
"engines": {
"node": ">= 6"
},
"files": [
"f"
],
"scripts": {
"dev": "concurrently \"gulp\" \"docsify serve docs\"",
"dev": "concurrently \"gulp\" \"npm run server:dev\"",
"lint": "standard-markdown docs/**/*.md !docs/v8-tips/freeing-memory.md !docs/workflow/scope.md",
"pretest": "npm run lint",
"server:dev": "cd docs && browser-sync start --server --files \"index.html, **/*.md main.min.js, style.min.css\"",
"test": "echo 'no tests yet' && exit 0"
},
"private": true,
Expand Down
17 changes: 5 additions & 12 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -445,15 +445,12 @@ body.close .content {
}
}

/* mobile responsive */
@media screen and (max-width: 768px) {
section.cover blockquote {
margin: 2rem auto;
}

section.cover p {
margin: 0 !important;
}

.github-corner,
.sidebar,
.sidebar-toggle {
Expand Down Expand Up @@ -589,9 +586,9 @@ section.cover a:hover {
}

section.cover p {
line-height: 24px;
line-height: 1.75;
margin: 2rem 16rem 0 16rem;
max-width: 24em;
margin: 0 auto;
}

section.cover h1 {
Expand Down Expand Up @@ -635,13 +632,9 @@ section.cover .cover-main > p:last-child a {
box-sizing: border-box;
color: #00d3ee;
display: inline-block;
font-size: 16.8px;
font-size: 1.05rem;
letter-spacing: 1.6px;
font-size: 1rem;
letter-spacing: 0.1rem;
margin-right: 16px;
margin-right: 1rem;
padding: 0.75em 32px;
margin-right: 0.5rem;
padding: 0.75em 2rem;
text-decoration: none;
transition: all 0.15s ease;
Expand Down
2 changes: 1 addition & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ window.HW_config = {
account: 'xGn9Ay'
}

navigator.serviceWorker && navigator.serviceWorker.register('sw.js')
// navigator.serviceWorker && navigator.serviceWorker.register('sw.js')

0 comments on commit db65cdc

Please sign in to comment.