* { margin: 0; padding: 0; box-sizing: border-box; word-wrap: break-word; -webkit-tap-highlight-color: transparent; font-family: heiti; } video { object-fit: fill; width: 100%; height: 100%; } iframe { width: 100%; height: 100%; border: none; } /* 全局css变量 */ :root { --themeColor: #733c00; --themeColor2: #ead98f; --fontNum: 16px; } html { height: 100%; user-select: none; } body { position: relative; font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif; font-size: var(--fontNum); height: 100%; color: black; overflow: hidden; background-color: #cbc5b7; // background-color: rgba(0, 0, 0, 0.8); font-family: heitiFont; } .ant-image-preview-mask { backdrop-filter: blur(10px); background-color: rgba(0, 0, 0, 0.9) !important; } .ant-image-preview-img-wrapper { .previewImage { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; .Ori { height: 83%; width: 100%; object-fit: contain; & > .ant-image-preview-img { padding: 20px; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; } } .ImgFromTxt { width: 80%; height: 3%; text-align: center; font-size: 14px; color: #fff; margin-top: 10px; white-space: nowrap; } } } #root { overflow: hidden; margin: auto; position: relative; & > div { width: 100%; height: 100%; } } i { font-style: normal; } img { max-width: 100%; max-height: 100%; vertical-align: middle; object-fit: cover; } ul { list-style: none; } /* 文本域取消下拉 */ textarea { resize: none !important; min-height: 100px !important; } /* 找不到页面 */ .noFindPage { opacity: 0; transition: opacity 0.5s; text-align: center; transform: scale(0.6); .ant-result { padding: 20px !important; .ant-result-subtitle { font-size: 20px; } } } [hidden] { display: none !important; } /* antd图片预览组件 */ .ant-image { display: none !important; } // 滚动条 .mySorrl::-webkit-scrollbar { /*滚动条整体样式*/ width: 0.6vw; /*高宽分别对应横竖滚动条的尺寸*/ height: 1px; } .mySorrl::-webkit-scrollbar-thumb { /*滚动条里面小方块*/ border-radius: 10px; -webkit-box-shadow: inset 0 0 5px transparent; background: var(--themeColor); } .mySorrl::-webkit-scrollbar-track { /*滚动条里面轨道*/ -webkit-box-shadow: inset 0 0 5px transparent; border-radius: 10px; background: transparent; } .ant-image-preview-operations { background-color: rgba(0, 0, 0, 0.8) !important; } .ant-image-preview-operations-wrapper { position: fixed; width: 100%; height: auto; z-index: 1081; top: 80%; left: 50%; .ant-image-preview-close { width: 150px; height: 70px; border-radius: 0; background-color: transparent; } } // 默认字体 .sizeNo { font-family: 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif !important; } .adm-auto-center-content { font-family: 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif !important; font-size: 16px; letter-spacing: 3px; text-align: center; } .hoverD { transition: all 0.3s; &:hover { transform: scale(1.1); } } // 云气图闪动 .yunShan { animation: yunShan 1.5s infinite linear; color: #f1e39e; } @keyframes yunShan { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } // 热点页面打开透明的变化 #HotOpCss { animation: HotOpCss 0.5s linear forwards; } @keyframes HotOpCss { 0% { opacity: 0; } 100% { opacity: 1; } } #bgImgBox { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: fill !important; pointer-events: none; } // antd mo 查看图片 @media screen and (orientation: portrait) { /* 竖屏 */ .adm-image-viewer-image-wrapper img { transform: rotate(90deg) !important; } .adm-toast-wrap { transform: rotate(90deg) !important; } .ant-image-mask { background: rgba(0, 0, 0, 0.8) !important; } .ant-image-preview-footer { display: none !important; transform: scale(0.7) rotate(90deg) translate(-178%, -50%); transform-origin: left bottom; } .ant-image-preview-operations-wrapper { position: fixed; width: 100%; height: auto; z-index: 1081; top: 80%; left: 50%; transform: scale(0.7) rotate(90deg); .ant-image-preview-close { border-radius: 0; background-color: transparent; } } .ant-image-preview-img-wrapper { .previewImage { position: relative; .Ori { width: 80%; height: 74%; .ant-image-preview-img { transform: rotate(90deg) scale(0.65) !important; } } .ImgFromTxt { position: absolute; top: 50%; left: 50%; transform: translate(-107%, -50%) rotate(90deg) !important; } } } #root .ant-tooltip { transform: rotate(0) !important; width: 410px !important; height: 150px !important; max-width: 440px !important; inset: 88.7779px auto auto 334.985px !important; .ant-tooltip-arrow { display: none !important; } } #root .ant-tooltip .tooltip_MT { .top { position: relative; width: 100%; height: 22px !important; .title { width: 80px !important; font-size: 15px !important; line-height: 30px !important; } .close { position: absolute; top: 0px; right: 0; padding-left: 30px; padding-bottom: 30px; width: 50px !important; height: 52px !important; cursor: pointer; display: flex; justify-content: flex-end; align-items: center; & > img { height: 90%; object-fit: contain; } } } .content { font-size: 14px !important; line-height: 20px !important; font-weight: 400 !important; height: calc(100% - 30px) !important; } } } // 热点图标闪动 .HotIconBase { animation: yunShan 2s infinite linear; } @keyframes yunShan { 0% { opacity: 1; } 50% { scale: 0.9; opacity: 0.2; } 100% { opacity: 1; } } @keyframes zhiti { 0% { opacity: 1; } 50% { scale: 0.98; opacity: 0.7; } 100% { opacity: 1; } } // 点赞的+1 .likeImg2 { animation: likeImg2 1.5s linear forwards; } @keyframes likeImg2 { 0% { transform: scale(0.1); } 100% { transform: scale(1.5); } } /* 隐藏静音按钮 */ // video::-webkit-media-controls-mute-button { // display: none !important; // } // /* 隐藏音量控制条 */ // video::-webkit-media-controls-volume-control-container { // display: none !important; // } // /* 隐藏音量调节滑块 */ // video::-webkit-media-controls-volume-slider { // display: none !important; // } #root .ant-tooltip { width: 380px; height: 122px; max-width: 200px; .ant-tooltip-content { width: 100% !important; height: 100% !important; } .ant-tooltip-arrow::before { backdrop-filter: blur(2px); background-color: rgba(33, 30, 26, 0.5) !important; } .ant-tooltip-arrow::after { border: 1px solid rgba(255, 233, 182, 0.7); } &.ant-tooltip-placement-bottomRight { .ant-tooltip-arrow { top: 1.5px !important; } } &.ant-tooltip-placement-topLeft { .ant-tooltip-arrow { bottom: 1px !important; } } &.ant-tooltip-placement-bottomLeft { .ant-tooltip-arrow { top: 2px !important; } } .ant-tooltip-inner { // background: url(../img/tooltipBg.png) no-repeat; // background-size: 100% 100%; background-color: rgba(33, 30, 26, 0.5) !important; box-shadow: none !important; width: 100% !important; height: 100% !important; padding: 11px 12px !important; border: 1px solid rgba(255, 233, 182, 1); backdrop-filter: blur(2px); } } .ant-image-preview-footer { display: none !important; } #root .ant-tooltip .tooltip_MT { height: 100%; font-size: 16px; line-height: 24px; color: #000; display: flex; flex-direction: column; padding-bottom: 8px; gap: 4px; .top { width: 100%; height: 20px; display: flex; justify-content: space-between; align-items: center; .title { width: 50%; height: 100%; font-size: 10px; line-height: 15px; font-weight: bold; color: rgba(255, 233, 182, 1); } .close { width: 40px; height: 18px; cursor: pointer; display: flex; justify-content: flex-end; align-items: center; & > img { height: 90%; object-fit: contain; } } } .content { width: 100%; height: calc(100% - 16px); font-size: 7px; line-height: 10px; color: #fff; font-weight: lighter; overflow: auto; &::-webkit-scrollbar { width: 0px; } &::-webkit-scrollbar-thumb { background: rgba(255, 233, 182, 1); } } } #root #modalIframe { width: 100%; height: 100%; position: fixed; border: none; top: 0; left: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; -webkit-transform: translateZ(0); transform: translateZ(0); background-color: transparent; /* 确保背景透明 */ } #opacityChange { animation: opacityChange 2s infinite linear; } #opacityChangeTxt { animation: opacityChange 2s infinite linear; } @keyframes opacityChange { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } } @keyframes gestureState1 { 0% { transform: translateX(0); } 25% { transform: translateX(-20px); } 50% { transform: translateX(0); } 75% { transform: translateX(20px); } 100% { transform: translateX(0); } } // 默认字体 #root .moFont { font-size: 16px; line-height: 24px; letter-spacing: 2px; font-weight: 400; color: #504e40; } // 移动端返回按钮 #root .moBack { width: 80px; height: 40px; img { object-fit: fill !important; } } // 页面透明度渐变 #opacityCss { animation: opacityCss 2s linear forwards; } @keyframes opacityCss { 0% { opacity: 0; } 100% { opacity: 1; } } // 宋体 .songFont { font-family: 'song' !important; } .songFontc { font-family: 'song' !important; font-weight: 700 !important; } .heitiFont { font-family: 'heiti'; } // 未解之思页面动画效果 #Weijie { animation: Weijie 3s linear forwards; } @keyframes Weijie { 0% { height: 0; } 100% { height: 290px; } } @keyframes fade_in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade_in2 { 0% { opacity: 0.3; } 100% { opacity: 1; } } @keyframes fade_in3 { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade_out3 { 0% { opacity: 1; } 100% { opacity: 0; } } @keyframes fade_in4 { 0% { opacity: 0; } 100% { opacity: 0.7; } } @keyframes fade_out4 { 0% { opacity: 0.7; } 100% { opacity: 0; } } @keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } } @keyframes fadeInOut { 0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; } } // 序列帧 琏-王字旁 @keyframes lian_wang { 0% { /* 第一帧:背景位置 (0, 0) */ transform: translateX(0); } 100% { /* 最后一帧:横向偏移 = -(总帧数-1) × 单帧宽度 */ /* 10帧:-(10-1)×200 = -1800px */ transform: translateX(-11857px); } } // 序列帧 琏-走字底 @keyframes lian_zou { 0% { /* 第一帧:背景位置 (0, 0) */ transform: translate(0, 0); } 100% { /* 最后一帧:横向偏移 = -(总帧数-1) × 单帧宽度 */ /* 10帧:-(10-1)×200 = -1800px */ transform: translate(-5177px, 0); } } // 序列帧 碑-上半 @keyframes bei_shang { 0% { /* 第一帧:背景位置 (0, 0) */ transform: translate(0, 0); } 100% { /* 最后一帧:横向偏移 = -(总帧数-1) × 单帧宽度 */ /* 10帧:-(10-1)×200 = -1800px */ transform: translate(-11857px, 0); } } // 序列帧 碑-下半 @keyframes bei_xia { 0% { /* 第一帧:背景位置 (0, 0) */ transform: translate(0, 0); } 100% { /* 最后一帧:横向偏移 = -(总帧数-1) × 单帧宽度 */ /* 10帧:-(10-1)×200 = -1800px */ transform: translate(-5845px, 0); } } // 横屏 竖屏的切换 #ScreenChange { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; background-color: rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: all 0.5s; & > img { width: 200px; } & > p { margin-top: 20px; color: #fff; font-size: 18px; height: 40px; } } /*横屏*/ @media screen and (orientation: landscape) { #ScreenChange { opacity: 1; pointer-events: auto; } }