base.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. word-wrap: break-word;
  6. -webkit-tap-highlight-color: transparent;
  7. font-family: 'SimHei', 'SimSun', 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
  8. 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  9. }
  10. video {
  11. object-fit: cover;
  12. width: 100%;
  13. height: 100%;
  14. }
  15. /* 全局css变量 */
  16. :root {
  17. --themeColor: #733c00;
  18. --themeColor2: #ead98f;
  19. --fontNum: 16px;
  20. }
  21. html {
  22. height: 100%;
  23. user-select: none;
  24. }
  25. body {
  26. position: relative;
  27. font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
  28. 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  29. font-size: var(--fontNum);
  30. height: 100%;
  31. color: black;
  32. overflow: hidden;
  33. background-color: #cbc5b7;
  34. // background-color: rgba(0, 0, 0, 0.8);
  35. }
  36. body #wjwjScene {
  37. width: 100%;
  38. height: 100%;
  39. position: fixed;
  40. border: none;
  41. position: fixed;
  42. top: 50%;
  43. left: 50%;
  44. transform: translate(-50%, -50%);
  45. }
  46. body #panoramic-root {
  47. display: none;
  48. width: 100%;
  49. height: 100%;
  50. position: fixed;
  51. border: none;
  52. position: fixed;
  53. top: 0;
  54. left: 0;
  55. }
  56. body #A7Back {
  57. width: 136px;
  58. height: 67px;
  59. position: absolute;
  60. z-index: 3;
  61. top: 3%;
  62. left: 4%;
  63. cursor: pointer;
  64. & > img {
  65. height: 100%;
  66. object-fit: contain;
  67. }
  68. }
  69. .ant-image-preview-mask {
  70. backdrop-filter: blur(10px);
  71. background-color: rgba(0, 0, 0, 0.9) !important;
  72. }
  73. .ant-image-preview-img-wrapper {
  74. .previewImage {
  75. width: 100%;
  76. height: 100%;
  77. display: flex;
  78. flex-direction: column;
  79. align-items: center;
  80. justify-content: center;
  81. .Ori {
  82. height: 83%;
  83. width: 100%;
  84. object-fit: contain;
  85. & > .ant-image-preview-img {
  86. padding: 20px;
  87. width: 100%;
  88. height: 100%;
  89. max-width: 100%;
  90. max-height: 100%;
  91. object-fit: contain;
  92. }
  93. }
  94. .ImgFromTxt {
  95. width: 80%;
  96. height: 3%;
  97. text-align: center;
  98. font-size: 14px;
  99. color: #fff;
  100. margin-top: 10px;
  101. white-space: nowrap;
  102. }
  103. }
  104. }
  105. #root {
  106. overflow: hidden;
  107. margin: auto;
  108. position: relative;
  109. & > div {
  110. width: 100%;
  111. height: 100%;
  112. }
  113. }
  114. i {
  115. font-style: normal;
  116. }
  117. img {
  118. max-width: 100%;
  119. max-height: 100%;
  120. vertical-align: middle;
  121. object-fit: cover;
  122. }
  123. ul {
  124. list-style: none;
  125. }
  126. /* 文本域取消下拉 */
  127. textarea {
  128. resize: none !important;
  129. min-height: 100px !important;
  130. }
  131. /* 找不到页面 */
  132. .noFindPage {
  133. opacity: 0;
  134. transition: opacity 0.5s;
  135. text-align: center;
  136. transform: scale(0.6);
  137. .ant-result {
  138. padding: 20px !important;
  139. .ant-result-subtitle {
  140. font-size: 20px;
  141. }
  142. }
  143. }
  144. [hidden] {
  145. display: none !important;
  146. }
  147. /* antd图片预览组件 */
  148. .ant-image {
  149. display: none !important;
  150. }
  151. // 滚动条
  152. .mySorrl::-webkit-scrollbar {
  153. /*滚动条整体样式*/
  154. width: 5px;
  155. /*高宽分别对应横竖滚动条的尺寸*/
  156. height: 1px;
  157. }
  158. .mySorrl::-webkit-scrollbar-thumb {
  159. /*滚动条里面小方块*/
  160. border-radius: 10px;
  161. -webkit-box-shadow: inset 0 0 5px transparent;
  162. background: var(--themeColor);
  163. }
  164. .mySorrl::-webkit-scrollbar-track {
  165. /*滚动条里面轨道*/
  166. -webkit-box-shadow: inset 0 0 5px transparent;
  167. border-radius: 10px;
  168. background: transparent;
  169. }
  170. .ant-image-preview-operations {
  171. background-color: rgba(0, 0, 0, 0.8) !important;
  172. }
  173. .ant-image-preview-operations-wrapper {
  174. position: fixed;
  175. width: 100%;
  176. height: auto;
  177. z-index: 1081;
  178. top: 80%;
  179. left: 50%;
  180. .ant-image-preview-close {
  181. width: 150px;
  182. height: 70px;
  183. border-radius: 0;
  184. background-color: transparent;
  185. }
  186. }
  187. // 默认字体
  188. .sizeNo {
  189. font-family: 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti',
  190. 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif !important;
  191. }
  192. .adm-auto-center-content {
  193. font-family: 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti',
  194. 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif !important;
  195. font-size: 16px;
  196. letter-spacing: 3px;
  197. text-align: center;
  198. }
  199. .hoverD {
  200. transition: all 0.3s;
  201. &:hover {
  202. transform: scale(1.1);
  203. }
  204. }
  205. // 云气图闪动
  206. .yunShan {
  207. animation: yunShan 1.5s infinite linear;
  208. color: #f1e39e;
  209. }
  210. @keyframes yunShan {
  211. 0% {
  212. opacity: 1;
  213. }
  214. 50% {
  215. opacity: 0;
  216. }
  217. 100% {
  218. opacity: 1;
  219. }
  220. }
  221. // 热点页面打开透明的变化
  222. #HotOpCss {
  223. animation: HotOpCss 0.5s linear forwards;
  224. }
  225. @keyframes HotOpCss {
  226. 0% {
  227. opacity: 0;
  228. }
  229. 100% {
  230. opacity: 1;
  231. }
  232. }
  233. #bgImgBox {
  234. position: absolute;
  235. top: 0;
  236. left: 0;
  237. width: 100%;
  238. height: 100%;
  239. object-fit: fill !important;
  240. pointer-events: none;
  241. }
  242. // antd mo 查看图片
  243. @media screen and (orientation: portrait) {
  244. /* 竖屏 */
  245. .adm-image-viewer-image-wrapper img {
  246. transform: rotate(90deg) !important;
  247. }
  248. .adm-toast-wrap {
  249. transform: rotate(90deg) !important;
  250. }
  251. .ant-image-mask {
  252. background: rgba(0, 0, 0, 0.8) !important;
  253. }
  254. .ant-image-preview-footer {
  255. display: none !important;
  256. transform: scale(0.7) rotate(90deg) translate(-178%, -50%);
  257. transform-origin: left bottom;
  258. }
  259. .ant-image-preview-operations-wrapper {
  260. position: fixed;
  261. width: 100%;
  262. height: auto;
  263. z-index: 1081;
  264. top: 80%;
  265. left: 50%;
  266. transform: scale(0.7) rotate(90deg);
  267. .ant-image-preview-close {
  268. border-radius: 0;
  269. background-color: transparent;
  270. }
  271. }
  272. .ant-image-preview-img-wrapper {
  273. .previewImage {
  274. position: relative;
  275. .Ori {
  276. width: 80%;
  277. height: 74%;
  278. .ant-image-preview-img {
  279. transform: rotate(90deg) scale(0.65) !important;
  280. }
  281. }
  282. .ImgFromTxt {
  283. position: absolute;
  284. top: 50%;
  285. left: 50%;
  286. transform: translate(-107%, -50%) rotate(90deg) !important;
  287. }
  288. }
  289. }
  290. #root .ant-tooltip {
  291. transform: rotate(0) !important;
  292. width: 410px !important;
  293. height: 150px !important;
  294. max-width: 440px !important;
  295. inset: 88.7779px auto auto 334.985px !important;
  296. .ant-tooltip-arrow {
  297. display: none !important;
  298. }
  299. }
  300. #root .ant-tooltip .tooltip_MT {
  301. .top {
  302. position: relative;
  303. width: 100%;
  304. height: 22px !important;
  305. .title {
  306. width: 80px !important;
  307. font-size: 15px !important;
  308. line-height: 30px !important;
  309. }
  310. .close {
  311. position: absolute;
  312. top: 0px;
  313. right: 0;
  314. padding-left: 30px;
  315. padding-bottom: 30px;
  316. width: 50px !important;
  317. height: 52px !important;
  318. cursor: pointer;
  319. display: flex;
  320. justify-content: flex-end;
  321. align-items: center;
  322. & > img {
  323. height: 90%;
  324. object-fit: contain;
  325. }
  326. }
  327. }
  328. .content {
  329. font-size: 14px !important;
  330. line-height: 20px !important;
  331. font-weight: 400 !important;
  332. height: calc(100% - 30px) !important;
  333. }
  334. }
  335. body #A7Back {
  336. transform: rotate(90deg);
  337. left: auto;
  338. top: 6%;
  339. right: -1%;
  340. width: 80px;
  341. height: 40px;
  342. position: absolute;
  343. z-index: 3;
  344. cursor: pointer;
  345. & > img {
  346. height: 100%;
  347. object-fit: contain;
  348. }
  349. }
  350. }
  351. // 嵌套unity
  352. #myIframe {
  353. position: fixed;
  354. top: 0;
  355. left: 0;
  356. z-index: 99;
  357. width: 100vw;
  358. height: 100vh;
  359. z-index: 2;
  360. }
  361. // 热点图标闪动
  362. .HotIconBase {
  363. animation: yunShan 2s infinite linear;
  364. }
  365. @keyframes yunShan {
  366. 0% {
  367. opacity: 1;
  368. }
  369. 50% {
  370. scale: 0.9;
  371. opacity: 0.2;
  372. }
  373. 100% {
  374. opacity: 1;
  375. }
  376. }
  377. @keyframes zhiti {
  378. 0% {
  379. opacity: 1;
  380. }
  381. 50% {
  382. scale: 0.98;
  383. opacity: 0.7;
  384. }
  385. 100% {
  386. opacity: 1;
  387. }
  388. }
  389. // 点赞的+1
  390. .likeImg2 {
  391. animation: likeImg2 1.5s linear forwards;
  392. }
  393. @keyframes likeImg2 {
  394. 0% {
  395. transform: scale(0.1);
  396. }
  397. 100% {
  398. transform: scale(1.5);
  399. }
  400. }
  401. /* 隐藏静音按钮 */
  402. // video::-webkit-media-controls-mute-button {
  403. // display: none !important;
  404. // }
  405. // /* 隐藏音量控制条 */
  406. // video::-webkit-media-controls-volume-control-container {
  407. // display: none !important;
  408. // }
  409. // /* 隐藏音量调节滑块 */
  410. // video::-webkit-media-controls-volume-slider {
  411. // display: none !important;
  412. // }
  413. #root .ant-tooltip {
  414. width: 380px;
  415. height: 122px;
  416. max-width: 200px;
  417. .ant-tooltip-content {
  418. width: 100% !important;
  419. height: 100% !important;
  420. }
  421. .ant-tooltip-arrow::before {
  422. backdrop-filter: blur(2px);
  423. background-color: rgba(33, 30, 26, 0.5) !important;
  424. }
  425. .ant-tooltip-arrow::after {
  426. border: 1px solid rgba(255, 233, 182, 0.7);
  427. }
  428. &.ant-tooltip-placement-bottomRight {
  429. .ant-tooltip-arrow {
  430. top: 1.5px !important;
  431. }
  432. }
  433. &.ant-tooltip-placement-topLeft {
  434. .ant-tooltip-arrow {
  435. bottom: 1px !important;
  436. }
  437. }
  438. &.ant-tooltip-placement-bottomLeft {
  439. .ant-tooltip-arrow {
  440. top: 2px !important;
  441. }
  442. }
  443. .ant-tooltip-inner {
  444. // background: url(../img/tooltipBg.png) no-repeat;
  445. // background-size: 100% 100%;
  446. background-color: rgba(33, 30, 26, 0.5) !important;
  447. box-shadow: none !important;
  448. width: 100% !important;
  449. height: 100% !important;
  450. padding: 11px 12px !important;
  451. border: 1px solid rgba(255, 233, 182, 1);
  452. backdrop-filter: blur(2px);
  453. }
  454. }
  455. .ant-image-preview-footer {
  456. display: none !important;
  457. }
  458. #root .ant-tooltip .tooltip_MT {
  459. height: 100%;
  460. font-size: 16px;
  461. line-height: 24px;
  462. color: #000;
  463. display: flex;
  464. flex-direction: column;
  465. padding-bottom: 8px;
  466. gap: 4px;
  467. .top {
  468. width: 100%;
  469. height: 20px;
  470. display: flex;
  471. justify-content: space-between;
  472. align-items: center;
  473. .title {
  474. width: 50%;
  475. height: 100%;
  476. font-size: 10px;
  477. line-height: 15px;
  478. font-weight: bold;
  479. color: rgba(255, 233, 182, 1);
  480. }
  481. .close {
  482. width: 40px;
  483. height: 18px;
  484. cursor: pointer;
  485. display: flex;
  486. justify-content: flex-end;
  487. align-items: center;
  488. & > img {
  489. height: 90%;
  490. object-fit: contain;
  491. }
  492. }
  493. }
  494. .content {
  495. width: 100%;
  496. height: calc(100% - 16px);
  497. font-size: 7px;
  498. line-height: 10px;
  499. color: #fff;
  500. font-weight: lighter;
  501. overflow: auto;
  502. &::-webkit-scrollbar {
  503. width: 0px;
  504. }
  505. &::-webkit-scrollbar-thumb {
  506. background: rgba(255, 233, 182, 1);
  507. }
  508. }
  509. }
  510. #root #modalIframe {
  511. width: 100%;
  512. height: 100%;
  513. position: fixed;
  514. border: none;
  515. top: 0;
  516. left: 0;
  517. backface-visibility: hidden;
  518. -webkit-backface-visibility: hidden;
  519. -webkit-transform: translateZ(0);
  520. transform: translateZ(0);
  521. background-color: transparent;
  522. /* 确保背景透明 */
  523. }
  524. #opacityChange {
  525. animation: opacityChange 2s infinite linear;
  526. }
  527. #opacityChangeTxt {
  528. animation: opacityChange 2s infinite linear;
  529. }
  530. @keyframes opacityChange {
  531. 0% {
  532. opacity: 1;
  533. }
  534. 50% {
  535. opacity: 0.4;
  536. }
  537. 100% {
  538. opacity: 1;
  539. }
  540. }
  541. @keyframes gestureState1 {
  542. 0% {
  543. transform: translateX(0);
  544. }
  545. 25% {
  546. transform: translateX(-20px);
  547. }
  548. 50% {
  549. transform: translateX(0);
  550. }
  551. 75% {
  552. transform: translateX(20px);
  553. }
  554. 100% {
  555. transform: translateX(0);
  556. }
  557. }
  558. // 默认字体
  559. #root .moFont {
  560. font-size: 16px;
  561. line-height: 24px;
  562. letter-spacing: 2px;
  563. font-weight: 400;
  564. color: #504e40;
  565. }
  566. // 移动端返回按钮
  567. #root .moBack {
  568. width: 80px;
  569. height: 40px;
  570. img {
  571. object-fit: fill !important;
  572. }
  573. }
  574. // 页面透明度渐变
  575. #opacityCss {
  576. animation: opacityCss 2s linear forwards;
  577. }
  578. @keyframes opacityCss {
  579. 0% {
  580. opacity: 0;
  581. }
  582. 100% {
  583. opacity: 1;
  584. }
  585. }
  586. // 宋体
  587. .songFont {
  588. font-family: 'song' !important;
  589. }
  590. .songFontc {
  591. font-family: 'song' !important;
  592. font-weight: 700 !important;
  593. }
  594. // 未解之思页面动画效果
  595. #Weijie {
  596. animation: Weijie 3s linear forwards;
  597. }
  598. @keyframes Weijie {
  599. 0% {
  600. height: 0;
  601. }
  602. 100% {
  603. height: 290px;
  604. }
  605. }
  606. @keyframes fade_in {
  607. 0% {
  608. opacity: 0;
  609. }
  610. 100% {
  611. opacity: 1;
  612. }
  613. }
  614. @keyframes fade_in2 {
  615. 0% {
  616. opacity: 0.3;
  617. }
  618. 100% {
  619. opacity: 1;
  620. }
  621. }
  622. @keyframes fade_in3 {
  623. 0% {
  624. opacity: 0;
  625. }
  626. 100% {
  627. opacity: 1;
  628. }
  629. }
  630. @keyframes fade_out3 {
  631. 0% {
  632. opacity: 1;
  633. }
  634. 100% {
  635. opacity: 0;
  636. }
  637. }
  638. @keyframes fade_in4 {
  639. 0% {
  640. opacity: 0;
  641. }
  642. 100% {
  643. opacity: 0.7;
  644. }
  645. }
  646. @keyframes fade_out4 {
  647. 0% {
  648. opacity: 0.7;
  649. }
  650. 100% {
  651. opacity: 0;
  652. }
  653. }
  654. @keyframes fadeOut {
  655. 0% {
  656. opacity: 1;
  657. }
  658. 100% {
  659. opacity: 0;
  660. }
  661. }
  662. @keyframes fadeInOut {
  663. 0% {
  664. opacity: 0.3;
  665. }
  666. 50% {
  667. opacity: 1;
  668. }
  669. 100% {
  670. opacity: 0.3;
  671. }
  672. }
  673. // 序列帧 琏-王字旁
  674. @keyframes lian_wang {
  675. 0% {
  676. /* 第一帧:背景位置 (0, 0) */
  677. transform: translateX(0);
  678. }
  679. 100% {
  680. /* 最后一帧:横向偏移 = -(总帧数-1) × 单帧宽度 */
  681. /* 10帧:-(10-1)×200 = -1800px */
  682. transform: translateX(-11857px);
  683. }
  684. }
  685. // 序列帧 琏-走字底
  686. @keyframes lian_zou {
  687. 0% {
  688. /* 第一帧:背景位置 (0, 0) */
  689. transform: translate(0, 0);
  690. }
  691. 100% {
  692. /* 最后一帧:横向偏移 = -(总帧数-1) × 单帧宽度 */
  693. /* 10帧:-(10-1)×200 = -1800px */
  694. transform: translate(-5177px, 0);
  695. }
  696. }
  697. // 序列帧 碑-上半
  698. @keyframes bei_shang {
  699. 0% {
  700. /* 第一帧:背景位置 (0, 0) */
  701. transform: translate(0, 0);
  702. }
  703. 100% {
  704. /* 最后一帧:横向偏移 = -(总帧数-1) × 单帧宽度 */
  705. /* 10帧:-(10-1)×200 = -1800px */
  706. transform: translate(-11857px, 0);
  707. }
  708. }
  709. // 序列帧 碑-下半
  710. @keyframes bei_xia {
  711. 0% {
  712. /* 第一帧:背景位置 (0, 0) */
  713. transform: translate(0, 0);
  714. }
  715. 100% {
  716. /* 最后一帧:横向偏移 = -(总帧数-1) × 单帧宽度 */
  717. /* 10帧:-(10-1)×200 = -1800px */
  718. transform: translate(-5845px, 0);
  719. }
  720. }