Commit c98399e65fa571599a8be30da0dfb7261c685df3
1 parent
54d2839b
Exists in
master
and in
2 other branches
Changed letter-spacing when string is too long
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
theme.js
@@ -43,6 +43,13 @@ | @@ -43,6 +43,13 @@ | ||
43 | } | 43 | } |
44 | ); | 44 | ); |
45 | 45 | ||
46 | + $('.link-list-block a').each(function() { | ||
47 | + var element = $(this); | ||
48 | + if (element.html().length > 13) { | ||
49 | + element.css('letter-spacing', '1px'); | ||
50 | + } | ||
51 | + }); | ||
52 | + | ||
46 | jQuery('.link-list-block').wrap("<div class='colored-links'></div>"); | 53 | jQuery('.link-list-block').wrap("<div class='colored-links'></div>"); |
47 | 54 | ||
48 | jQuery(".box-2 .link-list-block .block-title").click(function(){ | 55 | jQuery(".box-2 .link-list-block .block-title").click(function(){ |