Restyle buttons
This commit is contained in:
parent
f11b4c935f
commit
6903784136
2 changed files with 50 additions and 19 deletions
|
|
@ -148,7 +148,7 @@ class GameServer {
|
|||
if (this.takebackRequesterId) {
|
||||
if (this.takebackRequesterId === conn.id) {
|
||||
buttons.push(
|
||||
<button id="cancel-takeback-request-button" ws-send="click">
|
||||
<button id="cancel-takeback-request-button" class="decline-button" ws-send="click">
|
||||
<svg class="icon" alt="Cancel">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
|
@ -157,7 +157,7 @@ class GameServer {
|
|||
);
|
||||
} else {
|
||||
buttons.push(
|
||||
<button id="accept-takeback-button" ws-send="click">
|
||||
<button id="accept-takeback-button" class="accept-button" ws-send="click">
|
||||
<svg class="icon" alt="Accept">
|
||||
<use href="/icons/accept.svg"></use>
|
||||
</svg>
|
||||
|
|
@ -165,7 +165,7 @@ class GameServer {
|
|||
</button>,
|
||||
);
|
||||
buttons.push(
|
||||
<button id="decline-takeback-button" ws-send="click">
|
||||
<button id="decline-takeback-button" class="decline-button" ws-send="click">
|
||||
<svg class="icon" alt="Decline">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
|
@ -176,7 +176,7 @@ class GameServer {
|
|||
} else if (this.drawRequesterId) {
|
||||
if (this.drawRequesterId === conn.id) {
|
||||
buttons.push(
|
||||
<button id="cancel-draw-request-button" ws-send="click">
|
||||
<button id="cancel-draw-request-button" class="decline-button" ws-send="click">
|
||||
<svg class="icon" alt="Cancel">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
|
@ -185,7 +185,7 @@ class GameServer {
|
|||
);
|
||||
} else {
|
||||
buttons.push(
|
||||
<button id="accept-draw-button" ws-send="click">
|
||||
<button id="accept-draw-button" class="accept-button" ws-send="click">
|
||||
<svg class="icon" alt="Accept">
|
||||
<use href="/icons/accept.svg"></use>
|
||||
</svg>
|
||||
|
|
@ -193,7 +193,7 @@ class GameServer {
|
|||
</button>,
|
||||
);
|
||||
buttons.push(
|
||||
<button id="decline-draw-button" ws-send="click">
|
||||
<button id="decline-draw-button" class="decline-button" ws-send="click">
|
||||
<svg class="icon" alt="Decline">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
|
@ -231,7 +231,7 @@ class GameServer {
|
|||
if (this.rematchRequesterId) {
|
||||
if (this.rematchRequesterId === conn.id) {
|
||||
buttons.push(
|
||||
<button id="cancel-rematch-request-button" ws-send="click">
|
||||
<button id="cancel-rematch-request-button" class="decline-button" ws-send="click">
|
||||
<svg class="icon" alt="Cancel">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
|
@ -240,7 +240,7 @@ class GameServer {
|
|||
);
|
||||
} else {
|
||||
buttons.push(
|
||||
<button id="accept-rematch-button" ws-send="click">
|
||||
<button id="accept-rematch-button" class="accept-button" ws-send="click">
|
||||
<svg class="icon" alt="Accept">
|
||||
<use href="/icons/accept.svg"></use>
|
||||
</svg>
|
||||
|
|
@ -248,7 +248,7 @@ class GameServer {
|
|||
</button>,
|
||||
);
|
||||
buttons.push(
|
||||
<button id="decline-rematch-button" ws-send="click">
|
||||
<button id="decline-rematch-button" class="decline-button" ws-send="click">
|
||||
<svg class="icon" alt="Decline">
|
||||
<use href="/icons/decline.svg"></use>
|
||||
</svg>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue