alerts.less 9.6 KB

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