modal_popups.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  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. /*90% width modal window start*/
  20. .full-width-modal {
  21. .modal {
  22. .modal-body {
  23. div.error{
  24. color: #b94a48;
  25. .help-inline{
  26. color: #b94a48;
  27. }
  28. }
  29. div.error input{
  30. border-color: #b94a48;
  31. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  32. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  33. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  34. }
  35. .add-cluster-1{
  36. width: 100%;
  37. height : 500px;
  38. margin: 0 auto;
  39. .each-row{
  40. margin-top: 10px;
  41. }
  42. .add-cluster-1-1{
  43. width: 100%;
  44. height : 100%;
  45. float: left;
  46. }
  47. .add-cluster-1-3{
  48. width: 45%;
  49. height : 100%;
  50. float: left;
  51. }
  52. .add-cluster-1-2{
  53. width: 10%;
  54. height : 100%;
  55. float: left;
  56. .add-cluster-1-2-1{
  57. width: 100%;
  58. height : 40%;
  59. }
  60. .add-cluster-1-2-2{
  61. width: 100%;
  62. height : 10%;
  63. }
  64. .add-cluster-1-2-3{
  65. width: 100%;
  66. height : 50%;
  67. }
  68. .middle-line{
  69. width : 2%;
  70. margin : 0 auto;
  71. height : 100%;
  72. background-color: #000000;
  73. }
  74. .add-cluster-center-most-div{
  75. height : 30%;
  76. text-align: center;
  77. position: relative;
  78. top: 30%;
  79. }
  80. }
  81. }
  82. }
  83. }
  84. .clear {
  85. clear: both;
  86. }
  87. > div > .dataTable {
  88. border: 1px solid silver;
  89. th {
  90. border-top: none;
  91. }
  92. }
  93. .content {
  94. padding: 0;
  95. }
  96. //fix stripped in inner table
  97. .table-striped tbody tr:nth-child(odd)
  98. td .table-striped tbody
  99. tr:nth-child(odd) td,
  100. tr:nth-child(even) th {
  101. background-color: transparent;
  102. }
  103. }
  104. /*90% width modal window end*/
  105. /*700px width modal window start*/
  106. .modal-690px-width {
  107. .modal {
  108. width: 690px;
  109. margin: 0 0 0 -345px;
  110. max-height: 544px;
  111. top: 5%;
  112. }
  113. .modal-body {
  114. max-height: 403px;
  115. }
  116. }
  117. /*700px width modal window end*/
  118. /*60% width modal window start*/
  119. .sixty-percent-width-modal.hideCloseLink{
  120. .modal-header{
  121. .close{
  122. display:none
  123. }
  124. }
  125. }
  126. .sixty-percent-width-modal-edit-widget {
  127. .modal {
  128. width: 60%;
  129. margin: 0 0 0 -30%;
  130. max-height: 544px;
  131. top: 5%;
  132. }
  133. .modal-header{
  134. min-width: 650px;
  135. }
  136. .modal-footer{
  137. min-width: 650px;
  138. }
  139. .modal-body {
  140. max-height: 403px;
  141. min-width: 650px;
  142. #slider-range {
  143. margin-top: 40px;
  144. margin-bottom: 20px;
  145. margin-left: 38px;
  146. max-width: 630px;
  147. max-height: 15px;
  148. }
  149. #min-height-limit .span9{
  150. min-height: 15px;
  151. }
  152. #min-height-limit .progress{
  153. margin-left: 40px;
  154. .bar-success {
  155. background-image: linear-gradient(to bottom, @health-status-green, @health-status-green);
  156. background-repeat: repeat-x;
  157. filter: progid:dximagetransform.microsoft.gradient(startColorstr='#5AB400', endColorstr='#5AB400', GradientType=0);
  158. }
  159. .bar-warning {
  160. background-image: linear-gradient(to bottom,@health-status-orange, @health-status-orange);
  161. background-repeat: repeat-x;
  162. filter: progid:dximagetransform.microsoft.gradient(startColorstr='#FF8E00', endColorstr='#FF8E00', GradientType=0);
  163. }
  164. .bar-danger {
  165. background-image: linear-gradient(to bottom, @health-status-red, @health-status-red);
  166. background-repeat: repeat-x;
  167. filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff0000', endColorstr='#ff0000', GradientType=0);
  168. }
  169. }
  170. .value-on-slider{
  171. max-height: 100px;
  172. margin-bottom: 40px;
  173. margin-top: 10px;
  174. text-align: center;
  175. }
  176. #slider-value1{
  177. max-width: 65px;
  178. }
  179. #slider-value2{
  180. max-width: 250px;
  181. }
  182. #slider-value3{
  183. max-width: 250px;
  184. }
  185. #slider-value4{
  186. max-width: 65px;
  187. }
  188. .slider-error{
  189. color: #b94a48;
  190. .help-inline{
  191. color: #b94a48;
  192. }
  193. }
  194. .slider-error input{
  195. border-color: #b94a48;
  196. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  197. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  198. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  199. }
  200. }
  201. }
  202. .sixty-percent-width-modal {
  203. .modal {
  204. width: 60%;
  205. margin: 0 0 0 -30%;
  206. max-height: 563px;
  207. min-width: 590px;
  208. top: 5%;
  209. }
  210. &.modal-full-width {
  211. .modal {
  212. width: 90%;
  213. margin: 0 0 0 -45%;
  214. max-height: 90%;
  215. }
  216. }
  217. .long-popup-list {
  218. height: 280px;
  219. overflow: auto;
  220. width: 100%;
  221. }
  222. .modal-footer {
  223. #footer-checkbox {
  224. text-align: left;
  225. padding-top: 3px;
  226. margin-left: 22px;
  227. float: left;
  228. .checkbox {
  229. margin: 0;
  230. }
  231. }
  232. }
  233. .modal-body {
  234. max-height: 403px;
  235. .form-horizontal{
  236. .add-cluster-1{
  237. width: 100%;
  238. height : auto;
  239. min-height : 350px;
  240. margin: 0 auto;
  241. .each-row{
  242. margin-top: 10px;
  243. }
  244. .add-cluster-1-1{
  245. width: 100%;
  246. height : 100%;
  247. float: left;
  248. div.error{
  249. color: #b94a48;
  250. .help-inline{
  251. color: #b94a48;
  252. }
  253. }
  254. div.error input{
  255. border-color: #b94a48;
  256. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  257. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  258. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  259. }
  260. }
  261. .add-cluster-1-3{
  262. width: 45%;
  263. height : 100%;
  264. float: right;
  265. }
  266. .add-cluster-1-2{
  267. width: 10%;
  268. height : 100%;
  269. float: left;
  270. .add-cluster-1-2-1{
  271. width: 100%;
  272. height : 40%;
  273. }
  274. .add-cluster-1-2-2{
  275. width: 100%;
  276. height : 10%;
  277. }
  278. .add-cluster-1-2-3{
  279. width: 100%;
  280. height : 50%;
  281. }
  282. .middle-line{
  283. width : 2%;
  284. margin : 0 auto;
  285. height : 100%;
  286. background-color: #000000;
  287. }
  288. .add-cluster-center-most-div{
  289. height : 30%;
  290. text-align: center;
  291. position: relative;
  292. top: 30%;
  293. }
  294. }
  295. }
  296. .add-cluster-2{
  297. margin : 0 auto;
  298. height : auto;
  299. min-height : 350px;
  300. table{
  301. width : 60%;
  302. margin : 0 20%;
  303. .spacer{
  304. height: 20px;
  305. }
  306. tr.error{
  307. color: #b94a48;
  308. .help-inline{
  309. color: #b94a48;
  310. }
  311. input{
  312. border-color: #b94a48;
  313. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  314. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  315. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  316. }
  317. }
  318. td {
  319. width : 50%;
  320. a.btn-success{
  321. margin-left: 30%;
  322. }
  323. }
  324. }
  325. }
  326. .add-data-set{
  327. width: 80%;
  328. margin: 0 auto;
  329. table{
  330. width: 100%;
  331. }
  332. tr.error{
  333. color: #b94a48;
  334. .help-inline{
  335. color: #b94a48;
  336. }
  337. }
  338. div.error{
  339. color: #b94a48;
  340. .help-inline{
  341. color: #b94a48;
  342. }
  343. }
  344. div.error input{
  345. border-color: #b94a48;
  346. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  347. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  348. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  349. }
  350. td.percent25 {
  351. width: 25%;
  352. }
  353. td.spacer{
  354. height: 10px;
  355. }
  356. td{
  357. .btn-group{
  358. display : inline;
  359. span.caret{
  360. float : right;
  361. }
  362. ul.dropdown-menu{
  363. margin-top:15px;
  364. }
  365. }
  366. .ember-view{
  367. display : inline;
  368. }
  369. }
  370. input.hyper-mini{
  371. width: 20px;
  372. }
  373. .targetClusterDD{
  374. min-width : 170px;
  375. }
  376. }
  377. .each-row{
  378. margin-top: 10px;
  379. }
  380. .each-row.control-label{
  381. float:left;
  382. clear:both;
  383. }
  384. .override-controls{
  385. .icon-ok-sign {
  386. color: #5AB400;
  387. }
  388. #filter-dropdown-div {
  389. .dropdown-menu {
  390. right: 0;
  391. left: auto;
  392. }
  393. }
  394. #component-dropdown-div {
  395. vertical-align: top;
  396. padding-left: 5px;
  397. .dropdown-menu {
  398. right: 0;
  399. left: auto;
  400. }
  401. }
  402. .input-append{
  403. input{
  404. -webkit-border-radius: 4px 0 0 4px;
  405. -moz-border-radius: 4px 0 0 4px;
  406. border-radius: 4px 0 0 4px;
  407. }
  408. .btn-group{
  409. display: inline-block;
  410. margin-left: -1px;
  411. .btn{
  412. -webkit-border-radius: 0 4px 4px 0;
  413. -moz-border-radius: 0 4px 4px 0;
  414. border-radius: 0 4px 4px 0;
  415. }
  416. }
  417. }
  418. .hosts-table-container{
  419. width:100%;
  420. height: 225px;
  421. max-height: 225px;
  422. overflow: auto;
  423. border: 1px solid #eee;
  424. }
  425. table{
  426. th {
  427. background-color: #d9edf7;
  428. }
  429. margin: 0 auto;
  430. }
  431. .message{
  432. color: #777;
  433. }
  434. }
  435. .control-label{
  436. width:auto;
  437. }
  438. .overrideSelectBox {
  439. width:100%;
  440. }
  441. }
  442. }
  443. .clear {
  444. clear: both;
  445. }
  446. > div > .dataTable {
  447. border: 1px solid silver;
  448. th {
  449. border-top: none;
  450. }
  451. }
  452. .content {
  453. padding: 0;
  454. }
  455. //fix stripped in inner table
  456. .table-striped tbody tr:nth-child(odd)
  457. td .table-striped tbody
  458. tr:nth-child(odd) td,
  459. tr:nth-child(even) th {
  460. background-color: transparent;
  461. }
  462. }
  463. /*60% width modal window end*/
  464. /* modal fill screen popup */
  465. .full-height-modal {
  466. // padding from the top and bottom for full-height popup of window
  467. @modal-padding: 40px;
  468. .modal {
  469. max-height: 90%;
  470. &.no-footer {
  471. .modal-body {
  472. // height: 100%;
  473. }
  474. }
  475. &.with-footer {
  476. .modal-body {
  477. max-height: calc(~"100%" - (@modal-body-padding*2 + @modal-footer-height + @modal-header-height));
  478. }
  479. }
  480. }
  481. }
  482. /* modal fill screen popup end */
  483. #logs-popup {
  484. .controls-block {
  485. margin-bottom: 10px;
  486. a {
  487. padding: 5px;
  488. cursor: pointer;
  489. }
  490. }
  491. }
  492. .modal {
  493. .modal-body {
  494. .top-wrap {
  495. &.top-wrap-header {
  496. border-bottom: 1px solid #eee;
  497. margin-bottom: 20px;
  498. }
  499. }
  500. }
  501. }
  502. .host-progress-popup {
  503. .task-detail-info {
  504. .task-detail-log-info {
  505. padding-top: 10px;
  506. }
  507. &.task-detail-info-tabbed {
  508. .task-detail-log-info {
  509. padding-top: 0;
  510. }
  511. .task-top-wrap {
  512. padding: 0;
  513. border-bottom: none;
  514. }
  515. .task-detail-nav {
  516. padding-top: 10px;
  517. }
  518. .log-tail-content {
  519. width: 100%;
  520. padding: 15px;
  521. overflow-y: auto;
  522. box-sizing: border-box;
  523. white-space: normal;
  524. margin: 0;
  525. position: relative;
  526. & > div {
  527. margin: 0;
  528. padding: 0;
  529. &:hover {
  530. background: #ccc;
  531. }
  532. }
  533. .log-tail-spinner-container {
  534. position: absolute;
  535. top: 0;
  536. left: 3px;
  537. }
  538. }
  539. #infinite-scroll-append {
  540. text-align: center;
  541. .icon-spinner {
  542. font-size: 24px;
  543. }
  544. }
  545. }
  546. }
  547. }