File tree 6 files changed +90
-42
lines changed
6 files changed +90
-42
lines changed Original file line number Diff line number Diff line change 1
1
<!-- start pagination -->
2
- < div class ="pager ">
2
+ < div class ="pager bottom ">
3
3
<!-- start older -->
4
4
< section class ="pager__older ">
5
5
{% if paginator.next_page %}
11
11
<!-- end older -->
12
12
13
13
<!-- start archives -->
14
- < section class ="pager__archives ">
14
+ < section class ="pager__ref ">
15
15
< a href ="/journal/archives " title ="Archives "> Archives</ a >
16
16
</ section >
17
17
<!-- end archives -->
Original file line number Diff line number Diff line change 10
10
11
11
<!-- reduced header -->
12
12
< header class ="page-header ">
13
+ < nav >
14
+ <!-- menu -->
15
+ < section class "page-back">
16
+ < a href ="/ "> ← Back to Pixelnest</ a >
17
+ </ section >
13
18
14
- <!-- menu -->
15
- < p class "page-back">
16
- < a href ="/ "> ← Back to Pixelnest</ a >
17
- </ p >
19
+ < section class ="page-ref ">
20
+ {% if page.home and page.tutorial %}
21
+ Tutorial : < a href ="{{ page.home }} "> {{ page.tutorial }}</ a >
22
+ {% endif %}
23
+ </ section >
18
24
19
- <!-- twitter -->
20
- < p class ="page-link ">
21
- < a href ="http://twitter.com/pixelnest "> follow us on twitter</ a >
22
- </ p >
25
+ <!-- twitter -->
26
+ < section class ="page-link ">
27
+ < a href ="http://twitter.com/pixelnest "> follow us on twitter</ a >
28
+ </ section >
29
+ </ nav >
23
30
</ header >
24
31
25
32
< div class ="page-content ">
26
33
27
34
<!-- post layout -->
28
35
< article class ="entry ">
29
36
< h2 class ="entry__title ">
30
- < a href ="{{ page.url }} " title ="{{ page.title }} "> {{ page.title }}</ a >
37
+ < a href ="{{ page.url | remove: 'index.html' }} " title ="{{ page.title }} "> {{ page.title }}</ a >
31
38
</ h2 >
32
39
33
40
< aside class ="entry__metadata ">
@@ -46,6 +53,26 @@ <h2 class="entry__title">
46
53
</ article >
47
54
<!-- end post layout -->
48
55
56
+ <!-- start pagination -->
57
+ < div class ="pager ">
58
+ < section class ="pager__older ">
59
+ {% if page.previous %}
60
+ < a href ="{{ page.previous }} " title ="Previous chapter "> ← Previous</ a >
61
+ {% endif %}
62
+ </ section >
63
+
64
+ < section class ="pager__ref ">
65
+ < a href ="{{ page.url | remove: 'index.html' }} " title ="Summary "> Summary</ a >
66
+ </ section >
67
+
68
+ < section class ="pager__newer ">
69
+ {% if page.next %}
70
+ < a href ="{{ page.next }} " title ="Next chapter "> Next →</ a >
71
+ {% endif %}
72
+ </ section >
73
+ </ div >
74
+ <!-- end pagination -->
75
+
49
76
</ div >
50
77
51
78
<!-- reduced footer -->
Original file line number Diff line number Diff line change 108
108
display : inline ;
109
109
}
110
110
111
- .pager__archives {
111
+ .pager__ref {
112
112
display : inline ;
113
113
margin : 0 100px ;
114
114
}
Original file line number Diff line number Diff line change 4
4
5
5
.pager {
6
6
position : relative ;
7
- bottom : -140px ;
8
7
display : table ;
9
8
margin : 0 auto ;
10
9
padding-top : 20px ;
11
10
width : 100% ;
12
11
border-top : 1px solid #eee ;
13
12
14
13
color : #bbb ;
14
+
15
+ & .bottom {
16
+ bottom : -140px ;
17
+ }
15
18
}
16
19
17
20
.pager a {
18
21
@extend %link ;
19
22
}
20
23
21
- .pager__archives ,
24
+ .pager__ref ,
22
25
.pager__newer ,
23
26
.pager__older {
24
27
display : table-cell ;
25
28
}
26
29
27
- .pager__archives {
30
+ .pager__ref {
28
31
width : 36% ;
29
32
text-align : center ;
30
33
}
Original file line number Diff line number Diff line change 6
6
7
7
// Small header
8
8
.page-header {
9
- // Padding
10
- $distance : 10px ;
11
-
12
- position : relative ;
13
-
14
9
margin-bottom : 60px ;
15
- padding : $distance ;
10
+ padding : 12 px 10 px ;
16
11
background-color : rgba (240 , 240 , 240 , 0.8 );
17
12
18
13
font-size : 0.8em ;
19
14
20
- p {
21
- display : inline ;
15
+ nav {
16
+ display : table ;
17
+ width : 100% ;
22
18
}
23
19
24
- // Put at the right end of the header
20
+ .page-back ,
21
+ .page-ref ,
25
22
.page-link {
26
- display : inline-block ;
27
- position : absolute ;
28
- top : $distance ;
29
- right : $distance ;
30
- margin : 0 ;
23
+ display : table-cell ;
24
+ width : 25% ;
25
+ }
26
+
27
+ .page-back {
28
+ text-align : left ;
29
+ }
31
30
31
+ .page-ref {
32
+ text-align : center ;
33
+ padding : 0 10px ;
34
+ width : 50% ;
35
+ }
36
+
37
+ .page-link {
32
38
text-align : right ;
33
39
}
34
40
37
43
}
38
44
}
39
45
46
+ .entry {
47
+ margin-bottom : 40px ;
48
+ }
40
49
41
50
// Light footer
42
51
.page-footer {
Original file line number Diff line number Diff line change @@ -487,20 +487,21 @@ li {
487
487
margin-top : 20px ; } }
488
488
.pager {
489
489
position : relative;
490
- bottom : -140px ;
491
490
display : table;
492
491
margin : 0 auto;
493
492
padding-top : 20px ;
494
493
width : 100% ;
495
494
border-top : 1px solid # eee ;
496
495
color : # bbb ; }
496
+ .pager .bottom {
497
+ bottom : -140px ; }
497
498
498
- .pager__archives ,
499
+ .pager__ref ,
499
500
.pager__newer ,
500
501
.pager__older {
501
502
display : table-cell; }
502
503
503
- .pager__archives {
504
+ .pager__ref {
504
505
width : 36% ;
505
506
text-align : center; }
506
507
@@ -529,20 +530,28 @@ li {
529
530
font-style : italic; }
530
531
531
532
.tutorial .page-header {
532
- position : relative;
533
533
margin-bottom : 60px ;
534
- padding : 10px ;
534
+ padding : 12 px 10px ;
535
535
background-color : rgba (240 , 240 , 240 , 0.8 );
536
536
font-size : 0.8em ; }
537
- .tutorial .page-header p {
538
- display : inline; }
537
+ .tutorial .page-header nav {
538
+ display : table;
539
+ width : 100% ; }
540
+ .tutorial .page-header .page-back ,
541
+ .tutorial .page-header .page-ref ,
542
+ .tutorial .page-header .page-link {
543
+ display : table-cell;
544
+ width : 25% ; }
545
+ .tutorial .page-header .page-back {
546
+ text-align : left; }
547
+ .tutorial .page-header .page-ref {
548
+ text-align : center;
549
+ padding : 0 10px ;
550
+ width : 50% ; }
539
551
.tutorial .page-header .page-link {
540
- display : inline-block;
541
- position : absolute;
542
- top : 10px ;
543
- right : 10px ;
544
- margin : 0 ;
545
552
text-align : right; }
553
+ .tutorial .entry {
554
+ margin-bottom : 40px ; }
546
555
.tutorial .page-footer {
547
556
background-color : transparent;
548
557
color : # 888888 ; }
606
615
text-align : center; }
607
616
.ie .pager .pager__older {
608
617
display : inline; }
609
- .ie .pager .pager__archives {
618
+ .ie .pager .pager__ref {
610
619
display : inline;
611
620
margin : 0 100px ; }
612
621
.ie .pager .pager__newer {
You can’t perform that action at this time.
0 commit comments