##// END OF EJS Templates
workaround spurious CodeMirror scrollbars...
MinRK -
Show More
@@ -18,14 +18,28 b''
18 .CodeMirror-scroll {
18 .CodeMirror-scroll {
19 /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
19 /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
20 /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
20 /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
21 overflow-y: hidden;
21 /* overflow: scroll prevents scrollbars being drawn on top of the last line of the cell, */
22 overflow-x: auto; /* Changed from auto to remove scrollbar */
22 /* but at the expense of extra gutter at the bottom. To compensate, we shrink the margin */
23 /* between the last line and the scrollbar when it's drawn. */
24 overflow: scroll;
25 margin-bottom: -38px; /* default margin is -30px */
26 }
27
28 /* this one is needed for Text Cells to match code cells for some reason */
29 .CodeMirror-wrap .CodeMirror-scroll {
30 overflow: scroll;
31 }
32
33 /* CM sometimes draws a vertical scrollbar under zoom, but it never should in the Notebook. */
34 /* this hides them - display: none would be preferable, but it gets clobbered by CodeMirror */
35 .CodeMirror-vscrollbar, .CodeMirror-scrollbar-filler {
36 visibility: hidden;
23 }
37 }
24
38
25 .CodeMirror-lines {
39 .CodeMirror-lines {
26 /* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */
40 /* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */
27 /* we have set a different line-height and want this to scale with that. */
41 /* we have set a different line-height and want this to scale with that. */
28 padding: 0.4em;
42 padding: 0.4em;
29 }
43 }
30
44
31 .CodeMirror-linenumber {
45 .CodeMirror-linenumber {
@@ -940,7 +940,9 b' div.out_prompt_overlay{height:100%;padding:0px;position:absolute;border-radius:4'
940 div.out_prompt_overlay:hover{-webkit-box-shadow:inset 0 0 1px #000000;-moz-box-shadow:inset 0 0 1px #000000;box-shadow:inset 0 0 1px #000000;background:rgba(240, 240, 240, 0.5);}
940 div.out_prompt_overlay:hover{-webkit-box-shadow:inset 0 0 1px #000000;-moz-box-shadow:inset 0 0 1px #000000;box-shadow:inset 0 0 1px #000000;background:rgba(240, 240, 240, 0.5);}
941 div.output_prompt{color:darkred;margin:0 5px 0 -5px;}
941 div.output_prompt{color:darkred;margin:0 5px 0 -5px;}
942 .CodeMirror{line-height:1.231;height:auto;background:none;}
942 .CodeMirror{line-height:1.231;height:auto;background:none;}
943 .CodeMirror-scroll{overflow-y:hidden;overflow-x:auto;}
943 .CodeMirror-scroll{overflow:scroll;margin-bottom:-38px;}
944 .CodeMirror-wrap .CodeMirror-scroll{overflow:scroll;}
945 .CodeMirror-vscrollbar,.CodeMirror-scrollbar-filler{visibility:hidden;}
944 .CodeMirror-lines{padding:0.4em;}
946 .CodeMirror-lines{padding:0.4em;}
945 .CodeMirror-linenumber{padding:0 8px 0 4px;}
947 .CodeMirror-linenumber{padding:0 8px 0 4px;}
946 .CodeMirror-gutters{border-bottom-left-radius:4px;border-top-left-radius:4px;}
948 .CodeMirror-gutters{border-bottom-left-radius:4px;border-top-left-radius:4px;}
General Comments 0
You need to be logged in to leave comments. Login now