global.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @charset "UTF-8";
  2. @import "base/reset";
  3. @import "base/mixins";
  4. // @import "base/ui-dialog";
  5. @import "plugin/nprogress";
  6. @import "page/share.scss";
  7. @import "page/download.scss";
  8. .fade-transition {
  9. transition: opacity .3s ease;
  10. }
  11. .fade-enter, .fade-leave {
  12. opacity: 0;
  13. }
  14. .fade-enter-active, .fade-leave-active {
  15. transition: opacity .4s ease;
  16. }
  17. .fade-enter, .fade-leave-to {
  18. opacity: 0
  19. }
  20. .common-transit{
  21. transition: transform 300ms;
  22. }
  23. .common-enter, .common-leave-active {
  24. opacity: 0;
  25. transform: translate3d(0, 300px, 0);
  26. }
  27. .common-leave-active {
  28. position: absolute;
  29. }
  30. html,body{
  31. background-color: #ffffff;
  32. font-family: Microsoft Yahei,sans-serif;
  33. height: 100%;
  34. a{
  35. text-decoration: none;
  36. }
  37. }
  38. #app{
  39. -webkit-overflow-scrolling: touch;
  40. height: 100%;
  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. position: relative;
  61. background-color: #efefef;
  62. height: 100%;
  63. max-width: 750px;
  64. margin: 0 auto;
  65. &:after{
  66. position: fixed;
  67. z-index: 11;
  68. content: "";
  69. top: 0;
  70. left: 0;
  71. right: 0;
  72. bottom: 0;
  73. background: #000;
  74. opacity: 0;
  75. display: none;
  76. transition: opacity .2s ease;
  77. }
  78. &.o-rendering{
  79. &:after{
  80. opacity: 0.75;
  81. display: block;
  82. transition: opacity .2s ease;
  83. }
  84. }
  85. &.o-trans-fading{
  86. -webkit-transition: -webkit-transform .5s ease;
  87. transition: transform .5s ease;
  88. position: fixed;
  89. -webkit-transform: translate3d(100%, 0px, 0px);
  90. transform: translate3d(100%, 0px, 0px);
  91. }
  92. }