@@ -15,33 +15,30 @@ const nbSocialIcons = computed(() => (socialIcons.value ? socialIconsCount.value
1515 <p >{{ docus.footer.credits.text }}</p >
1616 </a >
1717
18- <!-- Right -->
19- <div class =" right" >
20- <a
21- v-for =" icon in icons.slice(0, 6 - nbSocialIcons)"
22- :key =" icon.label"
23- rel =" noopener"
24- :aria-label =" icon.label"
25- :href =" icon.href"
26- target =" _blank"
27- >
18+ <!-- Center -->
19+ <div class =" center" >
20+ <a v-for =" icon in icons.slice(0, 6 - nbSocialIcons)" :key =" icon.label" rel =" noopener" :aria-label =" icon.label"
21+ :href =" icon.href" target =" _blank" >
2822 <Icon :name =" icon.icon || icon.component" />
2923 </a >
3024 <AppSocialIcons ref =" socialIcons" />
3125 </div >
26+
3227 </Container >
3328 </footer >
3429</template >
3530
3631<style lang="ts" scoped>
3732css ({
3833 footer: {
39- height: ' {docus.footer.height}' ,
40- display: ' flex' ,
41- alignItems: ' center' ,
4234 borderTopWidth: ' 1px' ,
4335 borderTopStyle: ' solid' ,
4436 borderTopColor: ' {color.gray.100}' ,
37+ padding: ' {docus.footer.padding}' ,
38+
39+ ' @dark' : {
40+ borderTopColor: ' {color.gray.900}'
41+ },
4542
4643 ' :deep(.icon)' : {
4744 width: ' {space.4}' ,
@@ -61,40 +58,52 @@ css({
6158 },
6259 },
6360
64- ' @dark' : {
65- borderTopColor: ' {color.gray.900}'
66- },
67-
6861 ' .left' : {
6962 display: ' flex' ,
7063 alignItems: ' center' ,
71-
7264 p: {
7365 fontSize: ' {fontSize.xs}' ,
7466 fontWeight: ' {fontWeight.bold}'
7567 },
76-
7768 ' &-icon' : {
7869 width: ' {space.4}' ,
7970 fill: ' currentcolor' ,
8071 marginRight: ' {space.2}' ,
8172 }
8273 },
8374
84- ' .right ' : {
75+ ' .center ' : {
8576 display: ' flex' ,
8677 alignItems: ' center' ,
8778 gap: ' {space.4}'
8879 },
8980
9081 ' .footer-container' : {
91- display: ' flex' ,
92- flexDirection: ' col' ,
93- alignItems: ' center' ,
94- height: ' 100%' ,
95- gap: ' {space.4}' ,
96- flexDirection: ' row' ,
97- justifyContent: ' space-between' ,
82+ display: ' grid' ,
83+ gridTemplateColumns: ' repeat(12, minmax(0, 1fr))' ,
84+ justifyItems: ' center' ,
85+ gap: ' {space.2}' ,
86+ ' @sm' : {
87+ justifyItems: ' legacy' ,
88+
89+ },
90+ ' .left' : {
91+ gridColumn: ' span 12 / span 12' ,
92+ ' @sm' : {
93+ gridColumn: ' span 4 / span 4'
94+ }
95+ },
96+ ' .center' : {
97+ display: ' flex' ,
98+ justifyContent: ' center' ,
99+ gridColumn: ' span 12 / span 12' ,
100+ ' @sm' : {
101+ gridColumn: ' span 4 / span 4'
102+ },
103+ a: {
104+ display: ' flex'
105+ }
106+ },
98107 }
99108 }
100109})
0 commit comments