common.scss 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  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. #cnzz_stat_icon_1267002346 {
  19. display: none;
  20. }
  21. // common style
  22. .clearfix {
  23. &:before, &:after {
  24. display: table;
  25. content: " ";
  26. }
  27. &:after {
  28. clear: both;
  29. }
  30. }
  31. .list-unstyled {
  32. padding-left: 0;
  33. list-style: none;
  34. }
  35. .list-inline li {
  36. display: inline-block;
  37. padding-left: 5px;
  38. padding-right: 5px;
  39. }
  40. .hide {
  41. opacity: 0;
  42. visibility: hidden;
  43. pointer-events: none;
  44. }
  45. .pull-left {
  46. float: left;
  47. }
  48. .pull-right {
  49. float: right;
  50. }
  51. .container {
  52. width: $container-width;
  53. margin: 0 auto;
  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. a {
  228. color: #2d8cf0;
  229. background: 0 0;
  230. text-decoration: none;
  231. outline: 0;
  232. cursor: pointer;
  233. transition: color .2s ease;
  234. }
  235. .select-adder {
  236. background:url("../../static/images/all/xiala.png") right no-repeat #fff !important;
  237. background-position-x: 100% !important;
  238. /*将默认的select选择框样式清除*/
  239. appearance:none;
  240. -moz-appearance:none;
  241. -webkit-appearance:none;
  242. -ms-appearance:none;
  243. }
  244. .select-adder::-ms-expand {
  245. display: none;
  246. }
  247. //按钮不可点击状态
  248. .el-button.is-disabled, .el-button.is-disabled:focus, .el-button.is-disabled:hover {
  249. color: #bfcbd9 !important ;
  250. cursor: not-allowed !important ;
  251. background-image: none !important ;
  252. background-color: #eef1f6 !important ;
  253. border-color: #d1dbe5 !important ;
  254. }
  255. //每项最后一步按钮不可点击状态
  256. .el-button.finish.is-disabled, .el-button.finish.is-disabled:focus, .el-button.finish.is-disabled:hover {
  257. color: #fff !important;
  258. background-color: #0076AD !important;
  259. border: none !important;
  260. opacity: .7;
  261. cursor: not-allowed !important;
  262. }
  263. //隐藏加载数据状态
  264. .el-input__icon{
  265. display: none;
  266. }
  267. //表单样式
  268. form .el-form-item {
  269. margin: 0 auto 16px;
  270. width: 360px;
  271. }
  272. form .el-form-item:last-child {
  273. margin: -8px auto 0!important;
  274. }
  275. form .el-form-item .el-form-item__content {
  276. margin-left: 0 !important;
  277. }
  278. form .el-form-item .el-form-item__content .el-input__inner{
  279. padding: 0 0 0 18px;
  280. width: 360px;
  281. height: 44px;
  282. line-height: 44px;
  283. font-size: 14px;
  284. color: #000;
  285. border-radius: 0;
  286. }
  287. form .el-form-item .el-form-item__content .msg{
  288. float: left;
  289. width: 210px;
  290. }
  291. form .el-form-item .el-form-item__content .msg .el-input__inner{
  292. width: 210px;
  293. }
  294. form .el-form-item .el-form-item__content .code{
  295. float: right;
  296. width: 130px;
  297. height: 44px;
  298. font-size: 14px;
  299. color: #5a5a5a;
  300. background: #f4f4f4;
  301. border: 1px solid #dcdcdc;
  302. border-radius: 0;
  303. cursor: pointer;
  304. }
  305. form .el-form-item .el-form-item__content .el-form-item__error {
  306. position: absolute;
  307. top: 15px;
  308. left: 380px;
  309. padding-top: 0;
  310. width: 100%;
  311. text-align: left;
  312. }
  313. form .el-form-item .el-form-item__content .finish{
  314. display: inline-block;
  315. margin-top: 34px;
  316. width: 360px;
  317. height: 44px;
  318. line-height: 44px;
  319. font-size: 16px;
  320. color: #fff;
  321. background: #0076AD;
  322. border-radius: 3px;
  323. border: none;
  324. }
  325. form .el-form-item .el-form-item__content .el-checkbox{
  326. float: left;
  327. margin-left: 50px;
  328. }
  329. form .el-form-item .el-form-item__content .el-checkbox .el-checkbox__inner{
  330. width: 16px;
  331. height: 16px;
  332. border: 1px solid #ccc;
  333. border-radius: 0;
  334. }
  335. //我同意按钮
  336. .el-checkbox__input.is-checked .el-checkbox__inner{
  337. background: transparent !important;
  338. border-color: #bfbfbf !important;
  339. }
  340. .el-checkbox__input.is-focus .el-checkbox__inner{
  341. border-color: #bfbfbf !important;
  342. }
  343. .el-checkbox__inner{
  344. border-color: #bfbfbf !important;
  345. }
  346. .el-checkbox__inner::after{
  347. border: 2px solid #0076AD !important;
  348. border-top: 0 !important;
  349. border-left: 0 !important;
  350. }
  351. //登录页面样式
  352. //错误提示框变红隐藏
  353. .login-form .el-form-item.is-error .el-input__inner, .login-form .el-form-item.is-error .el-input__inner:focus, .login-form .el-form-item.is-error .el-textarea__inner, .login-form .el-form-item.is-error .el-textarea__inner:focus, .login-form .el-message-box__input input.invalid, .login-form .el-message-box__input input.invalid:focus {
  354. border-color: #ccc!important;
  355. }
  356. .login-form .el-input__inner{
  357. padding-left: 30px !important;
  358. width: 306px !important;
  359. height: 34px !important;
  360. line-height: 34px !important;
  361. }
  362. .login-form .el-form-item{
  363. position: relative;
  364. width: 306px !important;
  365. }
  366. .login-form .el-form-item i.fa{
  367. position: absolute;
  368. top: 4px;
  369. left: 0;
  370. z-index: 2;
  371. display: block;
  372. width: 30px;
  373. height: 34px;
  374. line-height: 34px;
  375. text-align: center;
  376. pointer-events: none;
  377. color: #999;
  378. font-size: 18px;
  379. }
  380. .login-form .captcha{
  381. overflow: hidden;
  382. }
  383. .login-form .code-input{
  384. float: left;
  385. width: 150px !important;
  386. }
  387. .login-form .code-input .el-input__inner{
  388. padding: 0 !important;
  389. height: 34px !important;
  390. line-height: 34px !important;
  391. width: 150px !important;
  392. }
  393. .login-form img.code-img{
  394. margin-top: 5px;
  395. float: left;
  396. height: 30px;
  397. width: 108px;
  398. }
  399. .login-form a.code-click{
  400. float: right;
  401. display: inline-block;
  402. margin-top: 5px;
  403. width: 45px;
  404. line-height: 15px;
  405. text-align: right;
  406. font-size: 12px;
  407. color: #666;
  408. vertical-align: middle;
  409. cursor: pointer;
  410. }
  411. .login-form a.code-click:hover{
  412. color: #5078cb;
  413. text-decoration: none;
  414. outline: 0;
  415. }
  416. .login-form .el-form-item a.forget{
  417. color: #5078cb;
  418. font-size: 12px;
  419. }
  420. .login-form .el-form-item.text-right{
  421. }
  422. .login-form .text-right .el-form-item__content{
  423. height: 20px;
  424. line-height: 16px;
  425. }
  426. .login-form .el-form-item .login{
  427. width: 306px;
  428. height: 34px;
  429. line-height: 30px;
  430. }
  431. //个人注册错误框颜色
  432. form .el-form-item .el-form-item__content div.active .el-input__inner{
  433. border-color: #f56c6c !important;
  434. }
  435. //个人注册正确框颜色
  436. form .el-form-item .el-form-item__content div.correct .el-input__inner{
  437. border-color: #67c23a !important;
  438. }
  439. //登录选择企业弹出框
  440. .dialog .el-dialog__header{
  441. display: none;
  442. }
  443. .dialog .el-dialog__body{
  444. padding: 0;
  445. }
  446. //企业认证
  447. form .el-form-item.padding55 .el-form-item__content .el-input__inner{
  448. padding-left: 55px;
  449. }
  450. form .el-form-item.padding45 .el-form-item__content .el-input__inner{
  451. padding-left: 45px;
  452. }