Files
wordpress-theme-aksrt/assets/css/frontend/pages/submit.css
T
kate522 1a0b023658 fix(submit): raise TinyMCE fullscreen above the fixed navbar
TinyMCE's skin injects .mce-fullscreen { z-index: 100 } at editor init,
after core editor.css, so the fullscreen editor (toolbar at the viewport
top) lost to the fixed navbar (.nav-fixed .header, z-index 999). Restore
core's intended 100010 with an element+class selector that outranks the
skin regardless of injection order; it stays below the submit media
dialog (100080). Also remove the dead .mce-top-part.affix rules (no
AKSRT script drives them) and pin both in a contract test.
2026-09-06 10:10:20 +08:00

811 lines
16 KiB
CSS

/* Front-end article editor — follows the reference theme's newposts page. */
/* The form wraps both float columns; flow-root keeps it from collapsing. */
#aksrt-submit-form {
display: flow-root;
}
#aksrt-submit-form .zib-widget {
margin-bottom: 15px;
padding: 15px;
border-radius: var(--main-radius, 8px);
background: var(--main-bg-color, #fff);
box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
}
#aksrt-submit-form .new-posts-submit {
white-space: nowrap;
}
#aksrt-submit-form .but-average > .new-posts-submit {
min-width: 0;
flex: 1 1 50%;
}
.editor-main-box {
overflow: hidden;
}
.new-title {
min-height: 48px;
padding: 8px 5px;
border: 0;
background: transparent;
box-shadow: none;
font-size: 20px;
font-weight: 700;
line-height: 1.5;
resize: none;
}
.new-title:focus {
outline: 0;
box-shadow: none;
}
.newposts-title {
margin-bottom: 12px;
}
.newposts-editor .wp-editor-wrap,
.newposts-editor .wp-editor-container {
border: 0;
}
.newposts-editor .wp-editor-container {
overflow: hidden;
border-radius: 0;
}
/* TinyMCE 全屏容器:skin 样式在编辑器初始化时注入(晚于核心 editor.css),
其 .mce-fullscreen 的 z-index:100 压不过固定导航栏(.nav-fixed .header 为 999)。
用元素+类选择器提高优先级,恢复 WP 核心预期的 100010,仍低于投稿媒体弹层(100080)。 */
div.mce-fullscreen {
z-index: 100010;
}
.newposts-editor .mce-toolbar-grp,
.newposts-editor div.mce-toolbar-grp {
border-bottom: 0;
background: var(--main-bg-color, #fff);
}
.newposts-editor .mce-flow-layout {
overflow-x: auto;
padding: 0;
opacity: 0.8;
white-space: normal;
transition: opacity 0.2s;
}
.newposts-editor .mce-flow-layout:hover {
opacity: 0.9;
}
.newposts-editor div.mce-statusbar {
border-top: 1px solid var(--main-border-color, rgba(50, 50, 50, 0.08));
}
.newposts-editor .aksrt-submit-word-count {
float: right;
margin-right: 24px;
color: var(--muted-color, #777);
line-height: 24px;
}
.newposts-editor .mce-toolbar .mce-btn-group .mce-btn,
.newposts-editor .qt-dfw {
margin: 4px;
border-color: transparent !important;
border-radius: 4px;
transition: 0.2s;
}
.newposts-editor .mce-toolbar .mce-btn-group .mce-btn:focus,
.newposts-editor .mce-toolbar .mce-btn-group .mce-btn:hover,
.newposts-editor .qt-dfw:focus,
.newposts-editor .qt-dfw:hover {
border-color: transparent;
background: var(--main-border-color, rgba(50, 50, 50, 0.08));
color: var(--focus-color, #f04494);
box-shadow: none;
}
.newposts-editor .mce-toolbar .mce-btn-group .mce-btn.mce-active,
.newposts-editor .mce-toolbar .mce-btn-group .mce-btn:active,
.newposts-editor .qt-dfw.active {
background: var(--main-border-color, rgba(50, 50, 50, 0.08));
box-shadow: inset 0 0 0 1px var(--focus-color, #f04494);
opacity: 1;
}
.aksrt-editor-media {
position: fixed;
z-index: 100080;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
}
.aksrt-editor-media[hidden] {
display: none !important;
}
.aksrt-editor-media__backdrop {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
padding: 0;
border: 0;
background: rgba(0, 0, 0, 0.45);
cursor: default;
}
.aksrt-editor-media__dialog {
position: relative;
z-index: 1;
width: min(620px, calc(100vw - 20px));
max-height: calc(100vh - 20px);
overflow: hidden auto;
border-radius: var(--main-radius, 8px);
background: var(--main-bg-color, #fff);
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}
.aksrt-editor-media__dialog:focus {
outline: 0;
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}
.aksrt-editor-media__close {
position: absolute;
z-index: 2;
top: 8px;
right: 10px;
width: 34px;
height: 34px;
padding: 0;
border: 0;
background: transparent;
color: var(--muted-color, #777);
font-size: 26px;
line-height: 34px;
cursor: pointer;
}
.aksrt-editor-media__title {
margin: 0;
padding: 18px 54px 14px 20px;
font-size: 17px;
line-height: 1.4;
}
.aksrt-editor-media__tabs {
display: flex;
gap: 24px;
padding: 0 20px;
border-bottom: 1px solid var(--main-border-color, rgba(50, 50, 50, 0.08));
}
.aksrt-editor-media__tabs button {
position: relative;
padding: 10px 2px 12px;
border: 0;
background: transparent;
color: var(--muted-color, #777);
font-size: 14px;
cursor: pointer;
}
.aksrt-editor-media__tabs button.is-active {
color: var(--focus-color, #f04494);
}
.aksrt-editor-media__tabs button.is-active::after {
position: absolute;
right: 0;
bottom: -1px;
left: 0;
height: 2px;
border-radius: 2px;
background: currentColor;
content: '';
}
.aksrt-editor-media__panel {
display: none;
padding: 20px;
}
.aksrt-editor-media__panel.is-active {
display: block;
}
.aksrt-editor-media__panel > p {
margin: 0 0 10px;
color: var(--muted-color, #777);
font-size: 13px;
}
.aksrt-editor-media__panel textarea {
width: 100%;
min-height: 120px;
resize: vertical;
}
.aksrt-editor-media__drop {
display: flex;
min-height: 180px;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 8px;
padding: 20px;
border: 2px dashed var(--main-border-color, rgba(50, 50, 50, 0.12));
border-radius: var(--main-radius, 8px);
background: var(--muted-border-color, rgba(50, 50, 50, 0.03));
color: var(--muted-color, #777);
text-align: center;
cursor: pointer;
transition: 0.2s;
}
.aksrt-editor-media__drop:hover,
.aksrt-editor-media__drop.is-dragging {
border-color: var(--focus-color, #f04494);
background: rgba(240, 68, 148, 0.06);
color: var(--focus-color, #f04494);
}
.aksrt-editor-media__drop input {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.aksrt-editor-media__drop i {
font-size: 34px;
}
.aksrt-editor-media__drop span {
font-size: 12px;
opacity: 0.75;
}
.aksrt-editor-media__selection {
min-height: 20px;
margin-top: 10px;
color: var(--muted-color, #777);
font-size: 13px;
}
.aksrt-editor-media__submit {
display: block;
min-width: 110px;
margin: 14px 0 0 auto;
}
body.aksrt-editor-media-open {
overflow: hidden;
}
.aksrt-editor-media__search {
display: flex;
gap: 8px;
margin-bottom: 12px;
}
.aksrt-editor-media__search .form-control {
min-width: 0;
flex: 1 1 auto;
}
.aksrt-editor-media__search .but {
flex: 0 0 auto;
}
.aksrt-editor-media__status {
min-height: 20px;
margin: 4px 0 10px;
color: var(--muted-color, #777);
font-size: 13px;
text-align: center;
}
.aksrt-editor-media__status.is-loading {
color: var(--muted-color, #777);
}
.aksrt-editor-media__status.is-error {
color: var(--danger-color, #e05252);
}
.aksrt-editor-media__status.is-empty {
padding: 28px 10px;
color: var(--muted-2-color, #999);
}
.aksrt-editor-media__list {
display: grid;
max-height: min(390px, 48vh);
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
overflow-y: auto;
padding: 2px;
}
.aksrt-editor-media__item {
position: relative;
min-width: 0;
padding: 0;
overflow: hidden;
border: 1px solid var(--main-border-color, rgba(50, 50, 50, 0.1));
border-radius: var(--main-radius, 8px);
background: var(--muted-bg-color, rgba(50, 50, 50, 0.03));
color: var(--main-color, #333);
text-align: left;
cursor: pointer;
transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.aksrt-editor-media__item:hover,
.aksrt-editor-media__item:focus-visible {
border-color: var(--focus-color, #f04494);
outline: 0;
box-shadow: 0 0 0 2px var(--focus-shadow-color, rgba(240, 68, 148, 0.15));
}
.aksrt-editor-media__item.is-selected {
border-color: var(--focus-color, #f04494);
box-shadow: inset 0 0 0 2px var(--focus-color, #f04494);
}
.aksrt-editor-media__item:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.aksrt-editor-media__check {
position: absolute;
z-index: 1;
top: 6px;
left: 6px;
display: flex;
width: 22px;
height: 22px;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(0, 0, 0, 0.58);
color: #fff;
opacity: 0;
font-size: 11px;
line-height: 1;
transition: opacity 0.2s;
}
.aksrt-editor-media__item.is-selected .aksrt-editor-media__check {
background: var(--focus-color, #f04494);
opacity: 1;
}
.aksrt-editor-media__thumb {
display: flex;
width: 100%;
height: 104px;
align-items: center;
justify-content: center;
overflow: hidden;
background: var(--muted-border-color, rgba(50, 50, 50, 0.06));
}
.aksrt-editor-media__thumb img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.aksrt-editor-media__file-icon {
color: var(--focus-color, #f04494);
font-size: 30px;
}
.aksrt-editor-media__meta {
display: block;
min-height: 34px;
padding: 7px 8px;
overflow: hidden;
font-size: 12px;
line-height: 1.4;
text-overflow: ellipsis;
white-space: nowrap;
}
.aksrt-editor-media__mine-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 12px;
}
.aksrt-editor-media__mine-actions .but {
margin: 0;
}
.aksrt-editor-media__load-more {
display: block;
min-width: 110px;
margin: 12px 0 0;
}
.aksrt-editor-media__load-more[hidden],
.aksrt-editor-media__confirm[hidden] {
display: none !important;
}
.aksrt-editor-media__confirm {
margin: 12px 0 0 auto;
}
.aksrt-editor-media__selection {
min-height: 20px;
margin-top: 10px;
color: var(--muted-color, #777);
font-size: 13px;
}
.aksrt-editor-media__progress {
position: relative;
min-height: 34px;
margin-top: 10px;
padding: 9px 10px;
overflow: hidden;
border-radius: 4px;
background: var(--muted-border-color, rgba(50, 50, 50, 0.08));
color: var(--muted-color, #777);
font-size: 12px;
}
.aksrt-editor-media__progress::before {
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 3px;
width: var(--aksrt-upload-progress, 0%);
background: var(--focus-color, #f04494);
content: '';
transition: width 0.2s;
}
.aksrt-editor-media__submit:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.featured-edit {
position: relative;
overflow: hidden;
border-radius: var(--main-radius, 8px);
}
.featured-edit .featured-preview:empty {
display: none;
}
.featured-edit .featured-preview > img {
display: block;
width: 100%;
aspect-ratio: 2 / 1;
object-fit: cover;
}
.featured-edit .featured-type-badge {
position: absolute;
right: 12px;
bottom: 12px;
padding: 4px 8px;
border-radius: 30px;
background: rgba(0, 0, 0, 0.55);
color: #fff;
}
.featured-edit .btns-full {
height: 150px;
border: 2px dashed var(--main-border-color, rgba(50, 50, 50, 0.08));
border-radius: var(--main-radius, 8px);
background: var(--muted-border-color, rgba(50, 50, 50, 0.04));
}
.featured-edit .btns-full .but {
margin: 10px;
font-size: 1.15em;
}
.featured-loaded .btns-full {
position: absolute;
z-index: 11;
top: 0;
right: 0;
height: auto;
padding: 3px 5px;
border: 0;
border-radius: 0 0 0 22px;
background: rgba(0, 0, 0, 0.5);
}
.featured-loaded .btns-full .but {
margin: 4px;
padding: 5px 8px;
background: rgba(255, 255, 255, 0.12);
color: #fff;
font-size: 1em;
}
/* 纯图标按钮(设置视频封面/视频/清除):fa 字形行高与文字不同导致图标上偏,
用 flex 居中修正;并去掉 legacy .but 给图标加的文字间距。btn-delete 的
hidden 属性切换依赖默认 display,故用 :not([hidden]) 守卫。 */
.featured-edit .btns-full .btn-video,
.featured-edit .btns-full .btn-delete:not([hidden]) {
display: inline-flex;
align-items: center;
justify-content: center;
}
.featured-edit .btns-full .btn-video-pic {
display: none;
}
.featured-loaded.video .btns-full .btn-video-pic {
display: inline-flex;
align-items: center;
justify-content: center;
}
.featured-edit .btns-full .btn-video-pic > .fa,
.featured-edit .btns-full .btn-video > .fa,
.featured-edit .btns-full .btn-delete > .fa {
margin-right: 0;
}
.featured-loaded.image .btn-video,
.featured-loaded.image .btn-slide,
.featured-loaded.slide .btn-video,
.featured-loaded.slide .btn-image,
.featured-loaded.video .btn-image,
.featured-loaded.video .btn-slide {
display: none;
}
.editor-main-box .featured-loaded {
margin: -15px -15px 20px;
border-radius: var(--main-radius, 8px) var(--main-radius, 8px) 0 0;
}
.term-select-box .drop-btn {
width: 100%;
min-height: 38px;
border: 1px solid var(--main-border-color, rgba(50, 50, 50, 0.08));
background: var(--muted-bg-color, rgba(50, 50, 50, 0.03));
color: var(--main-color, #333);
text-align: left;
cursor: pointer;
}
.term-select-box .drop-btn .fa-angle-right {
transition: transform 0.2s;
}
.term-select-box .drop-select.open .drop-btn .fa-angle-right {
transform: rotate(90deg);
}
.select-drop-box .aksrt-submit-check {
display: flex;
align-items: center;
gap: 7px;
padding: 5px 2px;
cursor: pointer;
}
.newpost-filter-tags {
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.newpost-filter-tags .tag-list input {
position: absolute;
opacity: 0;
}
.newpost-filter-tags .tag-list.active .badg,
.newpost-filter-tags .tag-list:has(input:checked) .badg {
background: var(--focus-color, #f04494);
color: #fff;
}
.newpost-pay-box .padding-h10 {
padding: 10px 0;
}
.newpost-pay-box .border-bottom {
border-bottom: 1px solid var(--main-border-color, rgba(50, 50, 50, 0.08));
}
.newpost-pay-box .form-switch-label {
margin: 0;
cursor: pointer;
}
.newpost-pay-price .line-form-input {
padding: 0;
text-align: right;
}
.pay-dawnload-edit .lists-box {
border-radius: var(--main-radius, 8px);
background: var(--muted-border-color, rgba(50, 50, 50, 0.04));
}
.pay-dawnload-edit .lists-item {
gap: 5px;
padding: 4px 12px;
word-break: break-all;
}
.pay-dawnload-edit .lists-item + .lists-item {
border-top: 1px solid var(--main-border-color, rgba(50, 50, 50, 0.08));
}
.pay-dawnload-edit .name-link {
min-width: 0;
padding: 5px 0;
overflow: hidden;
border: 0;
background: transparent;
color: var(--focus-color, #f04494);
line-height: 1.5;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
.pay-dawnload-edit .name-link:focus,
.pay-dawnload-edit .name-link:active {
outline: 0;
box-shadow: none;
}
.pay-dawnload-edit-modal .aksrt-editor-media__dialog {
width: min(600px, calc(100vw - 20px));
}
.pay-dawnload-edit-content {
padding: 20px;
}
.pay-dawnload-edit-content .pay-dawnload-edit-fields {
padding: 0 3px;
}
.pay-dawnload-edit-content .form-control {
width: 100%;
min-width: 0;
}
.pay-dawnload-edit-content .class-choice {
width: 29px;
height: 22px;
margin: 2px;
padding: 0;
border: 2px solid var(--main-bg-color, #fff);
cursor: pointer;
}
.pay-dawnload-edit-content .class-choice.is-active {
box-shadow: 0 0 0 2px var(--muted-2-color, #999);
}
.pay-dawnload-edit-content .modal-buts {
margin: 18px -20px -20px;
}
.pay-dawnload-edit-content .pay-upload-btn .fa {
margin-right: 4px;
}
#aksrt-submit-form [hidden] {
display: none !important;
}
@media (max-width: 991px) {
body .newposts-wrap {
float: none;
}
body .sidebar.show-sidebar {
display: unset;
width: 100%;
margin-left: 0;
}
}
@media (max-width: 767px) {
.newposts-wrap .zib-widget {
border-radius: 0;
}
.editor-main-box .featured-loaded,
.editor-main-box .featured-loaded img {
border-radius: 0;
}
.newposts-editor .mce-toolbar .mce-btn-group .mce-btn,
.newposts-editor .qt-dfw {
margin: 2px;
}
.aksrt-editor-media {
align-items: flex-end;
padding: 0;
}
.aksrt-editor-media__dialog {
width: 100%;
max-height: 88vh;
border-radius: 12px 12px 0 0;
}
.aksrt-editor-media__list {
max-height: 42vh;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.aksrt-editor-media__thumb {
height: 92px;
}
.aksrt-editor-media__tabs {
gap: 14px;
overflow-x: auto;
white-space: nowrap;
}
.aksrt-editor-media__panel {
padding: 15px;
}
.aksrt-editor-media__mine-actions {
flex-wrap: wrap;
}
.aksrt-editor-media__mine-actions .aksrt-editor-media__load-more {
margin-right: auto;
}
.aksrt-editor-media__search .but {
padding-right: 10px;
padding-left: 10px;
}
.aksrt-editor-media__drop {
min-height: 150px;
}
.pay-dawnload-edit-content {
padding: 18px 15px;
}
.pay-dawnload-edit-content .modal-buts {
margin-right: -15px;
margin-bottom: -18px;
margin-left: -15px;
}
}