进行了一些小修复

This commit is contained in:
2026-08-26 16:59:42 +08:00
parent b80ac46147
commit 5121b33ad5
8 changed files with 663 additions and 86 deletions
@@ -0,0 +1,44 @@
/* Content shown inside the front-submit TinyMCE iframe. */
.tinymce-hide {
position: relative;
margin: 18px 0;
padding: 38px 14px 14px;
border: 1px dashed rgba(240, 68, 148, 0.35);
border-radius: 6px;
background: rgba(240, 68, 148, 0.04);
}
.tinymce-hide > .hide-before,
.tinymce-hide > .hide-after {
margin: 0;
color: #f04494;
font-family: Consolas, Monaco, monospace;
font-size: 12px;
line-height: 1.5;
}
.tinymce-hide > .hide-before {
position: absolute;
top: 10px;
left: 14px;
}
.tinymce-hide > .hide-after {
margin-top: 8px;
}
.tinymce-hide > [contenteditable="true"] {
min-height: 38px;
padding: 10px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.75);
outline: 0;
}
.tinymce-hide > [contenteditable="true"] > :first-child {
margin-top: 0;
}
.tinymce-hide > [contenteditable="true"] > :last-child {
margin-bottom: 0;
}
+175 -6
View File
@@ -117,16 +117,170 @@
opacity: 1;
}
.newposts-editor-tools {
.aksrt-editor-media {
position: fixed;
z-index: 100080;
inset: 0;
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 8px 0 0;
align-items: center;
justify-content: center;
padding: 10px;
}
.newposts-editor-tools .but {
padding: 4px 9px;
.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__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;
}
.featured-edit {
@@ -402,6 +556,21 @@
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__drop {
min-height: 150px;
}
.pay-dawnload-edit .lists-item {
align-items: stretch;
flex-direction: column;