From 483f79f1066b491b4a62eeb92772897f26bf74e4 Mon Sep 17 00:00:00 2001 From: Dark Date: Mon, 6 Dec 2021 16:12:41 +0800 Subject: [PATCH] docs: improve site show brandName (#2574) * docs: site show brandName * docs: update site styles --- packages/antd/.umirc.js | 13 ++++++++----- packages/core/.umirc.js | 13 ++++++++----- packages/next/.umirc.js | 13 ++++++++----- packages/react/.umirc.js | 13 ++++++++----- packages/reactive/.umirc.js | 13 ++++++++----- 5 files changed, 40 insertions(+), 25 deletions(-) diff --git a/packages/antd/.umirc.js b/packages/antd/.umirc.js index e379ca1bf84..29241dd88d7 100644 --- a/packages/antd/.umirc.js +++ b/packages/antd/.umirc.js @@ -2,7 +2,7 @@ import { resolve } from 'path' export default { mode: 'site', logo: '//img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg', - title: 'Formily', + title: 'Ant Design', hash: true, favicon: '//img.alicdn.com/imgextra/i3/O1CN01XtT3Tv1Wd1b5hNVKy_!!6000000002810-55-tps-360-360.svg', @@ -49,10 +49,13 @@ export default { ], styles: [ `.__dumi-default-navbar-logo{ - height: 60px !important; - width: 150px !important; - padding-left:0 !important; - color: transparent !important; + background-size: 140px!important; + background-position: center left!important; + background-repeat: no-repeat!important; + padding-left: 150px!important;/*可根据title的宽度调整*/ + font-size: 22px!important; + color: #000!important; + font-weight: lighter!important; } .__dumi-default-navbar{ padding: 0 28px !important; diff --git a/packages/core/.umirc.js b/packages/core/.umirc.js index 0c09921f050..9ea4f964312 100644 --- a/packages/core/.umirc.js +++ b/packages/core/.umirc.js @@ -2,7 +2,7 @@ import { resolve } from 'path' export default { mode: 'site', logo: 'https://img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg', - title: 'Formily', + title: 'Core', hash: true, favicon: 'https://img.alicdn.com/imgextra/i3/O1CN01XtT3Tv1Wd1b5hNVKy_!!6000000002810-55-tps-360-360.svg', @@ -47,10 +47,13 @@ export default { }, styles: [ `.__dumi-default-navbar-logo{ - height: 60px !important; - width: 150px !important; - padding-left:0 !important; - color: transparent !important; + background-size: 140px!important; + background-position: center left!important; + background-repeat: no-repeat!important; + padding-left: 150px!important;/*可根据title的宽度调整*/ + font-size: 22px!important; + color: #000!important; + font-weight: lighter!important; } .__dumi-default-navbar{ padding: 0 28px !important; diff --git a/packages/next/.umirc.js b/packages/next/.umirc.js index 4d8da4f3d70..b553b43d51c 100644 --- a/packages/next/.umirc.js +++ b/packages/next/.umirc.js @@ -2,7 +2,7 @@ import { resolve } from 'path' export default { mode: 'site', logo: '//img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg', - title: 'Formily', + title: 'Fusion', favicon: '//img.alicdn.com/imgextra/i3/O1CN01XtT3Tv1Wd1b5hNVKy_!!6000000002810-55-tps-360-360.svg', hash: true, @@ -45,10 +45,13 @@ export default { ], styles: [ `.__dumi-default-navbar-logo{ - height: 60px !important; - width: 150px !important; - padding-left:0 !important; - color: transparent !important; + background-size: 140px!important; + background-position: center left!important; + background-repeat: no-repeat!important; + padding-left: 150px!important;/*可根据title的宽度调整*/ + font-size: 22px!important; + color: #000!important; + font-weight: lighter!important; } .__dumi-default-navbar{ padding: 0 28px !important; diff --git a/packages/react/.umirc.js b/packages/react/.umirc.js index 5eecf5f32d7..c6066426085 100644 --- a/packages/react/.umirc.js +++ b/packages/react/.umirc.js @@ -2,7 +2,7 @@ import { resolve } from 'path' export default { mode: 'site', logo: '//img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg', - title: 'Formily', + title: 'React', hash: true, favicon: '//img.alicdn.com/imgextra/i3/O1CN01XtT3Tv1Wd1b5hNVKy_!!6000000002810-55-tps-360-360.svg', @@ -53,10 +53,13 @@ export default { ], styles: [ `.__dumi-default-navbar-logo{ - height: 60px !important; - width: 150px !important; - padding-left:0 !important; - color: transparent !important; + background-size: 140px!important; + background-position: center left!important; + background-repeat: no-repeat!important; + padding-left: 150px!important;/*可根据title的宽度调整*/ + font-size: 22px!important; + color: #000!important; + font-weight: lighter!important; } .__dumi-default-navbar{ padding: 0 28px !important; diff --git a/packages/reactive/.umirc.js b/packages/reactive/.umirc.js index f58c41ead3f..817b9b1b026 100644 --- a/packages/reactive/.umirc.js +++ b/packages/reactive/.umirc.js @@ -2,7 +2,7 @@ import { resolve } from 'path' export default { mode: 'site', logo: '//img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg', - title: 'Formily', + title: 'Reactive', hash: true, favicon: '//img.alicdn.com/imgextra/i3/O1CN01XtT3Tv1Wd1b5hNVKy_!!6000000002810-55-tps-360-360.svg', @@ -47,10 +47,13 @@ export default { }, styles: [ `.__dumi-default-navbar-logo{ - height: 60px !important; - width: 150px !important; - padding-left:0 !important; - color: transparent !important; + background-size: 140px!important; + background-position: center left!important; + background-repeat: no-repeat!important; + padding-left: 150px!important;/*可根据title的宽度调整*/ + font-size: 22px!important; + color: #000!important; + font-weight: lighter!important; } .__dumi-default-navbar{ padding: 0 28px !important;