_widgets.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. .fui-button, li {
  2. transition: background-color .2s ease;
  3. }
  4. .fui-disabled,
  5. .fui-disabled .fui-widget {
  6. &:hover, &:active {
  7. background-color: transparent;
  8. }
  9. }
  10. .fui-widget {
  11. input[type=text],
  12. textarea {
  13. user-select: text;
  14. }
  15. overflow: hidden;
  16. }
  17. input::-ms-clear {
  18. display: none;
  19. }
  20. input[type=search]::-ms-clear {
  21. display: inline-block;
  22. }
  23. #tab-container .fui-button {
  24. display: inline-block;
  25. padding: 2px 5px 2px 3px;
  26. .fui-label {
  27. color: @button-text;
  28. font-size: 12px;
  29. vertical-align: middle;
  30. }
  31. &.command-button {
  32. margin-bottom: 3px;
  33. .fui-icon {
  34. width: 20px;
  35. height: 20px;
  36. margin-right: 3px;
  37. display: inline-block;
  38. vertical-align: middle;
  39. }
  40. &.large {
  41. width: 50px;
  42. height: 50px;
  43. padding: 0;
  44. .fui-icon {
  45. width: 25px;
  46. height: 25px;
  47. margin-left: 12px;
  48. margin-bottom: 3px;
  49. margin-top: 4px;
  50. }
  51. .fui-label {
  52. display: block;
  53. text-align: center;
  54. }
  55. }
  56. }
  57. &:hover {
  58. background-color: @button-hover;
  59. }
  60. &:active {
  61. background-color: @button-active;
  62. }
  63. &.fui-disabled:hover,
  64. &.fui-disabled:active {
  65. background-color: transparent;
  66. }
  67. &.active {
  68. background-color: @button-pressed;
  69. }
  70. }
  71. .command-buttonset {
  72. .fui-toggle-button {
  73. &:hover {
  74. background-color: @button-hover;
  75. .fui-disabled& {
  76. background-color: transparent;
  77. }
  78. }
  79. &:active {
  80. transform: scale(0.9);
  81. &:hover {
  82. background-color: @button-active;
  83. .fui-disabled& {
  84. background-color: transparent;
  85. }
  86. }
  87. }
  88. &.fui-button-pressed {
  89. background-color: @button-pressed;
  90. }
  91. }
  92. }
  93. .command-inputmenu, .fui-input-menu {
  94. & > .fui-input-button {
  95. position: relative;
  96. .fui-input {
  97. width: 100px;
  98. }
  99. border-color: @border-color;
  100. margin: 2px 0;
  101. & > .fui-button {
  102. position: absolute;
  103. left: auto;
  104. right: 0;
  105. top: 0;
  106. bottom: 0;
  107. width: 20px;
  108. border-left: 1px solid @border-color;
  109. padding: 0 !important;
  110. .fui-icon {
  111. position: absolute;
  112. left: auto;
  113. right: 6px;
  114. top: 50%;
  115. margin-top: -2px;
  116. .triangle-top(@button-text, 8px, 4px);
  117. }
  118. }
  119. }
  120. }
  121. #tab-container .fui-drop-panel {
  122. padding-right: 10px;
  123. border-color: @border-color;
  124. & > .fui-button {
  125. position: absolute;
  126. display: block;
  127. right: 1px;
  128. left: auto;
  129. top: 1px;
  130. bottom: 1px;
  131. width: 10px;
  132. padding: 0;
  133. &:hover {
  134. background: @button-hover;
  135. }
  136. &:active {
  137. background: @button-active;
  138. }
  139. & > .fui-icon {
  140. position: absolute;
  141. .triangle-top(@button-text, 6px, 4px);
  142. top: auto;
  143. bottom: 2px;
  144. left: 2px;
  145. }
  146. }
  147. }
  148. .fui-drop-panel-popup {
  149. background: white;
  150. box-shadow: 0 0 3px rgba(0,0,0,.3);
  151. padding-right: 5px;
  152. padding-bottom: 5px;
  153. max-width: 300px;
  154. }
  155. #tab-container .fui-button-menu {
  156. border: 1px solid transparent;
  157. width: 40px;
  158. height: 50px;
  159. display: inline-block;
  160. margin-top: 2px;
  161. &:hover {
  162. border-color: @button-hover;
  163. }
  164. &.fui-disabled:hover {
  165. border-color: transparent;
  166. }
  167. .fui-button:first-child {
  168. display: block;
  169. width: 40px;
  170. height: 25px;
  171. padding: 0;
  172. }
  173. .fui-button:last-child {
  174. display: block;
  175. width: 40px;
  176. height: 25px;
  177. padding: 0;
  178. .fui-label {
  179. font-size: 12px;
  180. }
  181. .fui-icon {
  182. .triangle-top(@button-text, 6px, 4px);
  183. display: block;
  184. position: absolute;
  185. top: auto;
  186. bottom: -2px;
  187. left: 50%;
  188. margin-left: -3px;
  189. }
  190. }
  191. }
  192. .close-button {
  193. display: block;
  194. width: 20px;
  195. height: 20px;
  196. cursor: pointer;
  197. border-radius: 100%;
  198. &:hover {
  199. background-color: hsl(0, 73%, 64%);
  200. }
  201. &:active {
  202. background-color: hsl(0, 73%, 60%);
  203. }
  204. &:after {
  205. content: 'x';
  206. display: block;
  207. width: 16px;
  208. height: 16px;
  209. font-family: inherit;
  210. color: white;
  211. font-size: 14px;
  212. position: absolute;
  213. left: 2px;
  214. top: 1px;
  215. line-height: 16px;
  216. text-align: center;
  217. }
  218. }
  219. .fui-dialog {
  220. & > .fui-panel-content {
  221. padding: 0;
  222. }
  223. box-shadow: 0 0 5px rgba(0,0,0, .15);
  224. border: none;
  225. .fui-dialog-head {
  226. background-color: @ui-color;
  227. color: white;
  228. h1 {
  229. font-size: 14px;
  230. font-weight: normal;
  231. }
  232. padding: 5px;
  233. .fui-close-button {
  234. .fui-close-button-icon {
  235. display: none;
  236. background: none;
  237. }
  238. position: absolute;
  239. right: 6px;
  240. top: 7px;
  241. left: auto;
  242. }
  243. }
  244. .fui-dialog-body {
  245. padding: 20px;
  246. p {
  247. margin: 0;
  248. height: 40px;
  249. }
  250. input[type=text],
  251. input[type=url] {
  252. border: 1px solid @border-color;
  253. outline: none;
  254. height: 20px;
  255. padding: 2px 4px;
  256. width: 300px;
  257. vertical-align: middle;
  258. }
  259. }
  260. .fui-dialog-foot {
  261. position: absolute;
  262. bottom: 0;
  263. left: 0;
  264. right: 0;
  265. top: auto;
  266. height: 50px;
  267. border-top: 1px solid @border-color;
  268. text-align: right;
  269. .fui-button {
  270. width: 80px;
  271. height: 30px;
  272. line-height: 30px;
  273. text-align: center;
  274. &:hover {
  275. background: lighten(@ui-color, 70%);
  276. }
  277. &:active {
  278. background: lighten(@ui-color, 55%);
  279. }
  280. &.fui-xdialog-ok-btn {
  281. background: @ui-color;
  282. &:hover {
  283. background: lighten(@ui-color, 10%);
  284. }
  285. &:active {
  286. background: darken(@ui-color, 3%);
  287. }
  288. border-color: transparent;
  289. .fui-label {
  290. color: white;
  291. }
  292. }
  293. border: 1px solid @border-color;
  294. border-radius: 4px;
  295. margin: 8px 8px 0 0;
  296. .fui-label {
  297. font-size: 14px;
  298. line-height: 30px;
  299. height: 30px;
  300. }
  301. }
  302. }
  303. }
  304. #tab-container .fui-select-menu.command-selectmenu > .fui-panel-content {
  305. padding-right: 10px;
  306. border: 1px solid transparent;
  307. width: auto;
  308. &:hover {
  309. border-color: @border-color;
  310. }
  311. & > .fui-button {
  312. position: absolute;
  313. display: block;
  314. .dock;
  315. padding: 0;
  316. &:hover {
  317. background: fadeOut(@button-hover, 90%);
  318. }
  319. &:active {
  320. background: fadeOut(@button-active, 50%);
  321. }
  322. & > .fui-icon {
  323. position: absolute;
  324. .triangle-top(@button-text, 6px, 4px);
  325. top: auto;
  326. bottom: 2px;
  327. right: 2px;
  328. left: auto;
  329. }
  330. }
  331. & > .fui-select-menu-container {
  332. border: 1px solid #ccc;
  333. box-shadow: 3px 3px 6px rgba(0, 0, 0, .3);
  334. }
  335. }
  336. .fui-popup-menu, .fui-menu.fui-ppanel-position {
  337. position: absolute;
  338. z-index: 100000;
  339. min-width: 160px;
  340. padding: 5px 0;
  341. font-size: 12px;
  342. list-style: none;
  343. background-color: #ffffff;
  344. border-radius: 0;
  345. box-shadow: 0 1px 15px rgba(0, 0, 0, 0.3);
  346. background-clip: padding-box;
  347. font-family: Arial, "Heiti SC", "Microsoft Yahei";
  348. overflow: hidden;
  349. &:empty {
  350. display: none !important;
  351. }
  352. .fui-panel-content, .fui-menu {
  353. border: none;
  354. display: block;
  355. }
  356. .fui-item {
  357. .fui-label, .fui-icon {
  358. height: 25px;
  359. line-height: 25px;
  360. }
  361. display: block;
  362. padding: 2px 15px 2px 30px;
  363. height: 25px;
  364. line-height: 25px;
  365. clear: both;
  366. font-weight: normal;
  367. color: #333333;
  368. white-space: nowrap;
  369. text-decoration: none;
  370. font-size: 12px;
  371. overflow: hidden;
  372. transition: none;
  373. &.fui-item-selected {
  374. background-color: white;
  375. position: relative;
  376. /* .fui-icon {
  377. width: 20px;
  378. height: 20px;
  379. position: absolute;
  380. left: 3px;
  381. top: 5px;
  382. background: url(../images/icons.png) 0 -1200px;
  383. } */
  384. }
  385. &:hover, :focus {
  386. background: #0099f2; /* Old browsers */
  387. /* IE9 SVG, needs conditional override of 'filter' to 'none' */
  388. background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwOTlmMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjNDA5NmVlIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwNzZkZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
  389. background: -moz-linear-gradient(top, #0099f2 0%, #4096ee 0%, #0076dd 100%); /* FF3.6+ */
  390. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0099f2), color-stop(0%,#4096ee), color-stop(100%,#0076dd)); /* Chrome,Safari4+ */
  391. background: -webkit-linear-gradient(top, #0099f2 0%,#4096ee 0%,#0076dd 100%); /* Chrome10+,Safari5.1+ */
  392. background: -o-linear-gradient(top, #0099f2 0%,#4096ee 0%,#0076dd 100%); /* Opera 11.10+ */
  393. background: -ms-linear-gradient(top, #0099f2 0%,#4096ee 0%,#0076dd 100%); /* IE10+ */
  394. background: hsl(222, 14%, 41%); /* W3C */
  395. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0099f2', endColorstr='#0076dd',GradientType=0 ); /* IE6-8 */
  396. color: white;
  397. .fui-label {
  398. color: white;
  399. }
  400. }
  401. .menu-label {
  402. display: inline-block;
  403. }
  404. .shortcut {
  405. float: right;
  406. margin-left: 20px;
  407. .shortcut-key {
  408. font-size: 12px;
  409. border: 1px solid #CCC;
  410. height: 10px;
  411. line-height: 10px;
  412. margin-left: 3px;
  413. }
  414. + .shortcut:after {
  415. content: 'or';
  416. position: relative;
  417. left: 10px;
  418. }
  419. }
  420. }
  421. .divider, .fui-spliter {
  422. height: 1px;
  423. margin: 5px 0;
  424. overflow: hidden;
  425. background-color: #e5e5e5;
  426. padding: 0;
  427. &:first-child, &:last-child {
  428. display: none;
  429. }
  430. }
  431. }