config_history_flow.less 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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. #config_history_flow {
  20. .version-slider {
  21. .flow-element {
  22. .version-box .box {
  23. font-size: 13px;
  24. }
  25. .arrow-box {
  26. margin-left: 5px;
  27. }
  28. }
  29. }
  30. .version-info-bar {
  31. width: 960px;
  32. }
  33. }
  34. #config_history_flow {
  35. margin-top: -5px;
  36. .version-slider {
  37. width: 100%;
  38. height: 69px;
  39. margin: 5px 0;
  40. .flow-element {
  41. height: 69px;
  42. width: 15.2%;
  43. max-width: 146px;
  44. .version-box {
  45. position: relative;
  46. height: 90%;
  47. }
  48. .version-box .box {
  49. cursor: pointer;
  50. width: 92%;
  51. height: 100%;
  52. background-color: #ffffff;
  53. -webkit-border-radius: 4px;
  54. -moz-border-radius: 4px;
  55. border-radius: 4px;
  56. border: 1px solid #d2d9dd;
  57. font-size: 11px;
  58. .top-label {
  59. min-width: 20px;
  60. padding: 0px 2px;
  61. }
  62. .author,
  63. .content {
  64. padding: 0px 2px;
  65. text-align: center;
  66. color: #555555;
  67. display: block;
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. white-space: nowrap;
  71. }
  72. .content {
  73. max-width: 97% !important;
  74. }
  75. .author {
  76. max-width: 75% !important;
  77. }
  78. .current-label {
  79. text-align: center;
  80. padding: 2px 5px;
  81. }
  82. .stack-label {
  83. margin-right: 6px;
  84. text-align: right;
  85. line-height: 11px;
  86. }
  87. }
  88. .version-box .version-popover {
  89. display: none;
  90. position: absolute;
  91. bottom: 50px;
  92. left: -45px;
  93. z-index: 1000;
  94. float: left;
  95. width: 300px;
  96. padding: 8px;
  97. list-style: none;
  98. background-color: #ffffff;
  99. border: 1px solid #c3c3c3;
  100. -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  101. -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  102. box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  103. -webkit-background-clip: padding-box;
  104. -moz-background-clip: padding;
  105. background-clip: padding-box;
  106. font-size: 13px;
  107. .content {
  108. padding: 1px 5px 15px 5px;
  109. text-align: left;
  110. .notes{
  111. overflow-wrap: break-word;
  112. word-wrap: break-word;
  113. white-space: pre-wrap;
  114. }
  115. .date{
  116. color: #808080;
  117. font-size: 11px;
  118. white-space: nowrap;
  119. }
  120. }
  121. .version-operations-buttons .btn {
  122. font-size: 13px;
  123. }
  124. }
  125. .version-box:hover{
  126. .box {
  127. background-color: #e6f1f6;
  128. }
  129. }
  130. .version-box .box.displayed {
  131. background-color: #e6f1f6;
  132. .content {
  133. color: #444444;
  134. font-weight: bold;
  135. }
  136. }
  137. .version-box .box.grayedOut {
  138. background-color: #f4f4f4;
  139. border: 1px solid #f4f4f4;
  140. .author,
  141. .content {
  142. color: #a6a6a6;
  143. }
  144. .current-label .label,
  145. .top-label .label {
  146. opacity: .5;
  147. }
  148. }
  149. }
  150. .first {
  151. width: 14%;
  152. margin-left: 0px;
  153. .arrow-box {
  154. display: none;
  155. }
  156. .version-box .box {
  157. width: 100%;
  158. }
  159. }
  160. .icon-chevron-box {
  161. margin-top: 15px;
  162. width: 4%;
  163. cursor: pointer;
  164. .icon-chevron-right,
  165. .icon-chevron-left{
  166. color: #d2d9dd;
  167. }
  168. .icon-chevron-left:hover,
  169. .icon-chevron-right:hover{
  170. color: #808080;
  171. }
  172. &.disabled {
  173. cursor: not-allowed;
  174. }
  175. }
  176. }
  177. .version-info-bar-wrapper {
  178. position: fixed;
  179. z-index: 2;
  180. width: 747px;
  181. }
  182. @media (min-width: 1200px) {
  183. .version-info-bar-wrapper {
  184. width: 960px;
  185. }
  186. }
  187. .version-info-bar {
  188. background-image: -moz-linear-gradient(top, @top-nav-bg-color-from, @top-nav-bg-color-to);
  189. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@top-nav-bg-color-from), to(@top-nav-bg-color-to));
  190. background-image: -webkit-linear-gradient(top, @top-nav-bg-color-from, @top-nav-bg-color-to);
  191. background-image: -o-linear-gradient(top, @top-nav-bg-color-from, @top-nav-bg-color-to);
  192. background-image: linear-gradient(to bottom, @top-nav-bg-color-from, @top-nav-bg-color-to);
  193. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr= @top-nav-bg-color-from, endColorstr=@top-nav-bg-color-to); //for IE9-
  194. -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
  195. -moz-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
  196. box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1);
  197. -webkit-border-radius: 4px;
  198. -moz-border-radius: 4px;
  199. border-radius: 4px;
  200. margin: 5px 0;
  201. padding: 5px;
  202. width: 100%;
  203. .icon-remove-circle {
  204. color: #ffffff;
  205. margin-left: 10px;
  206. margin-top: 0px;
  207. display: inline-block;
  208. cursor: pointer;
  209. }
  210. .label-wrapper {
  211. line-height: 30px;
  212. margin-left: 10px;
  213. color: #d3d3d3;
  214. .label {
  215. font-size: 14px;
  216. padding: 5px;
  217. }
  218. }
  219. .dropdown-menu {
  220. min-width: 400px;
  221. margin-top: 4px;
  222. font-size: 13px;
  223. li {
  224. line-height: 30px;
  225. .icon-caret-right {
  226. font-size: 18px;
  227. margin-right: 20px;
  228. }
  229. }
  230. li:hover {
  231. background-color: #666666;
  232. background-image: linear-gradient(to bottom, #666666, #555555);
  233. color: #ffffff;
  234. }
  235. li.not-allowed {
  236. // the version which is displayed
  237. cursor: not-allowed;
  238. color: #808080;
  239. .icon-caret-right,
  240. .dropdown-menu {
  241. display: none;
  242. }
  243. }
  244. li.not-allowed:hover {
  245. background-color: #ffffff;
  246. background-image: none;
  247. color: #808080;
  248. }
  249. div.row-fluid, a {
  250. padding-left: 10px;
  251. }
  252. }
  253. .dropdown-submenu .dropdown-menu {
  254. min-width: 200px;
  255. max-width: 300px;
  256. line-height: 20px;
  257. font-size: 13px;
  258. margin: 0px;
  259. padding: 8px;
  260. color: #333333;
  261. cursor: default;
  262. .content {
  263. padding: 1px 5px 15px 5px;
  264. .group {
  265. text-align: right;
  266. margin-top: -20px;
  267. }
  268. .date{
  269. color: #808080;
  270. font-size: 11px;
  271. white-space: nowrap;
  272. }
  273. .notes{
  274. word-wrap: break-word;
  275. overflow-wrap: break-word;
  276. white-space: pre-wrap;
  277. }
  278. }
  279. .version-operations-buttons .btn {
  280. font-size: 13px;
  281. }
  282. }
  283. }
  284. .stack {
  285. padding: 1px 10px;
  286. font-size: 11px;
  287. }
  288. }
  289. #config_history {
  290. .table {
  291. thead {
  292. background: none repeat scroll 0 0 #F8F8F8;
  293. }
  294. // service name column
  295. th:first-child,
  296. td:first-child {
  297. width: 15%;
  298. select.filter-input-width{
  299. width: 75%;
  300. }
  301. }
  302. // config group, create time columns
  303. th:first-child + th,
  304. td:first-child + td,
  305. th:first-child + th + th,
  306. td:first-child + td + td {
  307. width: 20%;
  308. word-wrap: break-word;
  309. select.filter-input-width{
  310. width: 75%;
  311. }
  312. }
  313. // author column
  314. th:first-child + th + th + th,
  315. td:first-child + td + td + td {
  316. width: 180px;
  317. input.filter-input-width {
  318. width: 55%;
  319. }
  320. }
  321. // notes column
  322. th:first-child + th + th + th + th,
  323. td:first-child + td + td + td + td {
  324. word-wrap: break-word;
  325. input.filter-input-width {
  326. width: 75%;
  327. }
  328. }
  329. td.notes .show-more-button {
  330. font-size: @default-font-size - 1;
  331. }
  332. }
  333. div.page-bar div.filtered-info {
  334. margin-left: 17px;
  335. }
  336. a {
  337. cursor: pointer;
  338. }
  339. }