log_file_search.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. @import 'common.less';
  19. @toolbar-context-menu-width: 40px;
  20. @toolbar-padding: 10px;
  21. .log-file-search-popup {
  22. .modal-body {
  23. overflow: hidden;
  24. }
  25. }
  26. .log-file-search-toolbar {
  27. border: 1px solid #ddd;
  28. margin-bottom: 20px;
  29. overflow: hidden;
  30. background: #e6f1f6;
  31. .toolbar-row {
  32. margin-bottom: 5px;
  33. input {
  34. margin: 0;
  35. }
  36. &:last-child {
  37. padding-bottom: @toolbar-padding;
  38. margin-bottom: 0;
  39. }
  40. }
  41. .filter-block {
  42. width: calc(~"100%" - @toolbar-context-menu-width + 4px);
  43. padding: @toolbar-padding;
  44. box-sizing: border-box;
  45. margin-bottom: -400px;
  46. padding-bottom: 400px;
  47. input {
  48. height: 16px;
  49. }
  50. .date-filter {
  51. margin-left: 10px;
  52. input {
  53. width: 100px;
  54. }
  55. }
  56. }
  57. .levels-filter-block {
  58. .level-checkbox {
  59. margin-right: 20px;
  60. }
  61. }
  62. .include-exclude-filter-block {
  63. .keywords-list {
  64. display: inline-block;
  65. .keyword-item {
  66. font-size: 12px;
  67. display: inline-block;
  68. padding: 2px;
  69. border-radius: 0;
  70. .close {
  71. color: black;
  72. font-size: 16px;
  73. margin-left: 4px;
  74. }
  75. }
  76. }
  77. }
  78. .context-menu {
  79. width: @toolbar-context-menu-width;
  80. border-left: 2px solid #ddd;
  81. margin-bottom: -400px;
  82. padding-bottom: 400px;
  83. text-align: center;
  84. .icon-external-link,
  85. .move-to-top,
  86. .move-to-bottom {
  87. display: block;
  88. font-size: 28px;
  89. color: grey;
  90. }
  91. .move-to-top {
  92. line-height: 20px;
  93. }
  94. .move-to-bottom {
  95. line-height: 18px;
  96. }
  97. .icon-external-link {
  98. margin-top: 5px;
  99. font-size: 20px;
  100. padding-left: 4px;
  101. }
  102. }
  103. }
  104. .log-file-search-content {
  105. &.container {
  106. width: 100%;
  107. height: 300px;
  108. overflow-y: auto;
  109. border: 1px solid #ddd;
  110. }
  111. .log-data-item {
  112. border-bottom: 1px solid #ddd;
  113. &:nth-child(2n) {
  114. background: #f2f2f2;
  115. }
  116. .log-data-date {
  117. border-right: 2px solid #ddd;
  118. width: 7%;
  119. padding-left: 4px;
  120. }
  121. .log-data-message {
  122. width: 91%;
  123. }
  124. }
  125. #infinite-scroll-append {
  126. text-align: center;
  127. margin-top: 10px;
  128. .icon-spinner {
  129. font-size: 33px;
  130. }
  131. }
  132. }
  133. .log-tail-popup.full-height-modal {
  134. @log-tail-header-height: 60px;
  135. @log-tail-bottom-wrap-height: 50px;
  136. @log-tail-content-height: calc(~"100%" - (@log-tail-header-height + @log-tail-bottom-wrap-height + @modal-footer-height));
  137. .top-wrap {
  138. border-bottom: none !important;
  139. .modal-label {
  140. font-size: 20px;
  141. line-height: 20px;
  142. }
  143. .refresh,
  144. .open-in-log-search {
  145. font-size: 24px;
  146. cursor: pointer;
  147. margin-right: 12px;
  148. i {
  149. font-size: 20px;
  150. vertical-align: middle;
  151. }
  152. span {
  153. font-size: 14px;
  154. }
  155. }
  156. .action-bar {
  157. & > a {
  158. margin: 0 5px;
  159. i {
  160. font-size: 20px;
  161. }
  162. }
  163. }
  164. }
  165. .bottom-wrap {
  166. select {
  167. width: 80px;
  168. }
  169. }
  170. .log-tail-content {
  171. width: 100%;
  172. overflow-y: auto;
  173. border: 1px solid #ddd;
  174. white-space: normal;
  175. box-sizing: border-box;
  176. & > div {
  177. margin: 0;
  178. padding: 0;
  179. &:hover {
  180. background: #ccc;
  181. }
  182. }
  183. #infinite-scroll-append,
  184. .log-tail-spinner-container
  185. {
  186. text-align: center;
  187. .icon-spinner {
  188. font-size: 24px;
  189. }
  190. }
  191. }
  192. }