Files
ToolBox/src/styles/line-number-editor.css
T
renjue f80c7a276c
CI / docker (push) Failing after 1m8s
初始化 ToolBox 开发者工具箱。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 15:41:02 +08:00

45 lines
792 B
CSS

.editor-container {
flex: 1;
display: block;
position: relative;
overflow-y: auto;
overflow-x: hidden;
background: #ffffff;
min-height: 0;
}
.editor-body {
display: flex;
align-items: flex-start;
min-height: 100%;
}
.editor-body > .line-numbers {
flex-shrink: 0;
width: 40px;
padding: 1rem 0.5rem;
background: #fafafa;
border-right: 1px solid #e5e5e5;
font-family: 'Courier New', monospace;
font-size: 14px;
color: #999999;
text-align: right;
user-select: none;
box-sizing: border-box;
}
.editor-body > .line-numbers .line-number {
line-height: 1.6;
height: 22.4px;
display: flex;
align-items: center;
justify-content: flex-end;
}
@media (max-width: 768px) {
.editor-body > .line-numbers {
width: 32px;
font-size: 12px;
}
}