Application.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. html,
  2. body {
  3. height: 100%;
  4. margin: 0;
  5. }
  6. body.launching {
  7. @include background-size(cover);
  8. background-color: $auth-background-color;
  9. background-image: $auth-background-image;
  10. background-position: center;
  11. &::after {
  12. @include animation(rotate-animation 1s linear infinite);
  13. @include transform-origin(50% 50%);
  14. @include background-size(cover);
  15. background-image: url(get-resource-path('images/loading.gif'));
  16. background-position: center;
  17. content: '';
  18. position: absolute;
  19. margin-top: -15px;
  20. margin-left: -15px;
  21. top: 65%;
  22. left: 50%;
  23. width: 64px;
  24. height: 64px;
  25. }
  26. }
  27. @mixin btn-border($background-color) {
  28. background-color: $background-color;
  29. border-color: $background-color !important;
  30. .x-btn-inner-default-toolbar-small {
  31. color: $lightest-color;
  32. }
  33. &:hover {
  34. background-color: transparent;
  35. .x-btn-inner-default-toolbar-small,
  36. .x-btn-inner-default-small {
  37. color: $background-color;
  38. }
  39. .x-btn-icon-el-default-small,
  40. .x-btn-icon-el-default-toolbar-small {
  41. color: $background-color;
  42. }
  43. }
  44. }
  45. .x-menu-header {
  46. z-index: 0 !important;
  47. }
  48. // .x-css-shadow {
  49. // box-shadow: none !important;
  50. // }
  51. .shadow {
  52. @include box-shadow(rgba(0, 0, 0, 0.2) 0 1px 2px);
  53. }
  54. .x-fa {
  55. display: inline-block;
  56. }
  57. .alignRight {
  58. float: right;
  59. }
  60. .boldFont {
  61. font-weight: bold;
  62. }
  63. // default font-family
  64. .x-body,
  65. .x-btn-inner,
  66. .x-panel-body-default,
  67. .x-toolbar-text-default,
  68. .x-form-item-label-default,
  69. .x-form-text-default,
  70. .x-column-header,
  71. .x-grid-item,
  72. .x-grid-row-summary .x-grid-cell, .x-grid-row-summary .x-grid-rowwrap, .x-grid-row-summary .x-grid-cell-rowbody,
  73. .x-boundlist-item {
  74. // font-family: 'pingFangSC-Regular';
  75. }
  76. .x-form-item-label-default {
  77. // font-family: PingFangSC-Medium;
  78. font-size: 14px;
  79. color: #505363;
  80. text-align: right;
  81. line-height: 20px;
  82. }
  83. // toolbar button
  84. .x-btn-default-toolbar-small {
  85. color: #fff;
  86. background-color: #F8FCFF;
  87. border-color: #35BAF6;
  88. border-radius: 2px;
  89. min-width: 86px;
  90. transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  91. .x-btn-inner-default-toolbar-small {
  92. color: #34BAF6 ;
  93. }
  94. }
  95. .x-form-item-default.x-form-readonly {
  96. opacity: 1;
  97. .x-form-item-label-default {
  98. color: #8C97B2;
  99. }
  100. .x-form-text-default {
  101. background: #EEF1F7;
  102. }
  103. .x-form-trigger {
  104. background: #EEF1F7;
  105. }
  106. }
  107. .x-btn.x-btn-menu-active.x-btn-default-toolbar-small,
  108. .x-btn.x-btn-pressed.x-btn-default-toolbar-small,
  109. .x-btn-over.x-btn-default-toolbar-small {
  110. border-color: #1592ca;
  111. background: #34BAF6;
  112. opacity: 0.72;
  113. }
  114. .x-btn-over{
  115. .x-btn-wrap{
  116. .x-btn-button{
  117. .x-btn-inner{
  118. color:#fff;
  119. }
  120. }
  121. }
  122. }
  123. .x-toolbar {
  124. .x-btn-over.x-btn-plain-toolbar-small{
  125. .x-btn-wrap{
  126. .x-btn-button{
  127. .x-btn-inner{
  128. color: #606060;
  129. }
  130. }
  131. }
  132. }
  133. }
  134. .x-btn-pressed{
  135. .x-btn-wrap{
  136. .x-btn-button{
  137. .x-btn-inner{
  138. color:#fff !important;
  139. }
  140. }
  141. }
  142. }
  143. .x-btn-showicon{
  144. .x-btn-wrap{
  145. .x-btn-button{
  146. .x-btn-inner{
  147. color:#999 !important;
  148. }
  149. }
  150. }
  151. }
  152. .x-keyboard-mode .x-btn-focus.x-btn-default-toolbar-small {
  153. background: inherit;
  154. opacity: 1;
  155. box-shadow: none;
  156. border:1px solid #34BAF6;
  157. }
  158. .x-segmented-button-item .x-keyboard-mode .x-btn-focus.x-btn-default-toolbar-small {
  159. background: #34BAF6 !important;
  160. border:1px solid #34BAF6 !important;
  161. opacity: 1;
  162. box-shadow: none;
  163. }
  164. .x-keyboard-mode .x-btn-focus.x-btn-over.x-btn-default-toolbar-small {
  165. background: #34BAF6;
  166. box-shadow: none;
  167. }
  168. .x-btn-wrap-default-toolbar-small.x-btn-arrow-right:after {
  169. color: #79d3dc;
  170. }
  171. .x-btn.x-btn-disabled.x-btn-default-toolbar-small {
  172. border-color: #E6E6E6;
  173. background: #E6E6E6;
  174. .x-btn-inner-default-toolbar-small {
  175. color: #606060;
  176. }
  177. }
  178. .x-btn-default-small,
  179. .x-btn-default-toolbar-small{
  180. border-radius: 2px !important;
  181. }
  182. .x-formpanel-btn-orange {
  183. border-color: #f67f00;
  184. background: linear-gradient(to bottom,#da7101 0,#f67f00 100%) !important;
  185. .x-btn-inner-default-toolbar-small{
  186. color:#fff !important;
  187. }
  188. }
  189. .x-formpanel-btn-blue {
  190. background: #34BAF6;
  191. border-color: #34BAF6;
  192. .x-btn-inner-default-toolbar-small{
  193. color:#fff !important;
  194. }
  195. }
  196. .x-formpanel-btn-white {
  197. border: 1px solid #c1c1c1 !important;
  198. //border-radius: 2px;
  199. //box-shadow: 0 1px 1px rgba(0,0,0,.15);
  200. /*background: #fff;
  201. background: -moz-linear-gradient(top,#fff,#f4f4f4);
  202. background: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#f4f4f4));
  203. background: -o-linear-gradient(top,#fff,#f4f4f4);
  204. background: -ms-linear-gradient(top,#fff 0,#f4f4f4 100%);
  205. background: linear-gradient(top,#fff,#f4f4f4); */
  206. // border-color: #fff;
  207. // background: linear-gradient(to bottom,#fff,#f4f4f4 100%) !important;
  208. .x-btn-inner-default-toolbar-small{
  209. color: #555;
  210. }
  211. }
  212. .x-grid-body {
  213. border-width: 1px;
  214. border-color: #ABDAFF;
  215. }
  216. .x-column-header {
  217. background: #E5F7FF;
  218. border-right: 1px solid #ABDAFF;
  219. // &:last-child {
  220. // border: none;
  221. // }
  222. }
  223. .x-column-header-text-inner {
  224. font-size: 14px;
  225. color: #505363;
  226. letter-spacing: 0;
  227. text-align: center;
  228. line-height: 20px;
  229. // font-family: PingFangSC-Medium;
  230. font-weight: normal;
  231. }
  232. .x-panel-default-outer-border-trbl {
  233. border-color: #ABDAFF !important;
  234. }
  235. .x-form-trigger-wrap-default {
  236. border-color: #CACFE1;
  237. border-radius: 2px;
  238. }
  239. .x-form-trigger-default {
  240. color: #5E5E5E;
  241. }
  242. .x-grid-header-ct {
  243. border-top-color: #ABDAFF !important;
  244. border-right-color: #ABDAFF !important;
  245. border-left-color: #ABDAFF !important;
  246. border-top-width: 1px;
  247. border-right-width: 1px;
  248. border-left-width: 1px;
  249. }
  250. .x-panel-default-outer-border-rl,
  251. .x-panel-default-outer-border-rbl {
  252. border-color: #ABDAFF !important;
  253. }
  254. .x-grid-item-alt {
  255. background-color: #F1F9FF;
  256. }
  257. .x-grid-locked .x-grid-inner-locked {
  258. border-width: 0 1px 0 0;
  259. }
  260. .x-grid-scrollbar-clipper-locked, .x-grid-scrollbar-locked {
  261. // border-color: #ABDAFF;
  262. border-color: transparent;
  263. }
  264. .x-grid-inner-locked {
  265. // border-color: #ABDAFF;
  266. border-color: transparent;
  267. }
  268. .x-grid-with-row-lines .x-grid-item:first-child {
  269. border-color: #ffffff;
  270. }
  271. .x-grid-with-row-lines .x-grid-item {
  272. // border-color: #ABDAFF;
  273. border-color: transparent;
  274. }
  275. .x-keyboard-mode .x-grid-item-focused .x-grid-cell-inner:before {
  276. border: none;
  277. }
  278. .x-grid-item-over {
  279. background-color: #bde5f7;
  280. }
  281. .x-grid-cell-special {
  282. // border-color: #ABDAFF;
  283. border-color: transparent;
  284. }
  285. .x-grid-item-selected {
  286. background-color: #ffefbb;
  287. }
  288. /*滚动条样式*/
  289. div::-webkit-scrollbar {
  290. width: 10px;
  291. height: 10px;
  292. }
  293. div::-webkit-scrollbar-thumb {
  294. background: #C2EAFC;
  295. border-radius: 8px;
  296. &:hover {
  297. background: #74c3e6;
  298. }
  299. }
  300. div::-webkit-scrollbar-track {
  301. background: #fff;
  302. border: 1px solid #e5e5e5;
  303. border-radius: 8px;
  304. }
  305. /**date-picker*/
  306. .x-datepicker-month .x-btn-inner {
  307. font-size: 12px;
  308. }
  309. .x-datepicker {
  310. width: 212px;
  311. }
  312. .x-datepicker-column-header {
  313. width: 30px;
  314. }
  315. .x-datepicker-column-header-inner {
  316. line-height: 25px;
  317. padding: 0 9px 0 0;
  318. }
  319. .x-datepicker-cell {
  320. text-align: right;
  321. border: 1px solid #fff;
  322. }
  323. .x-datepicker-date {
  324. padding: 0 7px 0 0;
  325. cursor: pointer;
  326. line-height: 23px;
  327. }
  328. .x-datepicker-footer, .x-monthpicker-buttons {
  329. padding: 3px 0;
  330. text-align: center;
  331. }
  332. .x-monthpicker {
  333. width: 212px;
  334. border-width: 1px;
  335. }
  336. .x-monthpicker-months {
  337. width: 105px;
  338. }
  339. .x-monthpicker-item-inner {
  340. margin: 0 5px 0 5px;
  341. line-height: 22px;
  342. }
  343. .x-monthpicker-months .x-monthpicker-item {
  344. width: 52px;
  345. }
  346. .x-monthpicker-years {
  347. width: 105px;
  348. }
  349. .x-monthpicker-years .x-monthpicker-item {
  350. width: 52px;
  351. }
  352. .x-monthpicker-yearnav {
  353. height: 34px;
  354. }
  355. .x-monthpicker-yearnav-button-ct {
  356. width: 52px;
  357. }
  358. .x-monthpicker-yearnav-button {
  359. height: 12px;
  360. width: 12px;
  361. cursor: pointer;
  362. margin-top: 11px;
  363. }
  364. .x-datepicker-footer .x-btn-default-toolbar-small{
  365. padding: 2px 2px 2px 2px;
  366. min-width: 56px;
  367. }
  368. .x-monthpicker-buttons .x-btn-default-toolbar-small{
  369. padding: 2px 2px 2px 2px;
  370. min-width: 56px;
  371. }
  372. /** charts **/
  373. .x-tip-default {
  374. background-color: #485465;
  375. border-color: #485465;
  376. }
  377. /** datepicker icon **/
  378. .x-form-field-date .x-form-date-trigger {
  379. background: #F1F9FF;
  380. border-left: 1px solid #D2D6E5;
  381. &:before {
  382. // content: "\e80f";
  383. // font-family: font-saas;
  384. color: #5AC6F8;
  385. }
  386. }
  387. /** toast **/
  388. .x-toast-success{
  389. border-color: #adeaa4 !important;
  390. border-radius: 4px !important;
  391. .x-window-body{
  392. background: #f3ffef !important;
  393. border-color: #f3ffef !important;
  394. }
  395. .x-autocontainer-innerCt{
  396. word-wrap: break-word;
  397. color: #3ec12a;
  398. padding: 4px 30px 4px 46px !important;
  399. }
  400. .x-autocontainer-innerCt::before{
  401. margin-left: -19px;
  402. margin-top: 1px;
  403. content: ' ';
  404. width: 16px;
  405. position: absolute;
  406. display: block;
  407. height: 16px;
  408. background: url(../../../../resources/images/default/toast_over.png) 0 0 no-repeat;
  409. background-size: 16px 16px;
  410. background-position: center;
  411. }
  412. }
  413. .x-toast-error{
  414. border-color: #f39d70 !important;
  415. border-radius: 4px !important;
  416. .x-window-body{
  417. background: #fdefcd !important;
  418. border-color: #fdefcd !important;
  419. }
  420. .x-autocontainer-innerCt{
  421. word-wrap: break-word;
  422. color: #ea800e;
  423. padding: 4px 30px 4px 46px !important;
  424. }
  425. .x-autocontainer-innerCt::before{
  426. margin-left: -19px;
  427. margin-top: 1px;
  428. content: ' ';
  429. width: 16px;
  430. position: absolute;
  431. display: block;
  432. height: 16px;
  433. background: url(../../../../resources/images/default/toast_close.png) 0 0 no-repeat;
  434. background-size: 16px 16px;
  435. background-position: center;
  436. }
  437. }
  438. /** tab **/
  439. .x-tab-default.x-tab-active .x-tab-close-btn {
  440. color: #34BAF6;
  441. }
  442. /** tabclosemenu **/
  443. .x-menu.x-tab-close-menu {
  444. & > div > div > div.x-box-inner.x-box-scroller-body-vertical.x-scroller > div > div > a > span {
  445. margin-left: 28px;
  446. }
  447. }
  448. /** responsivecolumn **/
  449. .x-responsivecolumn {
  450. padding: 0;
  451. & > * {
  452. margin: 0;
  453. }
  454. }
  455. // @mixin responsivecolumn-item($width: 100%) {
  456. // width: #{$width};
  457. // }
  458. .big-100 {
  459. // width: 100%;
  460. @include responsivecolumn-item(100%);
  461. }
  462. .big-60 {
  463. // width: 60%;
  464. @include responsivecolumn-item(60%);
  465. }
  466. .big-50 {
  467. float: left;
  468. // width: 50%;
  469. @include responsivecolumn-item(50%);
  470. }
  471. .big-40 {
  472. float: left;
  473. // width: 40%;
  474. @include responsivecolumn-item(40%);
  475. }
  476. .big-33 {
  477. float: left;
  478. // width: 33.33%;
  479. @include responsivecolumn-item(33.33%);
  480. }
  481. .big-20 {
  482. float: left;
  483. // width: 20%;
  484. @include responsivecolumn-item(20%);
  485. }
  486. //--------------------------------------------------------
  487. // And classes for small-size responsive items
  488. .x-responsivecolumn-small {
  489. > .small-100 {
  490. float: left;
  491. // width: 100%;
  492. @include responsivecolumn-item(100%);
  493. }
  494. > .small-50 {
  495. float: left;
  496. // width: 50%;
  497. @include responsivecolumn-item(50%);
  498. }
  499. }