Files
esengine/packages/editor-app/src/styles/StartupPage.css

349 lines
5.6 KiB
CSS
Raw Normal View History

.startup-page {
display: flex;
flex-direction: column;
2025-10-15 18:24:13 +08:00
width: 100%;
height: 100vh;
2025-10-15 18:24:13 +08:00
background-color: #1e1e1e;
color: #cccccc;
}
.startup-header {
2025-10-15 18:24:13 +08:00
padding: 60px 40px 40px;
}
.startup-title {
2025-10-15 18:24:13 +08:00
font-size: 32px;
font-weight: 300;
color: #ffffff;
margin: 0 0 8px 0;
letter-spacing: -0.5px;
}
.startup-subtitle {
2025-10-15 18:24:13 +08:00
font-size: 14px;
font-weight: 400;
color: #858585;
margin: 0;
}
.startup-content {
flex: 1;
display: flex;
2025-10-15 18:24:13 +08:00
gap: 60px;
padding: 0 40px;
overflow: auto;
}
.startup-actions {
display: flex;
2025-10-15 18:24:13 +08:00
flex-direction: column;
gap: 12px;
min-width: 280px;
}
.startup-action-btn {
2025-10-16 17:10:22 +08:00
position: relative;
display: flex;
align-items: center;
2025-10-15 18:24:13 +08:00
gap: 12px;
padding: 12px 16px;
background-color: #2d2d30;
border: 1px solid #3e3e42;
border-radius: 2px;
color: #cccccc;
font-size: 13px;
cursor: pointer;
2025-10-15 18:24:13 +08:00
transition: all 0.15s;
text-align: left;
}
.startup-action-btn:hover {
2025-10-15 18:24:13 +08:00
background-color: #37373d;
border-color: #007acc;
}
.startup-action-btn.primary {
2025-10-15 18:24:13 +08:00
background-color: #0e639c;
border-color: #0e639c;
color: #ffffff;
}
.startup-action-btn.primary:hover {
2025-10-15 18:24:13 +08:00
background-color: #1177bb;
border-color: #1177bb;
}
2025-10-16 17:10:22 +08:00
.startup-action-btn.disabled {
background-color: #252526;
border-color: #3e3e42;
color: #6e6e6e;
cursor: not-allowed;
opacity: 0.5;
}
.startup-action-btn.disabled:hover {
background-color: #252526;
border-color: #3e3e42;
}
.badge-coming-soon {
margin-left: auto;
font-size: 10px;
padding: 2px 6px;
background-color: #3e3e42;
border-radius: 2px;
color: #858585;
}
.btn-icon {
2025-10-15 18:24:13 +08:00
width: 20px;
height: 20px;
flex-shrink: 0;
}
.startup-recent {
2025-10-15 18:24:13 +08:00
flex: 1;
max-width: 600px;
}
.recent-title {
2025-10-15 18:24:13 +08:00
font-size: 13px;
font-weight: 600;
2025-10-15 18:24:13 +08:00
color: #cccccc;
margin: 0 0 16px 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.recent-empty {
2025-10-15 18:24:13 +08:00
font-size: 13px;
color: #858585;
margin: 0;
}
.recent-list {
list-style: none;
padding: 0;
margin: 0;
2025-10-15 18:24:13 +08:00
display: flex;
flex-direction: column;
gap: 1px;
}
.recent-item {
display: flex;
align-items: center;
2025-10-15 18:24:13 +08:00
gap: 12px;
padding: 10px 12px;
background-color: transparent;
border-radius: 2px;
cursor: pointer;
2025-10-15 18:24:13 +08:00
transition: background-color 0.15s;
}
2025-10-15 18:24:13 +08:00
.recent-item:hover {
background-color: #2a2d2e;
}
.recent-icon {
2025-10-15 18:24:13 +08:00
width: 16px;
height: 16px;
color: #858585;
flex-shrink: 0;
}
.recent-info {
flex: 1;
min-width: 0;
}
.recent-name {
2025-10-15 18:24:13 +08:00
font-size: 13px;
color: #cccccc;
margin-bottom: 2px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.recent-path {
2025-10-15 18:24:13 +08:00
font-size: 11px;
color: #6e6e6e;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.startup-footer {
display: flex;
align-items: center;
justify-content: space-between;
2025-10-15 18:24:13 +08:00
padding: 20px 40px;
border-top: 1px solid #2a2a2f;
}
.startup-version {
2025-10-15 18:24:13 +08:00
font-size: 11px;
color: #6e6e6e;
}
.startup-locale-dropdown {
position: relative;
}
.startup-locale-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
background: transparent;
border: 1px solid #3e3e42;
border-radius: 3px;
color: #888;
font-size: 11px;
cursor: pointer;
transition: all 0.15s;
}
.startup-locale-btn:hover {
background: rgba(255, 255, 255, 0.05);
border-color: #555;
color: #ccc;
}
.startup-locale-menu {
position: absolute;
bottom: 100%;
right: 0;
margin-bottom: 4px;
min-width: 120px;
background: #252529;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 3px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
padding: 4px 0;
z-index: var(--z-index-dropdown);
}
.startup-locale-item {
display: block;
width: 100%;
padding: 6px 12px;
background: transparent;
border: none;
color: #ccc;
font-size: 11px;
text-align: left;
cursor: pointer;
transition: all 0.1s;
}
.startup-locale-item:hover {
background: #3b82f6;
color: #fff;
}
.startup-locale-item.active {
color: #3b82f6;
}
.startup-locale-item.active:hover {
color: #fff;
}
/* 更新提示条样式 */
.startup-update-banner {
position: fixed;
bottom: 60px;
left: 50%;
transform: translateX(-50%);
z-index: var(--z-index-sticky);
}
.update-banner-content {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
background: linear-gradient(135deg, #1e5a2f 0%, #1a4a28 100%);
border: 1px solid #2e8b4a;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
color: #ffffff;
font-size: 13px;
animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.update-banner-content svg {
color: #4ade80;
flex-shrink: 0;
}
.update-banner-text {
white-space: nowrap;
}
.update-banner-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border: none;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
white-space: nowrap;
}
.update-banner-btn.primary {
background: #22c55e;
color: #ffffff;
}
.update-banner-btn.primary:hover:not(:disabled) {
background: #16a34a;
}
.update-banner-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.update-banner-close {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
background: transparent;
border: none;
border-radius: 4px;
color: rgba(255, 255, 255, 0.6);
cursor: pointer;
transition: all 0.15s;
}
.update-banner-close:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.1);
color: #ffffff;
}
.update-banner-close:disabled {
opacity: 0.5;
cursor: not-allowed;
}