Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/text_editor/cmdevtools.css

Issue 2574443003: [DevTools] Make line highlight stay in readonly editor. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 .CodeMirror { 1 .CodeMirror {
2 line-height: 1.2em !important; 2 line-height: 1.2em !important;
3 background-color: transparent !important; 3 background-color: transparent !important;
4 color: #222; 4 color: #222;
5 } 5 }
6 6
7 .CodeMirror-linewidget { 7 .CodeMirror-linewidget {
8 overflow: visible !important; 8 overflow: visible !important;
9 } 9 }
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 @-webkit-keyframes fadeout { 64 @-webkit-keyframes fadeout {
65 from {background-color: rgb(255, 255, 120); } 65 from {background-color: rgb(255, 255, 120); }
66 to { background-color: white; } 66 to { background-color: white; }
67 } 67 }
68 @-webkit-keyframes fadeout-dark { 68 @-webkit-keyframes fadeout-dark {
69 from {background-color: hsla(133, 100%, 30%, 0.5); } 69 from {background-color: hsla(133, 100%, 30%, 0.5); }
70 to { background-color: transparent; } 70 to { background-color: transparent; }
71 } 71 }
72 72
73 .cm-readonly-highlight {
74 background-color: rgb(255, 255, 120);
75 }
76
77 .-theme-with-dark-background .cm-readonly-highlight {
78 background-color: hsla(133, 100%, 30%, 0.5);
79 }
80
73 .cm-highlight.cm-execution-line { 81 .cm-highlight.cm-execution-line {
74 -webkit-animation: fadeout-execution-line 1s 0s; 82 -webkit-animation: fadeout-execution-line 1s 0s;
75 } 83 }
76 @-webkit-keyframes fadeout-execution-line { 84 @-webkit-keyframes fadeout-execution-line {
77 from {background-color: rgb(121, 141, 254); } 85 from {background-color: rgb(121, 141, 254); }
78 to { background-color: rgb(171, 191, 254); } 86 to { background-color: rgb(171, 191, 254); }
79 } 87 }
80 88
81 .cm-breakpoint .CodeMirror-gutter-wrapper .CodeMirror-linenumber { 89 .cm-breakpoint .CodeMirror-gutter-wrapper .CodeMirror-linenumber {
82 color: white; 90 color: white;
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 margin-right: 0.5em; 379 margin-right: 0.5em;
372 } 380 }
373 381
374 .CodeMirror .text-editor-line-decoration-icon { 382 .CodeMirror .text-editor-line-decoration-icon {
375 position: absolute; 383 position: absolute;
376 cursor: pointer; 384 cursor: pointer;
377 right: -16px; 385 right: -16px;
378 top: -9px; 386 top: -9px;
379 } 387 }
380 388
381 .CodeMirror .text-editor-line-with-warning:not(.cm-execution-line) { 389 .CodeMirror .text-editor-line-with-warning:not(.cm-execution-line):not(.cm-reado nly-highlight) {
382 background-color: rgba(241, 230, 0, 0.1); 390 background-color: rgba(241, 230, 0, 0.1);
383 } 391 }
384 392
385 .CodeMirror .text-editor-line-with-error:not(.cm-execution-line) { 393 .CodeMirror .text-editor-line-with-error:not(.cm-execution-line):not(.cm-readonl y-highlight) {
386 background-color: rgba(255, 0, 0, 0.05); 394 background-color: rgba(255, 0, 0, 0.05);
387 } 395 }
388 396
389 .CodeMirror .text-editor-line-decoration-wave { 397 .CodeMirror .text-editor-line-decoration-wave {
390 background-image: url(Images/errorWave.png); 398 background-image: url(Images/errorWave.png);
391 background-repeat: repeat-x; 399 background-repeat: repeat-x;
392 background-size: contain; 400 background-size: contain;
393 } 401 }
394 402
395 @media (-webkit-min-device-pixel-ratio: 1.1) { 403 @media (-webkit-min-device-pixel-ratio: 1.1) {
(...skipping 25 matching lines...) Expand all
421 429
422 .CodeMirror .auto-complete-text { 430 .CodeMirror .auto-complete-text {
423 color: rgb(128,128,128); 431 color: rgb(128,128,128);
424 } 432 }
425 433
426 /** Prevent the codemirror textarea from stealing PageUp events **/ 434 /** Prevent the codemirror textarea from stealing PageUp events **/
427 .CodeMirror textarea { 435 .CodeMirror textarea {
428 resize: none; 436 resize: none;
429 overflow: hidden; 437 overflow: hidden;
430 } 438 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698