Commit d2d2752b981d8fa84bfaa0a8de83893c1144167f

Daniel Wyatt 2013-10-03T11:48:41

Fix twilight text selection

diff --git a/prism-twilight.css b/prism-twilight.css
index f0ec87d..90f8339 100644
--- a/prism-twilight.css
+++ b/prism-twilight.css
@@ -37,11 +37,18 @@ pre[class*="language-"] {
 	overflow: auto;
 	padding: 1em;
 }
-pre[class*="language-"]::selection { /* Safari */
-	background:hsl(200, 4%, 16%); /* #282A2B */
+
+/* Text Selection colour */
+pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
+code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
+	text-shadow: none;
+	background: hsla(0,0%,93%,0.15); /* #EDEDED */
 }
-pre[class*="language-"]::selection { /* Firefox */
-	background:hsl(200, 4%, 16%); /* #282A2B */
+
+pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
+code[class*="language-"]::selection, code[class*="language-"] ::selection {
+	text-shadow: none;
+	background: hsla(0,0%,93%,0.15); /* #EDEDED */
 }
 
 /* Inline code */
@@ -121,14 +128,6 @@ pre[data-line] {
 	color: hsl(33, 33%, 52%); /* #AC885B */
 }
 
-/* Text Selection colour */
-::selection {
-	background: hsla(0,0%,93%,0.15); /* #EDEDED */
-}
-::-moz-selection {
-	background: hsla(0,0%,93%,0.15); /* #EDEDED */
-}
-
 /* Make the tokens sit above the line highlight so the colours don't look faded. */
 .token {
 	position:relative;