Skip to content

Commit

Permalink
Add help title-bar button (#72)
Browse files Browse the repository at this point in the history
* newlines

* add now.json

* add newlines

* remove now.json

* re-add now.json with version field
  • Loading branch information
jdan committed Apr 28, 2020
1 parent 12af459 commit bfd5340
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/index.html.ejs
Expand Up @@ -496,6 +496,16 @@
<button aria-label="Close"></button>
</div>
</div>
<br>
<div class="title-bar">
<div class="title-bar-text">A Helpful Bar</div>
<div class="title-bar-controls">
<button aria-label="Help"></button>
<button aria-label="Close"></button>
</div>
</div>
`) %>
</div>
</section>
Expand Down
8 changes: 8 additions & 0 deletions icon/help.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions now.json
@@ -0,0 +1,4 @@
{
"version": 2,
"public": true
}
6 changes: 6 additions & 0 deletions style.css
Expand Up @@ -219,6 +219,12 @@ button::-moz-focus-inner {
background-position: top 2px left 3px;
}

.title-bar-controls button[aria-label="Help"] {
background-image: svg-load("./icon/help.svg");
background-repeat: no-repeat;
background-position: top 2px left 5px;
}

.title-bar-controls button[aria-label="Close"] {
margin-left: 2px;
background-image: svg-load("./icon/close.svg");
Expand Down

0 comments on commit bfd5340

Please sign in to comment.