Skip to content

Commit

Permalink
docs: update styling
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Oct 16, 2017
1 parent 2b61056 commit 64981d2
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/
.DS_Store
npm-debug.log*
lerna-debug.log
node_modules
Expand Down
5 changes: 5 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ commitlint --from=HEAD~1
* **Concepts** - Overarching topics important to understand the use of `commitlint`
* **Reference** - Mostly technical documentation

## Attributions

* `commitlint` is possible because of the hard work of the folks of the `conventional-changelog` project
* Thanks [@markusoelhafen](https://github.com/markusoelhafen) for providing
the `commitlint` icon

[0]: https://img.shields.io/badge/stability-stable-green.svg?style=flat-square
[1]: https://nodejs.org/api/documentation.html#documentation_stability_index
Expand Down
Binary file added docs/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 41 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
<meta name="description" content="Lint commit messages">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/docsify/lib/themes/dark.css">
<link rel="icon" type="image/png" href="./assets/icon.png">
<link rel="icon" type="image/svg+xml" href="./assets/icon.svg">
<style>
:root {
--theme-color: #51b1dd;
}
body {
background: #121212;
}
.app-nav.app-nav {
display: flex;
justify-content: flex-end;
Expand All @@ -16,7 +24,7 @@
margin: 0;
padding: 0 15px;
height: 60px;
background: #3f3f3f;
background: #121212;
}
svg {
pointer-events: none;
Expand All @@ -27,7 +35,16 @@
}
a:hover svg {
fill: #ea6f5a;
fill: var(--theme-color,#ea6f5a);
fill: var(--theme-color, #51b1dd);
}
.results-panel {
background: #121212;
}
.sidebar.sidebar {
background: #121212;
}
.sidebar-toggle.sidebar-toggle {
background: #121212;
}
.search.search {
border: none;
Expand All @@ -37,7 +54,7 @@
background: transparent;
line-height: 40px;
padding: 6px;
background: rgba(255, 255, 255, 0.05);
background: #000;
border-bottom: 1px solid transparent;
}
.search.search input:focus {
Expand Down Expand Up @@ -75,6 +92,27 @@
right: 0;
bottom: 0;
}
.app-name-link {
display: flex;
align-items: center;
margin: 6px 15px;
}
.app-name-link::before {
content: '';
display: inline-block;
width: 40px;
height: 40px;
background: url(./assets/icon.svg);
background-size: 100%;
margin-right: 15px;
}
.markdown-section.markdown-section p.warn {
background: var(--theme-color, #51b1dd);
color: #fff;
}
.markdown-section.markdown-section a {
color: #fff;
}
</style>
</head>

Expand Down

0 comments on commit 64981d2

Please sign in to comment.