Skip to content

Commit

Permalink
Chore: Make page number input more visible (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press authored Jun 26, 2017
1 parent 896c755 commit 3b585d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
13 changes: 13 additions & 0 deletions src/lib/viewers/doc/_docBase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@
}
}

.bp-doc-page-num-wrapper {
background-color: #444;
border-radius: 3px;
margin: 5px;
padding: 7px 5px;
}

.bp-doc-page-num-input {
display: none;
font-size: 14px;
Expand All @@ -101,6 +108,12 @@
}

&.show-page-number-input {
.bp-doc-page-num-wrapper {
background-color: transparent;
border: none;
padding: 0;
}

.bp-doc-page-num {
opacity: 1;
}
Expand Down
10 changes: 6 additions & 4 deletions src/lib/viewers/doc/pageNumButtonContent.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<span class="bp-doc-current-page">1</span>
<input type="text" value="" size="3" class="bp-doc-page-num-input">
<span class="bp-doc-page-num-divider">&nbsp;/&nbsp;</span>
<span class="bp-doc-total-pages">1</span>
<div class="bp-doc-page-num-wrapper">
<span class="bp-doc-current-page">1</span>
<input type="text" value="" size="3" class="bp-doc-page-num-input" />
<span class="bp-doc-page-num-divider">&nbsp;/&nbsp;</span>
<span class="bp-doc-total-pages">1</span>
</div>

0 comments on commit 3b585d8

Please sign in to comment.