Browse Source

Use hasBorderShadow class

tags/v0.11.0
kckckc 2 years ago
parent
commit
250a35a294
4 changed files with 7 additions and 13 deletions
  1. +2
    -0
      src/client/ui/templates/messages/messages.js
  2. +0
    -8
      src/client/ui/templates/messages/styles.less
  3. +4
    -4
      src/client/ui/templates/messages/template.html
  4. +1
    -1
      src/client/ui/templates/messages/tplTab.html

+ 2
- 0
src/client/ui/templates/messages/messages.js View File

@@ -296,11 +296,13 @@ define([
input.resetKeys();

this.el.removeClass('typing');
this.el.find('.main').removeClass('hasBorderShadow');

let textbox = this.find('input');

if (show) {
this.el.addClass('typing');
this.el.find('.main').addClass('hasBorderShadow');

if (!config.rememberChatChannel) {
this.currentChannel = 'global';


+ 0
- 8
src/client/ui/templates/messages/styles.less View File

@@ -227,14 +227,6 @@
.filters {
pointer-events: all;
display: flex;

.filter {
box-shadow: 0 -2px 0 @black, 0 2px 0 @black, 2px 0 0 @black, -2px 0 0 @black;
}
}

.main {
box-shadow: 0 -2px 0 @black, 0 2px 0 @black, 2px 0 0 @black, -2px 0 0 @black;
}

.list {


+ 4
- 4
src/client/ui/templates/messages/template.html View File

@@ -1,9 +1,9 @@
<div class="uiMessages active">
<div class="filters">
<div class="btn filter active" filter="info">info</div>
<div class="btn filter active" filter="rep">reputation</div>
<div class="btn filter active" filter="chat">players</div>
<div class="btn filter active" filter="loot">loot</div>
<div class="btn filter active hasBorderShadow" filter="info">info</div>
<div class="btn filter active hasBorderShadow" filter="rep">reputation</div>
<div class="btn filter active hasBorderShadow" filter="chat">players</div>
<div class="btn filter active hasBorderShadow" filter="loot">loot</div>
</div>
<div class="main">
<div class="list rep chat info loot"></div>


+ 1
- 1
src/client/ui/templates/messages/tplTab.html View File

@@ -1 +1 @@
<div class="filter active" filter="filterName"></div>
<div class="filter active hasBorderShadow" filter="filterName"></div>

Loading…
Cancel
Save