2026-02-18 14:18:11 +08:00

111 lines
1.7 KiB
CSS

#root {
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
max-width: none; /* 必须取消最大宽度限制 */
text-align: left; /* 取消居中对齐,否则 toolbar 里的文字可能会乱 */
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}
/* 工具栏样式 */
.toolbar {
position: fixed;
top: 20px;
left: 20px;
z-index: 100;
display: flex;
gap: 10px;
}
.toolbar-group {
display: flex;
flex-direction: column;
gap: 8px;
background: white;
padding: 10px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.toolbar-btn {
padding: 8px 16px;
background: #1677ff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
white-space: nowrap;
}
.toolbar-btn:hover {
background: #0b66d4;
box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}
.toolbar-btn:active {
transform: scale(0.95);
}
.toolbar-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
color: #333;
}
.toolbar-right{
margin-left: 8px;
}
.action-section{
display:flex;
flex-direction:column;
gap:8px;
padding:8px 12px;
}
.section-title{
font-size:12px;
color:#666;
font-weight:600;
margin-bottom:4px;
}