Dan Brown

Fixed link hooks

...@@ -241,15 +241,23 @@ a.link-hook { ...@@ -241,15 +241,23 @@ a.link-hook {
241 position: absolute; 241 position: absolute;
242 display: inline-block; 242 display: inline-block;
243 top: $-xs; 243 top: $-xs;
244 - left: -$-xl+2px; 244 + left: -$-l;
245 + padding-bottom: 30px;
245 font-size: 20px; 246 font-size: 20px;
246 line-height: 20px; 247 line-height: 20px;
247 color: #BBB; 248 color: #BBB;
248 opacity: 0; 249 opacity: 0;
250 + transform: translate3d(10px, 0, 0);
251 + transition: all ease-in-out 240ms;
252 + background-color: transparent;
253 + &:hover {
254 + color: $primary;
255 + }
249 } 256 }
250 h1, h2, h3, h4, h5, h6 { 257 h1, h2, h3, h4, h5, h6 {
251 &:hover a.link-hook { 258 &:hover a.link-hook {
252 opacity: 1; 259 opacity: 1;
260 + transform: translate3d(0, 0, 0);
253 } 261 }
254 } 262 }
255 263
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
74 headers.each(function() { 74 headers.each(function() {
75 var text = $(this).text().trim(); 75 var text = $(this).text().trim();
76 var link = '/link/' + pageId + '#' + encodeURIComponent(text); 76 var link = '/link/' + pageId + '#' + encodeURIComponent(text);
77 - var linkHook = $('<a class="link-hook"><i class="fa fa-link"></i></a>') 77 + var linkHook = $('<a class="link-hook"><i class="zmdi zmdi-link"></i></a>')
78 .attr({"data-content": link, href: link, target: '_blank'}); 78 .attr({"data-content": link, href: link, target: '_blank'});
79 linkHook.click(function(e) { 79 linkHook.click(function(e) {
80 e.preventDefault(); 80 e.preventDefault();
......