* { margin: 0; padding: 0; box-sizing: border-box; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; } .one-line-display { word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 公共的 css 样式 */ .flexflex { display: flex; } .flexcenter { display: flex; justify-content: center; align-items: center; } .flexjcenter { display: flex; justify-content: center; } .flexacenter { display: flex; align-items: center; } .flex1 { flex: 1; } .flexcolumn { display: flex; flex-direction: column; } view, swiper, swiper-item, scroll-view, textarea, editor { box-sizing: border-box; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; font-weight: 400; font-style: normal; } .container { min-height: 100vh; background-color: #f5f5f5; padding-bottom: 300px; padding-top: 0.4rem; } .container .title-box { width: 9.4rem; margin: 0 auto 0.6rem; background-color: #ffffff; border: 0.0133rem solid #f2f2f2; border-radius: 0.4rem; padding: 0.4rem 0.4rem 0.6rem; position: relative; } .container .title-box .input { width: 100%; min-height: 1rem; word-break: break-all; line-height: 0.56rem; outline: none; border: none; resize: none; font-size: 0.36rem; } .container .title-box .input::placeholder { color: #757575; } .container .title-box .sum { position: absolute; right: 0.4rem; bottom: 0.1rem; color: #555555; font-size: 14px; } .container .editor-box { width: 9.4rem; margin: 0 auto 0.4rem; background-color: #ffffff; border: 0.0133rem solid #f2f2f2; border-radius: 0.4rem; } .container .editor-box .editor { margin: 0.4rem 0.4rem 0.2rem; width: 8.6rem; min-height: 10rem; border: none; outline: none; overflow: auto; font-size: 0.36rem; color: #555555; line-height: 0.56rem; white-space: break-spaces; position: relative; } .container .editor-box .editor.empty:before { content: "输入正文"; pointer-events: none; position: absolute; top: 0; left: 0; color: #757575; } .container .editor-box .editor h2 { font-size: 0.48rem; color: #000000; line-height: normal; } .container .editor-box .editor img { width: 90%; display: block; margin: auto; } .container .editor-box .editor .blue { color: #026277; margin: 0 0.1rem; } .container .editor-box .editor .cursor { background-color: red; width: 1px; height: 1px; display: inline-block; } .container .editor-box .operate-box { display: flex; flex-direction: column; padding-top: 0.2rem; transition: all 0.3s ease-in-out; } .container .editor-box .operate-box.fixed { position: fixed; bottom: 0; left: 0; width: 100vw; background-color: #fff; z-index: 999; } .container .editor-box .operate-box.fixed .label { width: 100vw; } .container .editor-box .operate-box .label { white-space: nowrap; /* height: 0.84rem; */ margin-bottom: 0.2rem; width: 9.4rem; overflow: auto; padding-bottom: 0.2rem; } .container .editor-box .operate-box .label .item { width: fit-content; height: 0.64rem; line-height: 0.64rem; background-color: #f6f6f6; border-radius: 1.46rem; font-size: 0.28rem; color: #606060; padding: 0 0.24rem; display: inline-flex; } .container .editor-box .operate-box .label .item:not(:last-of-type) { margin-right: 0.2rem; } .container .editor-box .operate-box .label .item:first-of-type { margin-left: 0.4rem; } .container .editor-box .operate-box .label .item:last-of-type { margin-right: 0.4rem; } .container .editor-box .operate-box .btn-list { margin: 0 0.4rem 0.4rem; } .container .editor-box .operate-box .btn-list .item { width: fit-content; height: 0.72rem; line-height: 0.72rem; background-color: #f6f6f6; border: 0.0133rem solid #ebebeb; border-radius: 1.46rem; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; font-size: 0.32rem; color: #555555; padding: 0 0.24rem; margin-right: 0.2rem; position: relative; } .container .editor-box .operate-box .btn-list .item.pitch { background-color: #f6f6bd; } .container .editor-box .operate-box .btn-list .item .icon { width: 0.4rem; height: 0.4rem; margin-right: 0.14rem; } .container .editor-box .operate-box .btn-list .item .file { opacity: 0; /* 隐藏输入框 */ background: transparent; border: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; } .container .editor-box .operate-box .btn-list .item .file::after { content: ""; width: 100%; height: 100%; position: absolute; top: 0; left: 0; } .container .editor-box .operate-box .btn-list .unfold { width: 0.72rem; height: 0.72rem; background-color: #f6f6f6; border: 0.0133rem solid #ebebeb; border-radius: 1.4667rem; } .container .editor-box .operate-box .btn-list .unfold .icon { width: 0.32rem; height: 0.32rem; } .container .anonymity { margin-left: 0.4rem; width: fit-content; } .container .anonymity .icon { width: 0.32rem; height: 0.32rem; border: 0.0133rem solid #797979; } .container .anonymity .icon-pitch { width: 0.32rem; height: 0.32rem; } .container .anonymity .text { color: #000000; margin-left: 0.16rem; font-size: 0.32rem; } .container .new-footer-btn { width: 10rem; height: 2.4rem; background-color: #ffffff; border: 0.0133rem solid #ebebeb; position: fixed; bottom: 0; left: 0; z-index: 10; padding: 0.34rem 0.3rem 0; box-sizing: border-box; display: flex; transition: all 0.3s ease-in-out; } .container .new-footer-btn.show { bottom: -2.4rem; } .container .new-footer-btn .save-draft-btn { flex-direction: column; margin-right: 0.4rem; color: #7f7f7f; font-size: 0.32rem; } .container .new-footer-btn .save-draft-btn .save-draft-icon-box { width: 0.84rem; height: 0.84rem; background-color: rgba(242, 242, 242, 0.69803922); border-radius: 0.2rem; margin-bottom: 0.12rem; } .container .new-footer-btn .save-draft-btn .save-draft-icon-box .save-draft-icon { width: 0.48rem; height: 0.48rem; } .container .new-footer-btn .new-footer-submit { height: 1.4rem; line-height: 1.4rem; text-align: center; background-color: #cff7ff; border: 0.0133rem solid #badee6; border-radius: 0.2rem; font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; font-weight: 650; font-size: 0.5067rem; color: #026277; } .container .pop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 101; align-items: flex-end; } .container .pop .emoji-system-list { width: 100vw; background-color: #ececec; overflow: auto; display: flex; flex-wrap: wrap; justify-content: space-between; position: relative; padding: 0.4rem 0.4rem 0; font-size: 0.8rem; box-sizing: border-box; height: 0; animation: growHeight 0.5s ease forwards; } @keyframes growHeight { 0% { height: 0; } 100% { height: 300px; } } .container .pop .emoji-system-list .item { margin-bottom: 0.1333rem; display: inline-block; min-width: 1.15rem; min-height: 0.9333rem; text-align: center; } .container .pop .emoji-system-list .item:nth-child(8n-1) { margin-right: 0; } .container .pop .emoji-system-list .fill { width: 100%; height: 2.2667rem; } .container .model-container { width: 100%; height: 100vh; position: fixed; top: 0; left: 0; z-index: 1000; display: flex; justify-content: center; align-items: center; } .container .model-container .model-main { position: relative; z-index: 9; width: 80%; background-color: #ffffff; border-radius: 10px; overflow: hidden; text-align: center; } .container .model-container .model-main .model-title { font-size: 18px; color: #333; width: 100%; padding: 18px; font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .container .model-container .model-main .model-content { font-size: 16px; color: #666; padding: 10px; padding-top: 0px; padding-bottom: 20px; } .container .model-container .model-main .model-buttons { width: 100%; display: flex; align-items: center; } .container .model-container .model-main .model-buttons .button { flex: 1; padding: 18px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; outline: none; background-color: #ffffff; border-top: 1px solid #f2f2f2; border-right: 1px solid #f2f2f2; } .container .model-container .model-main .model-buttons .button.confirm { color: var(--theme); font-weight: bold; } .container .model-container .model-main .model-buttons .button:last-child { border-right: 0; } .container .model-container .model-main .model-buttons .button:active { background-color: #f2f2f2; } .container .model-container .model-mask { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 1; background-color: rgba(0, 0, 0, 0.45); } .btn-f { position: fixed; top: 50px; left: 0; width: 100vw; height: 50px; background-color: #ff0000; z-index: 999; } .loading { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.5); z-index: 999; align-items: center; justify-content: center; animation: show 0.5s; display: flex; flex-direction: column; color: #fff; font-size: 14px; } .loading .loading-img { width: 1.2rem; height: 1.2rem; animation: loadingRotate 1s linear infinite; margin-bottom: 10px; } @keyframes show { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes loadingRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }