mirror of
https://github.com/yeban8090/note-to-red.git
synced 2026-07-22 05:42:34 +00:00
736 lines
No EOL
14 KiB
CSS
736 lines
No EOL
14 KiB
CSS
/* 状态栏样式覆盖 */
|
|
.workspace-leaf-content .view-content {
|
|
padding: 10px 10px 13px 10px;
|
|
}
|
|
|
|
/* 工具栏基础样式 */
|
|
.red-toolbar, .red-bottom-bar {
|
|
padding: 20px 32px;
|
|
position: sticky;
|
|
border-radius: 6px;
|
|
z-index: 100;
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 680px;
|
|
}
|
|
|
|
.red-toolbar {
|
|
top: 0;
|
|
background: rgba(82, 144, 220, 0.03);
|
|
border-bottom: 1px solid rgba(82, 144, 220, 0.1);
|
|
}
|
|
|
|
.red-bottom-bar {
|
|
bottom: 0;
|
|
background: rgba(82, 144, 220, 0.02);
|
|
border-top: 1px solid rgba(82, 144, 220, 0.1);
|
|
}
|
|
|
|
/* 控件组布局 */
|
|
.red-controls-group, .red-bottom-controls-group {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
margin: 0 auto;
|
|
width: fit-content;
|
|
min-width: fit-content;
|
|
margin-left: 40px;
|
|
}
|
|
|
|
/* 锁定按钮 */
|
|
.red-lock-button {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 1px solid #e8e8e8;
|
|
border-radius: 8px;
|
|
background: white;
|
|
color: #666;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
font-size: 16px;
|
|
box-shadow: 0 1px 3px rgba(82, 144, 220, 0.1);
|
|
}
|
|
|
|
.red-lock-button:hover {
|
|
background: #f5f8fc;
|
|
border-color: #5C5F77;
|
|
color: #5C5F77;
|
|
box-shadow: 0 2px 6px rgba(82, 144, 220, 0.15);
|
|
}
|
|
|
|
/* 下拉选择器 */
|
|
.red-select-container {
|
|
position: relative;
|
|
width: 160px;
|
|
}
|
|
|
|
.red-select {
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border: 1px solid #5C5F77;
|
|
border-radius: 8px;
|
|
background: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: all 0.2s ease;
|
|
color: #5C5F77;
|
|
box-shadow: 0 1px 3px rgba(82, 144, 220, 0.1);
|
|
}
|
|
|
|
.red-select:hover {
|
|
background: #f5f8fc;
|
|
box-shadow: 0 2px 6px rgba(82, 144, 220, 0.15);
|
|
}
|
|
|
|
.red-select.disabled {
|
|
opacity: 0.5;
|
|
background: #f5f5f5 !important;
|
|
color: #999 !important;
|
|
border-color: #e8e8e8 !important;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.red-select-arrow {
|
|
color: #5C5F77;
|
|
font-size: 12px;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.red-select-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
width: 100%;
|
|
background: white;
|
|
border: 1px solid #e8e8e8;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(82, 144, 220, 0.15);
|
|
display: none;
|
|
z-index: 1000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.red-select-dropdown.red-show {
|
|
display: block;
|
|
}
|
|
|
|
.red-select-item {
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
color: #333;
|
|
}
|
|
|
|
.red-select-item:hover {
|
|
background: #f5f8fc;
|
|
}
|
|
|
|
.red-select-item.red-selected {
|
|
background-color: #f5f8fc;
|
|
color: #5C5F77;
|
|
}
|
|
|
|
/* 字号调整组件 */
|
|
.red-font-size-group {
|
|
width: 120px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 32px;
|
|
background: white;
|
|
border: 1px solid #5C5F77;
|
|
border-radius: 8px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
box-shadow: 0 1px 3px rgba(82, 144, 220, 0.1);
|
|
}
|
|
|
|
.red-font-size-btn {
|
|
width: 55px;
|
|
height: 32px;
|
|
border: none;
|
|
background: white;
|
|
color: #5C5F77;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.red-font-size-btn:hover {
|
|
background: rgba(82, 144, 220, 0.05);
|
|
}
|
|
|
|
.red-font-size-input {
|
|
width: 40px;
|
|
text-align: center;
|
|
font-size: 16px;
|
|
padding: 0;
|
|
margin: 0;
|
|
border: none;
|
|
background: transparent;
|
|
color: #5C5F77;
|
|
outline: none;
|
|
}
|
|
|
|
/* 预览区域 */
|
|
.red-preview-wrapper {
|
|
padding: 10px 20px 20px 20px;
|
|
margin: 10px;
|
|
height: calc(100% - 180px);
|
|
overflow-y: auto;
|
|
background: white;
|
|
flex: 1;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
border: 1px solid rgba(82, 144, 220, 0.1);
|
|
}
|
|
|
|
.red-empty-state {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
color: #999;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* 帮助按钮 */
|
|
.red-help-button {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 1px solid #e8e8e8;
|
|
border-radius: 8px;
|
|
background: white;
|
|
color: #666;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
font-size: 16px;
|
|
box-shadow: 0 1px 3px rgba(82, 144, 220, 0.1);
|
|
}
|
|
|
|
.red-help-button:hover {
|
|
background: #f5f8fc;
|
|
border-color: #5C5F77;
|
|
color: #5C5F77;
|
|
box-shadow: 0 2px 6px rgba(82, 144, 220, 0.15);
|
|
}
|
|
|
|
/* 提示框位置调整 */
|
|
.red-help-tooltip {
|
|
position: absolute;
|
|
left: 32px;
|
|
bottom: 48px;
|
|
width: 450px;
|
|
padding: 12px 16px;
|
|
background: white;
|
|
border: 2px solid rgba(82, 144, 220, 0.1);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: #5290DC;
|
|
display: none;
|
|
white-space: pre-line;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.red-help-button:hover + .red-help-tooltip {
|
|
display: block;
|
|
}
|
|
|
|
/* 底部按钮 */
|
|
.red-bottom-controls-group button {
|
|
padding: 8px 24px;
|
|
width: 120px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
border: 1px solid #5C5F77;
|
|
background: white;
|
|
color: #5C5F77;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
box-shadow: 0 1px 3px rgba(82, 144, 220, 0.1);
|
|
}
|
|
|
|
.red-bottom-controls-group button:hover {
|
|
background: rgba(82, 144, 220, 0.05);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(82, 144, 220, 0.2);
|
|
}
|
|
|
|
.red-export-button:not(:disabled) {
|
|
background: #5290DC !important;
|
|
color: white !important;
|
|
border: none !important;
|
|
box-shadow: 0 2px 6px rgba(82, 144, 220, 0.2) !important;
|
|
}
|
|
|
|
.red-export-button:not(:disabled):hover {
|
|
background: #4a83c8 !important;
|
|
box-shadow: 0 4px 12px rgba(82, 144, 220, 0.3) !important;
|
|
}
|
|
|
|
.red-feature-button {
|
|
opacity: 0.5;
|
|
border-color: #5C5F77 !important;
|
|
background: white !important;
|
|
color: #5C5F77 !important;
|
|
cursor: not-allowed !important;
|
|
}
|
|
|
|
.red-bottom-controls-group button:disabled {
|
|
opacity: 0.5;
|
|
background: white !important;
|
|
color: #5C5F77 !important;
|
|
cursor: not-allowed !important;
|
|
transform: none;
|
|
border-color: #5C5F77 !important;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* 关于作者的框 */
|
|
.red-about-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
/* 弹框主体 */
|
|
.red-about-modal {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 20px 20px;
|
|
width: 520px;
|
|
max-height: 90vh;
|
|
position: relative;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* 自定义滚动条样式 */
|
|
.red-about-modal::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.red-about-modal::-webkit-scrollbar-track {
|
|
background: #f5f5f5;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.red-about-modal::-webkit-scrollbar-thumb {
|
|
background: #ddd;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.red-about-modal::-webkit-scrollbar-thumb:hover {
|
|
background: #ccc;
|
|
}
|
|
|
|
/* 关闭按钮 */
|
|
.red-about-close {
|
|
position: absolute;
|
|
top: 7px;
|
|
right: 7px;
|
|
width: 28px;
|
|
height: 28px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 17px;
|
|
color: #bfbfbf;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
/* macOS 系统下的样式 */
|
|
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-color-index:0) {
|
|
.red-about-close {
|
|
right: auto;
|
|
left: 7px;
|
|
}
|
|
}
|
|
|
|
.red-about-close:hover {
|
|
background: #f5f5f5;
|
|
color: #595959;
|
|
}
|
|
|
|
/* 内容区块 */
|
|
.red-about-section {
|
|
padding: 10px;
|
|
margin: 8px 20px 0 20px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.red-about-intro-section {
|
|
background: #fafafa;
|
|
border: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.red-about-donate-section {
|
|
background: #fff9f5;
|
|
border: 1px solid #ffe4d9;
|
|
}
|
|
|
|
.red-about-mp-section {
|
|
background: #f5fff7;
|
|
border: 1px solid #e6f7e9;
|
|
}
|
|
|
|
/* 文字样式 */
|
|
.red-about-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
margin: 0 0 1px;
|
|
text-align: center;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.red-about-name {
|
|
color: #5290DC;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
padding: 0 2px;
|
|
}
|
|
|
|
.red-about-identity {
|
|
color: #34495e;
|
|
font-weight: 500;
|
|
background: rgba(8, 98, 209, 0.08);
|
|
padding: 0 4px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.red-about-highlight {
|
|
color: #e67e22;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.red-about-value {
|
|
color: #16a085;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.red-about-subtitle {
|
|
font-size: 18px;
|
|
color: #d35400;
|
|
margin: 8px 0 12px;
|
|
letter-spacing: 0.3px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.red-about-intro {
|
|
font-size: 15px;
|
|
color: #2c3e50;
|
|
margin: 8px 0;
|
|
line-height: 1.8;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
|
|
.red-about-role,
|
|
.red-about-desc {
|
|
font-size: 14.5px;
|
|
color: #34495e;
|
|
margin: 6px 0;
|
|
line-height: 1.8;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
|
|
.red-about-emphasis {
|
|
font-weight: 500;
|
|
color: #c0392b;
|
|
}
|
|
|
|
.red-about-footer {
|
|
font-size: 15px;
|
|
color: #2c3e50;
|
|
text-align: center;
|
|
margin: 1px 0 0;
|
|
padding: 1px 1px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.3px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.red-about-footer strong {
|
|
color: #8e44ad;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 二维码容器 */
|
|
.red-about-qr {
|
|
width: 100%;
|
|
height: 150px;
|
|
margin: 5px 0;
|
|
padding: 5px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.red-about-qr img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
/* 小红书预览容器 */
|
|
.red-preview-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
background: #f5f5f5;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
overflow: auto;
|
|
}
|
|
|
|
/* 图片预览区域 */
|
|
.red-image-preview {
|
|
width: 100%;
|
|
max-width: 450px;
|
|
aspect-ratio: 3/4;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
padding: 20px;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 内容区域容器 */
|
|
.red-content-wrapper {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 导航按钮 */
|
|
.red-nav-button {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
color: #333;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.red-nav-button:hover {
|
|
background: white;
|
|
transform: scale(1.1);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* 页码指示器 */
|
|
.red-page-indicator {
|
|
padding: 6px 12px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
border-radius: 16px;
|
|
font-size: 14px;
|
|
color: #333;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* 导航容器 */
|
|
.red-nav-container {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 20px;
|
|
z-index: 10;
|
|
}
|
|
|
|
/* 内容区块样式 */
|
|
.red-content-section {
|
|
display: none;
|
|
margin: 0 13px;
|
|
}
|
|
|
|
.red-content-section[data-index="0"] {
|
|
display: block;
|
|
}
|
|
|
|
/* 空状态提示 */
|
|
.red-empty-message {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: #ff4757;
|
|
font-size: 15px;
|
|
background: rgba(255, 71, 87, 0.03);
|
|
border: 1px dashed rgba(255, 71, 87, 0.2);
|
|
border-radius: 12px;
|
|
margin: 40px auto;
|
|
max-width: 320px;
|
|
line-height: 1.8;
|
|
white-space: pre-line;
|
|
box-shadow: 0 2px 8px rgba(255, 71, 87, 0.05);
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 用户信息区域样式 */
|
|
.red-user-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 12px 3px 12px;
|
|
line-height: normal;
|
|
}
|
|
|
|
.red-user-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.red-user-avatar {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.red-user-avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.red-avatar-placeholder {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #f7f7f7;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.red-avatar-upload-icon {
|
|
font-size: 20px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.red-avatar-placeholder:hover {
|
|
background-color: #efefef;
|
|
}
|
|
|
|
.red-avatar-placeholder:hover .red-avatar-upload-icon {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.red-user-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
}
|
|
|
|
.red-user-name-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.red-user-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.red-user-id {
|
|
font-size: 14px;
|
|
color: #999;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.red-user-right {
|
|
color: #999;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 编辑输入框样式 */
|
|
.red-user-edit-input {
|
|
border: none;
|
|
border-bottom: 1px solid #ccc;
|
|
outline: none;
|
|
padding: 2px 4px;
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
background: transparent;
|
|
}
|
|
|
|
/* 悬停效果 */
|
|
.red-user-avatar:hover,
|
|
.red-user-name:hover,
|
|
.red-user-id:hover {
|
|
opacity: 0.8;
|
|
} |