Skip to content

Commit 3b0d95c

Browse files
committed
refactor: update a link default styles
1 parent 0e7761f commit 3b0d95c

File tree

5 files changed

+33
-27
lines changed

5 files changed

+33
-27
lines changed

client/src/components/AboutUs/index.module.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@
1111
background: transparent;
1212
}
1313

14-
1514
.title {
1615
font-size: 16px;
1716
display: inline-block;
1817
padding-bottom: 4px;
1918
font-weight: bold;
2019
color: var(--main-text-color);
2120
}
21+
a {
22+
color: inherit;
23+
&:hover {
24+
color: var(--primary-color);
25+
}
26+
}
2227
}
2328

2429
.icons {
@@ -59,13 +64,12 @@
5964
.copyright {
6065
font-size: 14px;
6166
text-align: left;
62-
display: flex;
63-
align-items: center;
6467
line-height: 24px;
68+
word-break: break-all;
6569
}
6670

6771
.container {
6872
display: flex;
6973
flex-direction: column;
7074
width: 100%;
71-
}
75+
}

client/src/components/AboutUs/index.tsx

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const WeChat = () => {
8787
);
8888
};
8989

90-
export const ContactInfo = ({ }) => {
90+
export const ContactInfo = () => {
9191
return (
9292
<ul className={style.icons}>
9393
<ul>
@@ -112,24 +112,26 @@ export const ContactInfo = ({ }) => {
112112
const AboutUs = ({ setting, className = '', hasBg = false }: IProps) => {
113113
const t = useTranslations();
114114
return (
115-
<Card title={t('aboutUs')} className={style.card}>
116-
<div className={style.wrapper}>
117-
{setting?.systemFooterInfo && (
118-
<div
119-
className={style.copyright}
120-
dangerouslySetInnerHTML={{
121-
__html: setting.systemFooterInfo,
122-
}}
123-
></div>
124-
)}
125-
<footer className={cls(style.footer, className, hasBg && style.hasBg)}>
126-
<div className={style.container}>
127-
<Divider dashed />
128-
<ContactInfo setting={setting} />
115+
<footer>
116+
<Card title={t('aboutUs')} className={style.card}>
117+
<div className={style.wrapper}>
118+
{setting?.systemFooterInfo && (
119+
<div
120+
className={style.copyright}
121+
dangerouslySetInnerHTML={{
122+
__html: setting.systemFooterInfo,
123+
}}
124+
></div>
125+
)}
126+
<div className={cls(style.footer, className, hasBg && style.hasBg)}>
127+
<div className={style.container}>
128+
<Divider dashed />
129+
<ContactInfo />
130+
</div>
129131
</div>
130-
</footer>
131-
</div>
132-
</Card>
132+
</div>
133+
</Card>
134+
</footer>
133135
);
134136
};
135137

client/src/components/Footer/index.module.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ ul.icons {
5757
.copyright {
5858
font-size: 14px;
5959
text-align: left;
60-
display: flex;
61-
align-items: center;
6260
line-height: 24px;
61+
word-break: break-all;
6362
}
6463

6564

client/src/components/SystemNotification/index.module.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
.alert {
2-
margin-top: 16px;
3-
background-color: var(--bg-box);
2+
margin-top: 16px !important;
3+
background-color: var(--bg-box) !important;
44
overflow: hidden;
55
width: 100%;
66
> span {
77
color: var(---brand-danger) !important;
88
}
99
a {
10+
color: inherit;
1011
&:hover {
1112
color: var(--primary-color) !important;
1213
}

client/src/theme/reset.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ a {
4343
text-decoration: none;
4444

4545
&:hover {
46-
color: inherit;
46+
color: var(--primary-color);
4747
}
4848
}
4949

0 commit comments

Comments
 (0)