From 983388070901e513d283e72567814600c1f64a67 Mon Sep 17 00:00:00 2001 From: Pat Hawks Date: Fri, 27 Dec 2013 22:37:16 -0600 Subject: [PATCH 1/3] Prevent users from selecting non-helpful code --- site/_includes/css/pygments.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/_includes/css/pygments.css b/site/_includes/css/pygments.css index 408a44f3..e9a55917 100644 --- a/site/_includes/css/pygments.css +++ b/site/_includes/css/pygments.css @@ -45,7 +45,7 @@ .highlight .nx { color: #ffffff} /* Name.Other */ .highlight .py { color: #ffffff} /* Name.Property */ .highlight .nt { color: #f0e68c} /* Name.Tag */ -.highlight .nv { color: #98fb98} /* Name.Variable */ +.highlight .nv { color: #98fb98; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } /* Name.Variable */ .highlight .ow { color: #ffffff} /* Operator.Word */ .highlight .w { color: #ffffff} /* Text.Whitespace */ .highlight .mf { color: #ffffff} /* Literal.Number.Float */ From f3a422852ef47a104d4ae104a76fb898771c1f50 Mon Sep 17 00:00:00 2001 From: Pat Hawks Date: Fri, 27 Dec 2013 22:40:02 -0600 Subject: [PATCH 2/3] Clean up Quick-start Instructions Now lines can be copy-pasted as is into a terminal --- site/_includes/css/style.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/site/_includes/css/style.css b/site/_includes/css/style.css index 049ee115..6b0339ea 100644 --- a/site/_includes/css/style.css +++ b/site/_includes/css/style.css @@ -289,10 +289,20 @@ body > footer a:hover img { .quickstart .code .path { color: #87ceeb; + -webkit-user-select: none; /* Chrome all / Safari all */ + -moz-user-select: none; /* Firefox all */ + -ms-user-select: none; /* IE 10+ */ + -o-user-select: none; + user-select: none; } .quickstart .code .prompt { color: #cd5c5c; + -webkit-user-select: none; /* Chrome all / Safari all */ + -moz-user-select: none; /* Firefox all */ + -ms-user-select: none; /* IE 10+ */ + -o-user-select: none; + user-select: none; } .quickstart .code .command { From 64b42d043106a78c7b9ec8e38fc0307dfe42438f Mon Sep 17 00:00:00 2001 From: Pat Hawks Date: Wed, 1 Jan 2014 16:34:57 -0600 Subject: [PATCH 3/3] Move `user-select` CSS to more specific selector --- site/_includes/css/pygments.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/_includes/css/pygments.css b/site/_includes/css/pygments.css index e9a55917..5fe679f4 100644 --- a/site/_includes/css/pygments.css +++ b/site/_includes/css/pygments.css @@ -45,7 +45,7 @@ .highlight .nx { color: #ffffff} /* Name.Other */ .highlight .py { color: #ffffff} /* Name.Property */ .highlight .nt { color: #f0e68c} /* Name.Tag */ -.highlight .nv { color: #98fb98; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } /* Name.Variable */ +.highlight .nv { color: #98fb98} /* Name.Variable */ .highlight .ow { color: #ffffff} /* Operator.Word */ .highlight .w { color: #ffffff} /* Text.Whitespace */ .highlight .mf { color: #ffffff} /* Literal.Number.Float */ @@ -68,3 +68,5 @@ .highlight .vg { color: #98fb98} /* Name.Variable.Global */ .highlight .vi { color: #98fb98} /* Name.Variable.Instance */ .highlight .il { color: #ffffff} /* Literal.Number.Integer.Long */ + +.highlight .bash .nv {-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; }