oimp
Version:
A CLI tool for generating OI problem and packages
149 lines (131 loc) • 2.66 kB
CSS
.md-editor-search-panel {
display: none;
position: absolute;
top: 8px;
right: 8px;
background: #2d2d2d;
padding: 12px;
border-radius: 4px;
border: 1px solid #444;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
width: 300px;
z-index: 10;
animation: md-editor-fadeIn 0.2s ease-in-out;
font-size: 0.9em;
}
/* 面板头部包含关闭按钮 */
.md-editor-panel-header {
display: flex;
justify-content: flex-end;
margin-bottom: 8px;
}
@keyframes md-editor-fadeIn {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.md-editor-search-row {
display: flex;
gap: 8px;
margin-bottom: 8px;
flex-wrap: wrap;
}
.md-editor-search-input {
padding: 6px 10px;
border: 1px solid #555;
border-radius: 3px;
font-size: 13px;
flex: 1;
min-width: 120px;
background: #333;
color: #e0e0e0;
}
.md-editor-btn {
padding: 6px 10px;
background-color: #005a9e;
color: #e0e0e0;
border: 1px solid #004a80;
border-radius: 3px;
cursor: pointer;
font-size: 13px;
transition: background-color 0.2s;
}
.md-editor-btn:hover {
background-color: #004a80;
}
.md-editor-btn-secondary {
background-color: #5a6268;
border: 1px solid #4a5258;
}
.md-editor-btn-secondary:hover {
background-color: #4a5258;
}
/* 关闭按钮样式 */
.md-editor-close-btn {
padding: 3px 6px;
font-size: 14px;
line-height: 1;
background: #444;
color: #e0e0e0;
border: 1px solid #555;
border-radius: 3px;
}
.md-editor-options {
display: flex;
align-items: center;
gap: 12px;
font-size: 13px;
margin: 8px 0;
color: #ccc;
}
.md-editor-option {
display: flex;
align-items: center;
gap: 4px;
}
.md-editor-status {
margin-top: 4px;
font-size: 12px;
color: #aaa;
min-height: 1.4em;
}
.md-editor-shortcut-info {
margin-top: 12px;
font-size: 12px;
color: #bbb;
background: #333;
padding: 8px;
border-radius: 3px;
border: 1px solid #444;
}
.md-editor-shortcut-key {
display: inline-block;
background: #444;
padding: 2px 5px;
border-radius: 3px;
font-family: monospace;
font-size: 12px;
margin: 0 2px;
color: #ddd;
}
/* 适配小屏幕 */
@media (max-width: 600px) {
.md-editor-search-panel {
width: calc(100% - 16px);
top: 6px;
right: 6px;
padding: 10px;
}
.md-editor-search-row {
flex-direction: column;
gap: 4px;
}
.md-editor-btn {
width: 100%;
}
}