File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242{% if score_list.size > 0 %}
4343 {% assign score_list = score_list | sort | reverse %}
4444 {% assign count = 0 %}
45- < div id ="related-posts " class ="mt-4 mb-4 pb-3 ">
45+ < div id ="related-posts " class ="mt-4 mb-2 mb-sm- 4 pb-2 ">
4646 < h3 class ="pt-2 mt-1 mb-4 " data-toc-skip > Related Posts</ h3 >
4747 < div class ="card-deck mb-4 ">
4848 {% for score_item in score_list %}
Original file line number Diff line number Diff line change @@ -88,21 +88,21 @@ <h1 data-toc-skip>{{ page.title }}</h1>
8888
8989 < div class ="post-pager d-flex justify-content-between ">
9090 {% if page.previous.url %}
91- < a href ="{{ site.baseurl }}{{page.previous.url}} " class ="btn btn-outline-primary ">
91+ < a href ="{{ site.baseurl }}{{ page.previous.url }} " class ="btn btn-outline-primary ">
92+ < p > {{ page.previous.title }}</ p >
9293 {% else %}
9394 < a href ="javascript:; " class ="btn btn-outline-primary disabled ">
95+ < p > -</ p >
9496 {% endif %}
95- < i class ="fas fa-angle-left mr-1 "> </ i >
96- OLDER POST
9797 </ a >
9898
9999 {% if page.next.url %}
100100 < a href ="{{ site.baseurl }}{{page.next.url}} " class ="btn btn-outline-primary ">
101+ < p > {{ page.next.title }}</ p >
101102 {% else %}
102103 < a href ="javascript:; " class ="btn btn-outline-primary disabled ">
104+ < p > -</ p >
103105 {% endif %}
104- NEWER POST
105- < i class ="fas fa-angle-right ml-1 "> </ i >
106106 </ a >
107107 </ div > <!-- div.post-pager -->
108108
Original file line number Diff line number Diff line change 2323}
2424
2525.post-pager {
26- margin : 1rem 0 2rem ;
26+ border-top : 1px double #e9ecef ;
27+ border-bottom : 1px double #e9ecef ;
28+ padding : 1rem .2rem ;
29+ margin-bottom : 2rem ;
2730}
2831
2932.post-pager .btn ,
3033.post-pager .btn.disabled {
34+ width : calc (50% - .5rem );
3135 color : #2a408e ;
3236 border-color : #2a408e ;
3337}
4549 border-color : gray ;
4650}
4751
52+ .post-pager a > p {
53+ font-weight : 600 ;
54+ line-height : 1.2rem ;
55+ margin-top : .3rem ;
56+ white-space : normal ;
57+ }
58+
59+ .post-pager a ::before {
60+ color : gray ;
61+ font-size : .85rem ;
62+ text-transform : uppercase ;
63+ }
64+
65+ .post-pager a :first-child ::before {
66+ content : " previous" ;
67+ }
68+
69+ .post-pager a :last-child ::before {
70+ content : " next" ;
71+ }
72+
4873@keyframes fade-up {
4974 from {
5075 opacity : 0 ;
84109
85110/* --- Related Posts ---*/
86111
87- #related-posts {
88- border-bottom : 1px double #e9ecef ;
89- }
90-
91- #related-posts >h3 {
112+ #related-posts > h3 {
92113 color : gray ;
93114 font-size : 1.1rem ;
94115 font-family : ' Oswald' , sans-serif ;
135156 padding-inline-start : 1.5rem ;
136157}
137158
138- #related-posts ul > li ::before {
159+ #related-posts ul > li ::before {
139160 background : #c2c9d4 ;
140161 width : 5px ;
141162 height : 5px ;
159180}
160181
161182@media all and (min-width : 768px ) {
162- .post .post-meta > div :not (:first-child )::before {
183+ .post .post-meta > div :not (:first-child )::before {
163184 content : " \2022 " ;
164185 color : rgba (158 , 158 , 158 , 0.8 );
165186 font-weight : bold ;
190211 -ms-transform : translateX (-50% );
191212 transform : translateX (-50% );
192213 }
214+
215+ .post-pager {
216+ padding-left : 0 ;
217+ padding-right : 0 ;
218+ }
193219}
194220
195221/*
You can’t perform that action at this time.
0 commit comments