common.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  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. /************************************************************************
  19. * Health status(service/host/host component health)icons class names
  20. ***********************************************************************/
  21. @health-status-red-icon: icon-warning-sign;
  22. @health-status-green-icon: icon-ok-sign;
  23. @health-status-yellow-icon: icon-question-sign;
  24. @health-status-orange-icon: icon-minus-sign;
  25. @maintenance-icon: icon-medkit;
  26. /************************************************************************
  27. * Health status(service/host/host component health)icon colors
  28. ***********************************************************************/
  29. @health-status-red: #ff0000;
  30. @health-status-green: #5AB400;
  31. @health-status-yellow: #FFD13D;
  32. @health-status-orange: #FF8E00;
  33. @maintenance-black: #000000;
  34. /************************************************************************
  35. * Health status(service/host/host component health)icon colors ends
  36. ***********************************************************************/
  37. @space-s: 5px;
  38. @space-m: 10px;
  39. @space-l: 20px;
  40. @green: #69BE28;
  41. @blue: #0572ff;
  42. @gray-blue: #80A0B9;
  43. @spinner-default-width: 36px;
  44. @spinner-default-height: 36px;
  45. @spinner-small-width: 30px;
  46. @spinner-small-height: 30px;
  47. (~".@{health-status-red-icon}") {
  48. color: @health-status-red;
  49. }
  50. (~".@{health-status-green-icon}") {
  51. color: @health-status-green;
  52. }
  53. (~".@{health-status-yellow-icon}") {
  54. color: @health-status-yellow;
  55. }
  56. (~".@{health-status-orange-icon}") {
  57. color: @health-status-orange;
  58. }
  59. (~".@{maintenance-icon}") {
  60. color: @maintenance-black;
  61. }
  62. @-webkit-keyframes orangePulse {
  63. from { background-color: #fdb82f; }
  64. 50% { background-color: #fd910e; }
  65. to { background-color: #fdb82f; }
  66. }
  67. @-moz-keyframes orangePulse {
  68. from { background-color: #fdb82f; }
  69. 50% { background-color: #fd910e; }
  70. to { background-color: #fdb82f; }
  71. }
  72. @keyframes orangePulse
  73. {
  74. 0% { background-color: #fdb82f; }
  75. 50% { background-color: #fd910e; }
  76. 100% { background-color: #fdb82f; }
  77. }
  78. @-webkit-keyframes greenPulse {
  79. from { background-color: #118fff; }
  80. 50% { background-color: #006DCC; }
  81. to { background-color: #118fff; }
  82. }
  83. @-moz-keyframes greenPulse {
  84. from { background-color: #118fff; }
  85. 50% { background-color: #006DCC; }
  86. to { background-color: #118fff; }
  87. }
  88. @keyframes greenPulse
  89. {
  90. 0% { background-color: #118fff; }
  91. 50% { background-color: #006DCC; }
  92. 100% { background-color: #118fff; }
  93. }
  94. @-webkit-keyframes greenPulseInner {
  95. from { color: #118fff; }
  96. 50% { color: #006DCC; }
  97. to { color: #118fff; }
  98. }
  99. @-moz-keyframes greenPulseInner {
  100. from { color: #118fff; }
  101. 50% { color: #006DCC; }
  102. to { color: #118fff; }
  103. }
  104. @keyframes greenPulseInner
  105. {
  106. 0% { color: #118fff; }
  107. 50% { color: #006DCC; }
  108. 100% { color: #118fff; }
  109. }
  110. @-webkit-keyframes redPulse {
  111. from { background-color: #ff3333; }
  112. 50% { background-color: #ff0000; }
  113. to { background-color: #ff3333; }
  114. }
  115. @-moz-keyframes redPulse {
  116. from { background-color: #ff3333; }
  117. 50% { background-color: #ff0000; }
  118. to { background-color: #ff3333; }
  119. }
  120. @keyframes redPulse
  121. {
  122. 0% { background-color: #ff3333; }
  123. 50% { background-color: #ff0000; }
  124. 100% { background-color: #ff3333; }
  125. }
  126. .gradient(@color: #FAFAFA, @start: #FFFFFF, @stop: #F2F2F2) {
  127. background: @color;
  128. background: -webkit-gradient(linear, left top, left bottom, color-stop(0, @start), color-stop(1, @stop));
  129. background: -ms-linear-gradient(top, @start, @stop);
  130. background: -moz-linear-gradient(center top, @start 0%, @stop 100%);
  131. filter: progid:dximagetransform.microsoft.gradient(startColorstr= @start, endColorstr= @stop, GradientType=0); // for IE9-
  132. }
  133. @footer-height: 100px;
  134. @restart-indicator-color: #FDB82F;
  135. @top-nav-bg-color-from: #555555;
  136. @top-nav-bg-color-to: #333333;
  137. @top-nav-brand-color: #ffffff;
  138. @top-nav-ops-count-color: #ffffff;
  139. @top-nav-ops-count-bg-color: #c3c3c3;
  140. @top-nav-menu-active-text-color: #333333;
  141. @top-nav-menu-active-bg-color: #ffffff;
  142. @top-nav-menu-text-color: #c3c3c3;
  143. @top-nav-menu-text-hover-color: #ffffff;
  144. @top-nav-menu-dropdown-border-color: #c3c3c3;
  145. @top-nav-menu-dropdown-bg-color: #ffffff;
  146. @top-nav-menu-dropdown-text-color: #333333;
  147. @default-font-size: 14px;
  148. @smaller-font-size: 12px;
  149. /************************************************************************
  150. * Modal popup properties
  151. ***********************************************************************/
  152. // modal body content padding
  153. @modal-body-padding: 15px;
  154. // modal header height
  155. @modal-header-height: 50px;
  156. // modal footer height
  157. @modal-footer-height: 60px;
  158. .editable-list-container.well{
  159. padding: 10px;
  160. position: relative;
  161. margin-bottom: 25px;
  162. cursor: pointer;
  163. }
  164. .editable-list-container.well.edit-mode{
  165. cursor: default;
  166. }
  167. .editable-list-container.well.disabled{
  168. background: white;
  169. }
  170. .editable-list-container .items-box{
  171. }
  172. .editable-list-container .items-box ul.items-list{
  173. list-style-type: none;
  174. margin: 0;
  175. padding: 0;
  176. }
  177. .editable-list-container .items-box ul.items-list li.item{
  178. display: inline-block;
  179. padding: 4px 8px;
  180. margin: 0 5px 5px 2px;
  181. background: white;
  182. border: 1px solid #ebebeb;
  183. max-width: 100%;
  184. white-space: nowrap;
  185. position: relative;
  186. a {
  187. color: #555;
  188. }
  189. }
  190. .editable-list-container.edit-mode .items-box ul.items-list li.item.deletable{
  191. padding-right: 25px;
  192. }
  193. .editable-list-container .items-box ul.items-list li.item.global{
  194. background-color: #f5f5f5;
  195. }
  196. .editable-list-container .items-box ul.items-list li.item .close{
  197. margin: -2px 0 0 5px;
  198. width: 13px;
  199. outline: none;
  200. position: absolute;
  201. display: none;
  202. }
  203. .editable-list-container.edit-mode .items-box ul.items-list li.item .close{
  204. display: inline-block;
  205. }
  206. .editable-list-container .items-box ul.items-list li a{
  207. text-decoration: none;
  208. }
  209. .editable-list-container.edit-mode .items-box ul.items-list li.item.add-item-input .ember-text-field{
  210. display: inline-block!important;
  211. text-overflow: ellipsis;
  212. white-space: nowrap;
  213. position: relative;
  214. padding: 0 0;
  215. margin: 0 0;
  216. border: none;
  217. width: 50px;
  218. height: 18px;
  219. -webkit-box-shadow: none;
  220. -moz-box-shadow: none;
  221. box-shadow: none;
  222. -webkit-transition: none;
  223. -moz-transition: none;
  224. -o-transition: none;
  225. transition: none;
  226. }
  227. .editable-list-container .items-box ul.items-list li.item.add-item{
  228. color: #ddd;
  229. }
  230. .typeahead-box{
  231. position: absolute;
  232. left: 0;
  233. margin-top: 5px;
  234. background: white;
  235. border: 1px solid #ebebeb;
  236. z-index: 1000;
  237. min-width: 65px;
  238. max-height: 150px;
  239. overflow: auto;
  240. }
  241. .typeahead-box ul{
  242. list-style-type: none;
  243. margin: 0;
  244. padding: 0;
  245. }
  246. .typeahead-box ul li{
  247. padding: 3px 5px;
  248. display: block;
  249. cursor: pointer;
  250. }
  251. .typeahead-box ul li.selected, .typeahead-box ul li:hover{
  252. background: #eee;
  253. }
  254. .editable-list-container .actions-panel{
  255. position: absolute;
  256. right: 5px;
  257. bottom: -30px;
  258. padding: 2px 5px 5px 5px;
  259. background: #f5f5f5;
  260. border: 1px solid #e3e3e3;
  261. border-top: none;
  262. border-radius: 0 0 4px 4px;
  263. -webkit-transition: all 0.3s;
  264. -o-transition: all 0.3s;
  265. transition: all 0.3s;
  266. -ms-transform-origin: 0% 0%; /* IE 9 */
  267. -webkit-transform-origin: 0% 0%; /* Chrome, Safari, Opera */
  268. transform-origin: 0% 0%;
  269. -webkit-transform: rotateX(0deg);
  270. -ms-transform: rotateX(0deg);
  271. -o-transform: rotateX(0deg);
  272. transform: rotateX(0deg);
  273. .btn-xs {
  274. padding: 1px 5px;
  275. font-size: 12px;
  276. line-height: 1.5;
  277. border-radius: 3px;
  278. }
  279. .icon-remove {
  280. color: #000000;
  281. }
  282. .icon-ok {
  283. color: white;
  284. }
  285. }
  286. .editable-list-container.disabled .pencil-box{
  287. display: none;
  288. }
  289. .editable-list-container .pencil-box{
  290. position: absolute;
  291. right: 5px;
  292. top: 5px;
  293. opacity: 0;
  294. -webkit-transition: all 0.3s;
  295. -o-transition: all 0.3s;
  296. transition: all 0.3s;
  297. }
  298. .editable-list-container:hover .pencil-box{
  299. opacity: 1;
  300. }
  301. .editable-list-container.edit-mode:hover .pencil-box{
  302. opacity: 0;
  303. }
  304. .table-overlay {
  305. position: absolute;
  306. opacity: 0.9;
  307. background-color: #fefefe;
  308. .spinner {
  309. display: none;
  310. }
  311. }
  312. .host-elements {
  313. border: 1px solid #ddd;
  314. height: 120px;
  315. overflow: auto;
  316. padding: 5px;
  317. ul {
  318. margin-bottom: 0;
  319. }
  320. table {
  321. width: 100%;
  322. td {
  323. width: 50%;
  324. padding: 0;
  325. }
  326. }
  327. }
  328. .export-graph-list {
  329. top: 25px;
  330. min-width: 60px;
  331. font-size: 14px;
  332. cursor: auto;
  333. a {
  334. cursor: pointer;
  335. }
  336. }
  337. .bootstrap-checkbox {
  338. &>button.btn {
  339. &:focus {
  340. border-color: none;
  341. box-shadow: 0;
  342. outline: 0 none;
  343. }
  344. &.btn-large {
  345. padding-top: 6px;
  346. }
  347. }
  348. }
  349. .lh-btn {
  350. line-height: 30px;
  351. }
  352. .text-bold {
  353. font-weight: bold;
  354. }
  355. .pre-styled {
  356. display: block;
  357. padding: 9.5px;
  358. margin: 0 0 10px;
  359. font-size: 11px;
  360. line-height: 14px;
  361. font-family: monospace;
  362. word-break: break-all;
  363. word-wrap: break-word;
  364. white-space: pre;
  365. white-space: pre-wrap;
  366. background-color: #f5f5f5;
  367. border: 1px solid #ccc;
  368. border: 1px solid rgba(0, 0, 0, 0.15);
  369. -webkit-border-radius: 4px;
  370. -moz-border-radius: 4px;
  371. border-radius: 4px;
  372. }
  373. .tabs-left, .tabs-right {
  374. border-bottom: none;
  375. padding-top: 2px;
  376. }
  377. .tabs-left {
  378. border-right: 1px solid #ddd;
  379. }
  380. .tabs-right {
  381. border-left: 1px solid #ddd;
  382. }
  383. .tabs-left>li, .tabs-right>li {
  384. float: none;
  385. margin-bottom: 2px;
  386. }
  387. .tabs-left>li {
  388. margin-right: -1px;
  389. }
  390. .tabs-right>li {
  391. margin-left: -1px;
  392. }
  393. .tabs-left>li>a:hover,
  394. .tabs-left>li>a:focus {
  395. border-bottom-color: transparent;
  396. }
  397. .tabs-left>li.active>a,
  398. .tabs-left>li.active>a:hover,
  399. .tabs-left>li.active>a:focus {
  400. border-bottom-color: #ddd;
  401. border-right-color: transparent;
  402. }
  403. .tabs-right>li.active>a,
  404. .tabs-right>li.active>a:hover,
  405. .tabs-right>li.active>a:focus {
  406. border-bottom: 1px solid #ddd;
  407. border-left-color: transparent;
  408. }
  409. .tabs-left>li>a {
  410. border-radius: 4px 0 0 4px;
  411. margin-right: 0;
  412. display:block;
  413. }
  414. .tabs-right>li>a {
  415. border-radius: 0 4px 4px 0;
  416. margin-right: 0;
  417. }