File tree Expand file tree Collapse file tree 3 files changed +8796
-8427
lines changed Expand file tree Collapse file tree 3 files changed +8796
-8427
lines changed Original file line number Diff line number Diff line change 1
- var EQ = require ( './css-element-queries/src/ElementQueries' ) ;
2
- var ResizeSensor = require ( './css-element-queries/src/ResizeSensor' ) ;
1
+ var EQ = require ( './../ css-element-queries-source /src/ElementQueries' ) ;
2
+ var ResizeSensor = require ( './../ css-element-queries-source /src/ResizeSensor' ) ;
3
3
var Hammer = require ( 'hammerjs/hammer' ) ;
4
4
5
5
require ( 'codemirror/mode/xml/xml' ) ;
@@ -134,7 +134,7 @@ function example4(){
134
134
}
135
135
} ) ;
136
136
new ResizeSensor ( box , function ( ) {
137
- logger . html ( 'Changed to ' + box [ 0 ] . clientWidth + 'px height.' ) ;
137
+ logger . html ( 'Changed to ' + box [ 0 ] . clientHeight + 'px height.' ) ;
138
138
} ) ;
139
139
}
140
140
Original file line number Diff line number Diff line change 49
49
50
50
.cm-fat-cursor .CodeMirror-cursor {
51
51
width : auto;
52
- border : 0 ;
52
+ border : 0 !important ;
53
53
background : # 7e7 ; }
54
54
55
55
.cm-fat-cursor div .CodeMirror-cursors {
86
86
display : inline-block;
87
87
text-decoration : inherit; }
88
88
89
+ .CodeMirror-rulers {
90
+ position : absolute;
91
+ left : 0 ;
92
+ right : 0 ;
93
+ top : -50px ;
94
+ bottom : -20px ;
95
+ overflow : hidden; }
96
+
89
97
.CodeMirror-ruler {
90
98
border-left : 1px solid # ccc ;
99
+ top : 0 ;
100
+ bottom : 0 ;
91
101
position : absolute; }
92
102
93
103
/* DEFAULT THEME */
@@ -245,16 +255,15 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {
245
255
position : absolute;
246
256
left : 0 ;
247
257
top : 0 ;
258
+ min-height : 100% ;
248
259
z-index : 3 ; }
249
260
250
261
.CodeMirror-gutter {
251
262
white-space : normal;
252
263
height : 100% ;
253
264
display : inline-block;
254
- margin-bottom : -30px ;
255
- /* Hack to make IE7 behave */
256
- * zoom : 1 ;
257
- * display : inline; }
265
+ vertical-align : top;
266
+ margin-bottom : -30px ; }
258
267
259
268
.CodeMirror-gutter-wrapper {
260
269
position : absolute;
@@ -300,7 +309,9 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {
300
309
z-index : 2 ;
301
310
position : relative;
302
311
overflow : visible;
303
- -webkit-tap-highlight-color : transparent; }
312
+ -webkit-tap-highlight-color : transparent;
313
+ -webkit-font-variant-ligatures : none;
314
+ font-variant-ligatures : none; }
304
315
305
316
.CodeMirror-wrap pre {
306
317
word-wrap : break-word;
@@ -340,7 +351,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {
340
351
visibility : hidden; }
341
352
342
353
.CodeMirror-cursor {
343
- position : absolute; }
354
+ position : absolute;
355
+ pointer-events : none; }
344
356
345
357
.CodeMirror-measure pre {
346
358
position : static; }
@@ -375,10 +387,6 @@ div.CodeMirror-dragcursors {
375
387
background : # ffa ;
376
388
background : rgba (255 , 255 , 0 , 0.4 ); }
377
389
378
- /* IE7 hack to prevent it from returning funny offsetTops on the spans */
379
- .CodeMirror span {
380
- * vertical-align : text-bottom; }
381
-
382
390
/* Used to force a border model for a node */
383
391
.cm-force-border {
384
392
padding-right : .1px ; }
You can’t perform that action at this time.
0 commit comments