-
@@ -29,45 +28,49 @@ css({
}
},
button: {
- borderRadius: '{radii.md}',
- display: 'flex',
- alignItems: 'center',
- color: '{color.gray.500}',
- borderStyle: 'solid',
- borderWidth: '1px',
- borderColor: '{color.gray.100}',
- fontSize: '{fontSize.xs}',
- gap: '{space.2}',
- padding: '{space.rem.375}',
- '@dark': {
- color: '{color.gray.400}',
- borderColor: '{color.gray.900}',
- },
- '&:hover': {
- color: '{color.gray.700}',
- borderColor: '{color.gray.400}',
+ padding: '{space.2} {space.4}',
+ '.content': {
+ borderRadius: '{radii.md}',
+ display: 'flex',
+ alignItems: 'center',
+ color: '{color.gray.500}',
+ borderStyle: 'solid',
+ borderWidth: '1px',
+ borderColor: '{color.gray.100}',
+ fontSize: '{fontSize.xs}',
+ gap: '{space.2}',
+ padding: '{space.rem.375}',
'@dark': {
- color: '{color.gray.200}',
- borderColor: '{color.gray.700}',
+ color: '{color.gray.400}',
+ borderColor: '{color.gray.900}',
+ },
+ '&:hover': {
+ color: '{color.gray.700}',
+ borderColor: '{color.gray.400}',
+ '@dark': {
+ color: '{color.gray.200}',
+ borderColor: '{color.gray.700}',
+ }
+ },
+ span: {
+ '&:first-child': {
+ display: 'block',
+ fontSize: '{fontSize.xs}',
+ fontWeight: '{fontWeight.medium}',
+ },
+ '&:nth-child(2)': {
+ flex: 'none',
+ display: 'none',
+ fontSize: '{fontSize.xs}',
+ fontWeight: '{fontWeight.semibold}',
+ '@sm': {
+ display: 'block'
+ }
+ }
}
}
},
- span: {
- '&:first-child': {
- display: 'block',
- fontSize: '{fontSize.xs}',
- fontWeight: '{fontWeight.medium}',
- },
- '&:nth-child(2)': {
- flex: 'none',
- display: 'none',
- fontSize: '{fontSize.xs}',
- fontWeight: '{fontWeight.semibold}',
- '@sm': {
- display: 'block'
- }
- }
- }
+
}
})
diff --git a/components/app/AppSocialIcons.vue b/components/app/AppSocialIcons.vue
index 62b116de8..9e817245e 100644
--- a/components/app/AppSocialIcons.vue
+++ b/components/app/AppSocialIcons.vue
@@ -41,6 +41,7 @@ css({
a: {
display: 'flex',
color: '{color.gray.500}',
+ padding: '{space.4}',
'@dark': {
color: '{color.gray.400}'
diff --git a/components/app/ThemeSelect.vue b/components/app/ThemeSelect.vue
index 829f56160..158b96578 100644
--- a/components/app/ThemeSelect.vue
+++ b/components/app/ThemeSelect.vue
@@ -23,6 +23,7 @@ const onClick = () => {
css({
button: {
display: 'flex',
+ padding: '{space.4}',
color: '{color.gray.500}',
'@dark': {
diff --git a/nuxt.schema.ts b/nuxt.schema.ts
index c6e81f84e..b344ba960 100644
--- a/nuxt.schema.ts
+++ b/nuxt.schema.ts
@@ -156,6 +156,28 @@ export default defineNuxtConfigSchema({
text: 'Powered by Docus',
href: 'https://docus.dev'
},
+ /**
+ * Text links to be added into center section of the footer.
+ *
+ * @studio-icon material-symbols:add-link
+ */
+ textLinks: {
+ $schema: {
+ type: 'array',
+ items: {
+ type: 'object',
+ required: ['text', 'href'],
+ properties: {
+ href: {
+ type: 'string',
+ description: 'URL when clicking the link'
+ },
+ text: { type: 'string', description: 'Text of the link' },
+ target: { type: 'string', description: 'Target attribute of the link' }
+ }
+ }
+ }
+ },
/**
* Icons to be added to Social Icons in footer.
*
diff --git a/tokens.config.ts b/tokens.config.ts
index 8493aad8a..631e653de 100644
--- a/tokens.config.ts
+++ b/tokens.config.ts
@@ -7,7 +7,7 @@ export default defineTheme({
},
docus: {
header: { height: '64px' },
- footer: { padding: '{space.6} 0' }
+ footer: { padding: '{space.4} 0' }
},
typography: {
color: {