Skip to content

Commit

Permalink
Issue silverweed#3: Add screenshot-mode toggle button
Browse files Browse the repository at this point in the history
No art
  • Loading branch information
antler5 committed Mar 20, 2023
1 parent 411f08a commit 7cc3fe5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</div>
<a href='https://github.com/silverweed/tiers' class='gh-link'>GitHub</a>
<section class='main-content'>
<input id='screenshot-mode-input' type='checkbox'></input>
<div class='tierlist'>
</div>
<div class='bottom-container'>
Expand Down Expand Up @@ -41,6 +42,11 @@
</label>
<input id='import-input' type='file' accept='.json' multiple/>
</div>
<div class='button'>
<label for='screenshot-mode-input'>
<img src='import.png' title='Screenshot Mode'/>
</label>
</div>
</div>
<section class='images'></section>
</div>
Expand Down
9 changes: 8 additions & 1 deletion tiers.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@ body {

.tierlist {
width: 80%;
height: 80vh;
overflow: scroll;
}

#screenshot-mode-input {
display: none;
}

input#screenshot-mode-input:not(:checked) + .tierlist {
height: 80vh;
}

.tierlist span {
min-width: 100px;
min-height: 100px;
Expand Down

0 comments on commit 7cc3fe5

Please sign in to comment.