global.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. @charset "UTF-8";
  2. @import "base/reset";
  3. @import "base/mixins";
  4. // @import "base/ui-dialog";
  5. @import "plugin/nprogress";
  6. @import "plugin/swiper";
  7. .fade-transition {
  8. transition: opacity .3s ease;
  9. }
  10. .fade-enter, .fade-leave {
  11. opacity: 0;
  12. }
  13. .fade-enter-active, .fade-leave-active {
  14. transition: opacity .4s ease;
  15. }
  16. .fade-enter, .fade-leave-to {
  17. opacity: 0
  18. }
  19. .common-transit{
  20. transition: transform 300ms;
  21. }
  22. .common-enter, .common-leave-active {
  23. opacity: 0;
  24. transform: translate3d(0, 300px, 0);
  25. }
  26. .common-leave-active {
  27. position: absolute;
  28. }
  29. html,body{
  30. min-height: 100%;
  31. // background-color: #efefef;
  32. font-family: Microsoft Yahei,sans-serif;
  33. font-size: px2rem(24);
  34. a{
  35. text-decoration: none;
  36. }
  37. }
  38. #app{
  39. height: 100%;
  40. -webkit-overflow-scrolling: touch;
  41. }
  42. .hidden{
  43. display: none;
  44. }
  45. .o-wrap{
  46. position: relative;
  47. height: 100%;
  48. }
  49. .o-wrapout{
  50. width: 100%;
  51. height: 100%;
  52. }
  53. .hide_nav .o-container {
  54. padding-bottom: 0;
  55. }
  56. .hide_nav .o-nav {
  57. display: none;
  58. }
  59. .o-container{
  60. height: 100%;
  61. position: relative;
  62. background-color: #efefef;
  63. &:after{
  64. position: fixed;
  65. z-index: 11;
  66. content: "";
  67. top: 0;
  68. left: 0;
  69. right: 0;
  70. bottom: 0;
  71. background: #000;
  72. opacity: 0;
  73. display: none;
  74. transition: opacity .2s ease;
  75. }
  76. &.o-rendering{
  77. &:after{
  78. opacity: 0.75;
  79. display: block;
  80. transition: opacity .2s ease;
  81. }
  82. }
  83. &.o-trans-fading{
  84. -webkit-transition: -webkit-transform .5s ease;
  85. transition: transform .5s ease;
  86. position: fixed;
  87. -webkit-transform: translate3d(100%, 0px, 0px);
  88. transform: translate3d(100%, 0px, 0px);
  89. }
  90. }