From 5ce51454c869a5edc711647a0bf31f3125d42ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Tue, 13 Jan 2015 14:33:18 +0100 Subject: [PATCH 1/2] Improve styling of generated anchors --- style.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/style.css b/style.css index d491190..c15e375 100644 --- a/style.css +++ b/style.css @@ -13,6 +13,8 @@ Description: jQuery Validation Plugin Theme based on twentytwelve * > .anchor-link { margin-left: -9px; visibility: hidden; + text-decoration: none; + color: black; } *:hover > .anchor-link { visibility: inherit; From 7dd4977be9bf3d9b9ab528f62b442b4373216449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Wed, 14 Jan 2015 16:48:16 +0100 Subject: [PATCH 2/2] Get rid of generated anchors from markdown file, improve styling Fixes jzaefferer/jquery-validation#1369 --- style.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/style.css b/style.css index c15e375..b5a00ad 100644 --- a/style.css +++ b/style.css @@ -11,7 +11,9 @@ Description: jQuery Validation Plugin Theme based on twentytwelve /* show anchor on hover, adjust offset */ * > .anchor-link { - margin-left: -9px; + margin-left: -20px; + width: 15px; + display: inline-block; visibility: hidden; text-decoration: none; color: black; @@ -20,6 +22,11 @@ Description: jQuery Validation Plugin Theme based on twentytwelve visibility: inherit; } +/* hide anchors generated for markdown file headers */ +.toc-link { + display: none; +} + /* logo */ .site-title a { display: block !important;