Files
esengine/packages/editor-app/src/styles/StartupPage.css
YHH 32460ac133 feat(editor): 优化编辑器UI和改进核心功能 (#234)
* feat(editor): 优化编辑器UI和改进核心功能

* feat(editor): 优化编辑器UI和改进核心功能
2025-11-23 21:45:10 +08:00

253 lines
3.9 KiB
CSS

.startup-page {
display: flex;
flex-direction: column;
width: 100%;
height: 100vh;
background-color: #1e1e1e;
color: #cccccc;
}
.startup-header {
padding: 60px 40px 40px;
}
.startup-title {
font-size: 32px;
font-weight: 300;
color: #ffffff;
margin: 0 0 8px 0;
letter-spacing: -0.5px;
}
.startup-subtitle {
font-size: 14px;
font-weight: 400;
color: #858585;
margin: 0;
}
.startup-content {
flex: 1;
display: flex;
gap: 60px;
padding: 0 40px;
overflow: auto;
}
.startup-actions {
display: flex;
flex-direction: column;
gap: 12px;
min-width: 280px;
}
.startup-action-btn {
position: relative;
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background-color: #2d2d30;
border: 1px solid #3e3e42;
border-radius: 2px;
color: #cccccc;
font-size: 13px;
cursor: pointer;
transition: all 0.15s;
text-align: left;
}
.startup-action-btn:hover {
background-color: #37373d;
border-color: #007acc;
}
.startup-action-btn.primary {
background-color: #0e639c;
border-color: #0e639c;
color: #ffffff;
}
.startup-action-btn.primary:hover {
background-color: #1177bb;
border-color: #1177bb;
}
.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 {
width: 20px;
height: 20px;
flex-shrink: 0;
}
.startup-recent {
flex: 1;
max-width: 600px;
}
.recent-title {
font-size: 13px;
font-weight: 600;
color: #cccccc;
margin: 0 0 16px 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.recent-empty {
font-size: 13px;
color: #858585;
margin: 0;
}
.recent-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 1px;
}
.recent-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
background-color: transparent;
border-radius: 2px;
cursor: pointer;
transition: background-color 0.15s;
}
.recent-item:hover {
background-color: #2a2d2e;
}
.recent-icon {
width: 16px;
height: 16px;
color: #858585;
flex-shrink: 0;
}
.recent-info {
flex: 1;
min-width: 0;
}
.recent-name {
font-size: 13px;
color: #cccccc;
margin-bottom: 2px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.recent-path {
font-size: 11px;
color: #6e6e6e;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.startup-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 40px;
border-top: 1px solid #2a2a2f;
}
.startup-version {
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: 1000;
}
.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;
}