45 lines
792 B
CSS
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;
|
|
}
|
|
}
|