common.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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. .el-pagination .el-pager li.active{
  280. background-color: #5078cb;
  281. border-color: #337ab7;
  282. }
  283. .el-tree-node__content .el-tree-node__expand-icon{
  284. font-family: "iconfont" !important;
  285. font-size: 14px;
  286. font-style: normal;
  287. -webkit-font-smoothing: antialiased;
  288. width: inherit;
  289. height: inherit;
  290. border: inherit;
  291. font-weight: bold;
  292. text-shadow: -1px 0px 0 #333;
  293. margin-right: 3px !important;
  294. }
  295. div.el-tree-node__content{
  296. line-height: 36px;
  297. height: 36px;
  298. }
  299. .el-tree-node__children .el-tree-node__content{
  300. padding-left: 8px !important;
  301. }
  302. .el-tree-node__expand-icon.is-leaf{
  303. visibility: hidden;
  304. }
  305. .el-tree-node__expand-icon:before{
  306. content: "\E621";
  307. }
  308. .el-pagination{
  309. margin-bottom: 15px;
  310. }
  311. // 留言板弹出框
  312. .dialog .el-dialog__header{
  313. display: none;
  314. }
  315. .dialog .el-dialog__body{
  316. padding: 0 !important;
  317. }