File size: 3,331 Bytes
271613e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12ff4b3
271613e
 
12ff4b3
271613e
 
 
12ff4b3
271613e
 
 
 
 
 
 
 
 
 
 
 
 
12ff4b3
271613e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
@use '../style/variable' as *;
@use '../style/mixin' as *;

#console {
  padding-top: 40px;
  padding-bottom: 24px;
  width: 100%;
  height: 100%;
  &.js-input-hidden {
    padding-bottom: 0;
  }
  .control {
    padding: 10px 10px 10px 35px;
    @include control();
    .icon-clear {
      padding-right: 0px;
      left: 0;
    }
    .icon-copy {
      right: 0;
    }
    .icon-filter {
      right: 23px;
    }
    .level {
      cursor: pointer;
      font-size: $font-size-s;
      height: 20px;
      display: inline-block;
      margin: 0 2px;
      padding: 0 8px; // ζ—₯本θͺžγƒ†γ‚­γ‚Ήγƒˆη”¨γ«γƒ‘ディングを咗やす
      line-height: 20px;
      transition: background-color $anim-duration, color $anim-duration;
      border-radius: 3px; // θ§’γ‚’δΈΈγγ—γ¦θ¦‹ζ „γˆγ‚’θ‰―γγ™γ‚‹
      &.active {
        background: var(--highlight);
        color: var(--select-foreground);
        font-weight: bold; // をクティブ時はε€ͺ字にする
      }
    }
    .filter-text {
      white-space: nowrap;
      position: absolute;
      line-height: 20px;
      max-width: 80px;
      overflow: hidden;
      right: 55px;
      font-size: $font-size;
      text-overflow: ellipsis;
    }
  }
  // δ»₯下は倉更γͺし
  .js-input {
    pointer-events: none;
    position: absolute;
    z-index: 100;
    left: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid var(--border);
    height: 24px;
    .icon-arrow-right {
      line-height: 23px;
      color: var(--accent);
      position: absolute;
      left: 10px;
      top: 0;
      z-index: 10;
    }
    &.active {
      height: 100%;
      padding-top: 40px;
      padding-bottom: 40px;
      border-top: none;
      .icon-arrow-right {
        display: none;
      }
      textarea {
        overflow: auto;
        padding-left: 10px;
      }
    }
    .buttons {
      display: none;
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 40px;
      color: var(--primary);
      background: var(--darker-background);
      font-size: $font-size-s;
      border-top: 1px solid var(--border);
      .button {
        pointer-events: all;
        cursor: pointer;
        flex: 1;
        text-align: center;
        border-right: 1px solid var(--border);
        height: 40px;
        line-height: 40px;
        transition: background-color $anim-duration, color $anim-duration;
        &:last-child {
          border-right: none;
        }
        &:active {
          color: var(--select-foreground);
          background: var(--highlight);
        }
      }
    }
    textarea {
      overflow: hidden;
      pointer-events: all;
      padding: 3px 10px;
      padding-left: 25px;
      outline: none;
      border: none;
      font-size: $font-size;
      width: 100%;
      height: 100%;
      user-select: text;
      resize: none;
      color: var(--primary);
      background: var(--background);
    }
  }
}

.safe-area #console {
  @include safe-area(padding-bottom, 24px);
  &.js-input-hidden {
    padding-bottom: 0;
  }
  .js-input {
    @include safe-area(height, 24px);
    &.active {
      height: 100%;
      @include safe-area(padding-bottom, 40px);
    }
    .buttons {
      @include safe-area(height, 40px);
      .button {
        @include safe-area(height, 40px);
      }
    }
  }
}