base.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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. src: url("../fonts/Rubik-Light.ttf");
  10. src: url("../fonts/rubik-regular-webfont.ttf");
  11. src: url("../fonts/Rubik-Medium.ttf");
  12. }
  13. @font-face {
  14. font-family: DigifaceWide;
  15. src: url("../fonts/digifaw.ttf");
  16. }
  17. /* 初始化 start*/
  18. * {
  19. box-sizing: border-box;
  20. }
  21. b {
  22. font-weight: normal;
  23. }
  24. /* 声明字体变量 */
  25. $fs_3840: 64px;
  26. $fs_1920: 32px;
  27. html,
  28. body {
  29. width: 100%;
  30. height: 100%;
  31. color: #fff;
  32. @include media3840 {
  33. font-size: $fs_3840;
  34. }
  35. @include media1920 {
  36. font-size: $fs_1920;
  37. }
  38. }
  39. ul,
  40. li,
  41. dl,
  42. dt,
  43. dd {
  44. padding: 0;
  45. margin: 0;
  46. list-style: none;
  47. }
  48. h1,
  49. h2,
  50. h3,
  51. h4,
  52. div {
  53. padding: 0;
  54. margin: 0;
  55. font-weight: normal;
  56. }
  57. h3{
  58. font-size: px2em(36,64);
  59. color: #fff;
  60. }
  61. p{
  62. margin: 0;
  63. padding: 0;
  64. }
  65. /* 初始化 end */
  66. /* 公共部分样式 start*/
  67. body {
  68. position: relative;
  69. padding: 0;
  70. margin: 0;
  71. font-family: MicrosoftYaHei;
  72. overflow: hidden;
  73. &:before {
  74. position: absolute;
  75. top: 7.6%;
  76. right: 0;
  77. width: 5.2%;
  78. height: 12%;
  79. background: url(../img/circle.png) no-repeat;
  80. background-size: 100%;
  81. content: "";
  82. }
  83. }
  84. /* 最外层盒子样式 */
  85. .root-wrap {
  86. height: 100%;
  87. padding: 0 1.5%;
  88. background: url("../img/bg.png") no-repeat center top;
  89. background-size: 100% 100%;
  90. }
  91. /* 头部样式 */
  92. header {
  93. position: relative;
  94. width: 100%;
  95. height: 10%;
  96. min-height: 90px;
  97. text-align: center;
  98. padding-top: 1%;
  99. margin-bottom: 1%;
  100. >img{
  101. position: absolute;
  102. top: 10%;
  103. left: 50%;
  104. transform: translate(-50%,0);
  105. }
  106. .gifImg {
  107. width: 100%;
  108. height: 50%;
  109. position: absolute;
  110. top: 40%;
  111. min-height: 50px;
  112. overflow: hidden;
  113. text-align: center;
  114. &:after{
  115. content: '';
  116. top: 40%;
  117. left: 50%;
  118. transform: translate(-50%, 20%);
  119. display: block;
  120. position: absolute;
  121. width: 36.5%;
  122. min-width: 700px;
  123. height: 100%;
  124. background: url(../img/header.gif) no-repeat center center;
  125. background-size: 100%;
  126. }
  127. .month-tip{
  128. margin-top: 3%;
  129. font-size: px2em(24,32);
  130. color: #fff;
  131. }
  132. }
  133. .title_img {
  134. text-align: left;
  135. // margin-top: -1.5%;
  136. img {
  137. width: 19.5%;
  138. }
  139. }
  140. h2{
  141. position: absolute;
  142. top: 33%;
  143. font-size: px2em(48, 64);
  144. }
  145. h2 {
  146. left: 0;
  147. }
  148. &:before {
  149. position: absolute;
  150. bottom: 18%;
  151. left: 0;
  152. width: 100%;
  153. height: 18%;
  154. min-height: 18px;
  155. // background: url("../img/header-line.png") no-repeat;
  156. // background-size: 100%;
  157. content: "";
  158. }
  159. }
  160. /* 主体内容样式 */
  161. .main {
  162. width: 100%;
  163. height: 84%;
  164. .aside-left {
  165. position: relative;
  166. width: 22%;
  167. height: 100%;
  168. h3{
  169. padding-top: 6.5%;
  170. padding-left: 13%;
  171. }
  172. }
  173. .aside-right {
  174. position: relative;
  175. width: 22%;
  176. height: 100%;
  177. }
  178. }
  179. /* 左侧边框样式 start */
  180. .left-top {
  181. position: relative;
  182. opacity: .9;
  183. background: rgba(#121640,.5);
  184. &:after {
  185. position: absolute;
  186. right: 0;
  187. bottom: -10.4%;
  188. width: 5%;
  189. min-width: 20px;
  190. height: 13%;
  191. min-height: 50px;
  192. background: url("../img/bor1_1_xie.png") no-repeat;
  193. background-size: 100% 100%;
  194. content: "";
  195. }
  196. &:before {
  197. position: absolute;
  198. top: 0;
  199. left: 0;
  200. width: 100%;
  201. height: 106%;
  202. background: url("../img/bor1_1.png") no-repeat;
  203. background-size: 100% 100%;
  204. z-index: -1;
  205. content: "";
  206. }
  207. }
  208. .left-bottom {
  209. position: absolute;
  210. bottom: 0;
  211. opacity: .9;
  212. &:before{
  213. content: '';
  214. position: absolute;
  215. top: 5.6%;
  216. right: -2%;
  217. z-index: 100;
  218. width: 15%;
  219. height: 7%;
  220. background: url('../img/bor1_2_square.png') no-repeat;
  221. background-size: 100%;
  222. z-index: 10;
  223. }
  224. &:after {
  225. position: absolute;
  226. top: 0;
  227. left: 0;
  228. width: 100%;
  229. height: 104%;
  230. background: url("../img/bor1_2.png") no-repeat;
  231. background-size: 100% 97%;
  232. z-index: -1;
  233. content: "";
  234. }
  235. }
  236. /* 左侧边框样式 end*/
  237. /* 中间地图样式 start */
  238. .middle-map {
  239. position: relative;
  240. width: 55%;
  241. height: 100%;
  242. margin: 0 .5%;
  243. h3 {
  244. height: 9%;
  245. }
  246. .map-wrap {
  247. position: relative;
  248. opacity: .9;
  249. height: 100%;
  250. border-top: 4px solid #121e52;
  251. border-bottom: 4px solid #10144b;
  252. background: rgba(#121640,.5);
  253. background-size: 100% 100%;
  254. /* 数字展示牌 start */
  255. h3 {
  256. position: absolute;
  257. top: 4%;
  258. left: 50%;
  259. width: 100%;
  260. padding: 0 3%;
  261. -webkit-transform: translate(-50%, 0);
  262. transform: translate(-50%, 0);
  263. dl {
  264. width: 20%;
  265. padding: 0.4% 0.2% 0 0.4%;
  266. border-left: 2px solid #00bbec;
  267. dt {
  268. font-size: px2em(50,64);
  269. color: #00bbec;
  270. margin-bottom: 5%;
  271. }
  272. dd {
  273. font-family: DigifaceWide;
  274. font-size: px2em(80,64);
  275. color: #fff;
  276. }
  277. }
  278. }
  279. .title-map{
  280. position: absolute;
  281. left: 50%;
  282. top: 20%;
  283. transform: translate(-50%,0);
  284. font-size: px2em(36, 64);
  285. }
  286. .unit-wan,
  287. .unit-wanyuan,
  288. .unit-number,
  289. .unit-pc,
  290. .unit-type{
  291. &:after {
  292. display: inline-block;
  293. margin-left: 4%;
  294. font-size: 12px;
  295. color: #fff;
  296. }
  297. }
  298. .unit-wan{
  299. &:after{
  300. content: '万';
  301. }
  302. }
  303. .unit-wanyuan{
  304. &:after{
  305. content: '万元';
  306. }
  307. }
  308. .unit-number{
  309. &:after{
  310. content: '座';
  311. }
  312. }
  313. .unit-type{
  314. &:after{
  315. content: '种';
  316. }
  317. }
  318. .unit-pc{
  319. &:after{
  320. content: '批次';
  321. }
  322. }
  323. /* 数字展示牌 end */
  324. #map {
  325. height: 100%;
  326. }
  327. }
  328. }
  329. /* 中间地图样式 end */
  330. /* 右侧边框样式 start */
  331. .right-top{
  332. position: relative;
  333. background: url("../img/bg1_1.png") no-repeat top;
  334. .con{
  335. height: 42%;
  336. margin: 0 5%;
  337. font-size: px2em(28,64);
  338. font-size: .4375em;
  339. background: #081d5d;
  340. }
  341. }
  342. /* 右侧边框样式 end */
  343. /* 公共部分样式 end*/