common.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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{
  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. }
  103. .typeahead-box ul{
  104. list-style-type: none;
  105. margin: 0;
  106. padding: 0;
  107. }
  108. .typeahead-box ul li{
  109. padding: 3px 5px;
  110. display: block;
  111. cursor: pointer;
  112. }
  113. .typeahead-box ul li.selected, .typeahead-box ul li:hover{
  114. background: #eee;
  115. }
  116. .editable-list-container .actions-panel{
  117. position: absolute;
  118. right: 5px;
  119. bottom: -30px;
  120. padding: 2px 5px 5px 5px;
  121. background: #f5f5f5;
  122. border: 1px solid #e3e3e3;
  123. border-top: none;
  124. border-radius: 0 0 4px 4px;
  125. -webkit-transition: all 0.3s;
  126. -o-transition: all 0.3s;
  127. transition: all 0.3s;
  128. -ms-transform-origin: 0% 0%; /* IE 9 */
  129. -webkit-transform-origin: 0% 0%; /* Chrome, Safari, Opera */
  130. transform-origin: 0% 0%;
  131. -webkit-transform: rotateX(0deg);
  132. -ms-transform: rotateX(0deg);
  133. -o-transform: rotateX(0deg);
  134. transform: rotateX(0deg);
  135. .btn-xs {
  136. padding: 1px 5px;
  137. font-size: 12px;
  138. line-height: 1.5;
  139. border-radius: 3px;
  140. }
  141. .icon-remove {
  142. color: #000000;
  143. }
  144. .icon-ok {
  145. color: white;
  146. }
  147. }
  148. .editable-list-container.disabled .pencil-box{
  149. display: none;
  150. }
  151. .editable-list-container .pencil-box{
  152. position: absolute;
  153. right: 5px;
  154. top: 5px;
  155. opacity: 0;
  156. -webkit-transition: all 0.3s;
  157. -o-transition: all 0.3s;
  158. transition: all 0.3s;
  159. }
  160. .editable-list-container:hover .pencil-box{
  161. opacity: 1;
  162. }
  163. .editable-list-container.edit-mode:hover .pencil-box{
  164. opacity: 0;
  165. }