enhanced_service_dashboard.less 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  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. @border-color: #ddd;
  20. @invalid-color: red;
  21. .service-metrics-block {
  22. #add-widget-action-box {
  23. width: 98%;
  24. padding: 43px;
  25. border: 1px solid @border-color;
  26. border-radius: 0;
  27. -webkit-border-radius: 0;
  28. -moz-border-radius: 0;
  29. background-image: none;
  30. .icon-plus {
  31. font-size: 70px;
  32. color: #ccc;
  33. }
  34. }
  35. .actions .dropdown-menu {
  36. min-width: 270px;
  37. label.checkbox {
  38. padding: 0 20px 0 38px;
  39. margin-bottom: 0;
  40. margin-top: 5px;
  41. }
  42. li.btn-row {
  43. padding: 5px 20px 10px 20px;
  44. }
  45. a.action {
  46. border-bottom: 1px solid @border-color;
  47. }
  48. }
  49. table.graphs {
  50. .screensaver{
  51. margin-bottom: 25px;
  52. }
  53. .chart-container .alert {
  54. margin-bottom: 5px;
  55. }
  56. .export-graph-list {
  57. right: -5px;
  58. }
  59. }
  60. }
  61. #widget_layout,
  62. #widget-preview {
  63. .frame {
  64. height: 150px;
  65. width: 93%;
  66. }
  67. .span2p4 {
  68. width: 19.3%;
  69. background-color: white;
  70. margin: 5px 0 5px 5px;
  71. }
  72. .widget {
  73. .thumbnail {
  74. position: relative;
  75. }
  76. .spinner {
  77. margin: 55px auto;
  78. }
  79. .title {
  80. padding: 4px 0 0 1px;
  81. font-weight: bold;
  82. font-size: 13px;
  83. line-height: 17px;
  84. text-align: left;
  85. height: 40px;
  86. overflow: hidden;
  87. text-overflow: ellipsis;
  88. -webkit-line-clamp: 2;
  89. -webkit-box-orient: vertical;
  90. display: block;
  91. display: -webkit-box;
  92. }
  93. .content {
  94. text-align: center;
  95. color: @health-status-green;
  96. font-weight: bold;
  97. font-size: 35px;
  98. width: 95%;
  99. }
  100. .template-widget {
  101. .frame;
  102. .content {
  103. padding-top: 21px;
  104. height: 75px;
  105. line-height: 36px;
  106. overflow: hidden;
  107. text-overflow: ellipsis;
  108. -webkit-line-clamp: 2;
  109. -webkit-box-orient: vertical;
  110. display: block;
  111. display: -webkit-box;
  112. }
  113. }
  114. .number-widget {
  115. .frame;
  116. .content {
  117. padding-top: 30px;
  118. height: 50px;
  119. overflow: hidden;
  120. text-overflow: ellipsis;
  121. }
  122. }
  123. .graph-widget {
  124. .frame;
  125. .content {
  126. padding-top: 45px;
  127. width: 99%;
  128. }
  129. .screensaver{ // graph onload wait
  130. width: 90%;
  131. height: 100px;
  132. border: 1px solid #eee;
  133. }
  134. .chart-container{
  135. margin: -4px 8px 0 8px;
  136. .chart-y-axis{
  137. margin-top: 10px;
  138. }
  139. .chart-legend {
  140. top: 110px;
  141. left: 0;
  142. padding: 3px;
  143. min-width: 100%;
  144. text-align: left;
  145. z-index: 3;
  146. }
  147. .alert {
  148. font-size: 12px;
  149. padding: 4px;
  150. font-weight: normal;
  151. }
  152. }
  153. }
  154. .gauge-widget {
  155. .frame;
  156. .content {
  157. padding-top: 40px;
  158. .unavailable {
  159. padding-top: 30px;
  160. }
  161. .overflow-warning {
  162. font-size: 13px;
  163. font-weight: normal;
  164. margin-left: 10px;
  165. padding: 7px 7px;
  166. }
  167. }
  168. }
  169. .red {
  170. color: @health-status-red;
  171. }
  172. .orange {
  173. color: @health-status-orange;
  174. }
  175. .green {
  176. color: @health-status-green;
  177. }
  178. .grey {
  179. color: #D6DDDF;
  180. }
  181. }
  182. }
  183. #widget-preview {
  184. max-width: 200px;
  185. .widget {
  186. .thumbnail .corner-icon {
  187. display: none;
  188. }
  189. .graph-widget {
  190. .chart-container {
  191. cursor: default;
  192. }
  193. }
  194. }
  195. }
  196. #widget_layout {
  197. .widget {
  198. .thumbnail {
  199. .corner-icon {
  200. display: none;
  201. .icon-remove-sign{
  202. color: #000000;
  203. text-shadow: #fff 0 0 15px;
  204. position: absolute;
  205. left: -7px;
  206. top: -7px;
  207. }
  208. }
  209. .widget-icons {
  210. position: absolute;
  211. right: 5px;
  212. top: 6px;
  213. .corner-icon {
  214. i {
  215. position: relative;
  216. color: #555555;
  217. font-weight: bold;
  218. text-shadow: #fff -8px 8px 8px, #fff 8px 8px 8px, #fff -8px -8px 8px, #fff 8px -8px 8px;
  219. background-color: rgba(255,255,255,0.6);
  220. padding: 5px 5px 5px 2px;
  221. }
  222. &.hidden i {
  223. display: none;
  224. }
  225. }
  226. }
  227. .export-graph-list {
  228. right: -6px;
  229. margin-top: -2px;
  230. }
  231. &:hover {
  232. cursor: move;
  233. .corner-icon{
  234. display: block;
  235. text-decoration: none;
  236. z-index: 9;
  237. }
  238. .caption{
  239. margin-left: -10px;
  240. }
  241. }
  242. & .hidden-description{
  243. display: none;
  244. color: #555555;
  245. z-index: 7;
  246. font-size: 12px;
  247. font-weight: bold;
  248. line-height: 18px;
  249. text-align: center;
  250. text-decoration: none;
  251. position: absolute;
  252. top: 40px;
  253. padding: 8px 5px;
  254. width: 89%;
  255. height: 62%;
  256. overflow: scroll;
  257. white-space: pre-line;
  258. background: rgba(255,255,255, 0.7);
  259. }
  260. }
  261. }
  262. .thumbnail .chart-legend {
  263. .description-line {
  264. padding: 3px 3px 8px 8px;
  265. line-height: 16px;
  266. max-height: 43px;
  267. font-weight: bold;
  268. word-wrap: break-word;
  269. white-space: pre-wrap;
  270. overflow-y: scroll;
  271. }
  272. }
  273. .screensaver {
  274. .spinner {
  275. display: none;
  276. }
  277. }
  278. }
  279. .chart-legend .description-line {
  280. padding: 0 3px 8px 8px;
  281. line-height: 16px;
  282. max-height: 45px;
  283. font-weight: bold;
  284. word-wrap: break-word;
  285. white-space: pre-wrap;
  286. overflow-y: scroll;
  287. }
  288. #edit-widget-wizard,
  289. #add-widget-wizard {
  290. #add-widget-step1 {
  291. .widgets-info-container {
  292. .span6.widget-info-section {
  293. width: 44%;
  294. height: 115px;
  295. margin: 5px 15px;
  296. padding-top: 10px;
  297. padding-left: 5px;
  298. }
  299. .span6.widget-info-section:hover {
  300. background-color: #eee;
  301. cursor: pointer;
  302. .icon {
  303. background-color: white;
  304. }
  305. }
  306. .icon {
  307. border: 1px solid #ddd;
  308. .widget-icon-image {
  309. img {
  310. display: block;
  311. margin: 5px auto;
  312. }
  313. }
  314. }
  315. .label-description {
  316. padding-top: 5px;
  317. .label-text {
  318. display: block;
  319. font-size: 14px;
  320. font-weight: bold;
  321. margin-bottom: 1px;
  322. white-space: nowrap;
  323. overflow: hidden;
  324. text-overflow: ellipsis;
  325. }
  326. .description-text {
  327. font-size: 12px;
  328. display: block;
  329. color: #808080;
  330. overflow: hidden;
  331. text-overflow: ellipsis;
  332. height: 60px;
  333. }
  334. }
  335. }
  336. }
  337. .step2 {
  338. .form-horizontal {
  339. .control-label {
  340. width: auto;
  341. }
  342. .controls {
  343. margin-left: 130px;
  344. line-height: 40px;
  345. .threshold-input {
  346. width: 100px;
  347. }
  348. }
  349. }
  350. .template.error {
  351. .ember-text-area{
  352. border: 1px solid #b94a48;
  353. -webkit-box-shadow: none;
  354. -moz-box-shadow: none;
  355. box-shadow: none;
  356. }
  357. }
  358. .badge-container {
  359. width: 80px;
  360. .OK, .WARNING, .CRITICAL {
  361. line-height: 26px;
  362. height: 26px;
  363. display: inline-block;
  364. width: 65px;
  365. text-align: center;
  366. }
  367. .OK {
  368. background-color: @health-status-green;
  369. }
  370. .WARNING {
  371. background-color: @health-status-orange;
  372. }
  373. .CRITICAL {
  374. background-color: @health-status-red;
  375. }
  376. }
  377. .remove-link {
  378. padding: 5px;
  379. cursor: pointer;
  380. color: #555555;
  381. right: 10px;
  382. bottom: 10px;
  383. position: absolute;
  384. }
  385. .icon-asterisk {
  386. color: red;
  387. font-size: 8px;
  388. }
  389. .is-invalid.controls,
  390. .metric-container.is-invalid {
  391. .metric-field {
  392. border-color: @invalid-color;
  393. }
  394. }
  395. .metric-container {
  396. position: relative;
  397. margin-top: 10px;
  398. margin-bottom: 15px;
  399. height: 250px;
  400. .placeholder {
  401. color: #999999;
  402. padding: 50px;
  403. }
  404. .actions-field {
  405. margin-bottom: 5px;
  406. height: 14%;
  407. .add-operator {
  408. margin-left: 25px;
  409. }
  410. .add-number {
  411. margin-left: 40px;
  412. .add-on {
  413. height: inherit;
  414. }
  415. }
  416. .is-invalid {
  417. border-color: @invalid-color
  418. }
  419. }
  420. .metric-field {
  421. height: 85%;
  422. background-color: #f5f5f5;
  423. overflow: scroll;
  424. border: 1px solid @border-color;
  425. }
  426. .metric-instance {
  427. font-weight: bold;
  428. cursor: pointer;
  429. background: white;
  430. display: inline-block;
  431. margin: 10px 0 10px 10px;
  432. padding: 5px 16px 5px 12px;
  433. border: 1px solid @border-color;
  434. position: relative;
  435. a {
  436. position: absolute;
  437. right: 3px;
  438. top: 0;
  439. text-decoration: none;
  440. display: none;
  441. .icon-remove {
  442. color: #A69B9B;
  443. font-size: 12px;
  444. }
  445. }
  446. }
  447. .metric-instance:hover {
  448. a {
  449. display: inline-block;
  450. }
  451. }
  452. .controls {
  453. background-color: #f5f5f5;
  454. padding: 0 5px;
  455. border: 1px @border-color solid;
  456. margin-right: 20px;
  457. float: right;
  458. border-top: none;
  459. }
  460. .controls.is-invalid {
  461. border-color: @invalid-color;
  462. }
  463. .add-item-input {
  464. display: inline-block!important;
  465. .ember-text-field{
  466. text-overflow: ellipsis;
  467. white-space: nowrap;
  468. position: relative;
  469. font-weight: bold;
  470. margin: 8px 0 10px 10px;
  471. padding: 5px;
  472. border: 1px solid #dddddd;
  473. width: 50px;
  474. -webkit-box-shadow: none;
  475. -moz-box-shadow: none;
  476. box-shadow: none;
  477. border-radius: 0;
  478. -webkit-border-radius: 0;
  479. -moz-border-radius: 0;
  480. -webkit-transition: none;
  481. -moz-transition: none;
  482. -o-transition: none;
  483. transition: none;
  484. }
  485. .ember-text-field.is-invalid {
  486. border: 1px solid @invalid-color;
  487. }
  488. }
  489. }
  490. .template {
  491. margin-bottom: 10px;
  492. textarea {
  493. width: ~"calc(100% - 10px)";
  494. }
  495. }
  496. fieldset {
  497. display: table-column;
  498. position: relative;
  499. border: 2px groove #ddd;
  500. padding: 0 1.4em 1.4em 1.4em;
  501. margin: 0 0 1.5em 0;
  502. min-width: 95%;
  503. }
  504. legend {
  505. width: inherit;
  506. padding: 0 10px;
  507. border-bottom: none;
  508. }
  509. }
  510. .step3 {
  511. form {
  512. margin: 50px 0;
  513. .row-fluid {
  514. line-height: 30px;
  515. margin: 10px 0;
  516. .title {
  517. text-align: right;
  518. }
  519. .icon-asterisk {
  520. color: red;
  521. font-size: 8px;
  522. margin-left: 2px;
  523. }
  524. label.checkbox {
  525. line-height: 20px;
  526. margin-bottom: 0;
  527. margin-top: 5px;
  528. }
  529. .description-text-area {
  530. width: 320px;
  531. height: 75px;
  532. }
  533. .span10.error {
  534. .ember-text-field,
  535. .ember-text-area{
  536. border: 1px solid #b94a48;
  537. -webkit-box-shadow: none;
  538. -moz-box-shadow: none;
  539. box-shadow: none;
  540. }
  541. }
  542. }
  543. }
  544. #add-widget-step3-save {
  545. margin-left: 5px;;
  546. }
  547. }
  548. }
  549. .add-metric-menu{
  550. .select-options-dropdown {
  551. width: 240px;
  552. max-height: 123px;
  553. padding: 0;
  554. border-bottom: 200px transparent solid;
  555. border-right: 150px transparent solid;
  556. border-left: none;
  557. border-top: none;
  558. -webkit-box-shadow: none;
  559. -moz-box-shadow: none;
  560. box-shadow: none;
  561. }
  562. li.metric-select {
  563. padding: 5px;
  564. padding-bottom: 0;
  565. border: 1px #ccc solid;
  566. border-bottom: none;
  567. }
  568. li.aggregator-select {
  569. padding: 5px;
  570. padding-bottom: 0;
  571. border: 1px #ccc solid;
  572. border-bottom: none;
  573. border-top: none;
  574. }
  575. li.actions-buttons{
  576. padding: 5px;
  577. padding-left: 8px;
  578. border: 1px #ccc solid;
  579. border-top: none;
  580. button {
  581. margin-right: 5px;
  582. }
  583. }
  584. .chosen-container.chosen-container-single {
  585. margin: 3px;
  586. .chosen-single {
  587. height: 30px;
  588. width: 220px;
  589. line-height: 20px;
  590. color: #333333;
  591. font-size: 14px;
  592. padding: 4px 14px;
  593. border-radius: 4px;
  594. -webkit-border-radius: 4px;
  595. -moz-border-radius: 4px;
  596. background-color: #f5f5f5;
  597. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  598. background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  599. background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  600. background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  601. background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  602. background-repeat: repeat-x;
  603. border: 1px solid #bbbbbb;
  604. span {
  605. margin-right: 8px;
  606. }
  607. div b {
  608. background: none;
  609. width: 0;
  610. height: 0;
  611. top: 13px;
  612. left: -3px;
  613. position: relative;
  614. border-left: 4px solid transparent;
  615. border-right: 4px solid transparent;
  616. border-top: 4px solid #333333;
  617. }
  618. }
  619. .chosen-drop {
  620. margin-top: 2px;
  621. overflow: auto;
  622. min-width: 300px;
  623. width: 300px;
  624. border: 1px solid rgba(0, 0, 0, 0.2);
  625. -webkit-border-radius: 0;
  626. -moz-border-radius: 0;
  627. border-radius: 0;
  628. -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  629. -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  630. box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  631. }
  632. }
  633. }
  634. .sixty-percent-width-modal.widgets-browser-popup {
  635. .modal {
  636. max-height: 600px;
  637. position: fixed;
  638. .modal-body {
  639. padding-top: 0;
  640. min-height: 290px;
  641. max-height: 460px;
  642. }
  643. }
  644. #widget-browser-popup {
  645. min-width: 750px;
  646. max-width: 900px;
  647. #services-filter-bar {
  648. position: fixed;
  649. padding: 10px 10px 5px 10px;
  650. margin-bottom: 5px;
  651. border-bottom: transparent;
  652. background-color: white;
  653. width: 56%;
  654. z-index: 10;
  655. li > a {
  656. font-size: 14px;
  657. padding: 5px 5px;
  658. }
  659. a:hover {
  660. cursor: pointer;
  661. border-bottom: transparent;
  662. }
  663. }
  664. #create-widget-button {
  665. position: fixed;
  666. padding-top: 10px;
  667. right: 23%;
  668. z-index: 11;
  669. }
  670. #widgets-info {
  671. padding-top: 40px;
  672. .widgets-info-container {
  673. .span6.widget-info-section {
  674. width: 44%;
  675. height: 115px;
  676. margin: 5px 15px;
  677. padding-top: 10px;
  678. padding-left: 5px;
  679. }
  680. .span6.widget-info-section:hover {
  681. background-color: #eee;
  682. .icon {
  683. background-color: white;
  684. }
  685. }
  686. .icon {
  687. border: 1px solid #ddd;
  688. .widget-icon-image {
  689. img {
  690. display: block;
  691. margin: 5px auto;
  692. }
  693. }
  694. }
  695. .label-description {
  696. padding-top: 5px;
  697. .label-text {
  698. display: inline-block;
  699. font-size: 14px;
  700. font-weight: bold;
  701. margin-bottom: 1px;
  702. white-space: nowrap;
  703. overflow: hidden;
  704. text-overflow: ellipsis;
  705. width: 86%;
  706. }
  707. .is-shared-icon {
  708. display: inline-block;
  709. margin-bottom: 0;
  710. margin-right: 5px;
  711. color: #888;
  712. }
  713. .description-text {
  714. font-size: 12px;
  715. display: block;
  716. color: #808080;
  717. overflow-x: hidden;
  718. overflow-y: scroll;
  719. height: 40px;
  720. white-space: pre-line;
  721. }
  722. }
  723. .widget-section-actions {
  724. position: relative;
  725. top: -10px;
  726. right: 5px;
  727. .btn {
  728. padding: 3px 8px;
  729. width: 70px;
  730. }
  731. .added-btn.btn {
  732. margin-left: 63px;
  733. width: 85px;
  734. .icon-ok {
  735. color: #468847;
  736. }
  737. }
  738. .dropdown-menu {
  739. min-width: 110px;
  740. left: 0;
  741. }
  742. }
  743. }
  744. .no-widgets-text {
  745. padding: 20px;
  746. color: #808080;
  747. }
  748. }
  749. }
  750. }