/* This CSS file will be included with your plugin, and available in the app when your plugin is enabled. If your plugin does not need CSS, delete this file. */ /* 返回按钮 */ .openwords-back-btn { display: block; margin-left: auto; margin-right: auto; width: 100%; font-size: 1.05em; } /* 状态栏 */ .openwords-view-statusbar { display: flex; flex-direction: column; gap: 20px; margin: 20px auto 0 auto; padding: 20px; width: 70%; max-width: 700px; box-sizing: border-box; background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-primary) 100%); border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); } .openwords-statusbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; flex-wrap: wrap; } .openwords-statusbar-total { justify-content: center; padding-top: 20px; border-top: 2px solid var(--divider-color); } .openwords-stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; padding: 2px 2px; background-color: var(--background-primary); border-radius: 8px; border: 1px solid var(--divider-color); transition: all 0.3s ease; } .openwords-stat-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-color: var(--text-accent); } .openwords-stat-item.total { padding: 2px 2px; background: none; border: 1px solid var(--divider-color); color: var(--text-normal); } .openwords-stat-item.total:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); } .openwords-stat-label { font-size: 0.8em; color: var(--text-muted); white-space: nowrap; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; } .openwords-stat-item.total .openwords-stat-label { font-size: 0.8em; letter-spacing: 0.5px; } .openwords-stat-count { font-size: 1.4em; font-weight: 700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .openwords-stat-item:nth-child(1) .openwords-stat-count { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .openwords-stat-item:nth-child(2) .openwords-stat-count { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .openwords-stat-item:nth-child(3) .openwords-stat-count { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .openwords-stat-item:nth-child(4) .openwords-stat-count { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .openwords-stat-item:nth-child(5) .openwords-stat-count { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .openwords-stat-item.total .openwords-stat-count { font-size: 1.6em; color: var(--text-normal); background: none; -webkit-text-fill-color: initial; } /* 学习模式页面 */ .openwords-type-container { width: 70%; /* 设置模态框宽度 */ max-width: 700px; /* 设置模态框最大宽度 */ margin: 0 auto; /* 居中模态框 */ } .openwords-type-title { text-align: center; margin-bottom: 20px; font-size: 1.5em; font-weight: bold; } /* 背单词页面 */ .openwords-learning-container { width: 70%; /* 设置模态框宽度 */ max-width: 700px; /* 设置模态框最大宽度 */ margin: 0 auto; /* 居中模态框 */ } .openwords-learning-card { /* 卡片容器样式 */ height: 300px; /* 固定高度 */ display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--color-border); border-radius: 8px; margin: 20px auto; background-color: var(--background-primary); text-align: center; cursor: pointer; /* 鼠标悬停时显示手型 */ } .openwords-learning-card:hover { background-color: var(--background-modifier-hover); /* 鼠标悬停时背景变浅 */ } .openwords-card-content { /* 单词内容样式 */ font-size: 3em; /* 设置单词字体大小 */ font-weight: bold; /* 设置单词加粗 */ color: var(--text-normal); /* 设置单词颜色 */ margin-top: 24px; } .openwords-card-meta { font-size: 0.85em; line-height: 1.5; margin-top: 24px; } .openwords-card-markdown { /* Markdown 内容样式 */ width: 100%; height: 100%; overflow-y: auto; /* 添加垂直滚动条 */ background-color: var(--background-secondary); /* 更柔和的背景颜色 */ color: var(--text-muted); /* 使用正常文本颜色 */ font-size: 1.1em; /* 稍微增大字体 */ line-height: 1.6; /* 增加行高,提升可读性 */ border-radius: 8px; /* 添加圆角 */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */ font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* 设置优雅的字体 */ user-select: text; /* 允许文本选择 */ } .openwords-learning-settings { margin-top: 20px; /* 设置容器样式 */ font-size: 1em; /* 减小字体大小 */ } .openwords-learning-settings .setting-item { padding: 5px 10px; /* 减小内边距 */ } .openwords-learning-settings button.active { background: var(--interactive-accent); color: #fff; font-weight: bold; box-shadow: 0 0 6px var(--interactive-accent); } /* 默写单词页面 */ .openwords-spelling-container { width: 70%; /* 设置模态框宽度 */ max-width: 700px; /* 设置模态框最大宽度 */ margin: 0 auto; /* 居中模态框 */ } .openwords-spelling-title { font-size: 2em; font-weight: bold; text-align: center; height: 100px; display: flex; flex-direction: column; justify-content: center; } .openwords-spelling-meaning { width: 100%; height: 200px; overflow-y: auto; /* 添加垂直滚动条 */ background-color: var(--background-secondary); /* 更柔和的背景颜色 */ color: var(--text-muted); /* 使用正常文本颜色 */ font-size: 1.1em; /* 稍微增大字体 */ line-height: 1.6; /* 增加行高,提升可读性 */ border-radius: 8px; /* 添加圆角 */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */ font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* 设置优雅的字体 */ user-select: text; /* 允许文本选择 */ margin: 20px auto; text-align: center; } .openwords-spelling-input { display: flex; flex-wrap: wrap; /* 支持自动换行 */ justify-content: center; gap: 10px; margin-top: 20px; max-width: 100%; } .openwords-spelling-letter { width: 50px !important; height: 50px !important; text-align: center; font-size: 1.5em !important; border: 1px solid var(--background-modifier-border); border-radius: 5px; outline: none; } .openwords-spelling-feedback { margin-top: 10px; text-align: center; font-size: 1em; color: var(--text-accent); } /* 插件设置标签管理 */ .openwords-tags-container { display: flex; flex-wrap: wrap; gap: 8px; background-color: var(--background-secondary); border-radius: 5px; } .openwords-tag-item { display: flex; align-items: center; gap: 6px; padding: 5px 10px; background-color: var(--interactive-accent); color: var(--text-on-accent); border-radius: 4px; font-size: 0.9em; } .openwords-tag-item button { padding: 2px 6px; border: none; background-color: rgba(255, 255, 255, 0.3); color: inherit; border-radius: 3px; cursor: pointer; font-size: 0.85em; transition: background-color 0.2s; } .openwords-tag-item button:hover { background-color: rgba(255, 255, 255, 0.5); } .openwords-empty-tags { color: var(--text-muted); font-size: 0.9em; margin: 0; } /* 标签历史建议样式 */ .openwords-tag-history-item { display: flex; justify-content: space-between; align-items: center; /* padding: 4px 0; */ } .openwords-tag-history-text { flex: 1; word-break: break-all; } .openwords-tag-history-delete { padding: 2px 8px; font-size: 12px; margin-left: 8px; border: none; border-radius: 3px; background-color: rgba(255, 255, 255, 0.3); cursor: pointer; transition: background-color 0.2s; } .openwords-tag-history-delete:hover { background-color: rgba(255, 255, 255, 0.5); }