Adjust CSS, add mathjax
This commit is contained in:
parent
7a85339b37
commit
7004137376
2 changed files with 8 additions and 3 deletions
|
|
@ -35,6 +35,7 @@ a:hover {
|
||||||
|
|
||||||
#main #gh-buttons {
|
#main #gh-buttons {
|
||||||
float: right;
|
float: right;
|
||||||
|
margin-bottom: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main #starcount {
|
#main #starcount {
|
||||||
|
|
@ -165,7 +166,7 @@ a:hover {
|
||||||
content: "";
|
content: "";
|
||||||
font-family: "fontello";
|
font-family: "fontello";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: -40px;
|
left: -43px;
|
||||||
color: #EEE;
|
color: #EEE;
|
||||||
text-shadow: -1px 0 #2B2B2B, 0 1px #2B2B2B, 1px 0 #2B2B2B, 0 -1px #2B2B2B
|
text-shadow: -1px 0 #2B2B2B, 0 1px #2B2B2B, 1px 0 #2B2B2B, 0 -1px #2B2B2B
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,10 @@
|
||||||
<link rel="stylesheet" href="<%= @items['/stylesheets/main/'].path %>">
|
<link rel="stylesheet" href="<%= @items['/stylesheets/main/'].path %>">
|
||||||
<link rel="stylesheet" href="<%= @items['/stylesheets/colorful/'].path %>" title="colorful">
|
<link rel="stylesheet" href="<%= @items['/stylesheets/colorful/'].path %>" title="colorful">
|
||||||
<link rel="stylesheet" href="<%= @items['/stylesheets/fontello/'].path %>">
|
<link rel="stylesheet" href="<%= @items['/stylesheets/fontello/'].path %>">
|
||||||
|
|
||||||
|
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" async></script>
|
||||||
|
<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['«', '»']]}});</script>
|
||||||
|
|
||||||
<meta name="generator" content="nanoc <%= Nanoc::VERSION %>">
|
<meta name="generator" content="nanoc <%= Nanoc::VERSION %>">
|
||||||
<meta http-equiv="Default-Style" content="colorful">
|
<meta http-equiv="Default-Style" content="colorful">
|
||||||
</head>
|
</head>
|
||||||
|
|
@ -16,8 +20,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<h1 id="gh-buttons"><a class="icon-fork" href="https://github.com/flaviut/nimrod-by-example/"></a> <a class="icon-star" href="https://github.com/flaviut/nimrod-by-example/stargazers" /><div id="starcount"></div></a></h1>
|
<h1 id="gh-buttons"><a class="icon-fork" href="https://github.com/flaviut/nimrod-by-example/"></a> <a class="icon-star" href="https://github.com/flaviut/nimrod-by-example/stargazers" /><div id="starcount"></div></a></h1>
|
||||||
<%= yield %>
|
|
||||||
</div>
|
|
||||||
<script>
|
<script>
|
||||||
function setVisibleTags(){
|
function setVisibleTags(){
|
||||||
var tocLinks = document.querySelectorAll("#sidebar a:link, a:visited");
|
var tocLinks = document.querySelectorAll("#sidebar a:link, a:visited");
|
||||||
|
|
@ -44,5 +46,7 @@
|
||||||
setVisibleTags()
|
setVisibleTags()
|
||||||
updateStarCounter()
|
updateStarCounter()
|
||||||
</script>
|
</script>
|
||||||
|
<%= yield %>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue