museumPage.css 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. @charset "UTF-8";
  2. /**
  3. *
  4. * @authors Your Name (you@example.org)
  5. * @date 2017-07-22 20:09:01
  6. * @version $Id$
  7. */
  8. * {
  9. margin: 0;
  10. padding: 0;
  11. font-family: "PingFang SC", "STXihei", "Microsoft YaHei";
  12. }
  13. html {
  14. font-size: 625%;
  15. }
  16. .m-museum {
  17. width: 100%;
  18. height: 100vh;
  19. background: url('http://airsmart-web.oss-cn-shanghai.aliyuncs.com/upload/images/%E5%8D%9A%E7%89%A9%E9%A6%86/review_bg.jpg') no-repeat center center;
  20. background-size: cover;
  21. font-size: 0;
  22. }
  23. .museum-wrap {
  24. width: 72%;
  25. height: 90vh;
  26. padding: 10vh 8% 0 20%;
  27. // margin-bottom: 10vh;
  28. overflow: scroll;
  29. // background-color: rgba(166,166,166,0.1);
  30. -webkit-mask: -webkit-gradient(linear, left 75%, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
  31. }
  32. .section-row {
  33. display: inline-block;
  34. width: 33.3%;
  35. vertical-align: top;
  36. }
  37. // .section-wrap {
  38. // display: inline-block;
  39. // width: 35%;
  40. // height: 65vh;
  41. // text-align: left;
  42. // color: #e0e0e0;
  43. // position: relative;
  44. // padding-right: 0.6rem;
  45. // margin: 15vh 1rem 20vh 0;
  46. // vertical-align: top;
  47. // }
  48. .section-text {
  49. position: relative;
  50. top: 0.8rem;
  51. }
  52. .section-date {
  53. font-size: 14px;
  54. margin: 0.3rem 0;
  55. position: absolute;
  56. top: -0.8rem;
  57. left: 0;
  58. }
  59. .section-date-sub {
  60. font-size: 0.2rem;
  61. }
  62. .section-title {
  63. color: #dab379;
  64. font-size: 0.3rem;
  65. margin: 0.2rem 0;
  66. }
  67. .section-content {
  68. font-size: 0.24rem;
  69. margin: 0.2rem 0;
  70. font-weight: 300;
  71. // padding-right: 1.4rem;
  72. line-height: 24px;
  73. }
  74. .section-img img{
  75. width: 100%;
  76. -webkit-transform-origin: 0 0;
  77. transform-origin: 0 0;
  78. transition: transform 0.3s;
  79. // position: absolute;
  80. top: 2.4rem;
  81. cursor: pointer;
  82. }
  83. .section-content img{
  84. max-width: 100%;
  85. -webkit-transform-origin: 0 0;
  86. transform-origin: 0 0;
  87. transition: transform 0.3s;
  88. cursor: pointer;
  89. }
  90. .section-wrap {
  91. display: inline-block;
  92. color: #e0e0e0;
  93. position: relative;
  94. vertical-align: top;
  95. // width: 30%;
  96. width: 90%;
  97. height: auto;
  98. // background: url('http://airsmart-web.oss-cn-shanghai.aliyuncs.com/upload/images/%E5%8D%9A%E7%89%A9%E9%A6%86/mb_museum_item_bg.jpg');
  99. background-position: center center;
  100. background-color: rgba(60,60,60,0.7);
  101. background-size: cover;
  102. margin: 5vh 3.3% 0 0;
  103. padding: 0;
  104. box-shadow: 0 0 20px 0 #111;
  105. // -webkit-transition: width 0.6s;
  106. // transition: width 0.6s;
  107. }
  108. .section-wrap:hover {
  109. background-color: rgba(100,100,100,0.7);
  110. }
  111. .section-wrap:hover .section-img {
  112. background-color: rgb(100,100,100);
  113. opacity: 0.7;
  114. }
  115. .section-block {
  116. display: block;
  117. width: 25%;
  118. }
  119. .section-block .section-date {
  120. display: none;
  121. }
  122. .section-img {
  123. // display: none;
  124. position: relative;
  125. top: 0;
  126. width: 100%;
  127. margin: 0;
  128. }
  129. .section-text {
  130. width: 100%;
  131. position: relative;
  132. margin: 0;
  133. text-align: center;
  134. top: 0;
  135. }
  136. .section-date {
  137. font-size: 11px;
  138. margin: 5px 5%;
  139. font-weight: 300;
  140. line-height: 0.4rem;
  141. text-align: right;
  142. color: #888;
  143. position: relative;
  144. top: 0;
  145. }
  146. .section-title:after {
  147. content: '';
  148. display: block;
  149. clear: both;
  150. }
  151. .section-title {
  152. font-size: 0.18rem;
  153. line-height: 0.4rem;
  154. padding: 5px 5%;
  155. margin: 0;
  156. text-align: left;
  157. }
  158. .section-content {
  159. font-size: 12px;
  160. margin: 0;
  161. padding: 0 5%;
  162. opacity: 0.8;
  163. text-align: left;
  164. color: #fff;
  165. line-height: 0.26rem;
  166. }
  167. .section-content img {
  168. margin: 0 auto;
  169. }
  170. .btn-play {
  171. display: none;
  172. background: url('http://airsmart-web.oss-cn-shanghai.aliyuncs.com/upload/images/%E5%8D%9A%E7%89%A9%E9%A6%86/btn_play.png') no-repeat center center;
  173. background-size: contain;
  174. width: 0.5rem;
  175. height: 0.5rem;
  176. position: absolute;
  177. top: 5rem;
  178. left: 50%;
  179. margin: -0.25rem 0 0 -0.25rem;
  180. }
  181. .btn-details-show {
  182. width: 100%;
  183. height: 100%;
  184. position: absolute;
  185. top: 0;
  186. left: 0;
  187. cursor: pointer;
  188. }
  189. .btn-details-hide {
  190. display: none;
  191. width: 100%;
  192. height: 100%;
  193. position: absolute;
  194. top: 0;
  195. left: 0;
  196. cursor: pointer;
  197. }
  198. .details-section {
  199. display: none;
  200. width: 50%;
  201. height: 100vh;
  202. background-color: rgba(20,20,20,0.95);
  203. position: absolute;
  204. top: 0;
  205. right: 0;
  206. text-align: center;
  207. overflow: scroll;
  208. padding: 0 5%;
  209. }
  210. .details-section::-webkit-scrollbar{
  211. width:0px
  212. }
  213. .details-title {
  214. color: #e1e1e1;
  215. font-size: 0.4rem;
  216. margin: 1.5rem 0 0.2rem 0;
  217. }
  218. .details-message {
  219. color: #e1e1e1;
  220. font-size: 12px;
  221. }
  222. .details-content {
  223. margin-top: 0.3rem;
  224. font-size: 0.2rem;
  225. color: #aeac9c;
  226. line-height: 0.36rem;
  227. text-align: left;
  228. }
  229. .details-content img {
  230. width: 100%;
  231. }
  232. .video-wrap {
  233. }
  234. .video-section {
  235. z-index: 1;
  236. display: none;
  237. width: 100%;
  238. height: 100vh;
  239. background-color: rgba(20,20,20,0.6);
  240. position: fixed;
  241. top: 0;
  242. right: 0;
  243. text-align: left;
  244. }
  245. .video-item {
  246. width: auto;
  247. height: 80vh;
  248. // margin: 10vh auto;
  249. position: absolute;
  250. top: 0;
  251. left: 0;
  252. right: 0;
  253. bottom: 0;
  254. margin: auto;
  255. }
  256. .btn-close {
  257. cursor: pointer;
  258. font-size: 0.72rem;
  259. position: fixed;
  260. top: 0.4rem;
  261. right: 0.4rem;
  262. color: #fff;
  263. text-align: center;
  264. -webkit-transform: rotate(45deg);
  265. transform: rotate(45deg);
  266. }
  267. .alpha-layer {
  268. display: none;
  269. }
  270. .details-wrap .btn-close {
  271. // display: none;
  272. }
  273. .section-videoplay {
  274. width: 90%;
  275. height: auto;
  276. background-color: #000;
  277. position: relative;
  278. cursor: pointer;
  279. margin: auto;
  280. margin-bottom: 7%;
  281. }
  282. .section-videoplay:hover {
  283. background-color: #111;
  284. }
  285. .section-videoplay:hover > .btn-videoplay{
  286. opacity: 1;
  287. }
  288. .section-videoplay img {
  289. width: 100%;
  290. height: auto;
  291. }
  292. .btn-videoplay {
  293. width: 0;
  294. height: 0;
  295. border: 20px solid transparent;
  296. border-left: 30px solid #fff;
  297. position: absolute;
  298. top: 50%;
  299. left: 50%;
  300. margin: -20px 0 0 -15px;
  301. opacity: 0.5;
  302. }
  303. @media (min-width: 959px) {
  304. html {
  305. font-size: 385%;
  306. }
  307. }
  308. @media (min-width: 1279px) {
  309. html {
  310. font-size: 465%;
  311. }
  312. }
  313. @media (min-width: 1599px) {
  314. html {
  315. font-size: 545%;
  316. }
  317. }
  318. @media (min-width: 1919px) {
  319. html {
  320. font-size: 625%;
  321. }
  322. }
  323. @media (max-device-width: 1081px) {
  324. html {
  325. font-size: 585%;
  326. }
  327. .museum-wrap {
  328. width: 100%;
  329. height: calc(100vh - 1rem);
  330. padding: 0;
  331. padding-top: 1rem;
  332. background-color: rgba(166,166,166,0.3);
  333. }
  334. .section-row {
  335. width: 100%;
  336. }
  337. .section-wrap {
  338. width: 90%;
  339. height: auto;
  340. // background: url('../../static/review_img_01.jpg');
  341. background: url('http://airsmart-web.oss-cn-shanghai.aliyuncs.com/upload/images/%E5%8D%9A%E7%89%A9%E9%A6%86/mb_museum_item_bg.jpg');
  342. background-position: center center;
  343. background-color: #000;
  344. background-size: cover;
  345. margin: 5%;
  346. padding: 12% 0 0 0;
  347. box-shadow: 5px 5px 20px 0px #222;
  348. }
  349. .alpha-layer {
  350. display: none;
  351. width: 100%;
  352. height: 100%;
  353. background-color: rgba(0,0,0,0.6);
  354. position: absolute;
  355. top: 0;
  356. left: 0;
  357. }
  358. .section-img {
  359. // display: none;
  360. position: relative;
  361. // top: 12%;
  362. width: 90%;
  363. margin: 0 auto;
  364. }
  365. .section-text {
  366. width: 86%;
  367. position: relative;
  368. margin: 0 7%;
  369. text-align: center;
  370. top: 0;
  371. }
  372. .section-date {
  373. font-size: 0.2rem;
  374. margin: 0.2rem 5% 0.5rem;
  375. position: relative;
  376. font-weight: 300;
  377. text-align: right;
  378. top: 0;
  379. }
  380. .section-title {
  381. font-size: 0.34rem;
  382. margin: 0.8rem 0 0.3rem;
  383. }
  384. .section-content {
  385. font-size: 14px;
  386. padding: 0 5%;
  387. opacity: 0.8;
  388. text-align: left;
  389. }
  390. .section-content img {
  391. margin: 0 auto;
  392. }
  393. .details-section {
  394. width: 80%;
  395. padding: 0 10%;
  396. margin: 0;
  397. z-index: 103;
  398. }
  399. .details-wrap .btn-close {
  400. display: block;
  401. }
  402. .btn-details-hide {
  403. display: none;
  404. }
  405. .video-wrap video{
  406. width: 100%;
  407. height: auto;
  408. position: absolute;
  409. top: 0;
  410. left: 0;
  411. right: 0;
  412. bottom: 0;
  413. margin: auto;
  414. }
  415. .mb-display-toggle {
  416. display: none;
  417. }
  418. .section-videoplay {
  419. position: relative;
  420. background-color: rgba(100,100,100,0.8);
  421. margin: 0 5% 0.5rem 5%;
  422. }
  423. .btn-videoplay {
  424. border-left: 30px solid #ddd;
  425. }
  426. .mb-video-section {
  427. height: auto;
  428. }
  429. }
  430. @media (max-device-width: 720px) {
  431. html {
  432. font-size: 465%;
  433. }
  434. }
  435. @media (max-device-width: 660px) {
  436. html {
  437. font-size: 445%;
  438. }
  439. }
  440. @media (max-device-width: 600px) {
  441. html {
  442. font-size: 425%;
  443. }
  444. }
  445. @media (max-device-width: 540px) {
  446. html {
  447. font-size: 405%;
  448. }
  449. }
  450. @media (max-device-width: 480px) {
  451. html {
  452. font-size: 385%;
  453. }
  454. }
  455. @media (max-device-width: 420px) {
  456. html {
  457. font-size: 365%;
  458. }
  459. }
  460. @media (max-device-width: 360px) {
  461. html {
  462. font-size: 345%;
  463. }
  464. }
  465. @media (max-device-width: 240px) {
  466. html {
  467. font-size: 305%;
  468. }
  469. }