File tree 1 file changed +7
-22
lines changed
src/client/theme-default/components
1 file changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,20 @@ const showFooter = computed(() => {
41
41
</div >
42
42
</div >
43
43
44
- <div v-if =" control.prev?.link || control.next?.link" class =" prev-next" >
44
+ <nav v-if =" control.prev?.link || control.next?.link" class =" prev-next" >
45
45
<div class =" pager" >
46
46
<a v-if =" control.prev?.link" class =" pager-link prev" :href =" normalizeLink(control.prev.link)" >
47
47
<span class =" desc" v-html =" theme.docFooter?.prev || 'Previous page'" ></span >
48
48
<span class =" title" v-html =" control.prev.text" ></span >
49
49
</a >
50
50
</div >
51
- <div class =" pager" :class = " { 'has-prev': control.prev?.link } " >
51
+ <div class =" pager" >
52
52
<a v-if =" control.next?.link" class =" pager-link next" :href =" normalizeLink(control.next.link)" >
53
53
<span class =" desc" v-html =" theme.docFooter?.next || 'Next page'" ></span >
54
54
<span class =" title" v-html =" control.next.text" ></span >
55
55
</a >
56
56
</div >
57
- </div >
57
+ </nav >
58
58
</footer >
59
59
</template >
60
60
@@ -101,29 +101,14 @@ const showFooter = computed(() => {
101
101
.prev-next {
102
102
border-top : 1px solid var (--vp-c-divider );
103
103
padding-top : 24px ;
104
+ display : grid ;
105
+ grid-row-gap : 8px ;
104
106
}
105
107
106
108
@media (min-width : 640px ) {
107
109
.prev-next {
108
- display : flex ;
109
- }
110
- }
111
-
112
- .pager.has-prev {
113
- padding-top : 8px ;
114
- }
115
-
116
- @media (min-width : 640px ) {
117
- .pager {
118
- display : flex ;
119
- flex-direction : column ;
120
- flex-shrink : 0 ;
121
- width : 50% ;
122
- }
123
-
124
- .pager.has-prev {
125
- padding-top : 0 ;
126
- padding-left : 16px ;
110
+ grid-template-columns : repeat (2 , 1fr );
111
+ grid-column-gap : 16px ;
127
112
}
128
113
}
129
114
You can’t perform that action at this time.
0 commit comments