Skip to content

Commit

Permalink
Use standard button for dialog titlebar close button
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Nov 27, 2023
1 parent 0d3c85e commit 8ff35d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion srcjs/stendhal.css
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,16 @@ div.logcolR {

.popuptitleclose, .windowtitleclose {
float: right;
}

.popuptitleclose {
border: 1px solid #000000;
height: 100%;
width: 1.1em;
text-align: center;
}

.popuptitleclose:hover, .windowtitleclose:hover {
.popuptitleclose:hover {
background-color: #ffffff2a;
}

Expand Down
2 changes: 1 addition & 1 deletion srcjs/stendhal.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<template id="window-template">
<div class="windowdiv">
<div class='windowtitlebar background'>
<div class='windowtitleclose'>X</div>
<button class="windowtitleclose">X</button>
<span class="windowtitle"></span>
</div>
<div class="windowcontent"></div>
Expand Down

0 comments on commit 8ff35d5

Please sign in to comment.