base.less 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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. /* 全局css变量 */
  11. :root {
  12. --themeColor: #733c00;
  13. --themeColor2: #ead98f;
  14. --fontNum: 16px;
  15. }
  16. html {
  17. height: 100%;
  18. user-select: none;
  19. }
  20. body {
  21. position: relative;
  22. font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
  23. 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  24. font-size: var(--fontNum);
  25. height: 100%;
  26. color: black;
  27. overflow: auto;
  28. background-color: #cbc5b7;
  29. // background-color: rgba(0, 0, 0, 0.8);
  30. }
  31. body #wjwjScene {
  32. width: 100%;
  33. height: 100%;
  34. position: fixed;
  35. border: none;
  36. position: fixed;
  37. top: 50%;
  38. left: 50%;
  39. transform: translate(-50%, -50%);
  40. }
  41. body #panoramic-root {
  42. display: none;
  43. width: 100%;
  44. height: 100%;
  45. position: fixed;
  46. border: none;
  47. position: fixed;
  48. top: 0;
  49. left: 0;
  50. }
  51. body #A7Back {
  52. width: 136px;
  53. height: 67px;
  54. position: absolute;
  55. z-index: 3;
  56. top: 3%;
  57. left: 4%;
  58. cursor: pointer;
  59. & > img {
  60. height: 100%;
  61. object-fit: contain;
  62. }
  63. }
  64. #root {
  65. overflow: hidden;
  66. margin: auto;
  67. position: relative;
  68. & > div {
  69. width: 100%;
  70. height: 100%;
  71. }
  72. }
  73. i {
  74. font-style: normal;
  75. }
  76. img {
  77. max-width: 100%;
  78. max-height: 100%;
  79. vertical-align: middle;
  80. object-fit: cover;
  81. }
  82. ul {
  83. list-style: none;
  84. }
  85. /* 文本域取消下拉 */
  86. textarea {
  87. resize: none !important;
  88. min-height: 100px !important;
  89. }
  90. /* 找不到页面 */
  91. .noFindPage {
  92. opacity: 0;
  93. transition: opacity 0.5s;
  94. text-align: center;
  95. transform: scale(0.6);
  96. .ant-result {
  97. padding: 20px !important;
  98. .ant-result-subtitle {
  99. font-size: 20px;
  100. }
  101. }
  102. }
  103. [hidden] {
  104. display: none !important;
  105. }
  106. /* antd图片预览组件 */
  107. .ant-image {
  108. display: none !important;
  109. }
  110. // 滚动条
  111. .mySorrl::-webkit-scrollbar {
  112. /*滚动条整体样式*/
  113. width: 5px;
  114. /*高宽分别对应横竖滚动条的尺寸*/
  115. height: 1px;
  116. }
  117. .mySorrl::-webkit-scrollbar-thumb {
  118. /*滚动条里面小方块*/
  119. border-radius: 10px;
  120. -webkit-box-shadow: inset 0 0 5px transparent;
  121. background: var(--themeColor);
  122. }
  123. .mySorrl::-webkit-scrollbar-track {
  124. /*滚动条里面轨道*/
  125. -webkit-box-shadow: inset 0 0 5px transparent;
  126. border-radius: 10px;
  127. background: transparent;
  128. }
  129. .ant-image-preview-operations {
  130. background-color: rgba(0, 0, 0, 0.8) !important;
  131. }
  132. // 默认字体
  133. .sizeNo {
  134. font-family: 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti',
  135. 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif !important;
  136. }
  137. .adm-auto-center-content {
  138. font-family: 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti',
  139. 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif !important;
  140. font-size: 16px;
  141. letter-spacing: 3px;
  142. text-align: center;
  143. }
  144. .hoverD {
  145. transition: all 0.3s;
  146. &:hover {
  147. transform: scale(1.1);
  148. }
  149. }
  150. // 云气图闪动
  151. .yunShan {
  152. animation: yunShan 1.5s infinite linear;
  153. color: #f1e39e;
  154. }
  155. @keyframes yunShan {
  156. 0% {
  157. opacity: 1;
  158. }
  159. 50% {
  160. opacity: 0;
  161. }
  162. 100% {
  163. opacity: 1;
  164. }
  165. }
  166. // 右下角的按钮
  167. #BtnRight {
  168. position: absolute;
  169. width: 50px;
  170. height: 50px;
  171. cursor: pointer;
  172. bottom: 15px;
  173. right: 20px;
  174. & > img {
  175. position: absolute;
  176. top: 0;
  177. left: 0;
  178. width: 100%;
  179. height: 100%;
  180. object-fit: fill !important;
  181. opacity: 1;
  182. transition: all 0.3s;
  183. }
  184. .BtnRight2 {
  185. opacity: 0;
  186. pointer-events: none;
  187. }
  188. &:hover {
  189. .BtnRight1 {
  190. opacity: 0;
  191. pointer-events: none;
  192. }
  193. .BtnRight2 {
  194. opacity: 1;
  195. pointer-events: auto;
  196. }
  197. }
  198. }
  199. @media screen and (min-width: 1200px) {
  200. #BtnRight {
  201. width: 35px;
  202. height: 35px;
  203. }
  204. }
  205. // 热点页面打开透明的变化
  206. #HotOpCss {
  207. animation: HotOpCss 0.5s linear forwards;
  208. }
  209. @keyframes HotOpCss {
  210. 0% {
  211. opacity: 0;
  212. }
  213. 100% {
  214. opacity: 1;
  215. }
  216. }
  217. #bgImgBox {
  218. position: absolute;
  219. top: 0;
  220. left: 0;
  221. width: 100%;
  222. height: 100%;
  223. object-fit: fill !important;
  224. pointer-events: none;
  225. }
  226. // antd mo 查看图片
  227. @media screen and (orientation: portrait) {
  228. /* 竖屏 */
  229. .adm-image-viewer-image-wrapper img {
  230. transform: rotate(90deg) !important;
  231. }
  232. .adm-toast-wrap {
  233. transform: rotate(90deg) !important;
  234. }
  235. .ant-image-preview-wrap {
  236. transform: rotate(90deg) !important;
  237. }
  238. .ant-image-preview-footer {
  239. transform: scale(0.7) rotate(90deg) translate(-178%, -50%);
  240. transform-origin: left bottom;
  241. }
  242. #root .ant-tooltip {
  243. transform: rotate(0) !important;
  244. inset: 4.331px auto auto 417.25px !important;
  245. width: 410px !important;
  246. height: 150px !important;
  247. max-width: 440px !important;
  248. }
  249. .ant-tooltip-inner {
  250. background: url('../img/tooltipBg.png') no-repeat center center / 100% 100%;
  251. }
  252. #root .ant-tooltip .tooltip_MT {
  253. .top {
  254. width: 100%;
  255. height: 22px !important;
  256. .title {
  257. width: 80px !important;
  258. font-size: 15px !important;
  259. line-height: 30px !important;
  260. }
  261. .close {
  262. width: 40px;
  263. height: 100%;
  264. cursor: pointer;
  265. display: flex;
  266. justify-content: end;
  267. align-items: center;
  268. & > img {
  269. height: 90%;
  270. object-fit: contain;
  271. }
  272. }
  273. }
  274. .content {
  275. font-size: 14px !important;
  276. line-height: 20px !important;
  277. font-weight: 400 !important;
  278. height: calc(100% - 30px) !important;
  279. }
  280. }
  281. body #A7Back {
  282. transform: rotate(90deg);
  283. left: auto;
  284. top: 5%;
  285. right: 2%;
  286. width: 60px;
  287. height: 30px;
  288. position: absolute;
  289. z-index: 3;
  290. cursor: pointer;
  291. & > img {
  292. height: 100%;
  293. object-fit: contain;
  294. }
  295. }
  296. }
  297. // 嵌套unity
  298. #myIframe {
  299. position: fixed;
  300. top: 0;
  301. left: 0;
  302. z-index: 99;
  303. width: 100vw;
  304. height: 100vh;
  305. z-index: 2;
  306. }
  307. // 热点图标闪动
  308. .HotIconBase {
  309. animation: yunShan 2s infinite linear;
  310. }
  311. @keyframes yunShan {
  312. 0% {
  313. opacity: 1;
  314. }
  315. 50% {
  316. scale: 0.9;
  317. opacity: 0.2;
  318. }
  319. 100% {
  320. opacity: 1;
  321. }
  322. }
  323. @keyframes zhiti {
  324. 0% {
  325. opacity: 1;
  326. }
  327. 50% {
  328. scale: 0.98;
  329. opacity: 0.7;
  330. }
  331. 100% {
  332. opacity: 1;
  333. }
  334. }
  335. // 点赞的+1
  336. .likeImg2 {
  337. animation: likeImg2 1.5s linear forwards;
  338. }
  339. @keyframes likeImg2 {
  340. 0% {
  341. transform: scale(0.1);
  342. }
  343. 100% {
  344. transform: scale(1.5);
  345. }
  346. }
  347. /* 隐藏静音按钮 */
  348. // video::-webkit-media-controls-mute-button {
  349. // display: none !important;
  350. // }
  351. // /* 隐藏音量控制条 */
  352. // video::-webkit-media-controls-volume-control-container {
  353. // display: none !important;
  354. // }
  355. // /* 隐藏音量调节滑块 */
  356. // video::-webkit-media-controls-volume-slider {
  357. // display: none !important;
  358. // }
  359. #root .ant-tooltip {
  360. width: 220px;
  361. height: 92px;
  362. max-width: 200px;
  363. .ant-tooltip-content {
  364. width: 100% !important;
  365. height: 100% !important;
  366. }
  367. .ant-tooltip-inner {
  368. background: url(../img/tooltipBg.png) no-repeat;
  369. background-size: 100% 100%;
  370. box-shadow: none !important;
  371. width: 100% !important;
  372. height: 100% !important;
  373. }
  374. }
  375. #root .ant-tooltip .tooltip_MT {
  376. height: 100%;
  377. font-size: 16px;
  378. line-height: 24px;
  379. color: #000;
  380. display: flex;
  381. flex-direction: column;
  382. padding-bottom: 8px;
  383. gap: 4px;
  384. .top {
  385. width: 100%;
  386. height: 15px;
  387. display: flex;
  388. justify-content: space-between;
  389. align-items: center;
  390. .title {
  391. width: 30px;
  392. height: 100%;
  393. font-size: 10px;
  394. line-height: 15px;
  395. color: rgba(255, 233, 182, 1);
  396. }
  397. .close {
  398. width: 40px;
  399. height: 100%;
  400. cursor: pointer;
  401. display: flex;
  402. justify-content: end;
  403. align-items: center;
  404. & > img {
  405. height: 90%;
  406. object-fit: contain;
  407. }
  408. }
  409. }
  410. .content {
  411. width: 100%;
  412. height: calc(100% - 16px);
  413. font-size: 7px;
  414. line-height: 10px;
  415. color: #fff;
  416. font-weight: lighter;
  417. overflow: auto;
  418. &::-webkit-scrollbar {
  419. width: 0px;
  420. }
  421. &::-webkit-scrollbar-thumb {
  422. background: rgba(255, 233, 182, 1);
  423. }
  424. }
  425. }
  426. #root #modalIframe {
  427. width: 100%;
  428. height: 100%;
  429. position: fixed;
  430. border: none;
  431. position: fixed;
  432. top: 0;
  433. left: 0;
  434. }
  435. .myFont {
  436. font-family: 'SimSun' !important;
  437. font-weight: 700;
  438. }
  439. // 热点图标闪动
  440. .opacityChange {
  441. animation: opacityChange 2s infinite linear;
  442. }
  443. @keyframes opacityChange {
  444. 0% {
  445. opacity: 1;
  446. }
  447. 50% {
  448. opacity: 0.2;
  449. }
  450. 100% {
  451. opacity: 1;
  452. }
  453. }