enhanced_service_dashboard.less 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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. .service-metrics-block {
  21. #add-widget-action-box {
  22. width: 96%;
  23. padding: 43px;
  24. border: 1px solid @border-color;
  25. .icon-plus {
  26. font-size: 70px;
  27. color: @border-color;
  28. }
  29. }
  30. .actions .dropdown-menu {
  31. min-width: 270px;
  32. label.checkbox {
  33. padding: 0 20px 0 38px;
  34. margin-bottom: 0;
  35. margin-top: 5px;
  36. }
  37. li.btn-row {
  38. padding: 5px 20px 10px 20px;
  39. }
  40. a.action {
  41. border-bottom: 1px solid @border-color;
  42. }
  43. }
  44. }
  45. #widget_layout,
  46. #widget-preview {
  47. .frame {
  48. height: 150px;
  49. width: 90%;
  50. }
  51. .span2p4 {
  52. width: 19.3%;
  53. background-color: white;
  54. margin: 5px 0 5px 5px;
  55. }
  56. .widget {
  57. .spinner {
  58. margin: 55px auto;
  59. }
  60. .title {
  61. padding: 5px 0 0 5px;
  62. height: 25px;
  63. font-weight: bold;
  64. text-align: left;
  65. position: relative;
  66. }
  67. .content {
  68. text-align: center;
  69. color: @health-status-green;
  70. font-weight: bold;
  71. font-size: 35px;
  72. position: relative;
  73. }
  74. .template-widget,
  75. .number-widget {
  76. .frame;
  77. .content {
  78. padding-top: 70px;
  79. }
  80. }
  81. .graph-widget {
  82. .frame;
  83. .content {
  84. padding-top: 30px;
  85. }
  86. .chart-legend {
  87. min-width: 100%;
  88. padding: 5px;
  89. text-align: left;
  90. top: 95px;
  91. left: -15px;
  92. }
  93. }
  94. .gauge-widget {
  95. .frame;
  96. .content {
  97. padding-top: 40px;
  98. }
  99. }
  100. .red {
  101. color: @health-status-red;
  102. }
  103. .orange {
  104. color: @health-status-orange;
  105. }
  106. .green {
  107. color: @health-status-green;
  108. }
  109. }
  110. }
  111. #widget-preview {
  112. max-width: 200px;
  113. .widget {
  114. .thumbnail .corner-icon {
  115. display: none;
  116. }
  117. .graph-widget {
  118. .title {
  119. height: 0;
  120. }
  121. }
  122. }
  123. }
  124. #widget_layout {
  125. .widget {
  126. .thumbnail .corner-icon {
  127. display: none;
  128. position: relative;
  129. .icon-remove-sign{
  130. color: #000000;
  131. text-shadow: #fff 0px 0px 15px;
  132. position: relative;
  133. left: -17px;
  134. top: -11px;
  135. }
  136. .icon-edit,.icon-copy{
  137. color: #555555;
  138. position: relative;
  139. }
  140. .icon-edit {
  141. left: 2px;
  142. }
  143. }
  144. .thumbnail:hover {
  145. cursor: move;
  146. .corner-icon{
  147. display: block;
  148. text-decoration: none;
  149. z-index: 9;
  150. }
  151. .caption{
  152. margin-left: -10px;
  153. }
  154. }
  155. }
  156. }
  157. #add-widget-wizard {
  158. .step2 {
  159. .badge-container {
  160. height: 26px;
  161. .OK, .WARNING, .CRITICAL {
  162. line-height: 26px;
  163. height: 26px;
  164. display: inline-block;
  165. width: 70px;
  166. text-align: center;
  167. }
  168. .OK {
  169. background-color: @health-status-green;
  170. }
  171. .WARNING {
  172. background-color: @health-status-orange;
  173. }
  174. .CRITICAL {
  175. background-color: @health-status-red;
  176. }
  177. }
  178. .remove-link {
  179. padding: 5px;
  180. cursor: pointer;
  181. color: #555555;
  182. right: 10px;
  183. bottom: 10px;
  184. position: absolute;
  185. }
  186. .icon-asterisk {
  187. color: red;
  188. font-size: 8px;
  189. }
  190. .is-invalid.controls,
  191. .metric-container.is-invalid {
  192. border-color: red;
  193. }
  194. .metric-container {
  195. position: relative;
  196. margin-bottom: 50px;
  197. height: 200px;
  198. border: 1px solid @border-color;
  199. button,
  200. div.btn-group {
  201. margin: 5px;
  202. }
  203. .placeholder {
  204. color: #999999;
  205. margin: 50px;
  206. }
  207. .edit-link {
  208. padding: 5px;
  209. cursor: pointer;
  210. color: #555555;
  211. right: 10px;
  212. top: 10px;
  213. position: absolute;
  214. }
  215. .metric-field {
  216. height: 100%;
  217. }
  218. .metric-instance {
  219. font-weight: bold;
  220. cursor: pointer;
  221. background: #E6F1F6;
  222. display: inline-block;
  223. margin: 10px 0 10px 10px;
  224. padding: 5px;
  225. border: 1px solid @border-color;
  226. a {
  227. margin-left: 5px;
  228. text-decoration: none;
  229. display: none;
  230. .icon-remove {
  231. color: #A69B9B;
  232. }
  233. }
  234. }
  235. .metric-instance:hover {
  236. a {
  237. display: inline-block;
  238. }
  239. }
  240. .controls {
  241. background-color: white;
  242. padding: 0 5px;
  243. border: 1px @border-color solid;
  244. margin-right: 20px;
  245. float: right;
  246. border-top: none;
  247. }
  248. .controls.is-invalid {
  249. border-color: red;
  250. }
  251. }
  252. .template {
  253. margin-bottom: 10px;
  254. textarea {
  255. width: ~"calc(100% - 10px)";
  256. }
  257. }
  258. fieldset {
  259. position: relative;
  260. border: 2px groove #ddd;
  261. padding: 0 1.4em 1.4em 1.4em;
  262. margin: 0 0 1.5em 0;
  263. }
  264. legend {
  265. width: inherit;
  266. padding: 0 10px;
  267. border-bottom: none;
  268. }
  269. }
  270. }
  271. #add-metric-popup {
  272. min-height: 200px;
  273. div.row-fluid {
  274. margin: 20px 10px;
  275. div {
  276. line-height: 30px;
  277. }
  278. }
  279. .component-select {
  280. .accordion-group {
  281. border: none;
  282. }
  283. .accordion-toggle {
  284. text-decoration: none;
  285. padding-bottom: 0;
  286. .icon-caret-down {
  287. width: 10px;
  288. display: inline-block;
  289. }
  290. .icon-caret-right {
  291. display: none;
  292. }
  293. }
  294. .accordion-toggle.collapsed {
  295. text-decoration: none;
  296. padding-bottom: 0;
  297. .icon-caret-down {
  298. display: none;
  299. }
  300. .icon-caret-right {
  301. width: 10px;
  302. display: inline-block;
  303. }
  304. }
  305. .accordion-inner {
  306. padding: 0 15px;
  307. border-top: none;
  308. li {
  309. list-style: none;
  310. }
  311. }
  312. .link {
  313. cursor: pointer;
  314. color: #0088cc;
  315. }
  316. .link:hover {
  317. background: transparent;
  318. }
  319. }
  320. }
  321. #widget-browser-popup {
  322. min-width: 750px;
  323. max-width: 900px;
  324. #widgets-info {
  325. .widgets-info-container {
  326. .span6.widget-info-section {
  327. width: 44%;
  328. height: 122px;
  329. margin: 5px 15px;
  330. padding-top: 10px;
  331. padding-left: 5px;
  332. }
  333. .span6.widget-info-section:hover {
  334. background-color: #ddd;
  335. .icon {
  336. background-color: white;
  337. }
  338. }
  339. .icon {
  340. border: 1px solid #ddd;
  341. .widget-icon-image {
  342. img {
  343. display: block;
  344. margin: 5px auto;
  345. }
  346. }
  347. }
  348. .label-description {
  349. padding-top: 5px;
  350. .label-text {
  351. display: block;
  352. font-size: 14px;
  353. font-weight: bold;
  354. margin-bottom: 1px;
  355. white-space: nowrap;
  356. overflow: hidden;
  357. text-overflow: ellipsis;
  358. }
  359. .description-text {
  360. font-size: 12px;
  361. display: block;
  362. color: #808080;
  363. overflow: hidden;
  364. text-overflow: ellipsis;
  365. height: 60px;
  366. }
  367. }
  368. .widget-section-actions {
  369. position: relative;
  370. top: -30px;
  371. .btn {
  372. padding: 3px 8px;
  373. width: 60px;
  374. }
  375. .added-btn {
  376. margin-left: 63px;;
  377. }
  378. .dropdown-menu {
  379. min-width: 110px;
  380. }
  381. }
  382. }
  383. .no-widgets-text {
  384. padding-left: 20px;
  385. color: #808080;
  386. }
  387. }
  388. }