baseFour.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. /* 引入常用样式 */
  2. @import "mixin/_clearfix.scss";
  3. @import "func/_px2em.scss";
  4. @import "func/_px2percent.scss";
  5. @import "mixin/_media.scss";
  6. /* 字体引入 */
  7. @font-face {
  8. font-family: Rubik;
  9. font-family: DigifaceWide;
  10. src: url("../fonts/Rubik-Light.ttf");
  11. src: url("../fonts/digifaw.ttf");
  12. }
  13. /* 初始化 start*/
  14. * {
  15. box-sizing: border-box;
  16. }
  17. b {
  18. font-weight: normal;
  19. }
  20. /* 声明字体变量 */
  21. $fs_3840: 64px;
  22. $fs_1920: 32px;
  23. html,
  24. body {
  25. width: 100%;
  26. height: 100%;
  27. color: #fff;
  28. @include media3840 {
  29. font-size: $fs_3840;
  30. }
  31. @include media1920 {
  32. font-size: $fs_1920;
  33. }
  34. }
  35. ul,
  36. li,
  37. dl,
  38. dt,
  39. dd {
  40. padding: 0;
  41. margin: 0;
  42. list-style: none;
  43. }
  44. h1,
  45. h2,
  46. h3,
  47. h4,
  48. div {
  49. padding: 0;
  50. margin: 0;
  51. font-weight: normal;
  52. }
  53. h3{
  54. font-size: px2em(36,64);
  55. color: #fff;
  56. }
  57. p{
  58. margin: 0;
  59. padding: 0;
  60. }
  61. /* 初始化 end */
  62. /* 公共部分样式 start*/
  63. body {
  64. position: relative;
  65. padding: 0;
  66. margin: 0;
  67. font-family: MicrosoftYaHei;
  68. overflow: hidden;
  69. &:before {
  70. position: absolute;
  71. top: 7.6%;
  72. right: 0;
  73. width: 5.2%;
  74. height: 12%;
  75. background: url(../img/circle.png) no-repeat;
  76. background-size: 100%;
  77. content: "";
  78. }
  79. }
  80. /* 最外层盒子样式 */
  81. .root-wrap {
  82. height: 100%;
  83. padding: 0 1.5%;
  84. background: url("../img/bg.png") no-repeat center top;
  85. background-size: 100% 100%;
  86. }
  87. /* 头部样式 */
  88. header {
  89. position: relative;
  90. width: 100%;
  91. height: 10%;
  92. min-height: 90px;
  93. text-align: center;
  94. padding-top: 1%;
  95. margin-bottom: 1%;
  96. img {
  97. width: 19.5%;
  98. }
  99. h2,
  100. .month-tip {
  101. position: absolute;
  102. top: 33%;
  103. font-size: px2em(48, 64);
  104. }
  105. h2 {
  106. left: 0;
  107. }
  108. .month-tip {
  109. right: 0;
  110. }
  111. &:before {
  112. position: absolute;
  113. bottom: 0;
  114. left: 0;
  115. width: 100%;
  116. height: 18%;
  117. min-height: 18px;
  118. background: url("../img/header-line.png") no-repeat;
  119. background-size: 100%;
  120. content: "";
  121. }
  122. &:after {
  123. display: block;
  124. position: absolute;
  125. bottom: 0;
  126. left: 50%;
  127. width: 36.5%;
  128. min-width: 700px;
  129. height: 70%;
  130. min-height: 70px;
  131. background: url(../img/header.gif) no-repeat center center;
  132. background-size: 100%;
  133. transform: translate(-50%, 20%);
  134. content: "";
  135. }
  136. }
  137. /* 主体内容样式 */
  138. .main {
  139. width: 100%;
  140. height: 84%;
  141. .aside-left {
  142. position: relative;
  143. width: 22%;
  144. height: 100%;
  145. h3{
  146. padding-top: 6.5%;
  147. padding-left: 7%;
  148. padding-bottom: 3%;
  149. }
  150. }
  151. .aside-right {
  152. position: relative;
  153. width: 22%;
  154. height: 100%;
  155. }
  156. }
  157. /* 左侧边框样式 start */
  158. .left-top {
  159. position: relative;
  160. opacity: .9;
  161. background: rgba(#121640,.5);
  162. &:before {
  163. // position: absolute;
  164. // right: 0;
  165. // bottom: -10.4%;
  166. // width: 5%;
  167. // min-width: 20px;
  168. // height: 13%;
  169. // min-height: 50px;
  170. // background: url("../img/bor1_1_xie.png") no-repeat;
  171. // background-size: 100% 100%;
  172. // content: "";
  173. }
  174. &:after {
  175. // position: absolute;
  176. // top: 0;
  177. // left: 0;
  178. // width: 100%;
  179. // height: 106%;
  180. // background: url("../img/bor1_1.png") no-repeat;
  181. // background-size: 100% 100%;
  182. // content: "";
  183. }
  184. }
  185. .left-bottom {
  186. position: absolute;
  187. bottom: 0;
  188. opacity: .9;
  189. &:before{
  190. content: '';
  191. position: absolute;
  192. top: 6%;
  193. right: -2%;
  194. z-index: 100;
  195. width: 15%;
  196. height: 7%;
  197. background: url('../img/bor1_2_square.png') no-repeat;
  198. background-size: 100%;
  199. z-index: 10;
  200. }
  201. &:after {
  202. position: absolute;
  203. top: 0;
  204. left: 0;
  205. width: 100%;
  206. height: 104%;
  207. background: url("../img/bor1_2.png") no-repeat;
  208. background-size: 100% 97%;
  209. content: "";
  210. }
  211. }
  212. /* 左侧边框样式 end*/
  213. /* 中间地图样式 start */
  214. /* 中间地图样式 end */
  215. /* 右侧边框样式 start */
  216. .right-top{
  217. position: relative;
  218. background: url("../img/bg1_1.png") no-repeat top;
  219. &:after {
  220. position: absolute;
  221. top: 0;
  222. width: 100%;
  223. height: 100%;
  224. background: url("../img/bor1_3.png") no-repeat;
  225. background-size: 100% 100%;
  226. content: "";
  227. }
  228. .con{
  229. height: 42%;
  230. margin: 0 5%;
  231. font-size: px2em(28,64);
  232. font-size: .4375em;
  233. background: #081d5d;
  234. }
  235. }
  236. /* 右侧边框样式 end */
  237. /* 公共部分样式 end*/