Skip to content

Commit

Permalink
Make mode switchers act like buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Aug 3, 2024
1 parent b48a6da commit 52a99ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions scss/yarnspinner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,8 @@ html,

.mode-selector-selected {
font-weight: bold;
}

.pointer {
cursor: pointer;
}
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ <h1>Yarn Spinner for Books <span id="header-beta">(beta)</span></h1>

<div class="d-lg-none row p-3 justify-content-center" id="app-tabs">
<div class="col-12 d-flex flex-row justify-content-center">
<div class="mx-2 mode-selector" data-mode-select="code">Write</div>
<div class="mx-2 mode-selector" data-mode-select="test">Play</div>
<div class="mx-2 mode-selector pointer user-select-none" data-mode-select="code">Write</div>
<div class="mx-2 mode-selector pointer user-select-none" data-mode-select="test">Play</div>
</div>
</div>

Expand Down

0 comments on commit 52a99ac

Please sign in to comment.