_common.scss 12 KB

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