base.less 13 KB

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