common.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. // scroll
  2. ::-webkit-scrollbar {
  3. width: .5rem;
  4. height: .5rem;
  5. background: hsla(0, 0%, 100%, 0.6);
  6. }
  7. ::-webkit-scrollbar-track {
  8. border-radius: 0;
  9. }
  10. ::-webkit-scrollbar-thumb {
  11. border-radius: 0;
  12. background-color: rgba(95,95,95,.4);
  13. transition: background-color .15s;
  14. &:hover {
  15. background-color: rgba(95,95,95, .7);
  16. }
  17. }
  18. // common style
  19. .clearfix {
  20. &:before, &:after {
  21. display: table;
  22. content: " ";
  23. }
  24. &:after {
  25. clear: both;
  26. }
  27. }
  28. .list-unstyled {
  29. padding-left: 0;
  30. list-style: none;
  31. }
  32. .list-inline li {
  33. display: inline-block;
  34. padding-left: 5px;
  35. padding-right: 5px;
  36. }
  37. .hide {
  38. opacity: 0;
  39. visibility: hidden;
  40. pointer-events: none;
  41. }
  42. .pull-left {
  43. float: left;
  44. }
  45. .pull-right {
  46. float: right;
  47. }
  48. .container {
  49. width: $container-width;
  50. margin: 0 auto;
  51. }
  52. .dl-horizontal dt {
  53. float: left;
  54. width: 160px;
  55. overflow: hidden;
  56. clear: left;
  57. text-align: right;
  58. text-overflow: ellipsis;
  59. white-space: nowrap;
  60. }
  61. .dl-horizontal dd {
  62. display: block;
  63. margin-left: 180px;
  64. &:before, &:after {
  65. display: table;
  66. content: " ";
  67. }
  68. &:after {
  69. clear: both;
  70. }
  71. }
  72. .dropdown {
  73. position: relative;
  74. .dropdown-toggle {
  75. cursor: pointer;
  76. }
  77. .dropdown-menu {
  78. position: absolute;
  79. left: 0;
  80. top: 100%;
  81. min-width: 100%;
  82. display: none;
  83. background-color: $white;
  84. z-index: 100;
  85. }
  86. &:hover {
  87. .dropdown-menu {
  88. display: block;
  89. }
  90. }
  91. }
  92. // button
  93. .btn {
  94. display: inline-block;
  95. height: 36px;
  96. line-height: 1;
  97. padding: 3px 12px;
  98. margin: 0;
  99. border: 1px solid transparent;
  100. text-align: center;
  101. white-space: nowrap;
  102. vertical-align: middle;
  103. -ms-touch-action: manipulation;
  104. touch-action: manipulation;
  105. cursor: pointer;
  106. -webkit-user-select: none;
  107. -moz-user-select: none;
  108. -ms-user-select: none;
  109. &.btn-default {
  110. color: $text;
  111. background-color: $white;
  112. border-color: $dividers;
  113. }
  114. &.btn-primary {
  115. color: $white;
  116. background-color: $primary;
  117. border-color: $primary;
  118. }
  119. }
  120. // form
  121. .form-control {
  122. -webkit-appearance: none;
  123. -moz-appearance: none;
  124. appearance: none;
  125. background-color: $white;
  126. background-image: none;
  127. border: $border;
  128. color: $text;
  129. display: inline-block;
  130. font-size: inherit;
  131. height: 36px;
  132. line-height: 1;
  133. outline: none;
  134. padding: 3px 10px;
  135. width: 100%;
  136. &.input-primary {
  137. border-color: $primary;
  138. }
  139. }
  140. .input-group {
  141. position: relative;
  142. display: inline-table;
  143. width: 100%;
  144. border-collapse: separate;
  145. .form-control, .input-group-btn {
  146. display: table-cell;
  147. }
  148. .input-group-addon, .input-group-btn {
  149. position: relative;
  150. width: 1px;
  151. white-space: nowrap;
  152. vertical-align: middle;
  153. }
  154. .form-control {
  155. position: relative;
  156. z-index: 2;
  157. float: left;
  158. width: 100%;
  159. }
  160. .input-group-btn {
  161. .btn {
  162. position: relative;
  163. }
  164. }
  165. }
  166. // vue animate
  167. .slide-down-enter-active, .slide-down-leave-active {
  168. transition: all .4s cubic-bezier(0, 1.2, 1, 0.5);
  169. opacity: .7;
  170. transform: translate3d(0, 4em, 0);
  171. }
  172. .slide-down-enter, .slide-down-leave-active {
  173. opacity: .3;
  174. transform: translate3d(0, 4em, 0);
  175. }
  176. .slide-left-enter-active, .slide-left-leave-active {
  177. transition: all .2s cubic-bezier(0, 1.2, 1, 0.5);
  178. opacity: .5;
  179. transform: translate3d(2em, 0, 0);
  180. }
  181. .slide-left-enter, .slide-left-leave-active {
  182. opacity: .3;
  183. transform: translate3d(2em, 0, 0);
  184. }
  185. .slide-right-enter-active, .slide-right-leave-active {
  186. transition: all .4s cubic-bezier(0, 1.2, 1, 0.5);
  187. opacity: .5;
  188. transform: translate3d(5em, 0, 0);
  189. }
  190. .slide-right-enter, .slide-right-leave-active {
  191. opacity: .3;
  192. transform: translate3d(5em, 0, 0);
  193. }
  194. .fade-enter-active, .fade-leave-active {
  195. transition: opacity .25s
  196. }
  197. .fade-enter, .fade-leave-active {
  198. opacity: 0
  199. }
  200. .fade-move {
  201. transition: transform .25s;
  202. }
  203. .page-enter-active, .page-leave-active {
  204. transition: opacity .25s
  205. }
  206. .page-enter, .page-leave-active {
  207. opacity: 0
  208. }
  209. .module-enter-active, .module-leave-active {
  210. transition: opacity .25s
  211. }
  212. .module-enter, .module-leave-active {
  213. opacity: 0
  214. }
  215. .aside-enter-active {
  216. transition: opacity .25s cubic-bezier(1, -1.17, 1, -1.17);
  217. }
  218. .aside-leave-active {
  219. transition: opacity 0s
  220. }
  221. .aside-enter, .aside-leave-active {
  222. opacity: 0
  223. }
  224. // 轮播
  225. .swiper-pagination-bullet{
  226. width: 12px !important;
  227. height: 12px !important;
  228. opacity: 1 !important;
  229. background: none !important;
  230. border: #fff 1px solid;
  231. }
  232. .swiper-pagination-bullet.swiper-pagination-bullet-active{
  233. background: #fff !important;
  234. }
  235. .swiper-pagination-fraction, .swiper-pagination-custom, .swiper-container-horizontal > .swiper-pagination-bullets{
  236. bottom: 20px !important;
  237. }
  238. .swiper-button-prev i,.swiper-button-next i{
  239. font-size: 40px;
  240. color: #fff;
  241. opacity: 1;
  242. font-weight: 900;
  243. text-shadow: 2px 0px 5px #333;
  244. }
  245. .swiper-button-prev,.swiper-button-next{
  246. background: none !important;
  247. width: 40px !important;
  248. height: 80px !important;
  249. line-height: 80px;
  250. margin-top: -45px !important;
  251. opacity: .6;
  252. }
  253. .swiper-button-prev:hover,.swiper-button-next:hover{
  254. opacity: 1;
  255. }
  256. .menu-title{
  257. line-height: 30px;
  258. font-size: 14px;
  259. margin-bottom: 10px;
  260. }
  261. .menu-title a {
  262. color: #5078cb;
  263. font-size: 14px;
  264. }
  265. /* 产品分类调整*/
  266. .el-tree {
  267. border: none !important;
  268. /*min-height: 300px;*/
  269. }
  270. .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content,.el-tree-node:hover{
  271. background: none !important;
  272. }
  273. .el-tree-node__content:hover{
  274. background: none !important;
  275. }
  276. .el-tree-node__content:hover span{
  277. color: #5078cb;
  278. }
  279. .is-current>div.el-tree-node__content:first-child{
  280. color: #5078cb;
  281. }
  282. .el-pagination .el-pager li.active{
  283. background-color: #5078cb;
  284. border-color: #337ab7;
  285. }
  286. .el-tree-node__content .el-tree-node__expand-icon{
  287. font-family: "iconfont" !important;
  288. font-size: 14px;
  289. font-style: normal;
  290. -webkit-font-smoothing: antialiased;
  291. width: inherit;
  292. height: inherit;
  293. border: inherit;
  294. font-weight: bold;
  295. text-shadow: -1px 0px 0 #333;
  296. margin-right: 3px !important;
  297. }
  298. div.el-tree-node__content{
  299. line-height: 36px;
  300. height: 36px;
  301. }
  302. .el-tree-node__children .el-tree-node__content{
  303. padding-left: 8px !important;
  304. }
  305. .el-tree-node__expand-icon.is-leaf{
  306. visibility: hidden;
  307. }
  308. .el-tree-node__expand-icon:before{
  309. content: "\E621";
  310. }
  311. .el-pagination{
  312. margin-bottom: 15px;
  313. }
  314. // 留言板弹出框
  315. .dialog .el-dialog__header{
  316. display: none;
  317. }
  318. .dialog .el-dialog__body{
  319. padding: 0 !important;
  320. }
  321. /*查看大图*/
  322. #image-box .x-floating-wrap,.image-box .x-floating-wrap {
  323. position: fixed;
  324. z-index: 99998;
  325. background: #000;
  326. top: 0;
  327. left: 0;
  328. width: 100%;
  329. height: 100%;
  330. opacity: 0.5;
  331. }
  332. #image-box,.image-box{
  333. display:table; overflow:hidden; margin-left:50px; _position:relative; width: 1200px;height: 700px;
  334. position: fixed;
  335. top: 50%;
  336. margin-top: -350px;
  337. left: 50%;
  338. margin-left: -600px;
  339. z-index: 2020;
  340. }
  341. #image-box .x-floating,.image-box .x-floating {
  342. vertical-align:middle !important;
  343. display:table-cell;
  344. text-align:center;
  345. _position:absolute;
  346. _top:50%; _left:50%;
  347. top: inherit !important;
  348. left: inherit !important;
  349. }
  350. #image-box .x-floating img ,.image-box .x-floating img {
  351. margin: auto auto;
  352. max-width: 970px !important;
  353. max-height: 600px !important;
  354. -webkit-user-select: none;
  355. -moz-user-select: none;
  356. -ms-user-select: none;
  357. user-select: none;
  358. }
  359. #image-box .x-floating-wrap,.image-box .x-floating-wrap{
  360. z-index: 1000000 !important;
  361. }
  362. #item-content{
  363. color:#fff; display:inline-block; _position:relative; _top:-50%; _left:-50%;
  364. position: relative;
  365. z-index: 10000000;
  366. }
  367. #item-content div.x-close-wrap{
  368. position: absolute;
  369. right: -15px;
  370. line-height: 30px;
  371. top: -13px;
  372. color: #fff;
  373. width: 35px;
  374. height: 35px;
  375. background: rgba(0, 0, 0, 0.5);
  376. border-radius: 100%;
  377. opacity: 1;
  378. margin: 0;
  379. z-index: 100000;
  380. min-height: initial;
  381. text-align: center;
  382. }
  383. #item-content div.x-close-wrap a{
  384. position: relative;
  385. left: 0;
  386. bottom: 0;
  387. font-size: 34px;
  388. color: #fff;
  389. }
  390. #item-content div.x-close-wrap a:hover{
  391. color: #fff !important;
  392. }
  393. #item-content div.x-close-wrap:hover{
  394. cursor: pointer;
  395. opacity: .9;
  396. }
  397. #item-content div.x-close-wrap img{
  398. width: 30px !important;
  399. height: 30px !important;
  400. }
  401. #item-content .img{
  402. position: relative;
  403. z-index: 10;
  404. }
  405. /*查看大图*/
  406. #image-box .x-floating-wrap,.image-box .x-floating-wrap {
  407. position: fixed;
  408. z-index: 99998;
  409. background: #000;
  410. top: 0;
  411. left: 0;
  412. width: 100%;
  413. height: 100%;
  414. opacity: 0.5;
  415. }
  416. #image-box,.image-box{
  417. display:table; overflow:hidden; margin-left:50px; _position:relative; width: 1200px;height: 700px;
  418. position: fixed;
  419. top: 50%;
  420. margin-top: -350px;
  421. left: 50%;
  422. margin-left: -600px;
  423. z-index: 2000;
  424. }
  425. #image-box .x-floating,.image-box .x-floating {
  426. vertical-align:middle !important;
  427. display:table-cell;
  428. text-align:center;
  429. _position:absolute;
  430. _top:50%; _left:50%;
  431. top: inherit !important;
  432. left: inherit !important;
  433. }
  434. #image-box .x-floating img ,.image-box .x-floating img {
  435. margin: auto auto;
  436. max-width: 970px !important;
  437. max-height: 600px !important;
  438. -webkit-user-select: none;
  439. -moz-user-select: none;
  440. -ms-user-select: none;
  441. user-select: none;
  442. }
  443. #image-box .x-floating-wrap,.image-box .x-floating-wrap{
  444. z-index: 1000000 !important;
  445. }
  446. #item-content{
  447. color:#fff; display:inline-block; _position:relative; _top:-50%; _left:-50%;
  448. position: relative;
  449. z-index: 10000000;
  450. }
  451. #item-content div.x-close-wrap{
  452. position: absolute;
  453. right: -15px;
  454. line-height: 30px;
  455. top: -13px;
  456. color: #fff;
  457. width: 35px;
  458. height: 35px;
  459. background: rgba(0, 0, 0, 0.5);
  460. border-radius: 100%;
  461. opacity: 1;
  462. margin: 0;
  463. z-index: 100000;
  464. min-height: initial;
  465. text-align: center;
  466. }
  467. #item-content div.x-close-wrap a{
  468. position: relative;
  469. left: 0;
  470. bottom: 0;
  471. font-size: 34px;
  472. color: #fff;
  473. }
  474. #item-content div.x-close-wrap a:hover{
  475. color: #fff !important;
  476. }
  477. #item-content div.x-close-wrap:hover{
  478. cursor: pointer;
  479. opacity: .9;
  480. }
  481. #item-content div.x-close-wrap img{
  482. width: 30px !important;
  483. height: 30px !important;
  484. }
  485. #item-content .img{
  486. position: relative;
  487. z-index: 10;
  488. }
  489. .select-adder {
  490. background:url("/images/all/xiala.png") right no-repeat #fff !important;
  491. background-position-x: 100% !important;
  492. }
  493. .componentDetail .el-dialog--tiny{
  494. width: 320px !important;
  495. }
  496. .componentDetail .el-dialog__body{
  497. padding: 14px !important;
  498. }