whistle.mock-plugins
Version:
Whistle 插件,用于快速创建 API 模拟数据
159 lines (137 loc) • 2.46 kB
CSS
.app-layout {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.app-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
height: 60px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 10;
}
.app-logo {
display: flex;
align-items: center;
font-size: 1.5rem;
font-weight: bold;
color: #2c3e50;
}
.app-logo img {
height: 32px;
margin-right: 10px;
}
.search-bar {
flex: 1;
max-width: 400px;
margin: 0 20px;
position: relative;
}
.search-bar input {
width: 100%;
padding: 8px 12px;
padding-left: 35px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.search-bar::before {
content: '🔍';
position: absolute;
left: 10px;
top: 8px;
color: #aaa;
}
.action-buttons {
display: flex;
gap: 10px;
}
.action-btn {
padding: 8px 12px;
background-color: #3498db;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}
.action-btn:hover {
background-color: #2980b9;
}
.app-main {
display: flex;
flex: 1;
}
.app-sidebar {
width: 240px;
background-color: #fff;
box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
padding: 20px 0;
display: flex;
flex-direction: column;
min-height: calc(100vh - 60px);
}
.sidebar-header {
padding: 0 20px 15px;
border-bottom: 1px solid #eee;
font-weight: bold;
font-size: 1.1rem;
}
.feature-list {
list-style: none;
margin-top: 15px;
}
.feature-item {
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
transition: background-color 0.2s;
}
.feature-item:hover {
background-color: #f0f7ff;
}
.feature-item.active {
background-color: #e6f7ff;
border-right: 3px solid #1890ff;
}
.feature-name {
flex: 1;
}
.feature-count {
font-size: 12px;
padding: 2px 8px;
background-color: #eee;
border-radius: 10px;
}
.add-feature-btn {
margin: 20px;
padding: 8px 12px;
background-color: #f0f7ff;
color: #1890ff;
border: 1px dashed #1890ff;
border-radius: 4px;
width: calc(100% - 40px);
text-align: center;
cursor: pointer;
transition: all 0.2s;
}
.add-feature-btn:hover {
background-color: #e6f7ff;
}
.sidebar-footer {
margin-top: auto;
padding: 15px 20px;
font-size: 12px;
color: #999;
border-top: 1px solid #eee;
}
.app-content {
flex: 1;
padding: 20px;
overflow-y: auto;
}