Commit d7b3cc846d54b3dd823562df1239bc217e07ab23

Lea Verou 2013-10-07T05:06:39

Merge pull request #171 from dewyatt/twilight-text-selection Fix twilight text selection

diff --git a/themes/prism-twilight.css b/themes/prism-twilight.css
index f0ec87d..94ba9e9 100644
--- a/themes/prism-twilight.css
+++ b/themes/prism-twilight.css
@@ -44,6 +44,19 @@ pre[class*="language-"]::selection { /* Firefox */
 	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, 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 */
 :not(pre) > code[class*="language-"] {
 	border-radius: .3em;
@@ -121,14 +134,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;