Skip to content

Commit 8c20c68

Browse files
committed
Theme fixes
1 parent d1ecd80 commit 8c20c68

File tree

4 files changed

+40
-13
lines changed

4 files changed

+40
-13
lines changed

.gitignore

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
1-
*.pyc
2-
*.egg-info
3-
*.egg
4-
*build/
5-
.tox
6-
.coverage
7-
*.DS_Store
8-
*.sass-cache
9-
.ruby-version
10-
dist/
11-
bower_components/
12-
node_modules/
13-
npm-debug.log
1+
/.couscous/
2+
/bower_components/

css/theme-fixes.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.wy-side-nav-search>a, .wy-side-nav-search .wy-dropdown>a {
2+
margin-bottom: 0;
3+
}
4+
5+
/* Code blocks */
6+
pre > code {
7+
display: block;
8+
font-size: 12px;
9+
white-space: inherit;
10+
max-width: inherit;
11+
background: transparent;
12+
border: none;
13+
overflow-x: auto;
14+
padding: 0.5em;
15+
color: #333;
16+
}
17+
pre > code.hljs {
18+
background: transparent;
19+
}
20+
pre {
21+
border: 1px solid #e1e4e5;
22+
background: #fff;
23+
margin: 1px 0 24px 0;
24+
}

default.twig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
rel='stylesheet' type='text/css'>
1010

1111
<link rel="stylesheet" href="{{ baseUrl }}/css/theme.css" type="text/css"/>
12+
<link rel="stylesheet" href="{{ baseUrl }}/css/theme-fixes.css" type="text/css"/>
13+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/github.min.css">
1214
</head>
1315
<body class="wy-body-for-nav">
1416

@@ -67,5 +69,17 @@
6769

6870
</div>
6971

72+
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
73+
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
74+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
75+
<script src="{{ baseUrl }}/js/theme.js"></script>
76+
77+
<script>
78+
$(function() {
79+
// Syntax highlighting
80+
hljs.initHighlightingOnLoad();
81+
});
82+
</script>
83+
7084
</body>
7185
</html>

0 commit comments

Comments
 (0)