Skip to content

Commit b2dcfc6

Browse files
committedJan 2, 2018
Fix #139 -- avoid conflict between reST and hyde’s sidebar
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 70b1106 commit b2dcfc6

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed
 

Diff for: ‎v7/hyde/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ That changes the color scheme, replace 08 with one of 09, 0a, 0b, 0c, 0d, 0e, 0f
1212

1313
You can read a tutorial about how to create/port new theme [at Nikola's site](https://getnikola.com/creating-a-theme.html)
1414

15+
(*Note:* The `.sidebar` class was renamed to `.hsidebar` to avoid conflicts with reST.)
16+
1517
License is MIT
1618

1719
Known Issues:

Diff for: ‎v7/hyde/assets/css/hyde.css

100755100644
+13-13
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ html {
5353
* out above content in mobile and later moves to the side with wider viewports.
5454
*/
5555

56-
div.sidebar, .sidebar {
56+
div.hsidebar, .hsidebar {
5757
padding: 2rem 1rem;
5858
color: rgba(255,255,255,.5);
5959
background-color: #202020;
@@ -63,7 +63,7 @@ div.sidebar, .sidebar {
6363
}
6464

6565
@media (min-width: 48em) {
66-
div.sidebar, .sidebar {
66+
div.hsidebar, .hsidebar {
6767
position: fixed;
6868
text-align: left;
6969
top: 0;
@@ -74,7 +74,7 @@ div.sidebar, .sidebar {
7474
}
7575

7676
/* Sidebar images */
77-
div.sidebar img, .sidebar img {
77+
div.hsidebar img, .hsidebar img {
7878
display: block;
7979
margin-left: auto;
8080
margin-right: auto;
@@ -86,7 +86,7 @@ img#logo {
8686
}
8787

8888
/* Sidebar links */
89-
div.sidebar a, .sidebar a {
89+
div.hsidebar a, .hsidebar a {
9090
color: #fff;
9191
}
9292

@@ -192,7 +192,7 @@ a.sidebar-nav-item:focus {
192192
*/
193193

194194
@media (min-width: 48em) {
195-
.layout-reverse .sidebar {
195+
.layout-reverse .hsidebar {
196196
left: auto;
197197
right: 0;
198198
}
@@ -221,7 +221,7 @@ a.sidebar-nav-item:focus {
221221
/* Base16 (http://chriskempson.github.io/base16/#default) */
222222

223223
/* Red */
224-
.theme-base-08 .sidebar {
224+
.theme-base-08 .hsidebar {
225225
background-color: #ac4142;
226226
}
227227
.theme-base-08 .content a,
@@ -230,7 +230,7 @@ a.sidebar-nav-item:focus {
230230
}
231231

232232
/* Orange */
233-
.theme-base-09 .sidebar {
233+
.theme-base-09 .hsidebar {
234234
background-color: #d28445;
235235
}
236236
.theme-base-09 .content a,
@@ -239,7 +239,7 @@ a.sidebar-nav-item:focus {
239239
}
240240

241241
/* Yellow */
242-
.theme-base-0a .sidebar {
242+
.theme-base-0a .hsidebar {
243243
background-color: #f4bf75;
244244
}
245245
.theme-base-0a .content a,
@@ -248,7 +248,7 @@ a.sidebar-nav-item:focus {
248248
}
249249

250250
/* Green */
251-
.theme-base-0b .sidebar {
251+
.theme-base-0b .hsidebar {
252252
background-color: #90a959;
253253
}
254254
.theme-base-0b .content a,
@@ -257,7 +257,7 @@ a.sidebar-nav-item:focus {
257257
}
258258

259259
/* Cyan */
260-
.theme-base-0c .sidebar {
260+
.theme-base-0c .hsidebar {
261261
background-color: #75b5aa;
262262
}
263263
.theme-base-0c .content a,
@@ -266,7 +266,7 @@ a.sidebar-nav-item:focus {
266266
}
267267

268268
/* Blue */
269-
.theme-base-0d .sidebar {
269+
.theme-base-0d .hsidebar {
270270
background-color: #6a9fb5;
271271
}
272272
.theme-base-0d .content a,
@@ -275,7 +275,7 @@ a.sidebar-nav-item:focus {
275275
}
276276

277277
/* Magenta */
278-
.theme-base-0e .sidebar {
278+
.theme-base-0e .hsidebar {
279279
background-color: #aa759f;
280280
}
281281
.theme-base-0e .content a,
@@ -284,7 +284,7 @@ a.sidebar-nav-item:focus {
284284
}
285285

286286
/* Brown */
287-
.theme-base-0f .sidebar {
287+
.theme-base-0f .hsidebar {
288288
background-color: #8f5536;
289289
}
290290
.theme-base-0f .content a,

Diff for: ‎v7/hyde/templates/base.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<body class="{{ hyde_subtheme }}">
1414
<a href="#content" class="sr-only sr-only-focusable">{{ messages("Skip to main content") }}</a>
1515

16-
<div class="sidebar">
16+
<div class="hsidebar">
1717
<div class="container sidebar-sticky">
1818
<div class="sidebar-about">
1919
<h1>

0 commit comments

Comments
 (0)
Please sign in to comment.