You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by ri...@apache.org on 2016/02/09 15:42:26 UTC

[5/7] brooklyn-docs git commit: fix links turning blue and being underlined

fix links turning blue and being underlined


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/75ed3cac
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/75ed3cac
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/75ed3cac

Branch: refs/heads/master
Commit: 75ed3cac0539c8954e581c893af7009b02dd1799
Parents: 6b1b330
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Mon Feb 8 15:47:48 2016 +0000
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
Committed: Mon Feb 8 16:13:09 2016 +0000

----------------------------------------------------------------------
 _includes/base-head.html | 9 +++++----
 style/css/_basic.scss    | 9 +++++++--
 2 files changed, 12 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/75ed3cac/_includes/base-head.html
----------------------------------------------------------------------
diff --git a/_includes/base-head.html b/_includes/base-head.html
index a44bb81..bc963e0 100644
--- a/_includes/base-head.html
+++ b/_includes/base-head.html
@@ -8,13 +8,10 @@
 <link href="{{site.path.style}}/deps/octicons/octicons.css" rel="stylesheet">
 <link href="{{site.path.style}}/deps/bootstrap-theme.css" rel="stylesheet">
 
-<link rel="stylesheet" href="{{ site.path.style }}/css/code.css" type="text/css" media="screen" />
-
-<link href="{{site.path.style}}/css/website.css" rel="stylesheet">
-
 <script src="{% dependency_url jquery.js %}"></script>
 <script src="{% dependency_url bootstrap.js %}"></script>
 <script type="text/javascript" src="{{ site.path.style }}/deps/jquery.cookie.js"></script>
+
 {% if page.url contains "/start/" %}
 <link href="{{site.path.style}}/deps/tooltip.css" rel="stylesheet">
 <script type="text/javascript" src="{{ site.path.style }}/deps/glossarizer.js"></script>
@@ -30,3 +27,7 @@ $(function(){
 });
 </script>
 {% endif %}
+
+<link rel="stylesheet" href="{{ site.path.style }}/css/code.css" type="text/css" media="screen" />
+<link href="{{site.path.style}}/css/website.css" rel="stylesheet">
+

http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/75ed3cac/style/css/_basic.scss
----------------------------------------------------------------------
diff --git a/style/css/_basic.scss b/style/css/_basic.scss
index d8c9235..e5fae03 100644
--- a/style/css/_basic.scss
+++ b/style/css/_basic.scss
@@ -17,7 +17,11 @@ p { margin: 0.75em 0; line-height: 1.4em;}
 form {padding: 0; margin: 0;}
 img {border: 0;}
 
-a {color: $a_color;}
+// don't treat focus specially; it's too disconcerting
+// in normal mode when someone is clicking, the color stays changed otherwise
+// (goes blue if using e.g. bootstrap.css); 
+// keyboard nav uses bounded blue boxes so there is no need
+a,a:focus {color: $a_color; text-decoration: none;}
 a:hover {text-decoration: none; color: $a_hover_color;}
 
 .dropdown-menu > li > a {
@@ -59,4 +63,5 @@ a:hover {text-decoration: none; color: $a_hover_color;}
     // extend bootstrap with a bottom border on table items; 
     // these get collapsed so not sure why bootstrap does weirdness where there's no bottom border
     border-bottom: 1px solid $white_dd;
-}
\ No newline at end of file
+}
+