mirror of
https://github.com/joeytoday/obsidian-mp-publisher.git
synced 2026-07-22 06:53:08 +00:00
2305 lines
50 KiB
CSS
2305 lines
50 KiB
CSS
/* src/styles/view/layout.css */
|
||
.mp-view-content {
|
||
height: 100%;
|
||
padding: 10px 10px 0 10px;
|
||
overflow: auto;
|
||
}
|
||
.mp-toolbar,
|
||
.mp-bottom-bar {
|
||
padding: 15px 0;
|
||
max-width: 580px;
|
||
background: var(--background-secondary);
|
||
}
|
||
.mp-toolbar {
|
||
top: 0;
|
||
border-radius: 8px;
|
||
border-bottom: 2px solid var(--background-modifier-border);
|
||
}
|
||
.mp-bottom-bar {
|
||
bottom: 0;
|
||
border-radius: 8px;
|
||
border-top: 2px solid var(--background-modifier-border);
|
||
}
|
||
.mp-controls-group {
|
||
display: flex;
|
||
gap: 12px;
|
||
align-items: center;
|
||
width: 100%;
|
||
justify-content: flex-start;
|
||
flex-wrap: nowrap;
|
||
min-width: 0;
|
||
}
|
||
.mp-controls-group button {
|
||
height: 36px;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
background: var(--background-primary);
|
||
color: var(--text-normal);
|
||
font-size: 14px;
|
||
box-shadow: 0 1px 3px var(--background-modifier-box-shadow);
|
||
flex: 1;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
}
|
||
.mp-controls-group button span {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
min-width: 0;
|
||
}
|
||
.mp-controls-group button:hover {
|
||
background: var(--background-modifier-hover);
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 12px var(--background-modifier-box-shadow);
|
||
}
|
||
.mp-controls-group button:disabled {
|
||
opacity: 0.5;
|
||
background: var(--background-primary);
|
||
color: var(--text-muted);
|
||
cursor: not-allowed;
|
||
transform: none;
|
||
border-color: var(--background-modifier-border);
|
||
box-shadow: none;
|
||
}
|
||
.mp-controls-group .mp-refresh-button,
|
||
.mp-controls-group .mp-help-button {
|
||
width: 36px;
|
||
padding: 0;
|
||
margin: 0 20px 0 10px;
|
||
flex: none;
|
||
}
|
||
.mp-controls-group .mp-copy-button {
|
||
background-color: var(--text-accent);
|
||
color: var(--text-on-accent);
|
||
border: none;
|
||
}
|
||
.mp-controls-group .mp-copy-button:hover {
|
||
color: var(--text-on-accent);
|
||
background-color: var(--text-accent);
|
||
}
|
||
.custom-select-container {
|
||
position: relative;
|
||
min-width: 36px;
|
||
max-width: 120px;
|
||
flex: 1;
|
||
}
|
||
.custom-select {
|
||
height: 36px;
|
||
padding: 0 12px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
background: var(--background-primary);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
transition: all 0.2s ease;
|
||
color: var(--text-normal);
|
||
box-shadow: 0 1px 3px var(--background-modifier-box-shadow);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
}
|
||
.selected-text {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.custom-select:hover {
|
||
background: var(--background-modifier-hover);
|
||
box-shadow: 0 2px 6px var(--background-modifier-box-shadow);
|
||
}
|
||
.custom-select.disabled {
|
||
opacity: 0.5;
|
||
background: var(--background-secondary);
|
||
color: var(--text-muted);
|
||
border-color: var(--background-modifier-border);
|
||
cursor: not-allowed;
|
||
box-shadow: none;
|
||
}
|
||
.select-arrow {
|
||
color: var(--text-normal);
|
||
font-size: 12px;
|
||
transition: transform 0.2s ease;
|
||
margin-left: 4px;
|
||
flex-shrink: 0;
|
||
}
|
||
.select-dropdown {
|
||
position: absolute;
|
||
top: calc(100% + 4px);
|
||
left: 0;
|
||
width: 100%;
|
||
background: var(--background-primary);
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
box-shadow: 0 4px 12px var(--background-modifier-box-shadow);
|
||
display: none;
|
||
z-index: 1000;
|
||
overflow: hidden;
|
||
}
|
||
.select-dropdown.show {
|
||
display: block;
|
||
}
|
||
.select-item {
|
||
padding: 8px 12px;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
color: var(--text-normal);
|
||
}
|
||
.select-item:hover {
|
||
background: var(--background-modifier-hover);
|
||
}
|
||
.select-item.selected {
|
||
background: var(--background-modifier-hover);
|
||
color: var(--text-accent);
|
||
}
|
||
.mp-font-size-group {
|
||
min-width: 36px;
|
||
max-width: 120px;
|
||
height: 36px;
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
background: var(--background-primary);
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
padding: 0;
|
||
overflow: hidden;
|
||
box-shadow: 0 1px 3px var(--background-modifier-box-shadow);
|
||
}
|
||
.mp-font-size-input {
|
||
width: 30px;
|
||
text-align: center;
|
||
}
|
||
.mp-help-tooltip {
|
||
position: absolute;
|
||
left: 30px;
|
||
bottom: 80px;
|
||
width: 300px;
|
||
padding: 12px 16px;
|
||
background: var(--background-primary);
|
||
border: 2px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
box-shadow: 0 4px 12px var(--background-modifier-box-shadow);
|
||
font-size: 13px;
|
||
line-height: 1.6;
|
||
color: var(--text-normal);
|
||
display: none;
|
||
white-space: pre-line;
|
||
z-index: 1001;
|
||
pointer-events: none;
|
||
}
|
||
.mp-controls-group .mp-help-button {
|
||
position: relative;
|
||
}
|
||
.mp-help-button:hover + .mp-help-tooltip {
|
||
display: block;
|
||
}
|
||
.mp-donate-overlay {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background: var(--background-modifier-cover);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 1000;
|
||
}
|
||
.mp-about-modal {
|
||
background: var(--background-primary);
|
||
border-radius: 12px;
|
||
padding: 20px;
|
||
width: 520px;
|
||
max-height: 90vh;
|
||
position: relative;
|
||
box-shadow: 0 4px 10px var(--background-modifier-box-shadow);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
overflow-y: auto;
|
||
}
|
||
.mp-about-modal::-webkit-scrollbar {
|
||
width: 8px;
|
||
}
|
||
.mp-about-modal::-webkit-scrollbar-track {
|
||
background: var(--scrollbar-track-background);
|
||
border-radius: 4px;
|
||
}
|
||
.mp-about-modal::-webkit-scrollbar-thumb {
|
||
background: var(--scrollbar-thumb-background);
|
||
border-radius: 4px;
|
||
}
|
||
.mp-about-modal::-webkit-scrollbar-thumb:hover {
|
||
background: var(--scrollbar-thumb-background-hover);
|
||
}
|
||
.mp-donate-close {
|
||
position: absolute;
|
||
top: 7px;
|
||
right: 7px;
|
||
width: 28px;
|
||
height: 28px;
|
||
background: transparent;
|
||
border: none;
|
||
border-radius: 6px;
|
||
font-size: 17px;
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: all 0.2s ease;
|
||
}
|
||
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-color-index:0) {
|
||
.mp-donate-close {
|
||
right: auto;
|
||
left: 7px;
|
||
}
|
||
}
|
||
.mp-donate-close:hover {
|
||
background: var(--background-modifier-hover);
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-about-section {
|
||
padding: 10px;
|
||
margin: 8px 20px 0 20px;
|
||
border-radius: 8px;
|
||
background: var(--background-secondary);
|
||
border: 1px solid var(--background-modifier-border);
|
||
}
|
||
.mp-about-title {
|
||
font-size: 20px;
|
||
font-weight: 600;
|
||
color: var(--text-normal);
|
||
margin: 0 0 1px;
|
||
text-align: center;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
.mp-about-subtitle {
|
||
font-size: 18px;
|
||
color: var(--text-accent);
|
||
margin: 8px 0 12px;
|
||
letter-spacing: 0.3px;
|
||
font-weight: 600;
|
||
}
|
||
.mp-about-intro {
|
||
font-size: 15px;
|
||
color: var(--text-normal);
|
||
margin: 8px 0;
|
||
line-height: 1.8;
|
||
letter-spacing: 0.2px;
|
||
}
|
||
.mp-about-role,
|
||
.mp-about-desc {
|
||
font-size: 14.5px;
|
||
color: var(--text-normal);
|
||
margin: 6px 0;
|
||
line-height: 1.8;
|
||
letter-spacing: 0.2px;
|
||
}
|
||
.mp-about-name {
|
||
color: var(--text-accent);
|
||
font-weight: 600;
|
||
font-size: 16px;
|
||
padding: 0 2px;
|
||
}
|
||
.mp-about-identity {
|
||
color: var(--text-normal);
|
||
font-weight: 500;
|
||
background: var(--background-modifier-hover);
|
||
padding: 0 4px;
|
||
border-radius: 3px;
|
||
}
|
||
.mp-about-highlight,
|
||
.mp-about-value,
|
||
.mp-about-emphasis {
|
||
color: var(--text-accent);
|
||
font-weight: 500;
|
||
}
|
||
.mp-about-footer {
|
||
font-size: 15px;
|
||
color: var(--text-normal);
|
||
text-align: center;
|
||
margin: 1px 0 0;
|
||
padding: 1px;
|
||
background: var(--background-secondary);
|
||
border-radius: 8px;
|
||
font-weight: 500;
|
||
letter-spacing: 0.3px;
|
||
line-height: 1.6;
|
||
}
|
||
.mp-about-footer strong {
|
||
color: var(--text-accent);
|
||
font-weight: 600;
|
||
}
|
||
.mp-about-qr {
|
||
width: 100%;
|
||
height: 150px;
|
||
margin: 5px 0;
|
||
padding: 5px;
|
||
background: var(--background-primary);
|
||
border-radius: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-shadow: 0 2px 8px var(--background-modifier-box-shadow);
|
||
}
|
||
.mp-about-qr img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: contain;
|
||
}
|
||
|
||
/* src/styles/view/preview.css */
|
||
.mp-preview-area {
|
||
padding: 10px 20px 20px 20px;
|
||
margin: 10px;
|
||
height: calc(100% - 180px);
|
||
overflow-y: auto;
|
||
background: #fcfcfc;
|
||
flex: 1;
|
||
border-radius: 12px;
|
||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
|
||
border: 1px solid rgba(82, 144, 220, 0.08);
|
||
}
|
||
.mp-content-section p {
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
.mp-content-section ul,
|
||
ol {
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
.mp-content-section a {
|
||
color: var(--text-accent);
|
||
text-decoration: none;
|
||
}
|
||
.mp-content-section table {
|
||
border-collapse: collapse;
|
||
margin: 1em 0;
|
||
width: 100%;
|
||
}
|
||
.mp-content-section th,
|
||
.mp-content-section td {
|
||
border: 1px solid var(--background-modifier-border);
|
||
padding: 8px;
|
||
}
|
||
.mp-content-section hr {
|
||
border: none;
|
||
border-top: 1px solid var(--background-modifier-border);
|
||
margin: 20px 0;
|
||
}
|
||
.mp-content-section del {
|
||
text-decoration: line-through;
|
||
}
|
||
.mp-content-section .task-list-item {
|
||
list-style: none;
|
||
}
|
||
.mp-content-section .task-list-item input[type=checkbox] {
|
||
margin-right: 6px;
|
||
}
|
||
.mp-content-section .footnote-ref,
|
||
.mp-content-section .footnote-backref {
|
||
color: var(--text-accent);
|
||
text-decoration: none;
|
||
}
|
||
.mp-content-section img {
|
||
max-width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
margin: 1em auto;
|
||
}
|
||
.mp-content-section img + .mp-image-caption {
|
||
margin-top: -0.6em;
|
||
}
|
||
.mp-content-section .mp-image-caption {
|
||
display: block;
|
||
text-align: center;
|
||
font-size: 12px;
|
||
color: #888;
|
||
margin: 0 0 1em 0;
|
||
padding: 0;
|
||
}
|
||
.mp-content-section blockquote p {
|
||
margin: 0;
|
||
padding: 0;
|
||
line-height: inherit;
|
||
}
|
||
.mp-empty-message {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
height: 100%;
|
||
color: var(--text-muted);
|
||
font-size: 16px;
|
||
}
|
||
|
||
/* src/styles/settings/settings.css */
|
||
.mp-settings {
|
||
margin: 0 auto;
|
||
padding: 20px;
|
||
background-color: var(--background-primary);
|
||
border-radius: 10px;
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||
}
|
||
.mp-settings h2 {
|
||
margin: 20px 0;
|
||
padding-bottom: 1rem;
|
||
border-bottom: 2px solid var(--background-modifier-border);
|
||
font-size: 1.6em;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-settings .settings-section {
|
||
margin-bottom: 2rem;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
overflow-y: auto;
|
||
background-color: var(--background-secondary);
|
||
}
|
||
.mp-settings .settings-section-header {
|
||
display: flex;
|
||
align-items: center;
|
||
cursor: pointer;
|
||
padding: 1.2rem;
|
||
background-color: var(--background-secondary);
|
||
transition: background-color 0.3s ease;
|
||
}
|
||
.mp-settings .settings-section-header:hover {
|
||
background-color: var(--background-secondary-alt);
|
||
}
|
||
.mp-settings .settings-section-header h4 {
|
||
margin: 0;
|
||
flex: 1;
|
||
font-size: 1.2em;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-settings .settings-section-toggle {
|
||
margin-right: 0.5rem;
|
||
color: var(--text-muted);
|
||
}
|
||
.mp-settings .settings-section-content {
|
||
display: none;
|
||
padding: 20px 10px;
|
||
background-color: var(--background-primary);
|
||
}
|
||
.mp-settings .settings-section.is-expanded .settings-section-content {
|
||
display: block;
|
||
}
|
||
.mp-settings .template-management {
|
||
max-height: 400px;
|
||
overflow-y: auto;
|
||
padding: 0 12px;
|
||
}
|
||
.mp-settings .template-management::-webkit-scrollbar {
|
||
width: 8px;
|
||
}
|
||
.mp-settings .template-management::-webkit-scrollbar-track {
|
||
background: var(--background-primary);
|
||
border-radius: 4px;
|
||
}
|
||
.mp-settings .template-management::-webkit-scrollbar-thumb {
|
||
background: var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
}
|
||
.mp-settings .template-management::-webkit-scrollbar-thumb:hover {
|
||
background: var(--background-modifier-border-hover);
|
||
}
|
||
.mp-settings .template-list {
|
||
padding: 15px 0;
|
||
}
|
||
.mp-settings .template-list h4 {
|
||
margin: 0 0 1.5rem;
|
||
color: var(--text-normal);
|
||
font-size: 1.2em;
|
||
}
|
||
.mp-settings .template-item {
|
||
margin-bottom: 0.8rem;
|
||
padding: 1rem;
|
||
border-radius: 8px;
|
||
background-color: var(--background-primary);
|
||
border: 1px solid var(--background-modifier-border);
|
||
transition: all 0.3s ease;
|
||
}
|
||
.mp-settings .template-item:hover {
|
||
box-shadow: 0 4px 12px var(--background-modifier-box-shadow);
|
||
}
|
||
.mp-settings .template-item .setting-item {
|
||
border: none;
|
||
padding: 12px;
|
||
}
|
||
.mp-settings .template-item .setting-item-info {
|
||
margin-right: 1.5rem;
|
||
}
|
||
.mp-settings .template-item .setting-item-name {
|
||
font-size: 1.2em;
|
||
font-weight: 600;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-settings .template-item .setting-item-description {
|
||
color: var(--text-muted);
|
||
}
|
||
.mp-settings .template-item .setting-item-control .clickable-icon {
|
||
padding: 6px;
|
||
border-radius: 6px;
|
||
color: var(--text-muted);
|
||
}
|
||
.mp-settings .template-item .setting-item-control .clickable-icon:hover {
|
||
color: var(--text-normal);
|
||
background-color: var(--background-modifier-hover);
|
||
}
|
||
/* 公众号卡片 */
|
||
.mp-settings .mp-account-card {
|
||
margin-bottom: 12px;
|
||
padding: 16px 20px;
|
||
border-radius: 8px;
|
||
background-color: var(--background-secondary);
|
||
border: 1px solid var(--background-modifier-border);
|
||
}
|
||
.mp-settings .mp-account-card.is-active {
|
||
border-color: var(--interactive-accent);
|
||
background-color: color-mix(in srgb, var(--interactive-accent) 4%, var(--background-secondary));
|
||
}
|
||
.mp-settings .mp-account-card-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 12px;
|
||
padding-bottom: 10px;
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
}
|
||
.mp-settings .mp-account-card-title-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.mp-settings .mp-account-name-input {
|
||
font-size: 1em;
|
||
font-weight: 600;
|
||
background: transparent;
|
||
border: none;
|
||
border-bottom: 1px solid transparent;
|
||
padding: 2px 0;
|
||
color: var(--text-normal);
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.mp-settings .mp-account-name-input:hover {
|
||
border-bottom-color: var(--background-modifier-border);
|
||
}
|
||
.mp-settings .mp-account-name-input:focus {
|
||
outline: none;
|
||
border-bottom-color: var(--interactive-accent);
|
||
}
|
||
.mp-settings .mp-account-name-input::placeholder {
|
||
color: var(--text-muted);
|
||
font-weight: 400;
|
||
}
|
||
.mp-settings .mp-account-badge {
|
||
font-size: 11px;
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
background-color: var(--interactive-accent);
|
||
color: var(--text-on-accent);
|
||
white-space: nowrap;
|
||
font-weight: 500;
|
||
}
|
||
.mp-settings .mp-account-card-actions {
|
||
display: flex;
|
||
gap: 6px;
|
||
margin-left: 12px;
|
||
flex-shrink: 0;
|
||
}
|
||
.mp-settings .mp-account-action-btn {
|
||
font-size: 12px;
|
||
padding: 4px 10px;
|
||
border-radius: 4px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
background: var(--background-primary);
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
.mp-settings .mp-account-action-btn:hover {
|
||
color: var(--text-normal);
|
||
border-color: var(--text-muted);
|
||
}
|
||
.mp-settings .mp-account-action-btn--danger:hover {
|
||
color: var(--text-error);
|
||
border-color: var(--text-error);
|
||
}
|
||
.mp-settings .mp-account-card-body .setting-item {
|
||
border: none;
|
||
padding: 4px 0;
|
||
}
|
||
.mp-settings .mp-account-card-body .setting-item:last-child {
|
||
padding-bottom: 0;
|
||
}
|
||
/* 空状态 */
|
||
.mp-settings .mp-empty-state {
|
||
padding: 24px 16px;
|
||
text-align: center;
|
||
border: 1px dashed var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
margin-bottom: 12px;
|
||
}
|
||
.mp-settings .mp-empty-state p {
|
||
margin: 0;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-settings .mp-empty-state .mp-empty-state-hint {
|
||
margin-top: 6px;
|
||
font-size: 13px;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.template-visibility-container {
|
||
margin-top: 20px;
|
||
}
|
||
.template-visibility-container h3 {
|
||
margin-bottom: 15px;
|
||
font-size: 1.3em;
|
||
color: var(--text-normal);
|
||
}
|
||
.template-selection-container {
|
||
display: flex;
|
||
margin-top: 10px;
|
||
gap: 15px;
|
||
align-items: stretch;
|
||
}
|
||
.all-templates-container,
|
||
.visible-templates-container {
|
||
flex: 1;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
padding: 15px;
|
||
background-color: var(--background-primary);
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||
}
|
||
.all-templates-container h4,
|
||
.visible-templates-container h4 {
|
||
margin: 0 0 15px;
|
||
padding-bottom: 10px;
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
font-size: 1.1em;
|
||
color: var(--text-normal);
|
||
text-align: center;
|
||
}
|
||
.control-buttons-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
padding: 0 5px;
|
||
}
|
||
.control-buttons-container button {
|
||
margin: 5px 0;
|
||
padding: 8px 12px;
|
||
border-radius: 6px;
|
||
background-color: var(--interactive-normal);
|
||
color: var(--text-normal);
|
||
border: 1px solid var(--background-modifier-border);
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
.control-buttons-container button:hover {
|
||
background-color: var(--interactive-hover);
|
||
}
|
||
.templates-list {
|
||
max-height: 250px;
|
||
overflow-y: auto;
|
||
padding: 5px;
|
||
}
|
||
.template-list-item {
|
||
padding: 10px;
|
||
margin-bottom: 8px;
|
||
cursor: pointer;
|
||
border-radius: 6px;
|
||
background-color: var(--background-secondary);
|
||
transition: all 0.2s ease;
|
||
}
|
||
.template-list-item:hover {
|
||
background-color: var(--background-modifier-hover);
|
||
}
|
||
.template-list-item.selected {
|
||
background-color: var(--interactive-accent);
|
||
color: var(--text-on-accent);
|
||
}
|
||
.templates-list::-webkit-scrollbar {
|
||
width: 6px;
|
||
}
|
||
.templates-list::-webkit-scrollbar-track {
|
||
background: var(--background-primary);
|
||
border-radius: 3px;
|
||
}
|
||
.templates-list::-webkit-scrollbar-thumb {
|
||
background: var(--background-modifier-border);
|
||
border-radius: 3px;
|
||
}
|
||
.templates-list::-webkit-scrollbar-thumb:hover {
|
||
background: var(--background-modifier-border-hover);
|
||
}
|
||
.mp-settings .mp-settings-subsection {
|
||
margin: 0 12px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
overflow-y: auto;
|
||
}
|
||
.mp-settings .mp-settings-subsection-header {
|
||
display: flex;
|
||
align-items: center;
|
||
cursor: pointer;
|
||
padding: 0.8rem 1rem;
|
||
background-color: var(--background-primary);
|
||
transition: background-color 0.3s ease;
|
||
}
|
||
.mp-settings .mp-settings-subsection-header:hover {
|
||
background-color: var(--background-modifier-hover);
|
||
}
|
||
.mp-settings .mp-settings-subsection-header h3 {
|
||
margin: 0;
|
||
flex: 1;
|
||
font-size: 1.1em;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-settings .mp-settings-subsection-toggle {
|
||
margin-right: 0.5rem;
|
||
color: var(--text-muted);
|
||
}
|
||
.mp-settings .mp-settings-subsection-content {
|
||
display: none;
|
||
padding: 1rem;
|
||
margin: 0 20px;
|
||
background-color: var(--background-primary);
|
||
}
|
||
.mp-settings .mp-settings-subsection.is-expanded .mp-settings-subsection-content {
|
||
display: block;
|
||
}
|
||
.mp-settings .background-management {
|
||
max-height: 400px;
|
||
overflow-y: auto;
|
||
padding: 0 12px;
|
||
}
|
||
.mp-settings .background-management::-webkit-scrollbar {
|
||
width: 8px;
|
||
}
|
||
.mp-settings .background-management::-webkit-scrollbar-track {
|
||
background: var(--background-primary);
|
||
border-radius: 4px;
|
||
}
|
||
.mp-settings .background-management::-webkit-scrollbar-thumb {
|
||
background: var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
}
|
||
.mp-settings .background-management::-webkit-scrollbar-thumb:hover {
|
||
background: var(--background-modifier-border-hover);
|
||
}
|
||
.mp-settings .background-item {
|
||
margin-bottom: 0.8rem;
|
||
padding: 1rem;
|
||
border-radius: 8px;
|
||
background-color: var(--background-primary);
|
||
border: 1px solid var(--background-modifier-border);
|
||
transition: all 0.3s ease;
|
||
}
|
||
.mp-settings .background-item:hover {
|
||
box-shadow: 0 4px 12px var(--background-modifier-box-shadow);
|
||
}
|
||
.mp-settings .background-item .setting-item {
|
||
border: none;
|
||
padding: 12px;
|
||
}
|
||
.mp-settings .background-preview {
|
||
height: 20px;
|
||
border-radius: 5px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 1px solid var(--background-modifier-border);
|
||
}
|
||
.background-selection-container {
|
||
display: flex;
|
||
margin-top: 10px;
|
||
gap: 15px;
|
||
align-items: stretch;
|
||
}
|
||
.all-backgrounds-container,
|
||
.visible-backgrounds-container {
|
||
flex: 1;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
padding: 15px;
|
||
background-color: var(--background-primary);
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||
}
|
||
.all-backgrounds-container h4,
|
||
.visible-backgrounds-container h4 {
|
||
margin: 0 0 15px;
|
||
padding-bottom: 10px;
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
font-size: 1.1em;
|
||
color: var(--text-normal);
|
||
text-align: center;
|
||
}
|
||
.backgrounds-list {
|
||
max-height: 250px;
|
||
overflow-y: auto;
|
||
padding: 5px;
|
||
}
|
||
.background-list-item {
|
||
padding: 10px;
|
||
margin-bottom: 8px;
|
||
cursor: pointer;
|
||
border-radius: 6px;
|
||
background-color: var(--background-secondary);
|
||
transition: all 0.2s ease;
|
||
}
|
||
.background-list-item:hover {
|
||
background-color: var(--background-modifier-hover);
|
||
}
|
||
.background-list-item.selected {
|
||
background-color: var(--interactive-accent);
|
||
color: var(--text-on-accent);
|
||
}
|
||
.backgrounds-list::-webkit-scrollbar {
|
||
width: 6px;
|
||
}
|
||
.backgrounds-list::-webkit-scrollbar-track {
|
||
background: var(--background-primary);
|
||
border-radius: 3px;
|
||
}
|
||
.backgrounds-list::-webkit-scrollbar-thumb {
|
||
background: var(--background-modifier-border);
|
||
border-radius: 3px;
|
||
}
|
||
.backgrounds-list::-webkit-scrollbar-thumb:hover {
|
||
background: var(--background-modifier-border-hover);
|
||
}
|
||
|
||
/* src/styles/settings/font-modal.css */
|
||
.mp-font-modal {
|
||
--mfd-accent: var(--interactive-accent);
|
||
--mfd-bg: var(--background-primary);
|
||
--mfd-border: var(--background-modifier-border);
|
||
}
|
||
.mp-font-modal .mfd-header {
|
||
display: flex;
|
||
align-items: center;
|
||
margin: 0 0 1.5rem;
|
||
padding: 0.5rem 0;
|
||
border-bottom: 1px solid var(--mfd-border);
|
||
}
|
||
.mp-font-modal .mfd-help-trigger {
|
||
position: relative;
|
||
margin-left: 0.8rem;
|
||
}
|
||
.mp-font-modal .mfd-help-btn {
|
||
background: none;
|
||
border: none;
|
||
padding: 4px;
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
transition: opacity 0.2s ease;
|
||
opacity: 0.8;
|
||
}
|
||
.mp-font-modal .mfd-help-btn:hover {
|
||
opacity: 1;
|
||
color: var(--mfd-accent);
|
||
}
|
||
.mp-font-modal .mfd-help-tooltip {
|
||
display: none;
|
||
position: absolute;
|
||
top: calc(100% + 10px);
|
||
width: 390px;
|
||
padding: 14px;
|
||
background: var(--mfd-bg);
|
||
border: 1px solid var(--mfd-border);
|
||
border-radius: 6px;
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||
z-index: calc(var(--layer-popover) + 100);
|
||
font-size: 13px;
|
||
line-height: 1.6;
|
||
white-space: pre-line;
|
||
}
|
||
.mp-font-modal .mfd-help-trigger:hover .mfd-help-tooltip {
|
||
display: block;
|
||
}
|
||
@media (hover: none) and (pointer: coarse) {
|
||
.mp-font-modal .mfd-help-tooltip {
|
||
width: 95vw;
|
||
left: auto;
|
||
right: 0;
|
||
transform: none;
|
||
}
|
||
}
|
||
|
||
/* src/styles/settings/template-modal.css */
|
||
:root {
|
||
--modal-padding: 1.5rem;
|
||
--border-radius: 8px;
|
||
--transition-duration: 0.2s;
|
||
}
|
||
.mp-template-modal {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 75vh;
|
||
}
|
||
.mp-template-modal .modal-header {
|
||
padding: var(--modal-padding);
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
background-color: var(--background-primary);
|
||
}
|
||
.mp-template-modal .modal-header h2 {
|
||
margin: 0 0 1rem;
|
||
font-size: 1.5em;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-template-modal .modal-scroll-container {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: var(--modal-padding);
|
||
background-color: var(--background-secondary);
|
||
}
|
||
.mp-template-modal .modal-scroll-container::-webkit-scrollbar {
|
||
width: 8px;
|
||
}
|
||
.mp-template-modal .modal-scroll-container::-webkit-scrollbar-track {
|
||
background: var(--background-primary);
|
||
}
|
||
.mp-template-modal .modal-scroll-container::-webkit-scrollbar-thumb {
|
||
background-color: var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
}
|
||
.mp-template-modal .modal-scroll-container::-webkit-scrollbar-thumb:hover {
|
||
background-color: var(--background-modifier-border-hover);
|
||
}
|
||
.mp-template-modal .style-section {
|
||
margin-bottom: 1rem;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: var(--border-radius);
|
||
overflow: hidden;
|
||
background-color: var(--background-primary);
|
||
}
|
||
.mp-template-modal .style-section-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 1rem;
|
||
background-color: var(--background-secondary);
|
||
cursor: pointer;
|
||
transition: background-color var(--transition-duration) ease;
|
||
}
|
||
.mp-template-modal .style-section-reset {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 4px;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
color: var(--text-muted);
|
||
transition: all 0.2s ease;
|
||
}
|
||
.mp-template-modal .style-section-reset:hover {
|
||
color: var(--text-normal);
|
||
background-color: var(--background-modifier-hover);
|
||
}
|
||
.mp-template-modal .style-section-header:hover {
|
||
background-color: var(--background-secondary-alt);
|
||
}
|
||
.mp-template-modal .style-section-title {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
flex: 1;
|
||
}
|
||
.mp-template-modal .style-section-title h3 {
|
||
margin: 0;
|
||
font-size: 1.2em;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-template-modal .style-section-title h4 {
|
||
margin: 0;
|
||
font-size: 1em;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-template-modal .style-section-toggle {
|
||
display: flex;
|
||
align-items: center;
|
||
color: var(--text-muted);
|
||
transition: transform var(--transition-duration) ease;
|
||
margin-right: 0.5rem;
|
||
}
|
||
.mp-template-modal .style-section-content {
|
||
display: none;
|
||
padding: 1rem;
|
||
background-color: var(--background-primary);
|
||
}
|
||
.mp-template-modal .style-section.is-expanded .style-section-content {
|
||
display: block;
|
||
}
|
||
.mp-template-modal .setting-item {
|
||
padding: 0.8rem 0;
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
display: flex;
|
||
}
|
||
.mp-template-modal .setting-item:last-child {
|
||
border-bottom: none;
|
||
}
|
||
.mp-template-modal .setting-item-info {
|
||
margin-right: 1.5rem;
|
||
margin-bottom: 0.5rem;
|
||
}
|
||
.mp-template-modal .setting-item-name {
|
||
font-size: 0.9em;
|
||
font-weight: normal;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-template-modal .setting-item-description {
|
||
font-size: 0.8em;
|
||
color: var(--text-muted);
|
||
}
|
||
.mp-template-modal .setting-item input {
|
||
width: 120px;
|
||
padding: 6px 10px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
background: var(--background-primary);
|
||
font-size: 14px;
|
||
}
|
||
.mp-template-modal .custom-css-input {
|
||
width: 100%;
|
||
padding: 8px 12px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
background: var(--background-primary);
|
||
font-family: var(--font-monospace);
|
||
font-size: 13px;
|
||
line-height: 1.5;
|
||
resize: vertical;
|
||
min-height: 100px;
|
||
}
|
||
.mp-template-modal .setting-item input[type=color] {
|
||
width: 32px;
|
||
height: 32px;
|
||
padding: 0;
|
||
border: none;
|
||
border-radius: 50%;
|
||
cursor: pointer;
|
||
overflow: hidden;
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||
position: relative;
|
||
}
|
||
.mp-template-modal .setting-item input[type=color]::-webkit-color-swatch-wrapper {
|
||
padding: 0;
|
||
border-radius: 50%;
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
.mp-template-modal .setting-item input[type=color]::-webkit-color-swatch {
|
||
border: none;
|
||
border-radius: 50%;
|
||
padding: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
.mp-template-modal .custom-css-input:focus {
|
||
border-color: var(--interactive-accent);
|
||
outline: none;
|
||
}
|
||
.mp-template-modal .setting-item-control {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
.mp-template-modal .setting-item-control .clickable-icon {
|
||
padding: 4px;
|
||
border-radius: 4px;
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
}
|
||
.mp-template-modal .setting-item-control .clickable-icon:hover {
|
||
color: var(--text-normal);
|
||
background-color: var(--background-modifier-hover);
|
||
}
|
||
.mp-modal-button {
|
||
padding: 10px 24px;
|
||
border-radius: 24px;
|
||
transition: all 0.3s ease;
|
||
background-color: var(--interactive-accent);
|
||
color: var(--text-on-accent);
|
||
border: none;
|
||
cursor: pointer;
|
||
}
|
||
.mp-modal-button:hover {
|
||
opacity: 0.85;
|
||
transform: translateY(-2px);
|
||
}
|
||
.mp-template-modal .notice {
|
||
color: var(--text-error);
|
||
margin-top: 6px;
|
||
font-size: 0.9em;
|
||
}
|
||
|
||
/* src/styles/settings/template-preview-modal.css */
|
||
.template-preview-modal {
|
||
padding: 20px;
|
||
background-color: #f9f9f9;
|
||
border-radius: 8px;
|
||
}
|
||
.template-preview-modal .mp-template-title {
|
||
text-align: center;
|
||
}
|
||
.tp-mp-preview-area {
|
||
padding: 10px 20px 20px 20px;
|
||
margin: 10px;
|
||
height: calc(100% - 180px);
|
||
overflow-y: auto;
|
||
background: #fcfcfc;
|
||
flex: 1;
|
||
border-radius: 12px;
|
||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
|
||
border: 1px solid rgba(82, 144, 220, 0.08);
|
||
}
|
||
|
||
/* src/styles/settings/background-modal.css */
|
||
.mp-background-modal {
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 20px 20px 0 20px;
|
||
}
|
||
.mp-background-modal h2 {
|
||
margin-top: 0;
|
||
margin-bottom: 20px;
|
||
text-align: center;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-background-modal .background-basic-section,
|
||
.mp-background-modal .background-type-specific-section,
|
||
.mp-background-modal .background-preview-section,
|
||
.mp-background-modal .background-button-section {
|
||
margin-bottom: 20px;
|
||
}
|
||
.mp-background-modal .setting-item {
|
||
padding: 0.8rem 0;
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
display: flex;
|
||
}
|
||
.mp-background-modal .setting-item-info {
|
||
flex: 0 0 30%;
|
||
padding-right: 15px;
|
||
}
|
||
.mp-background-modal .setting-item-control {
|
||
flex: 0 0 70%;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.mp-background-modal input[type=text],
|
||
.mp-background-modal select,
|
||
.mp-background-modal .dropdown {
|
||
width: 40%;
|
||
height: 32px;
|
||
border-radius: 4px;
|
||
margin: 0 20px;
|
||
}
|
||
.mp-background-modal textarea {
|
||
width: 40%;
|
||
height: 80px;
|
||
font-family: var(--font-monospace);
|
||
font-size: 0.9em;
|
||
border-radius: 4px;
|
||
padding: 8px;
|
||
resize: vertical;
|
||
margin: 0 20px;
|
||
}
|
||
.mp-background-modal .color-picker-container,
|
||
.mp-background-modal .slider-container {
|
||
display: flex;
|
||
align-items: center;
|
||
margin: 0 20px;
|
||
}
|
||
.mp-background-modal input[type=color] {
|
||
margin-right: 10px;
|
||
}
|
||
.mp-background-modal .slider {
|
||
width: 27%;
|
||
margin: 0 20px 0 0;
|
||
}
|
||
.mp-background-modal .background-preview-section h3 {
|
||
margin-bottom: 10px;
|
||
font-size: 1.1em;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-background-modal .background-preview {
|
||
height: 120px;
|
||
border-radius: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 1px solid var(--background-modifier-border);
|
||
overflow: hidden;
|
||
margin-top: 10px;
|
||
}
|
||
.mp-background-modal .background-preview span {
|
||
padding: 5px 10px;
|
||
background-color: rgba(255, 255, 255, 0.7);
|
||
border-radius: 4px;
|
||
font-size: 0.9em;
|
||
color: var(--text-normal);
|
||
}
|
||
.mp-background-modal .background-image-preview {
|
||
margin-top: 10px;
|
||
max-height: 150px;
|
||
overflow: hidden;
|
||
border-radius: 6px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
}
|
||
.mp-background-modal .background-image-preview img {
|
||
width: 100%;
|
||
height: auto;
|
||
object-fit: cover;
|
||
}
|
||
.mp-background-modal .background-button-section .setting-item {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 10px;
|
||
padding: 0;
|
||
border-bottom: none;
|
||
}
|
||
.mp-background-modal button {
|
||
padding: 6px 12px;
|
||
border-radius: 4px;
|
||
}
|
||
.mp-background-modal .is-hidden {
|
||
display: none;
|
||
}
|
||
|
||
/* src/styles/index.css */
|
||
.mp-publish-button {
|
||
background-color: var(--interactive-accent);
|
||
color: var(--text-on-accent);
|
||
border: none;
|
||
padding: 8px 16px;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
transition: background-color 0.15s ease;
|
||
}
|
||
.mp-publish-button:hover {
|
||
background-color: var(--interactive-accent-hover);
|
||
}
|
||
.mp-publish-button:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
.enhanced-publisher-publish-button {
|
||
background-color: var(--interactive-accent);
|
||
color: var(--text-on-accent);
|
||
border: none;
|
||
padding: 8px 24px;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
transition: background-color 0.15s ease;
|
||
}
|
||
.enhanced-publisher-publish-button:hover {
|
||
background-color: var(--interactive-accent-hover);
|
||
}
|
||
.publish-button-container {
|
||
display: flex;
|
||
justify-content: center;
|
||
margin-top: 8px;
|
||
}
|
||
.cover-preview {
|
||
width: 100%;
|
||
min-height: 90px;
|
||
border: 1px dashed var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background-color: var(--background-secondary);
|
||
padding: 6px;
|
||
box-sizing: border-box;
|
||
color: var(--text-faint);
|
||
font-size: 12px;
|
||
}
|
||
.cover-preview img {
|
||
max-width: 100%;
|
||
max-height: 90px;
|
||
object-fit: contain;
|
||
border-radius: 4px;
|
||
}
|
||
.cover-setting {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
padding: 6px 0;
|
||
}
|
||
.cover-setting-left {
|
||
flex: 0 0 30%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 4px;
|
||
padding-right: 12px;
|
||
box-sizing: border-box;
|
||
}
|
||
.cover-setting-right {
|
||
flex: 1;
|
||
box-sizing: border-box;
|
||
}
|
||
.cover-setting-label {
|
||
font-size: 0.9em;
|
||
font-weight: 500;
|
||
color: var(--text-normal);
|
||
}
|
||
.cover-setting-desc {
|
||
font-size: 0.8em;
|
||
color: var(--text-muted);
|
||
margin-top: 0;
|
||
}
|
||
.mod-wechat-cover .modal {
|
||
width: 80%;
|
||
max-width: 900px;
|
||
}
|
||
.content-hidden.content-hidden {
|
||
display: none;
|
||
}
|
||
.content-visible.content-visible {
|
||
display: block;
|
||
}
|
||
.wechat-cover-content {
|
||
position: relative;
|
||
min-height: 450px;
|
||
}
|
||
.wechat-material-content,
|
||
.wechat-local-content {
|
||
width: 100%;
|
||
}
|
||
.wechat-local-content {
|
||
padding: 20px;
|
||
}
|
||
.wechat-cover-tabs {
|
||
display: flex;
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
margin-bottom: 15px;
|
||
}
|
||
.wechat-cover-tab {
|
||
padding: 10px 20px;
|
||
cursor: pointer;
|
||
border-bottom: 2px solid transparent;
|
||
transition: all 0.2s;
|
||
}
|
||
.wechat-cover-tab:hover {
|
||
background-color: var(--background-modifier-hover);
|
||
}
|
||
.wechat-cover-tab.active {
|
||
border-bottom-color: var(--interactive-accent);
|
||
color: var(--interactive-accent);
|
||
font-weight: 600;
|
||
}
|
||
.material-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||
gap: 15px;
|
||
max-height: 400px;
|
||
overflow-y: auto;
|
||
padding: 10px;
|
||
}
|
||
.material-item {
|
||
border: 2px solid var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
padding: 10px;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
}
|
||
.material-item:hover {
|
||
border-color: var(--interactive-accent);
|
||
}
|
||
.material-item-selected {
|
||
border-color: var(--interactive-accent);
|
||
background-color: var(--interactive-accent-hover);
|
||
}
|
||
.material-item img {
|
||
width: 100%;
|
||
height: 120px;
|
||
object-fit: cover;
|
||
border-radius: 4px;
|
||
}
|
||
.pagination-container {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin-top: 15px;
|
||
}
|
||
.pagination-container button {
|
||
padding: 5px 15px;
|
||
}
|
||
.file-input-container {
|
||
margin-bottom: 20px;
|
||
}
|
||
.file-input-container input[type=file] {
|
||
width: 100%;
|
||
padding: 10px;
|
||
border: 2px dashed var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
}
|
||
.image-preview-container {
|
||
width: 100%;
|
||
}
|
||
.image-preview {
|
||
width: 100%;
|
||
min-height: 200px;
|
||
max-height: 400px;
|
||
border: 2px dashed var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background-color: var(--background-secondary);
|
||
overflow: hidden;
|
||
}
|
||
.image-preview img {
|
||
max-width: 100%;
|
||
max-height: 400px;
|
||
object-fit: contain;
|
||
}
|
||
.wechat-cover-buttons {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 10px;
|
||
margin-top: 20px;
|
||
padding-top: 15px;
|
||
border-top: 1px solid var(--background-modifier-border);
|
||
}
|
||
.wechat-cover-buttons button {
|
||
padding: 8px 20px;
|
||
}
|
||
.wechat-confirm-button {
|
||
background-color: var(--interactive-accent);
|
||
color: var(--text-on-accent);
|
||
}
|
||
.wechat-confirm-button:hover:not(:disabled) {
|
||
background-color: var(--interactive-accent-hover);
|
||
}
|
||
.wechat-confirm-button:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
.wechat-material-loading {
|
||
text-align: center;
|
||
padding: 40px;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
|
||
/* ==================== 主题管理界面样式 ==================== */
|
||
/* 设计原则:distill(去除冗余)+ arrange(间距节奏)+ quieter(克制色彩)+ polish(交互完整) */
|
||
|
||
.mp-theme-manager {
|
||
padding: 0;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.mp-theme-manager-content {
|
||
max-width: 600px;
|
||
margin: 0 auto;
|
||
padding: 24px 24px 64px;
|
||
}
|
||
|
||
/* ---- 区域 ---- */
|
||
|
||
.mp-tm-section {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.mp-tm-section-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-bottom: 8px;
|
||
padding: 0 12px;
|
||
}
|
||
|
||
.mp-tm-section-header h3 {
|
||
margin: 0;
|
||
font-size: 0.72em;
|
||
font-weight: 600;
|
||
color: var(--text-faint);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.06em;
|
||
flex: 1;
|
||
}
|
||
|
||
.mp-tm-header-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 2px;
|
||
}
|
||
|
||
/* ---- 区域分隔 ---- */
|
||
|
||
.mp-tm-section + .mp-tm-section {
|
||
margin-top: 32px;
|
||
padding-top: 24px;
|
||
border-top: 1px solid var(--background-modifier-border);
|
||
}
|
||
|
||
/* ---- 主题列表 ---- */
|
||
|
||
.mp-tm-theme-grid {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
|
||
/* ---- 主题卡片 ---- */
|
||
|
||
.mp-tm-theme-card {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 10px 12px;
|
||
border-radius: 8px;
|
||
background: transparent;
|
||
transition: background-color 0.15s ease;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
}
|
||
|
||
.mp-tm-theme-card:hover {
|
||
background: var(--background-secondary);
|
||
}
|
||
|
||
.mp-tm-theme-card:active {
|
||
background: var(--background-modifier-hover);
|
||
}
|
||
|
||
.mp-tm-card-active {
|
||
background: var(--background-secondary);
|
||
}
|
||
|
||
.mp-tm-card-active:hover {
|
||
background: var(--background-secondary);
|
||
}
|
||
|
||
.mp-tm-card-body {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mp-tm-card-name-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mp-tm-card-name {
|
||
font-weight: 500;
|
||
font-size: 0.9em;
|
||
color: var(--text-normal);
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.mp-tm-card-active .mp-tm-card-name {
|
||
font-weight: 600;
|
||
color: var(--interactive-accent);
|
||
}
|
||
|
||
.mp-tm-card-author {
|
||
font-size: 0.78em;
|
||
color: var(--text-faint);
|
||
}
|
||
|
||
.mp-tm-card-desc {
|
||
margin: 2px 0 0;
|
||
font-size: 0.78em;
|
||
color: var(--text-faint);
|
||
line-height: 1.4;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
/* ---- 选中图标 ---- */
|
||
|
||
.mp-tm-check-icon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
color: var(--interactive-accent);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.mp-tm-check-icon svg {
|
||
width: 15px;
|
||
height: 15px;
|
||
}
|
||
|
||
/* ---- 使用说明 ---- */
|
||
|
||
.mp-tm-guide {
|
||
margin-bottom: 16px;
|
||
padding: 0 12px;
|
||
}
|
||
|
||
.mp-tm-guide summary {
|
||
font-size: 0.78em;
|
||
color: var(--text-faint);
|
||
cursor: pointer;
|
||
user-select: none;
|
||
padding: 4px 0;
|
||
outline: none;
|
||
}
|
||
|
||
.mp-tm-guide summary:hover {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.mp-tm-guide-content {
|
||
padding: 8px 0 4px;
|
||
font-size: 0.78em;
|
||
color: var(--text-muted);
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.mp-tm-guide-content p {
|
||
margin: 0 0 6px;
|
||
}
|
||
|
||
.mp-tm-guide-content ul {
|
||
margin: 0;
|
||
padding-left: 16px;
|
||
list-style: none;
|
||
}
|
||
|
||
.mp-tm-guide-content li {
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
/* ---- 卡片操作 ---- */
|
||
|
||
.mp-tm-card-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 2px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ---- 快速切换复选框 ---- */
|
||
|
||
.mp-tm-quick-checkbox {
|
||
width: 14px;
|
||
height: 14px;
|
||
margin: 0;
|
||
cursor: pointer;
|
||
accent-color: var(--interactive-accent);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ---- 按钮系统 ---- */
|
||
|
||
/* Primary: accent 实心,最重要的操作 */
|
||
.mp-tm-primary-btn {
|
||
padding: 5px 14px;
|
||
border-radius: 6px;
|
||
font-size: 0.8em;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
border: none;
|
||
background: var(--interactive-accent);
|
||
color: var(--text-on-accent);
|
||
transition: opacity 0.15s ease;
|
||
white-space: nowrap;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.mp-tm-primary-btn:hover {
|
||
opacity: 0.88;
|
||
}
|
||
|
||
.mp-tm-primary-btn:active {
|
||
opacity: 0.75;
|
||
}
|
||
|
||
.mp-tm-primary-btn:disabled {
|
||
opacity: 0.4;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
/* Ghost: 透明底,次要操作 */
|
||
.mp-tm-ghost-btn {
|
||
padding: 5px 14px;
|
||
border-radius: 6px;
|
||
font-size: 0.8em;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
border: 1px solid var(--background-modifier-border);
|
||
background: transparent;
|
||
color: var(--text-muted);
|
||
transition: all 0.15s ease;
|
||
white-space: nowrap;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.mp-tm-ghost-btn:hover {
|
||
color: var(--text-normal);
|
||
background: var(--background-modifier-hover);
|
||
border-color: var(--background-modifier-border-hover, var(--background-modifier-border));
|
||
}
|
||
|
||
.mp-tm-ghost-btn:active {
|
||
background: var(--background-modifier-border);
|
||
}
|
||
|
||
/* Icon: 透明方块,工具性操作 */
|
||
.mp-tm-icon-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 6px;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--text-faint);
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
padding: 0;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.mp-tm-icon-btn:hover {
|
||
background: var(--background-modifier-hover);
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.mp-tm-icon-btn:active {
|
||
background: var(--background-modifier-border);
|
||
color: var(--text-normal);
|
||
}
|
||
|
||
.mp-tm-icon-btn svg {
|
||
width: 14px;
|
||
height: 14px;
|
||
}
|
||
|
||
.mp-tm-icon-danger:hover {
|
||
color: var(--text-error);
|
||
background: var(--background-modifier-hover);
|
||
}
|
||
|
||
/* ---- 主题预览视图 ---- */
|
||
|
||
/* CSS 代码视图需要 overflow: hidden 配合内部 flex 布局 */
|
||
.workspace-leaf-content[data-type="mp-theme-css"] > .view-content {
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mp-theme-preview-container {
|
||
padding: 0;
|
||
}
|
||
|
||
/* 覆盖公众号预览视图的 .mp-preview-area 固定高度和装饰样式 */
|
||
.mp-theme-preview-container .mp-preview-area {
|
||
max-width: 680px;
|
||
margin: 0 auto;
|
||
padding: 32px 24px 48px;
|
||
height: auto;
|
||
overflow: visible;
|
||
background: transparent;
|
||
border-radius: 0;
|
||
box-shadow: none;
|
||
border: none;
|
||
flex: none;
|
||
}
|
||
|
||
/* ---- CSS 代码查看视图 ---- */
|
||
|
||
.mp-theme-css-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mp-theme-css-toolbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 8px 16px;
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
flex-shrink: 0;
|
||
background: var(--background-primary);
|
||
}
|
||
|
||
.mp-theme-css-title {
|
||
font-weight: 500;
|
||
font-size: 0.85em;
|
||
color: var(--text-normal);
|
||
}
|
||
|
||
.mp-theme-css-title-input {
|
||
font-weight: 500;
|
||
font-size: 0.85em;
|
||
color: var(--text-normal);
|
||
background: var(--background-secondary);
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
padding: 2px 8px;
|
||
outline: none;
|
||
width: auto;
|
||
min-width: 80px;
|
||
max-width: 200px;
|
||
}
|
||
|
||
.mp-theme-css-title-input:focus {
|
||
border-color: var(--interactive-accent);
|
||
}
|
||
|
||
.mp-theme-css-badge {
|
||
font-size: 0.68em;
|
||
padding: 2px 7px;
|
||
border-radius: 4px;
|
||
background: var(--background-secondary);
|
||
color: var(--text-faint);
|
||
font-weight: 500;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
|
||
.mp-theme-css-badge-editing {
|
||
background: var(--interactive-accent);
|
||
color: var(--text-on-accent);
|
||
}
|
||
|
||
.mp-theme-css-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
margin-left: auto;
|
||
}
|
||
|
||
/* CSS 视图的文字按钮 */
|
||
.mp-theme-css-text-btn {
|
||
padding: 4px 12px;
|
||
border-radius: 5px;
|
||
font-size: 0.78em;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--text-faint);
|
||
transition: all 0.15s ease;
|
||
white-space: nowrap;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.mp-theme-css-text-btn:hover {
|
||
color: var(--text-normal);
|
||
background: var(--background-modifier-hover);
|
||
}
|
||
|
||
.mp-theme-css-text-btn:active {
|
||
background: var(--background-modifier-border);
|
||
}
|
||
|
||
.mp-theme-css-save-btn {
|
||
color: var(--interactive-accent);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.mp-theme-css-save-btn:hover {
|
||
color: var(--interactive-accent);
|
||
background: var(--background-modifier-hover);
|
||
}
|
||
|
||
/* 代码区域 */
|
||
.mp-theme-css-code-wrapper {
|
||
flex: 1;
|
||
overflow: auto;
|
||
padding: 0;
|
||
background: var(--background-primary-alt);
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
}
|
||
|
||
.mp-theme-css-code {
|
||
margin: 0;
|
||
padding: 20px;
|
||
font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
|
||
font-size: 12.5px;
|
||
line-height: 1.7;
|
||
tab-size: 4;
|
||
background: transparent;
|
||
}
|
||
|
||
.mp-theme-css-code code {
|
||
font-size: inherit;
|
||
white-space: pre;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.mp-theme-css-editor {
|
||
flex: 1;
|
||
width: 100%;
|
||
min-height: 0;
|
||
padding: 20px;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--text-normal);
|
||
font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
|
||
font-size: 12.5px;
|
||
line-height: 1.7;
|
||
resize: none;
|
||
box-sizing: border-box;
|
||
tab-size: 4;
|
||
outline: none;
|
||
}
|
||
|
||
.mp-theme-css-empty {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 100%;
|
||
color: var(--text-faint);
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
/* ---- CSS 语法高亮 ---- */
|
||
|
||
.css-hl-comment {
|
||
color: var(--text-faint);
|
||
font-style: italic;
|
||
}
|
||
|
||
.css-hl-selector {
|
||
color: var(--text-accent);
|
||
}
|
||
|
||
.css-hl-property {
|
||
color: var(--interactive-accent);
|
||
}
|
||
|
||
.css-hl-number {
|
||
color: #b5cea8;
|
||
}
|
||
|
||
.css-hl-color {
|
||
color: #ce9178;
|
||
}
|
||
|
||
.css-hl-string {
|
||
color: #ce9178;
|
||
}
|
||
|
||
.css-hl-bracket {
|
||
color: var(--text-faint);
|
||
}
|
||
|
||
/* ---- 空状态 / 加载 / 错误 ---- */
|
||
|
||
.mp-tm-empty {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 40px 16px;
|
||
color: var(--text-muted);
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
.mp-tm-empty-icon {
|
||
display: inline-flex;
|
||
color: var(--text-faint);
|
||
opacity: 0.4;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.mp-tm-empty-icon svg {
|
||
width: 28px;
|
||
height: 28px;
|
||
}
|
||
|
||
.mp-tm-empty-hint {
|
||
font-size: 0.78em;
|
||
color: var(--text-faint);
|
||
}
|
||
|
||
.mp-tm-loading {
|
||
padding: 32px;
|
||
text-align: center;
|
||
color: var(--text-faint);
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
.mp-tm-error {
|
||
padding: 32px;
|
||
text-align: center;
|
||
color: var(--text-error);
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
/* ---- 隐藏 ---- */
|
||
|
||
.mp-tm-hidden.mp-tm-hidden {
|
||
display: none;
|
||
}
|
||
|
||
/* ---- CSS 编辑器区域(新建主题) ---- */
|
||
|
||
.mp-tm-editor-section {
|
||
margin-top: 12px;
|
||
padding: 16px 20px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
background: var(--background-primary-alt);
|
||
}
|
||
|
||
.mp-tm-editor-section h4 {
|
||
margin: 0 0 12px;
|
||
font-size: 0.88em;
|
||
font-weight: 600;
|
||
color: var(--text-normal);
|
||
}
|
||
|
||
.mp-tm-form-group {
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.mp-tm-form-group label {
|
||
display: block;
|
||
font-weight: 500;
|
||
margin-bottom: 6px;
|
||
font-size: 0.82em;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.mp-tm-hint {
|
||
font-size: 0.76em;
|
||
color: var(--text-faint);
|
||
margin: 2px 0 6px;
|
||
}
|
||
|
||
.mp-tm-input {
|
||
width: 100%;
|
||
padding: 7px 12px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 6px;
|
||
background: var(--background-primary);
|
||
color: var(--text-normal);
|
||
font-size: 0.85em;
|
||
box-sizing: border-box;
|
||
transition: border-color 0.15s ease;
|
||
}
|
||
|
||
.mp-tm-input:focus {
|
||
outline: none;
|
||
border-color: var(--interactive-accent);
|
||
}
|
||
|
||
.mp-tm-css-editor {
|
||
width: 100%;
|
||
min-height: 220px;
|
||
padding: 12px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 6px;
|
||
background: var(--background-primary);
|
||
color: var(--text-normal);
|
||
font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
|
||
font-size: 12.5px;
|
||
line-height: 1.6;
|
||
resize: vertical;
|
||
box-sizing: border-box;
|
||
tab-size: 4;
|
||
transition: border-color 0.15s ease;
|
||
}
|
||
|
||
.mp-tm-css-editor:focus {
|
||
outline: none;
|
||
border-color: var(--interactive-accent);
|
||
}
|
||
|
||
.mp-tm-button-group {
|
||
display: flex;
|
||
gap: 8px;
|
||
margin-top: 16px;
|
||
}
|
||
|
||
/* ---- 使用指南视图 ---- */
|
||
|
||
.mp-guide-view {
|
||
max-width: 680px;
|
||
margin: 0 auto;
|
||
padding: 32px 28px 48px;
|
||
line-height: 1.8;
|
||
color: var(--text-normal);
|
||
font-size: 0.92em;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.mp-guide-view h1 {
|
||
font-size: 1.5em;
|
||
font-weight: 700;
|
||
margin: 0 0 20px;
|
||
padding-bottom: 10px;
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
}
|
||
|
||
.mp-guide-view h2 {
|
||
font-size: 1.15em;
|
||
font-weight: 600;
|
||
margin: 28px 0 12px;
|
||
}
|
||
|
||
.mp-guide-view h3 {
|
||
font-size: 1em;
|
||
font-weight: 600;
|
||
margin: 20px 0 8px;
|
||
}
|
||
|
||
.mp-guide-view p {
|
||
margin: 0 0 12px;
|
||
}
|
||
|
||
.mp-guide-view ul,
|
||
.mp-guide-view ol {
|
||
margin: 0 0 12px;
|
||
padding-left: 24px;
|
||
}
|
||
|
||
.mp-guide-view li {
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.mp-guide-view code {
|
||
font-size: 0.88em;
|
||
padding: 1px 5px;
|
||
border-radius: 4px;
|
||
background: var(--background-secondary);
|
||
}
|
||
|
||
.mp-guide-view a {
|
||
color: var(--text-accent);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.mp-guide-view a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.mp-guide-view img {
|
||
max-width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
margin: 8px 0 16px;
|
||
}
|
||
|
||
.mp-guide-view table {
|
||
max-width: 100%;
|
||
width: 100%;
|
||
table-layout: fixed;
|
||
margin: 8px 0 16px;
|
||
}
|
||
|
||
.mp-guide-view table img {
|
||
max-width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.mp-guide-view video {
|
||
max-width: 100%;
|
||
border-radius: 8px;
|
||
margin: 8px 0 16px;
|
||
}
|
||
|
||
.mp-guide-error {
|
||
color: var(--text-faint);
|
||
text-align: center;
|
||
padding: 48px 16px;
|
||
}
|
||
|
||
.mod-publish {
|
||
height: auto;
|
||
}
|
||
|
||
.mod-publish .modal-content {
|
||
max-height: 85vh;
|
||
overflow-y: auto;
|
||
padding: 0 20px 12px;
|
||
}
|
||
|
||
.mod-publish h2 {
|
||
font-size: 1.05em;
|
||
font-weight: 600;
|
||
margin: 12px 0 2px;
|
||
color: var(--text-normal);
|
||
}
|
||
|
||
.mod-publish .modal-content .setting-item {
|
||
flex-direction: row;
|
||
align-items: flex-start;
|
||
padding: 6px 0;
|
||
border-bottom: none;
|
||
}
|
||
|
||
.mod-publish .setting-item-info {
|
||
flex: 0 0 30%;
|
||
padding-right: 12px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.mod-publish .setting-item-control {
|
||
flex: 1;
|
||
width: auto;
|
||
margin-top: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.mod-publish .setting-item-name {
|
||
font-size: 0.9em;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.mod-publish .setting-item-description {
|
||
font-size: 0.8em;
|
||
color: var(--text-muted);
|
||
margin-top: 0;
|
||
}
|
||
|
||
.mod-publish .full-width-input,
|
||
.mod-publish .enhanced-publisher-platform-selector {
|
||
width: 100%;
|
||
padding: 6px 10px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
background-color: var(--background-primary);
|
||
color: var(--text-normal);
|
||
font-size: 0.9em;
|
||
font-family: inherit;
|
||
}
|
||
|
||
.mod-publish .full-width-input:focus {
|
||
border-color: var(--interactive-accent);
|
||
outline: none;
|
||
box-shadow: 0 0 0 1px var(--interactive-accent);
|
||
}
|
||
|
||
.mod-publish .enhanced-publisher-platform-selector {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.mod-publish .enhanced-publisher-platform-selector:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|