Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed overlay problem (should be relative to the text container)

  • Loading branch information...
commit 0fc031b722e2955f77b1434ded255fbb9301f601 1 parent 6cc1a3f
@mishoo authored
Showing with 73 additions and 1 deletion.
  1. +2 −1  src/css/ymacs.css
  2. +71 −0 tmp/patch-overlays-below.diff
View
3  src/css/ymacs.css
@@ -10,9 +10,10 @@
.Ymacs-frame-overlays {
overflow: auto;
+ position: relative;
}
-.Ymacs-frame-content div.line {
+.Ymacs-frame-content {
white-space: pre;
}
View
71 tmp/patch-overlays-below.diff
@@ -0,0 +1,71 @@
+diff -r e6173b76a5e8 src/css/ymacs-dark.css
+--- a/src/css/ymacs-dark.css Sun Jan 24 16:07:04 2010 +0200
++++ b/src/css/ymacs-dark.css Sun Jan 24 16:51:55 2010 +0200
+@@ -29,8 +29,8 @@
+ color: #fff;
+ }
+
+-.Ymacs-Theme-dark .Ymacs_Overlay .match-paren { background: #8f8; }
+-.Ymacs-Theme-dark .Ymacs_Overlay .selection { background: #ccf; }
++.Ymacs-Theme-dark .Ymacs_Overlay .match-paren { background: #005700; opacity: 0.5; filter:alpha(opacity=50;) }
++.Ymacs-Theme-dark .Ymacs_Overlay .selection { background: #663300; }
+
+ .Ymacs-Theme-dark .Ymacs_Modeline {
+ background-color: #777;
+diff -r e6173b76a5e8 src/css/ymacs-light.css
+--- a/src/css/ymacs-light.css Sun Jan 24 16:07:04 2010 +0200
++++ b/src/css/ymacs-light.css Sun Jan 24 16:51:55 2010 +0200
+@@ -28,8 +28,8 @@
+ }
+
+
+-.Ymacs-Theme-light .Ymacs_Overlay .match-paren { background: #080; }
+-.Ymacs-Theme-light .Ymacs_Overlay .selection { background: #88f; opacity: 0.8; }
++.Ymacs-Theme-light .Ymacs_Overlay .match-paren { background: #4c4; opacity: 0.5; filter:alpha(opacity=50;) }
++.Ymacs-Theme-light .Ymacs_Overlay .selection { background: #99e; }
+
+ .Ymacs-Theme-light .Ymacs_Modeline {
+ background-color: #777;
+diff -r e6173b76a5e8 src/css/ymacs.css
+--- a/src/css/ymacs.css Sun Jan 24 16:07:04 2010 +0200
++++ b/src/css/ymacs.css Sun Jan 24 16:51:55 2010 +0200
+@@ -10,9 +10,12 @@
+
+ .Ymacs-frame-overlays {
+ overflow: auto;
++ position: relative;
+ }
+
+-.Ymacs-frame-content div.line {
++.Ymacs-frame-content {
++ position: relative;
++ z-index: 10;
+ white-space: pre;
+ }
+
+@@ -29,17 +32,19 @@
+
+ .Ymacs_Minibuffer .Ymacs_Modeline { display: none; }
+
+-/* .Ymacs_Frame-hasOverlays .Ymacs-current-line { */
+-/* background: transparent !important; */
+-/* } */
++.Ymacs_Frame-hasOverlays .Ymacs-current-line {
++ background: transparent !important;
++}
+
+ .Ymacs-overwrite-mode .Ymacs-caret {
+ -moz-border-radius: 15px;
+ }
+
+-.Ymacs_Overlay { position: absolute; right: 0; opacity: 0.5; filter: alpha(opacity=50); }
+-.Ymacs_Overlay .match-paren { opacity: 0.4; filter: alpha(opacity=40); }
+-.Ymacs_Overlay .selection { opacity: 0.7; filter: alpha(opacity=70); }
++/* .Ymacs_Overlay { position: absolute; right: 0; opacity: 0.5; filter: alpha(opacity=50); } */
++/* .Ymacs_Overlay .match-paren { opacity: 0.4; filter: alpha(opacity=40); } */
++/* .Ymacs_Overlay .selection { opacity: 0.7; filter: alpha(opacity=70); } */
++
++.Ymacs_Overlay { position: absolute; right: 0; z-index: 0; }
+
+ .Ymacs_Message_Popup {
+ background-color: wheat;
Please sign in to comment.
Something went wrong with that request. Please try again.