Remove dedicated close button next to user button

This commit is contained in:
Pavel Djundik 2016-03-11 23:18:20 +02:00
parent 461f83603a
commit 73930688cc
5 changed files with 4 additions and 53 deletions

View File

@ -603,29 +603,6 @@ button,
margin-left: 8px; margin-left: 8px;
} }
#windows .header .right {
float: right;
margin-right: -10px;
margin-top: -2px;
}
#windows .header .button {
background: #f4f4f4;
background-image: linear-gradient(#f4f4f4, #ececec);
border: 1px solid #d7d7d7;
border-bottom-color: #b7b7b7;
border-radius: 2px;
color: #555;
font: 12px Lato, sans-serif;
height: 25px;
line-height: 0;
padding: 0 10px;
}
#windows .header .button:hover {
opacity: 1;
}
#windows .window .header { #windows .window .header {
display: none; display: none;
} }

View File

@ -738,15 +738,6 @@ $(function() {
}); });
}); });
chat.on("click", ".close", function() {
var id = $(this)
.closest(".chan")
.data("id");
sidebar.find(".chan[data-id='" + id + "']")
.find(".close")
.click();
});
chat.on("msg", ".messages", function(e, target, msg) { chat.on("msg", ".messages", function(e, target, msg) {
var button = sidebar.find(".chan[data-target='" + target + "']"); var button = sidebar.find(".chan[data-target='" + target + "']");
var isQuery = button.hasClass("query"); var isQuery = button.hasClass("query");

View File

@ -132,15 +132,13 @@ QUIT #d0907d
} }
/* Buttons */ /* Buttons */
#chat .show-more-button, #chat .show-more-button {
#windows .header .button {
background: #2e3642; background: #2e3642;
border-color: #242a33; border-color: #242a33;
color: #ccc; color: #ccc;
} }
#chat .show-more-button:hover, #chat .show-more-button:hover {
#windows .header .button:hover {
color: #fff; color: #fff;
} }

View File

@ -162,15 +162,13 @@ body {
} }
/* Buttons */ /* Buttons */
#chat .show-more-button, #chat .show-more-button {
#windows .header .button {
background: #434443; background: #434443;
border-color: #101010; border-color: #101010;
color: #dcdccc; color: #dcdccc;
} }
#chat .show-more-button:hover, #chat .show-more-button:hover {
#windows .header .button:hover {
color: #fff; color: #fff;
} }

View File

@ -5,19 +5,6 @@
{{#equal type "channel"}} {{#equal type "channel"}}
<button class="rt"></button> <button class="rt"></button>
{{/equal}} {{/equal}}
<div class="right">
<button class="button close">
{{#equal type "lobby"}}
Disconnect
{{else}}
{{#equal type "query"}}
Close
{{else}}
Leave
{{/equal}}
{{/equal}}
</button>
</div>
<span class="title">{{name}}</span> <span class="title">{{name}}</span>
<span class="topic">{{{parse topic}}}</span> <span class="topic">{{{parse topic}}}</span>
</div> </div>