banner2.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. @banner2: banner2;
  2. .@{banner2} {
  3. // 如果在第一屏且导航位置为 relative, 一屏为 height: calc(100vh - 64px);
  4. width: 100%;
  5. height: ~"calc(100vh - 64px)";
  6. position: relative;
  7. border-color: #666;
  8. background: #fff;
  9. .banner-anim {
  10. height: 100%;
  11. }
  12. & .queue-anim-leaving {
  13. position: relative !important;
  14. width: auto;
  15. }
  16. .banner-user-elem {
  17. height: 100%;
  18. color: #fff;
  19. position: relative;
  20. overflow: hidden;
  21. }
  22. .bg {
  23. width: 100%;
  24. height: 100%;
  25. position: absolute;
  26. top: 0;
  27. left: 0;
  28. overflow: hidden;
  29. background-size: cover;
  30. }
  31. .bg0 {
  32. background: url("https://zos.alipayobjects.com/rmsportal/bXNBIyzSLHaycUGDzwLG.jpg") center;
  33. background-size: cover;
  34. height: 100%;
  35. width: ~"calc(100% + 100px)";
  36. left: -50px;
  37. &:before {
  38. width: 100%;
  39. height: 100%;
  40. content: '';
  41. background: fade(#000, 35);
  42. display: block;
  43. }
  44. }
  45. .banner-user-elem .banner-user-title {
  46. font-size: 22px;
  47. top: 40%;
  48. }
  49. .banner-user-elem .banner-user-text {
  50. top: 40%;
  51. }
  52. &-page {
  53. position: relative;
  54. top: 20%;
  55. max-width: 1200px;
  56. margin: auto;
  57. }
  58. &-text-wrapper {
  59. display: inline-block;
  60. font-size: 14px;
  61. color: @template-text-color-light;
  62. width: 400px;
  63. text-align: left;
  64. .@{banner2}-title {
  65. left: 0;
  66. margin: auto;
  67. position: relative;
  68. font-size: 56px;
  69. }
  70. & .@{banner2}-content {
  71. word-wrap: break-word;
  72. margin: auto auto 20px;
  73. font-weight: lighter;
  74. }
  75. button {
  76. border: 1px solid #fff;
  77. color: #fff;
  78. background: transparent;
  79. transition: background .45s @ease-in, border .45s @ease-in;
  80. line-height: 36px;
  81. font-size: 16px;
  82. height: 36px;
  83. & span {
  84. text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  85. transition: text-shadow .45s @ease-out;
  86. }
  87. &:hover {
  88. color: #fff;
  89. border-color: @primary-color;
  90. background: @primary-color;
  91. transition: background .45s @ease-out, border .45s @ease-out;
  92. & span {
  93. text-shadow: 1px 1px 3px rgba(0, 0, 0, .35);
  94. }
  95. }
  96. }
  97. }
  98. &-icon {
  99. bottom: 20px;
  100. font-size: 24px;
  101. position: absolute;
  102. z-index: 10;
  103. left: 50%;
  104. margin-left: -12px;
  105. color: @template-text-color-light;
  106. }
  107. }
  108. .banner-anim-thumb-default span {
  109. width: 10px;
  110. height: 10px;
  111. border-radius: 10px;
  112. background: rgba(255, 255, 255, .5);
  113. }
  114. @media screen and (max-width: 414px) {
  115. .@{banner2} {
  116. &-text-wrapper {
  117. width: 90%;
  118. left: 0;
  119. margin: auto;
  120. padding: 0;
  121. text-align: center;
  122. display: block;
  123. .logo {
  124. width: 90%;
  125. left: 0;
  126. }
  127. }
  128. }
  129. }