alerts.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  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. .alert-state-OK {
  20. background-color: @health-status-green;
  21. }
  22. .alert-state-WARNING {
  23. background-color: @health-status-orange;
  24. }
  25. .alert-state-CRITICAL {
  26. background-color: @health-status-red;
  27. }
  28. .alert-state-DISABLED {
  29. color: #000;
  30. }
  31. .alert-state-UNKNOWN {
  32. background-color: @health-status-yellow;
  33. }
  34. .alert-state-PENDING {
  35. background-color: #999;
  36. }
  37. .alert-state-single-host {
  38. display: inline-block;
  39. width: 115px;
  40. text-align: center;
  41. line-height: 20px;
  42. margin-bottom: 4px;
  43. }
  44. .groups-filter {
  45. .ui-icon-circle-close {
  46. display: none;
  47. }
  48. }
  49. .alert-definition-enable {
  50. color: @health-status-green;
  51. }
  52. .alert-definition-disable {
  53. color: gray;
  54. }
  55. .alerts-table {
  56. margin-top: 10px;
  57. margin-bottom: 10px;
  58. font-size: 13px \9;
  59. .filter-row {
  60. th {
  61. padding: 0;
  62. padding-left: 4px;
  63. }
  64. }
  65. thead {
  66. background: none repeat scroll 0 0 #F8F8F8;
  67. th {
  68. padding: 8px;
  69. }
  70. }
  71. }
  72. .alert-definition-review {
  73. height: 400px;
  74. overflow: scroll;
  75. }
  76. #alert-definitions-table {
  77. a {
  78. &.disabled {
  79. color: #000;
  80. }
  81. }
  82. .col0,
  83. td:first-child,
  84. th:first-child {
  85. width: 35%;
  86. }
  87. .col1,
  88. td:first-child + td,
  89. th:first-child + th {
  90. width: 15%;
  91. .filter-input-width {
  92. width: 80%;
  93. }
  94. }
  95. .col2,
  96. td:first-child + td + td,
  97. th:first-child + th + th {
  98. width: 20%;
  99. .filter-input-width {
  100. width: 80%;
  101. }
  102. }
  103. .col3,
  104. td:first-child + td + td + td,
  105. th:first-child + th + th + th {
  106. width: 15%;
  107. .filter-input-width {
  108. width: 80%;
  109. }
  110. }
  111. .col4,
  112. td:first-child + td + td + td + td,
  113. th:first-child + th + th + th + th {
  114. width: 15%;
  115. .filter-input-width {
  116. width: 80%;
  117. }
  118. }
  119. .col5,
  120. td:first-child + td + td + td + td + td,
  121. th:first-child + th + th + th + th + th {
  122. width: 10%;
  123. .filter-input-width {
  124. width: 80%;
  125. }
  126. }
  127. .type-icon {
  128. margin-right: 5px;
  129. width: 10px;
  130. display: inline-block;
  131. }
  132. }
  133. #alert-instances-table {
  134. .col0,
  135. td:first-child,
  136. th:first-child {
  137. width: 10%;
  138. }
  139. .col1,
  140. td:first-child + td,
  141. th:first-child + th {
  142. width: 20%;
  143. }
  144. .col2,
  145. td:first-child + td + td,
  146. th:first-child + th + th {
  147. width: 23%;
  148. }
  149. .col3,
  150. td:first-child + td + td + td,
  151. th:first-child + th + th + th {
  152. width: 7%;
  153. }
  154. .col4,
  155. td:first-child + td + td + td + td,
  156. th:first-child + th + th + th + th {
  157. width: 40%;
  158. }
  159. .alert-text {
  160. overflow: hidden;
  161. float: left;
  162. text-overflow: ellipsis;
  163. white-space: nowrap;
  164. width: 100%;
  165. }
  166. }
  167. #alert-definition-details {
  168. .alert-definition-details-header {
  169. margin-bottom: 30px;
  170. }
  171. .box {
  172. .box-header {
  173. .edit-link {
  174. margin: 5px;
  175. }
  176. }
  177. margin-bottom: 0;
  178. }
  179. .definition-details-block {
  180. margin-top: 30px;
  181. .multiline-text {
  182. padding-top: 4px;
  183. height: 60px;
  184. }
  185. }
  186. hr {
  187. margin: 10px 0 0 0;
  188. }
  189. .edit-description-button {
  190. font-size: 14px;
  191. }
  192. .edit-description-button:hover {
  193. text-decoration: none;
  194. }
  195. .status {
  196. text-align: right;
  197. .label {
  198. font-size: 14px;
  199. padding: 5px 8px;
  200. }
  201. }
  202. .right-column {
  203. button {
  204. margin-top: 10px;
  205. width: 100%;
  206. }
  207. .properties-list {
  208. padding: 10px;
  209. text-align: left;
  210. .property-name {
  211. font-weight: bold;
  212. }
  213. ul {
  214. list-style: none;
  215. margin: 0;
  216. }
  217. }
  218. }
  219. .definition-name, .definition-name input {
  220. font-size: 20px;
  221. font-weight: bold;
  222. }
  223. .definition-name {
  224. .name-text-field{
  225. margin-left: 2px;
  226. margin-bottom: 0;
  227. input {
  228. width: 99%;
  229. margin-bottom: 0;
  230. margin-top: -4px;
  231. margin-left: -5px;
  232. }
  233. }
  234. .edit-buttons {
  235. margin-bottom: 0;
  236. margin-top: -4px;
  237. float: left;
  238. margin-left: 7px;
  239. }
  240. }
  241. .error-msg {
  242. color: #b94a48;
  243. }
  244. .edit-buttons {
  245. text-align: right;
  246. margin-bottom: 10px;
  247. margin-right: 10px;
  248. }
  249. .text-area-edit {
  250. textarea {
  251. width: 99%;
  252. height: 100px;
  253. margin-left: -5px;
  254. }
  255. }
  256. .edit-link {
  257. cursor: pointer;
  258. }
  259. .box .box-header h4 {
  260. color: #333;
  261. font-size: 16px;
  262. font-weight: 500;
  263. }
  264. }
  265. .alert-configs {
  266. label.shifted {
  267. width: 170px;
  268. }
  269. .stuck-left {
  270. margin-left: 0!important;
  271. }
  272. .controls.shifted {
  273. margin-left: 190px;
  274. }
  275. margin-top: 20px;
  276. .alert-config-text-area {
  277. height: 100px;
  278. }
  279. .alert-text-input {
  280. input {
  281. width: 98%;
  282. }
  283. }
  284. .input-append {
  285. padding-right: 13px;
  286. }
  287. .alert-interval-input {
  288. input {
  289. width: 20%;
  290. }
  291. }
  292. .alert-port-input {
  293. input {
  294. width: 30%;
  295. }
  296. }
  297. .badge-container {
  298. height: 26px;
  299. .alert-threshold-badge,
  300. .alert-parameter-badge {
  301. line-height: 26px;
  302. height: 26px;
  303. }
  304. }
  305. .control-group.error{
  306. .alert-text-input input{
  307. color: #555555;
  308. border-color: #ccc;
  309. }
  310. }
  311. .error-message {
  312. color: #b94a48;
  313. }
  314. }
  315. #host-alerts-table {
  316. a {
  317. &.disabled {
  318. color: #000;
  319. }
  320. }
  321. .col0,
  322. td:first-child,
  323. th:first-child {
  324. width: 15%;
  325. .filter-input-width {
  326. width: 80%;
  327. }
  328. }
  329. .col1,
  330. td:first-child + td,
  331. th:first-child + th {
  332. width: 30%;
  333. .filter-input-width {
  334. width: 90%;
  335. }
  336. }
  337. .col2,
  338. td:first-child + td + td,
  339. th:first-child + th + th {
  340. width: 20%;
  341. .filter-input-width {
  342. width: inherit;
  343. }
  344. }
  345. .col3,
  346. td:first-child + td + td + td,
  347. th:first-child + th + th + th {
  348. width: 35%;
  349. }
  350. .alert-text {
  351. overflow: hidden;
  352. float: left;
  353. text-overflow: ellipsis;
  354. white-space: nowrap;
  355. width: 100%;
  356. }
  357. }
  358. #manage-alert-notification-content {
  359. .notification-info .global-info .global-checkbox {
  360. margin: 0;
  361. }
  362. .input-label {
  363. font-weight: bold;
  364. }
  365. }
  366. #manage-alert-notifications-error {
  367. margin-bottom: 20px
  368. }
  369. .notification-description {
  370. .input-value {
  371. white-space: pre;
  372. }
  373. }
  374. #create-edit-alert-notification {
  375. .form-horizontal {
  376. .controls {
  377. margin-left: 140px;
  378. }
  379. .control-label {
  380. font-weight: bold;
  381. }
  382. .error-msg {
  383. color: #b94a48;
  384. }
  385. }
  386. label {
  387. width: 115px;
  388. &.checkbox {
  389. width: inherit;
  390. }
  391. }
  392. .icon-minus-sign {
  393. color: #FF4B4B;
  394. }
  395. .add-custom-property {
  396. margin-left: 140px;
  397. }
  398. a {
  399. &.disabled {
  400. cursor: default;
  401. color: gray;
  402. &:hover {
  403. text-decoration: none;
  404. }
  405. }
  406. }
  407. }
  408. .create-edit-alert-notification-popup {
  409. .modal {
  410. margin-top: 0;
  411. top: 5%;
  412. width: 600px;
  413. }
  414. }
  415. .service-block .summary-box-header {
  416. .alerts-crit-count, .alerts-warn-count, .no-alerts-label {
  417. padding: 4px 5px;
  418. margin: 4px;
  419. font-size: 14px;
  420. }
  421. }
  422. .alerts-crit-count, .alerts-warn-count, .no-alerts-label {
  423. cursor: pointer;
  424. }
  425. .alerts-crit-count {
  426. background: @health-status-red;
  427. }
  428. .alerts-warn-count {
  429. background: @health-status-orange;
  430. }
  431. .no-alerts-label {
  432. background: @health-status-green;
  433. }
  434. #summary-alerts-popup {
  435. .alert-list-wrap {
  436. padding: 10px 5px;
  437. .status-icon {
  438. padding-right: 5px;
  439. min-width: 20px;
  440. }
  441. }
  442. }
  443. /*****start styles for manage alerts popup*****/
  444. .sixty-percent-width-modal.manage-alert-group-popup {
  445. .modal{
  446. max-height: 650px;
  447. }
  448. .modal-body {
  449. max-height: 500px;
  450. }
  451. .group-select {
  452. width: 100%;
  453. height: 250px;
  454. }
  455. .btn-toolbar {
  456. margin-top: 0;
  457. }
  458. .manage-configuration-group-content {
  459. margin-bottom: 0;
  460. }
  461. .notification-editable-list {
  462. .title {
  463. font-weight: bold;
  464. }
  465. }
  466. a {
  467. i {
  468. cursor: inherit;
  469. }
  470. }
  471. }
  472. .forty-percent-width-modal {
  473. .modal {
  474. width: 40%;
  475. .definition-latest-text {
  476. overflow-x: auto;
  477. text-overflow: inherit;
  478. white-space: nowrap;
  479. }
  480. }
  481. }
  482. /*****end styles for manage alerts popup*****/
  483. /*****start styles for alerts popup*****/
  484. .alerts-popup {
  485. .modal-body, .modal-footer, .modal-header {
  486. min-width: 600px;
  487. }
  488. #alert-info {
  489. .alert-list-wrap:hover {
  490. background-color: #e6e6e6;
  491. }
  492. }
  493. }
  494. .service-alerts {
  495. max-height: 246px;
  496. }
  497. .instance-text {
  498. font-size: 0.8em;
  499. width: 95%;
  500. overflow: hidden;
  501. text-overflow: ellipsis;
  502. white-space: nowrap;
  503. }
  504. .definition-latest-text {
  505. font-size: 0.8em;
  506. width: 95%;
  507. overflow: hidden;
  508. text-overflow: ellipsis;
  509. white-space: nowrap;
  510. }
  511. .alerts-popup-wrap {
  512. .trim_hostname{
  513. display: block;
  514. overflow: hidden;
  515. text-overflow: ellipsis;
  516. }
  517. .top-wrap {
  518. width: 100%;
  519. border-bottom: 1px solid #CCC;
  520. text-align: center;
  521. font-size: 15px;
  522. padding: 0 0 20px 0;
  523. height: 20px;
  524. .name-top {
  525. width: 32%;
  526. padding-left: 10px;
  527. }
  528. .service-top {
  529. width: 31%;
  530. padding-left: 10px;
  531. }
  532. .status-top,.name-top,.service-top,.last-triggered-top {
  533. float: left;
  534. text-align: left;
  535. }
  536. }
  537. #alert-info{
  538. overflow: auto;
  539. max-height: 340px;
  540. width: 100%;
  541. .alert-list-wrap {
  542. padding: 10px 5px;
  543. border-top: 1px solid #CCC;
  544. border-bottom: 1px solid #CCC;
  545. }
  546. .alert-list-line-cursor{
  547. width: 100%;
  548. min-height: 20px;
  549. .status-icon {
  550. padding-right: 5px;
  551. min-width: 20px;
  552. }
  553. .name-text {
  554. float: left;
  555. width: 33%;
  556. }
  557. .service-text {
  558. padding-left: 5px;
  559. width: 33%;
  560. float: left;
  561. .na-text {
  562. color: #808080;
  563. }
  564. }
  565. }
  566. .alert-list-line-cursor:before,.alert-list-line-cursor:after {
  567. display: table;
  568. line-height: 0;
  569. content: "";
  570. }
  571. .alert-list-line-cursor:after {
  572. clear: both;
  573. }
  574. .show-more {
  575. width: 98.8%;
  576. min-height: 20px;
  577. cursor: pointer;
  578. border-top: 1px solid #CCC;
  579. text-align: center;
  580. padding: 10px 10px 10px 0;
  581. font-size: 16px;
  582. }
  583. }
  584. }
  585. /*****end styles for alert popup*****/
  586. .enable-disable-button::before {
  587. font-family: FontAwesome;
  588. content: "\f011";
  589. }