Skip to content

Commit

Permalink
优化样式
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglz1991 committed Feb 6, 2024
1 parent 04631de commit c75c0e1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
7 changes: 5 additions & 2 deletions src/components/HomepageCharacteristic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,16 @@ const FeatureList = [

function Feature({Svg, title, description}) {
return (
<div className={clsx('card col col--4')}>
<div
className={clsx("card col tweetsSection_Fqsy margin--sm")}
style={{ minWidth: "30%" }}
>
<div className="{styles.text--center} padding-horiz--md">
<Heading as="h4">{title}</Heading>
<p className={styles.details}>{description}</p>
</div>
</div>
);
)
}

export default function HomepageFeatures() {
Expand Down
30 changes: 16 additions & 14 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

--ifm-card-background-color: #fff;
--ifm-card-border-radius: 10px;
--ifm-global-shadow-lw: 0 1px 2px 0 rgba(0,0,0,.1);
--ifm-global-shadow-lw: 0 1px 2px 0 rgba(0, 0, 0, .1);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
Expand All @@ -37,16 +37,14 @@
--ifm-color-primary-lightest: #4fddbf;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
--home-color-characteristic-background-color: #1c1e21;

--ifm-card-background-color: #1c1e21;

--ifm-card-background-color: #242526;
}


.card{
/*background-color: var(--ifm-card-background-color);*/
/*border-radius: var(--ifm-card-border-radius);*/
/*box-shadow: var(--ifm-global-shadow-lw);*/
.card {
background-color: var(--ifm-card-background-color);
border-radius: var(--ifm-card-border-radius);
box-shadow: var(--ifm-global-shadow-lw);
display: flex;
flex-direction: column;
overflow: hidden;
Expand All @@ -56,20 +54,24 @@
}

/* 头部导航LOGO标识 */
.navbar__title{
.navbar__title {
font-size: 20px;
}
.hero__title{

.hero__title {
font-size: 2rem;
}
.hero__subtitle{

.hero__subtitle {
font-size: 1.2rem;
}

/* 首页中间导航按钮 */
.buttons_src-pages-index-module{
.buttons_src-pages-index-module {
display: flex;
flex-wrap: wrap;
}

.button.button--secondary {
margin-right: 5px;
border-radius: 20px;
Expand All @@ -83,11 +85,11 @@
margin: 0;
font-size: 1.5rem;
width: 500px;
height: 260px;
height: 260px;
text-decoration: none;
}

/* 底部背景颜色设置 */
.footer--dark {
--ifm-footer-background-color: #2b3137;
}
}

0 comments on commit c75c0e1

Please sign in to comment.