Skip to content

Commit 9fbfc3a

Browse files
committed
fixing thumbnail bug, fine-tuning list style for documentation
1 parent 2fdf976 commit 9fbfc3a

File tree

4 files changed

+93
-38
lines changed

4 files changed

+93
-38
lines changed

_layouts/doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h1>Overview</h1>
7878
.css('top',original.prop('offsetTop'))
7979
.css('left',original.prop('offsetLeft') + fullimage.prop('width') + 12)
8080
.bind('click',closeImg);
81-
var closeImg = function(){
81+
function closeImg(){
8282
fullimage.remove();
8383
close.remove();
8484
};
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
layout: doc
3+
title: Hierarchy reference
4+
permalink: /en/beginner/hierarchy-reference
5+
lang: en
6+
category: beginner
7+
---
8+
9+
Title of the section
10+
====================
11+
12+
Subsection 1
13+
------------
14+
15+
This is a normal paragraph, serving as overview, or description of a
16+
general topic. It does not provide directions or steps.
17+
18+
Subsection 2
19+
------------
20+
21+
1. First, prep the ingredients and make sure you have all the equipments.
22+
- Chill shaker.
23+
- Put the egg whites.
24+
2. Second, action time.
25+
- Shake furiously.
26+
3. Cool. You are done.
27+
- Texture is looking great.
28+
29+
Subsection 3
30+
------------
31+
32+
- Check this out. Notice these things.
33+
- Pay attention to A.
34+
- Don't forget B.

reset.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ footer, header, hgroup, menu, nav, section {
3030
display: block;
3131
}
3232
body { line-height: 1; }
33-
ol, ul { list-style: none; }
33+
ol,ul { list-style: none; }
3434
blockquote, q { quotes: none; }
3535
blockquote:before, blockquote:after,
3636
q:before, q:after { content: ''; content: none; }

style.css

Lines changed: 57 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,37 @@
3232
clear:both;
3333
}
3434

35+
/* custom list style */
36+
.doc ol,
37+
.doc ul {
38+
counter-reset:li;
39+
margin-left:0;
40+
padding-left:0;
41+
}
42+
.doc ol > li,
43+
.doc ul > li {
44+
position:relative;
45+
}
46+
.doc ol > li:before,
47+
.doc ul > li:before {
48+
position:absolute;
49+
top:-1px;
50+
left:-3em;
51+
width:2em;
52+
font-family:'Source Sans Pro',sans-serif;
53+
font-size:12px;
54+
text-align:center;
55+
}
56+
.doc ul > li:before {content:'●'}
57+
.doc ol > li:before {
58+
content:counter(li);
59+
counter-increment:li;
60+
border-radius:50%;
61+
background:#f0f0f0;
62+
}
63+
.doc ol li ul > li:before,
64+
.doc ul li ul > li:before {content:'➝';}
65+
3566
/* --------------------------------------------------------
3667
Colors
3768
-------------------------------------------------------- */
@@ -81,11 +112,10 @@ h4 {
81112
font-size: 16px;
82113
margin-bottom:26px;
83114
}
84-
p, ul{
115+
p {
85116
margin: 0 0 20px;
86117
line-height:28px;
87118
}
88-
89119
a {
90120
text-decoration: none;
91121
color: #404040;
@@ -95,6 +125,10 @@ a:hover {
95125
color: #79bc5f;
96126
}
97127

128+
.doc ul {margin: 20px 0;}
129+
.doc li,.doc p {font-family:'Quattrocento',serif;}
130+
.doc li {margin-left:30px;}
131+
98132
small {
99133
font-size:12px;
100134
line-height:16px;
@@ -124,23 +158,6 @@ pre {
124158
-o-transition: all 200ms linear;
125159
}
126160

127-
.doc li, .doc p {
128-
font-family:'Quattrocento',serif;
129-
list-style-type: square;
130-
}
131-
.doc li {
132-
margin:0 0 20px 0;
133-
}
134-
.doc li p {
135-
margin:0; /* p and ul inside of an li does not need bottom margins*/
136-
}
137-
.doc li ul {
138-
margin:20px 0 0 20px;
139-
}
140-
.doc li ul li {
141-
list-style-type: circle;
142-
}
143-
144161
/* --------------------------------------------------------
145162
Layout
146163
-------------------------------------------------------- */
@@ -239,22 +256,23 @@ pre {
239256
color:#fff;
240257
}
241258

242-
.email:before,.twitter:before,.translation:before,
243-
.email:hover:before,.twitter:hover:before,.translation:hover:before {
244-
content:'';
245-
float:left;
246-
margin-right:20px;
247-
width:16px;
248-
height:20px;
249-
background:url(./images/sprite.png) no-repeat;
250-
overflow:hidden;
251-
}
252-
.email:before {background-position:-19px -87px;}
253-
.email:hover:before {background-position:-19px -107px;}
254-
.twitter:before {background-position:-50px -87px;}
255-
.twitter:hover:before {background-position:-50px -107px;}
256-
.translation:before {background-position:-80px -87px;}
257-
.translation:hover:before {background-position:-80px -107px;}
259+
.contact li {margin-bottom:20px;}
260+
.email:before,.twitter:before,.translation:before,
261+
.email:hover:before,.twitter:hover:before,.translation:hover:before {
262+
content:'';
263+
float:left;
264+
margin:-5px 18px 0 0;
265+
width:16px;
266+
height:20px;
267+
background:url(./images/sprite.png) no-repeat;
268+
overflow:hidden;
269+
}
270+
.email:before {background-position:-19px -87px;}
271+
.email:hover:before {background-position:-19px -107px;}
272+
.twitter:before {background-position:-50px -87px;}
273+
.twitter:hover:before {background-position:-50px -107px;}
274+
.translation:before {background-position:-80px -87px;}
275+
.translation:hover:before {background-position:-80px -107px;}
258276

259277
.searchbox {
260278
height:30px;
@@ -279,7 +297,10 @@ pre {
279297
}
280298

281299
.faqbox h4 {margin-bottom:46px;}
282-
.faq li {padding:1px 0 0 0;}
300+
.faq li {
301+
margin:4px 0;
302+
padding:1px 0 0 0;
303+
}
283304
.faq li a:before {
284305
content:'';
285306
float:left;

0 commit comments

Comments
 (0)