_common.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. // common style
  23. .clearfix {
  24. &:before, &:after {
  25. display: table;
  26. content: " ";
  27. }
  28. &:after {
  29. clear: both;
  30. }
  31. }
  32. .list-unstyled {
  33. padding-left: 0;
  34. list-style: none;
  35. }
  36. .list-inline li {
  37. display: inline-block;
  38. padding-left: 5px;
  39. padding-right: 5px;
  40. }
  41. .hide {
  42. opacity: 0;
  43. visibility: hidden;
  44. pointer-events: none;
  45. }
  46. .pull-left {
  47. float: left;
  48. }
  49. .pull-right {
  50. float: right;
  51. }
  52. .container{
  53. width:1180px;
  54. margin:0 auto;
  55. }
  56. // vue animate
  57. .slide-down-enter-active, .slide-down-leave-active {
  58. transition: all .4s cubic-bezier(0, 1.2, 1, 0.5);
  59. opacity: .7;
  60. transform: translate3d(0, 4em, 0);
  61. }
  62. .slide-down-enter, .slide-down-leave-active {
  63. opacity: .3;
  64. transform: translate3d(0, 4em, 0);
  65. }
  66. .slide-left-enter-active, .slide-left-leave-active {
  67. transition: all .2s cubic-bezier(0, 1.2, 1, 0.5);
  68. opacity: .5;
  69. transform: translate3d(2em, 0, 0);
  70. }
  71. .slide-left-enter, .slide-left-leave-active {
  72. opacity: .3;
  73. transform: translate3d(2em, 0, 0);
  74. }
  75. .slide-right-enter-active, .slide-right-leave-active {
  76. transition: all .4s cubic-bezier(0, 1.2, 1, 0.5);
  77. opacity: .5;
  78. transform: translate3d(5em, 0, 0);
  79. }
  80. .slide-right-enter, .slide-right-leave-active {
  81. opacity: .3;
  82. transform: translate3d(5em, 0, 0);
  83. }
  84. .fade-enter-active, .fade-leave-active {
  85. transition: opacity .25s
  86. }
  87. .fade-enter, .fade-leave-active {
  88. opacity: 0
  89. }
  90. .fade-move {
  91. transition: transform .25s;
  92. }