common.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  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. .messageBoard .img-item .preview {
  323. display: block;
  324. position: absolute;
  325. top: 0;
  326. right: 0;
  327. z-index: 1000;
  328. width: 82px;
  329. height: 70px;
  330. overflow: hidden;
  331. }
  332. .messageBoard .img-item .preview img.previewImage{
  333. //background: #fff url('/images/all/msg_uploadPic.png')no-repeat center center;
  334. //max-height: 68px;
  335. //max-width: 80px;
  336. //line-height: 68px;
  337. //cursor: pointer;
  338. max-height: 82px;
  339. max-width: 70px;
  340. cursor: pointer;
  341. line-height: 70px;
  342. overflow: hidden;
  343. //width:100%;
  344. //height:0;
  345. //padding-bottom: 100%;
  346. //overflow:hidden;
  347. //background-position: center center;
  348. //background-repeat: no-repeat;
  349. //-webkit-background-size:cover;
  350. //-moz-background-size:cover;
  351. //background-size:cover;
  352. }
  353. .messageBoard .img-item input[type="file"] {
  354. position: absolute;
  355. top: 0;
  356. left: 0;
  357. width: 100%;
  358. height: 100%;
  359. text-align: center;
  360. opacity: 0;
  361. line-height: 70px;
  362. display: inline-block !important;
  363. }
  364. .messageBoard .img-item .hover-show{
  365. position: absolute;
  366. z-index: 1001;
  367. width: 82px;
  368. height: 70px;
  369. opacity: 0;
  370. top: 0;
  371. left: 0;
  372. background: rgba(0, 0, 0, 0.5);
  373. }
  374. .messageBoard .img-item:hover .hover-show{
  375. opacity: 1;
  376. }
  377. .messageBoard .img-item .hover-show .delete{
  378. position: absolute;
  379. top: 3px;
  380. right: 3px;
  381. padding: 0;
  382. width: 20px;
  383. height: 20px;
  384. float: right;
  385. text-align: center;
  386. }
  387. .messageBoard .img-item .hover-show .delete i{
  388. color: #fff;
  389. font-size: 16px;
  390. }
  391. .messageBoard .img-item .hover-show a{
  392. display: inline-block;
  393. width: 100%;
  394. height: 70px;
  395. font-size: 14px;
  396. color: #fff;
  397. text-align: center;
  398. line-height: 70px;
  399. }
  400. .messageBoard .img-item .hover-show a i{
  401. margin-right: 5px;
  402. font-size: 16px;
  403. }
  404. .messageBoard .img-item #image-box .x-floating-wrap{
  405. position: fixed;
  406. z-index: 99998;
  407. background: #000;
  408. top: 0;
  409. left: 0;
  410. width: 680px;
  411. height: 100%;
  412. opacity: 0.5;
  413. }
  414. /*查看大图*/
  415. #image-box .x-floating-wrap,.image-box .x-floating-wrap {
  416. position: fixed;
  417. z-index: 99998;
  418. background: #000;
  419. top: 0;
  420. left: 0;
  421. width: 100%;
  422. height: 100%;
  423. opacity: 0.5;
  424. }
  425. #image-box,.image-box{
  426. display:table; overflow:hidden; margin-left:50px; _position:relative; width: 1200px;height: 700px;
  427. position: fixed;
  428. top: 50%;
  429. margin-top: -350px;
  430. left: 50%;
  431. margin-left: -600px;
  432. z-index: 2020;
  433. }
  434. #image-box .x-floating,.image-box .x-floating {
  435. vertical-align:middle !important;
  436. display:table-cell;
  437. text-align:center;
  438. _position:absolute;
  439. _top:50%; _left:50%;
  440. top: inherit !important;
  441. left: inherit !important;
  442. }
  443. #image-box .x-floating img ,.image-box .x-floating img {
  444. margin: auto auto;
  445. max-width: 970px !important;
  446. max-height: 600px !important;
  447. -webkit-user-select: none;
  448. -moz-user-select: none;
  449. -ms-user-select: none;
  450. user-select: none;
  451. }
  452. #image-box .x-floating-wrap,.image-box .x-floating-wrap{
  453. z-index: 1000000 !important;
  454. }
  455. #item-content{
  456. color:#fff; display:inline-block; _position:relative; _top:-50%; _left:-50%;
  457. position: relative;
  458. z-index: 10000000;
  459. }
  460. #item-content div.x-close-wrap{
  461. position: absolute;
  462. right: -15px;
  463. line-height: 30px;
  464. top: -13px;
  465. color: #fff;
  466. width: 35px;
  467. height: 35px;
  468. background: rgba(0, 0, 0, 0.5);
  469. border-radius: 100%;
  470. opacity: 1;
  471. margin: 0;
  472. z-index: 100000;
  473. min-height: initial;
  474. text-align: center;
  475. }
  476. #item-content div.x-close-wrap a{
  477. position: relative;
  478. left: 0;
  479. bottom: 0;
  480. font-size: 34px;
  481. color: #fff;
  482. }
  483. #item-content div.x-close-wrap a:hover{
  484. color: #fff !important;
  485. }
  486. #item-content div.x-close-wrap:hover{
  487. cursor: pointer;
  488. opacity: .9;
  489. }
  490. #item-content div.x-close-wrap img{
  491. width: 30px !important;
  492. height: 30px !important;
  493. }
  494. #item-content .img{
  495. position: relative;
  496. z-index: 10;
  497. }
  498. /*查看大图*/
  499. #image-box .x-floating-wrap,.image-box .x-floating-wrap {
  500. position: fixed;
  501. z-index: 99998;
  502. background: #000;
  503. top: 0;
  504. left: 0;
  505. width: 100%;
  506. height: 100%;
  507. opacity: 0.5;
  508. }
  509. #image-box,.image-box{
  510. display:table; overflow:hidden; margin-left:50px; _position:relative; width: 1200px;height: 700px;
  511. position: fixed;
  512. top: 50%;
  513. margin-top: -350px;
  514. left: 50%;
  515. margin-left: -600px;
  516. z-index: 2000;
  517. }
  518. #image-box .x-floating,.image-box .x-floating {
  519. vertical-align:middle !important;
  520. display:table-cell;
  521. text-align:center;
  522. _position:absolute;
  523. _top:50%; _left:50%;
  524. top: inherit !important;
  525. left: inherit !important;
  526. }
  527. #image-box .x-floating img ,.image-box .x-floating img {
  528. margin: auto auto;
  529. max-width: 970px !important;
  530. max-height: 600px !important;
  531. -webkit-user-select: none;
  532. -moz-user-select: none;
  533. -ms-user-select: none;
  534. user-select: none;
  535. }
  536. #image-box .x-floating-wrap,.image-box .x-floating-wrap{
  537. z-index: 1000000 !important;
  538. }
  539. #item-content{
  540. color:#fff; display:inline-block; _position:relative; _top:-50%; _left:-50%;
  541. position: relative;
  542. z-index: 10000000;
  543. }
  544. #item-content div.x-close-wrap{
  545. position: absolute;
  546. right: -15px;
  547. line-height: 30px;
  548. top: -13px;
  549. color: #fff;
  550. width: 35px;
  551. height: 35px;
  552. background: rgba(0, 0, 0, 0.5);
  553. border-radius: 100%;
  554. opacity: 1;
  555. margin: 0;
  556. z-index: 100000;
  557. min-height: initial;
  558. text-align: center;
  559. }
  560. #item-content div.x-close-wrap a{
  561. position: relative;
  562. left: 0;
  563. bottom: 0;
  564. font-size: 34px;
  565. color: #fff;
  566. }
  567. #item-content div.x-close-wrap a:hover{
  568. color: #fff !important;
  569. }
  570. #item-content div.x-close-wrap:hover{
  571. cursor: pointer;
  572. opacity: .9;
  573. }
  574. #item-content div.x-close-wrap img{
  575. width: 30px !important;
  576. height: 30px !important;
  577. }
  578. #item-content .img{
  579. position: relative;
  580. z-index: 10;
  581. }
  582. .componentDetail .el-dialog--tiny{
  583. width: 320px !important;
  584. }
  585. .componentDetail .el-dialog__body{
  586. padding: 14px !important;
  587. }