common.less 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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)icon colors
  20. ***********************************************************************/
  21. @health-status-red: red;
  22. @health-status-green: #5AB400;
  23. @health-status-yellow: #FFD13D;
  24. @health-status-orange: #FF8E00;
  25. /************************************************************************
  26. * Health status(service/host/host component health)icon colors ends
  27. ***********************************************************************/
  28. .editable-list-container.well{
  29. padding: 10px;
  30. position: relative;
  31. margin-bottom: 25px;
  32. cursor: pointer;
  33. }
  34. .editable-list-container.well.edit-mode{
  35. cursor: default;
  36. }
  37. .editable-list-container.well.disabled{
  38. background: white;
  39. }
  40. .editable-list-container .items-box{
  41. }
  42. .editable-list-container .items-box ul.items-list{
  43. list-style-type: none;
  44. margin: 0;
  45. padding: 0;
  46. }
  47. .editable-list-container .items-box ul.items-list li.item{
  48. display: inline-block;
  49. padding: 4px 8px;
  50. margin: 0 5px 5px 2px;
  51. background: white;
  52. border: 1px solid #ebebeb;
  53. max-width: 100%;
  54. white-space: nowrap;
  55. position: relative;
  56. }
  57. .editable-list-container.edit-mode .items-box ul.items-list li.item.deletable{
  58. padding-right: 25px;
  59. }
  60. .editable-list-container .items-box ul.items-list li.item .close{
  61. margin: -2px 0 0 5px;
  62. width: 13px;
  63. outline: none;
  64. position: absolute;
  65. display: none;
  66. }
  67. .editable-list-container.edit-mode .items-box ul.items-list li.item .close{
  68. display: inline-block;
  69. }
  70. .editable-list-container .items-box ul.items-list li a{
  71. text-decoration: none;
  72. }
  73. .editable-list-container.edit-mode .items-box ul.items-list li.item.add-item-input .ember-text-field{
  74. display: inline-block!important;
  75. text-overflow: ellipsis;
  76. white-space: nowrap;
  77. position: relative;
  78. padding: 0px 0px;
  79. margin: 0px 0px;
  80. border: none;
  81. width: 50px;
  82. height: 18px;
  83. -webkit-box-shadow: none;
  84. -moz-box-shadow: none;
  85. box-shadow: none;
  86. -webkit-transition: none;
  87. -moz-transition: none;
  88. -o-transition: none;
  89. transition: none;
  90. }
  91. .editable-list-container .items-box ul.items-list li.item.add-item{
  92. color: #ddd;
  93. }
  94. .typeahead-box{
  95. position: absolute;
  96. left: 0;
  97. margin-top: 5px;
  98. background: white;
  99. border: 1px solid #ebebeb;
  100. z-index: 1000;
  101. min-width: 65px;
  102. max-height: 150px;
  103. overflow: auto;
  104. }
  105. .typeahead-box ul{
  106. list-style-type: none;
  107. margin: 0;
  108. padding: 0;
  109. }
  110. .typeahead-box ul li{
  111. padding: 3px 5px;
  112. display: block;
  113. cursor: pointer;
  114. }
  115. .typeahead-box ul li.selected, .typeahead-box ul li:hover{
  116. background: #eee;
  117. }
  118. .editable-list-container .actions-panel{
  119. position: absolute;
  120. right: 5px;
  121. bottom: -30px;
  122. padding: 2px 5px 5px 5px;
  123. background: #f5f5f5;
  124. border: 1px solid #e3e3e3;
  125. border-top: none;
  126. border-radius: 0 0 4px 4px;
  127. -webkit-transition: all 0.3s;
  128. -o-transition: all 0.3s;
  129. transition: all 0.3s;
  130. -ms-transform-origin: 0% 0%; /* IE 9 */
  131. -webkit-transform-origin: 0% 0%; /* Chrome, Safari, Opera */
  132. transform-origin: 0% 0%;
  133. -webkit-transform: rotateX(0deg);
  134. -ms-transform: rotateX(0deg);
  135. -o-transform: rotateX(0deg);
  136. transform: rotateX(0deg);
  137. .btn-xs {
  138. padding: 1px 5px;
  139. font-size: 12px;
  140. line-height: 1.5;
  141. border-radius: 3px;
  142. }
  143. .icon-remove {
  144. color: #000000;
  145. }
  146. .icon-ok {
  147. color: white;
  148. }
  149. }
  150. .editable-list-container.disabled .pencil-box{
  151. display: none;
  152. }
  153. .editable-list-container .pencil-box{
  154. position: absolute;
  155. right: 5px;
  156. top: 5px;
  157. opacity: 0;
  158. -webkit-transition: all 0.3s;
  159. -o-transition: all 0.3s;
  160. transition: all 0.3s;
  161. }
  162. .editable-list-container:hover .pencil-box{
  163. opacity: 1;
  164. }
  165. .editable-list-container.edit-mode:hover .pencil-box{
  166. opacity: 0;
  167. }