File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
notebook/static/notebook/less Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 26
26
.CodeMirror-lines {
27
27
/* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */
28
28
/* we have set a different line-height and want this to scale with that. */
29
- padding : @code_padding ;
29
+ /* Note that this should set vertical padding only, since CodeMirror assumes
30
+ that horizontal padding will be set on CodeMirror pre */
31
+ padding : @code_padding 0 ;
30
32
}
31
33
32
34
.CodeMirror-linenumber {
43
45
}
44
46
45
47
.CodeMirror pre {
46
- /* In CM3 this went to 4px from 0 in CM2. We need the 0 value because of how we size */
47
- /* .CodeMirror-lines */
48
- padding : 0 ;
48
+ /* In CM3 this went to 4px from 0 in CM2. This sets horizontal padding only,
49
+ use .CodeMirror-lines for vertical */
50
+ padding : 0 @code_padding ;
49
51
border : 0 ;
50
52
.border-radius (0 )
51
53
}
You can’t perform that action at this time.
0 commit comments