Skip to content

Commit a12843c

Browse files
committed
Tooltip for menu icons in header standard theme
1 parent fb5b4e1 commit a12843c

7 files changed

Lines changed: 25 additions & 7 deletions

File tree

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/site.master

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
</a>
4848
<nav class="blog-nav">
4949
<ul class="clearfix">
50-
<li><a href="<%=Utils.AbsoluteWebRoot %>" class="item-home"><span><%=Resources.labels.home %></span></a></li>
51-
<li><a href="<%=Utils.AbsoluteWebRoot %>archive" class="item-archive"><span><%=Resources.labels.archive %></span></a></li>
52-
<li><a href="<%=Utils.AbsoluteWebRoot %>contact" class="item-contact"><span><%=Resources.labels.contact %></span></a></li>
53-
<li><a runat="server" id="aLogin" class="item-login"><span id="aLoginText" runat="server"></span></a></li>
50+
<li><a href="<%=Utils.AbsoluteWebRoot %>" class="item-home" title="<%=Resources.labels.home %>"><span><%=Resources.labels.home %></span></a></li>
51+
<li><a href="<%=Utils.AbsoluteWebRoot %>archive" class="item-archive" title="<%=Resources.labels.archive %>"><span><%=Resources.labels.archive %></span></a></li>
52+
<li><a href="<%=Utils.AbsoluteWebRoot %>contact" class="item-contact" title="<%=Resources.labels.contact %>"><span><%=Resources.labels.contact %></span></a></li>
53+
<li><a runat="server" id="aLogin" class="item-login" title=""><span id="aLoginText" runat="server"></span></a></li>
5454
</ul>
5555
</nav>
5656
</header>
@@ -72,13 +72,17 @@
7272
</div>
7373
</div>
7474
</div>
75+
76+
<script src="/custom/themes/standard/src/js/bootstrap.min.js"></script>
7577
<script src="/custom/themes/standard/src/js/custom.js"></script>
7678
<script>
7779
var customBackground = [CUSTOMFIELD|THEME|Standard|custom background (true or false ?) |false/];
7880
if (customBackground) {
7981
$('body').append('<style>body {background:[CUSTOMFIELD|THEME|Standard|background color left|#142c5a/]; background: -webkit-linear-gradient(to left, [CUSTOMFIELD|THEME|Standard|background color right|#5f2c82/], [CUSTOMFIELD|THEME|Standard|background color left|#142c5a/]); background: linear-gradient(to left, [CUSTOMFIELD|THEME|Standard|background color right|#5f2c82/], [CUSTOMFIELD|THEME|Standard|background color left|#142c5a/]);}</style>');
8082
}
8183
</script>
84+
85+
8286
</form>
8387
</body>
8488
</html>

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/css/styles.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/css/styles.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/css/styles.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/css/styles.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/js/custom.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ simpleCap.hide();
44
$("#commentCaptcha").append(simpleCap.html());
55

66
//
7+
var logintext = $(".item-login span").text();
78
var aLogin = $(".item-login");
9+
aLogin.attr("title", logintext);
810
var aLoginAttr = aLogin.attr("href");
911
if (aLoginAttr == "/admin/") {
1012
aLogin.removeClass("item-login");
1113
aLogin.addClass("item-admin");
14+
aLogin.attr("title", logintext);
1215
}
1316

17+
//
18+
$(".blog-nav li a").tooltip();
19+
1420
//
1521
if (location.pathname !== '/') {
1622
$('.blog-nav ul li a[href*="/' + location.pathname.split("/")[1] + '"]').addClass('active');

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/scss/sections/_header.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
span {
5656
display: none;
5757
}
58+
.tooltip {
59+
text-transform:uppercase;
60+
letter-spacing:$px2;
61+
}
5862
}
5963

6064
a {

0 commit comments

Comments
 (0)