cus-client-common.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. @import "../base/utils";
  2. /************************ 通用class样式 author: TX date:2020-07-30 **********************/
  3. /* 页面样式 */
  4. body, html, #app {
  5. padding: 0;
  6. margin: 0;
  7. @include setFontStyle(0);
  8. }
  9. /* 去掉列表前的标识, li 会继承 */
  10. ol,ul,dl,dt,dd{list-style:none;margin: 0;padding: 0;}
  11. /* 让标题都自定义, 适应多个系统应用 */
  12. h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
  13. /* 外边距 */
  14. .m5{margin:5px;}
  15. .m10 {margin: 10px;}
  16. .m15 {margin: 15px;}
  17. .m20 {margin: 20px;}
  18. .m25 {margin: 25px;}
  19. .m30 {margin: 30px;}
  20. .m35 {margin: 35px;}
  21. .m40 {margin: 40px;}
  22. /* 外边距 上下边距 左右居中 */
  23. .ma0{margin:0 auto;}
  24. .ma5{margin:5px auto;}
  25. .ma10{margin:10px auto;}
  26. .ma15{margin:15px auto;}
  27. .ma20{margin:20px auto;}
  28. .ma25{margin:25px auto;}
  29. .ma30{margin:30px auto;}
  30. .ma35{margin:35px auto;}
  31. .ma40{margin:40px auto;}
  32. /* 上外边距 */
  33. .mt5 {margin-top: 5px;}
  34. .mt10 {margin-top: 10px;}
  35. .mt15 {margin-top: 15px;}
  36. .mt20 {margin-top: 20px;}
  37. .mt25 {margin-top: 25px;}
  38. .mt30 {margin-top: 30px;}
  39. .mt35 {margin-top: 35px;}
  40. .mt40 {margin-top: 40px;}
  41. /* 下外边距 */
  42. .mb5 {margin-bottom: 5px;}
  43. .mb10 {margin-bottom: 10px;}
  44. .mb15 {margin-bottom: 15px;}
  45. .mb20 {margin-bottom: 20px;}
  46. .mb25 {margin-bottom: 25px;}
  47. .mb30 {margin-bottom: 30px;}
  48. .mb35 {margin-bottom: 35px;}
  49. .mb40 {margin-bottom: 40px;}
  50. /* 左外边距 */
  51. .ml5 {margin-left: 5px;}
  52. .ml10 {margin-left: 10px;}
  53. .ml15 {margin-left: 15px;}
  54. .ml20 {margin-left: 20px;}
  55. .ml25 {margin-left: 25px;}
  56. .ml30 {margin-left: 30px;}
  57. .ml35 {margin-left: 35px;}
  58. .ml40 {margin-left: 40px;}
  59. /* 右外边距 */
  60. .mr5 {margin-right: 5px;}
  61. .mr10 {margin-right: 10px;}
  62. .mr15 {margin-right: 15px;}
  63. .mr20 {margin-right: 20px;}
  64. .mr25 {margin-right: 25px;}
  65. .mr30 {margin-right: 30px;}
  66. .mr35 {margin-right: 35px;}
  67. .mr40 {margin-right: 40px;}
  68. /*文字对齐方式*/
  69. .tl{text-align:left;}
  70. .tr{text-align:right;}
  71. .tc{text-align:center;}
  72. /*字体大小*/
  73. .fs_12{font-size:12px;}
  74. .fs_14{font-size:14px;}
  75. .fs_16{font-size:16px;}
  76. .fs_18{font-size:18px;}
  77. .fs_20{font-size:20px;}
  78. .fs_22{font-size:22px;}
  79. .fs_24{font-size:24px;}
  80. .fs_26{font-size:26px;}
  81. .fs_28{font-size:28px;}
  82. .fs_30{font-size:30px;}
  83. /* 清除浮动-父级使用 */
  84. .fn-clear:after{content:" ";height:0;display:block;font-size:0;visibility:hidden;clear:both;}
  85. /* 文本超出省略号显示 (一行) ------ 使用方式:@include single-line-ellipsis; */
  86. @mixin single-line-ellipsis {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;}
  87. /* 文本超出省略号显示 (多行),括号里传行数 ------ 使用方式:@include multi-line-ellipsis(3); */
  88. @mixin multi-line-ellipsis($rows){-webkit-line-clamp:$rows;text-overflow: ellipsis;-o-text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;display: -webkit-box;white-space: normal !important;-webkit-box-orient: vertical;}
  89. /************************ 网站公共class样式 author: TX date:2020-07-30 **********************/
  90. /* 网站主体部分 */
  91. .client-container{width: 1200px;margin: 0 auto;}
  92. /* 网站头部导航栏 */
  93. .client-head{
  94. width: 100%;
  95. height: 80px;
  96. background: #fff;
  97. //头部布局
  98. .head-layout{display: flex;justify-content: space-between;}
  99. //头部导航
  100. .el-menu--horizontal{
  101. border: 0;
  102. >.el-menu-item {
  103. color: rgba(0,0,0,0.85);
  104. @include setFontStyle(-2);
  105. height: 80px;
  106. line-height: 80px;
  107. margin: 0 10px;
  108. padding: 0 6px;
  109. }
  110. >.el-menu-item.is-active{
  111. @include setThemeColorBase("color", 0);
  112. @include setThemeColorBase("border-color", 0);
  113. border-width:4px;
  114. }
  115. }
  116. //头部左侧区域
  117. .head-left{
  118. display: flex;
  119. //头部图标
  120. a{width: 160px;height: 80px;display: inline-block;background-image: url("~@/assets/images/client/component/" + "nav-logo.svg");background-repeat: no-repeat;background-position: center;}
  121. }
  122. //头部右侧区域
  123. .head-right{
  124. i{width: 19px;height: 24px;display:inline-block;background-image: url("~@/assets/images/client/component/" + "nav-phone.svg");margin-right: 8px;vertical-align: middle;}
  125. span{@include setFontStyle(-2);line-height: 80px;color: rgba(0,0,0,0.85);}
  126. }
  127. }
  128. /* 网站头部导栏 - 面包屑 */
  129. .client-breadcrumb-box {
  130. width: 1200px;
  131. font-size: 16px;
  132. margin: 24px auto;
  133. .st-breadcrumb{
  134. margin-left: 24px;
  135. a:last-child{
  136. .breadcrumb-div::after{display: none;}
  137. }
  138. }
  139. .st-breadcrumb-item {display: inline-block;vertical-align: middle;color: #4a73fd;text-decoration: none;}
  140. .st-breadcrumb-item:hover {cursor: pointer;}
  141. .st-breadcrumb-item:after {width: 11px;height: 16px;content: '';display: inline-block;padding: 0 16px;vertical-align: middle;zoom:0.8;-moz-transform:scale(0.8,0.8);
  142. background-image: url("~@/assets/images/client/component/" + "breadcrumb-icon.svg");background-repeat: no-repeat;background-position: center;}
  143. .breadcrumb-div{display: inline-block;vertical-align: middle;}
  144. .st-breadcrumb-item-last {display: inline-block;text-decoration: none;color: #333;vertical-align: middle;}
  145. .st-breadcrumb-item-last:hover {cursor: default;}
  146. // IE11兼容写法
  147. @media all and (-ms-high-contrast:none) {
  148. *::-ms-backdrop, .st-breadcrumb-item-last { margin-left: -10px;}
  149. }
  150. // IE10兼容写法
  151. @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  152. .st-breadcrumb-item-last { margin-left: -10px;}
  153. }
  154. }
  155. /* 网站底部footer */
  156. .client-footer{
  157. background: #1E2534;
  158. //footer内容区域
  159. .contact-box{
  160. padding-top: 40px;
  161. .contact-left-box{
  162. display: inline-block;
  163. dl{display: inline-block;margin-right: 48px;margin-bottom: 40px;vertical-align: top;}
  164. dt{@include setFontStyle(-4);color: #FFFFFF;margin-bottom: 24px;}
  165. dd{@include setFontStyle(-6);color: rgba(255,255,255,0.64);margin-bottom: 8px;}
  166. dd:hover{color: rgba(255,255,255,0.85);cursor: pointer}
  167. }
  168. .contact-right-box{
  169. width: 170px;
  170. float: right;
  171. h3{@include setFontStyle(4);color: #FFF;margin-bottom: 16px;}
  172. p{@include setFontStyle(-6);color: rgba(255,255,255,0.64);margin-bottom: 8px;}
  173. a{@include setFontStyle(-6);color: #2B5CFD;}
  174. a:hover{cursor: pointer;}
  175. }
  176. }
  177. //友情链接区域
  178. .link-box{
  179. border: 1px solid #979797;
  180. border-right: 0;
  181. border-left: 0;
  182. padding: 32px 0;
  183. h4{@include setFontStyle(-4);color: #FFF;float: left;margin-right: 48px;line-height: 22px;}
  184. .link-a-box{
  185. margin-left: 114px;
  186. line-height: 22px;
  187. a{@include setFontStyle(-6);color: rgba(255,255,255,0.54);display:inline-block;margin-right: 32px;white-space: nowrap;}
  188. a:hover{color: rgba(255,255,255,0.85);cursor: pointer;}
  189. }
  190. }
  191. //底部版权
  192. h5{@include setFontStyle(-8);color: #B8B8B8;text-align: center;padding: 16px 0 24px;}
  193. }
  194. /* 网站通用详情页布局 */
  195. .client-details-page{
  196. background: #f9faff;
  197. width: 100%;
  198. .client-details-wrap{
  199. width: 1200px;
  200. margin: 24px auto;
  201. padding: 32px;
  202. box-sizing: border-box;
  203. background: #FFFFFF;
  204. border-radius: 8px;
  205. min-height: calc(100vh - 170px);
  206. >h1{@include setFontStyle(0);color: rgba(0,0,0,0.85);margin-bottom: 16px;text-align: center}
  207. p{
  208. margin-bottom: 24px;
  209. i{width: 20px;height: 20px;display: inline-block;margin-right: 14px;vertical-align: middle;background-image: url("~@/assets/images/client/industry/" + "industry-details-time.svg");}
  210. i[type="visits"]{background-image: url("~@/assets/images/client/industry/" + "industry-details-visits.svg");}
  211. span{@include setFontStyle(-6);display:inline-block;color: #666;margin-right: 60px;vertical-align: middle;}
  212. }
  213. .client-content-box{
  214. line-height: 24px;
  215. color: rgba(0,0,0,0.64);
  216. @include setFontStyle(-6);
  217. p{line-height: 22px;}
  218. img{max-width: 100%;}
  219. h1,h2,h3,h4,h5,h6,p{margin-bottom: 10px;}
  220. }
  221. }
  222. }