refactor: web-to-pixso → web-to-ppt 全面改名
- 目录 web-to-pixso/ → web-to-ppt/ - 所有代码引用:PIXSO → WEB_TO_PPT, webToPixso → webToPPT - 数据格式:pixso-design-capture → web-to-ppt-capture - CSS 选择器:__web_to_pixso_ → __web_to_ppt_ - README 重写,移除 Pixso 相关描述 - docs/web-to-pixso-mapping.md → docs/web-to-ppt-mapping.md
This commit is contained in:
@@ -0,0 +1,379 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
background: transparent !important;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
body {
|
||||
background: transparent !important;
|
||||
color: #1a1a2e;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
||||
padding: 0;
|
||||
width: 320px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.shell {
|
||||
background: #fff;
|
||||
border: 1px solid rgba(10, 10, 18, 0.14);
|
||||
border-radius: 16px;
|
||||
box-shadow: none;
|
||||
overflow: hidden;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
.header {
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 16px 20px 15px;
|
||||
}
|
||||
|
||||
.logo-title {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 12px rgba(10, 10, 18, 0.12);
|
||||
display: block;
|
||||
height: 28px;
|
||||
margin-left: -2px;
|
||||
object-fit: cover;
|
||||
width: 28px;
|
||||
}
|
||||
|
||||
.title {
|
||||
color: #1a1a2e;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.version-badge {
|
||||
background: #f2f4ff;
|
||||
border: 1px solid #dfe5ff;
|
||||
border-radius: 999px;
|
||||
color: #2450ff;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
padding: 3px 6px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-radius: 12px;
|
||||
color: #999;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
font-size: 18px;
|
||||
height: 24px;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
transition: background 0.2s, color 0.2s;
|
||||
width: 24px;
|
||||
}
|
||||
|
||||
.close-btn:hover {
|
||||
background: #f4f4f6;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.setting-row {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.setting-label {
|
||||
color: #1a1a2e;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.toggle-switch {
|
||||
display: inline-block;
|
||||
height: 26px;
|
||||
position: relative;
|
||||
width: 48px;
|
||||
}
|
||||
|
||||
.toggle-switch input {
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.toggle-slider {
|
||||
background-color: #e4e4e4;
|
||||
border-radius: 999px;
|
||||
bottom: 0;
|
||||
cursor: pointer;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.toggle-slider::before {
|
||||
background-color: #fff;
|
||||
border-radius: 50%;
|
||||
bottom: 3px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
||||
content: "";
|
||||
height: 20px;
|
||||
left: 3px;
|
||||
position: absolute;
|
||||
transition: 0.3s;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
input:checked + .toggle-slider {
|
||||
background-color: #1a1a2e;
|
||||
}
|
||||
|
||||
input:checked + .toggle-slider::before {
|
||||
transform: translateX(22px);
|
||||
}
|
||||
|
||||
.setting-select {
|
||||
appearance: none;
|
||||
background: #fff;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
|
||||
background-position: right 10px center;
|
||||
background-repeat: no-repeat;
|
||||
border: 1px solid #e4e4e4;
|
||||
border-radius: 9px;
|
||||
color: #1a1a2e;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
min-width: 80px;
|
||||
padding: 7px 30px 7px 13px;
|
||||
transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
|
||||
}
|
||||
|
||||
.setting-select:focus {
|
||||
border-color: #2450ff;
|
||||
box-shadow: 0 0 0 4px rgba(36, 80, 255, 0.1);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.mode-select {
|
||||
min-width: 116px;
|
||||
}
|
||||
|
||||
.width-input-wrap {
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border: 1px solid #e4e4e4;
|
||||
border-radius: 9px;
|
||||
display: flex;
|
||||
height: 36px;
|
||||
min-width: 116px;
|
||||
padding: 0 10px 0 12px;
|
||||
transition: border-color 0.18s, box-shadow 0.18s;
|
||||
}
|
||||
|
||||
.width-input-wrap:focus-within {
|
||||
border-color: #2450ff;
|
||||
box-shadow: 0 0 0 4px rgba(36, 80, 255, 0.1);
|
||||
}
|
||||
|
||||
.width-input {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
color: #1a1a2e;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
min-width: 0;
|
||||
outline: none;
|
||||
text-align: right;
|
||||
width: 68px;
|
||||
}
|
||||
|
||||
.width-input.invalid {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.width-unit {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.description {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.capture-btn {
|
||||
background: #1a1a2e;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
padding: 14px 24px;
|
||||
box-shadow: 0 8px 20px rgba(26, 26, 46, 0.12);
|
||||
transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.capture-btn:hover {
|
||||
background: #2d2d44;
|
||||
box-shadow: 0 10px 24px rgba(26, 26, 46, 0.16);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.capture-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.capture-btn:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.6;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.capture-btn.loading {
|
||||
background: #666;
|
||||
}
|
||||
|
||||
.capture-btn.success {
|
||||
background: #10b981;
|
||||
}
|
||||
|
||||
.capture-btn.error {
|
||||
background: #ef4444;
|
||||
}
|
||||
|
||||
.select-btn {
|
||||
background: #f4f4f6;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
color: #1a1a2e;
|
||||
cursor: pointer;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
margin-top: 10px;
|
||||
padding: 13px 24px;
|
||||
transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.select-btn:hover {
|
||||
background: #ececf1;
|
||||
box-shadow: 0 8px 18px rgba(10, 10, 18, 0.08);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.select-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.select-btn:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.6;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.select-btn.loading {
|
||||
background: #e7e7ee;
|
||||
}
|
||||
|
||||
.status {
|
||||
margin-top: 16px;
|
||||
padding: 12px 0 0;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
background: #f0f0f0;
|
||||
border-radius: 999px;
|
||||
height: 4px;
|
||||
margin-bottom: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.progress-fill {
|
||||
background: linear-gradient(90deg, #00d2ff, #7c3aed);
|
||||
border-radius: 999px;
|
||||
height: 100%;
|
||||
transition: width 0.3s ease;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.status-text {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.help-link {
|
||||
align-items: center;
|
||||
border: 1px solid #e6e8f2;
|
||||
border-radius: 9px;
|
||||
color: #2450ff;
|
||||
display: flex;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
justify-content: center;
|
||||
margin-top: 16px;
|
||||
padding: 10px 12px;
|
||||
text-decoration: none;
|
||||
transition: background 0.18s, border-color 0.18s, color 0.18s;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.help-link:hover {
|
||||
background: #f6f8ff;
|
||||
border-color: #dfe5ff;
|
||||
}
|
||||
|
||||
.footer {
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: space-between;
|
||||
padding: 12px 20px;
|
||||
}
|
||||
|
||||
.author {
|
||||
color: #666;
|
||||
flex: 0 0 auto;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.support-email {
|
||||
color: #888;
|
||||
font-size: 10px;
|
||||
line-height: 1.35;
|
||||
min-width: 0;
|
||||
text-align: right;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.support-email:hover {
|
||||
color: #2450ff;
|
||||
}
|
||||
Reference in New Issue
Block a user