Skip to content

Commit 7a4b125

Browse files
authored
fix: styles (#1125)
* refactor: overview * fix: i18n * fix: styles * fix: css * fix: scss * chore: remove some styles * fix: styles
1 parent d777d98 commit 7a4b125

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

src/components/DocsOverview/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ import Link from "@docusaurus/Link";
4747
import clsx from "clsx";
4848
const colLayout = { xl: 8, xxl: 8, lg: 8, md: 8, sm: 12, xs: 12 };
4949
const colLayout2 = { xl: 12, xxl: 12, lg: 24, md: 24, sm: 24, xs: 24 };
50+
const colLayout3 = { xl: 8, xxl: 8, lg: 8, md: 8, sm: 12, xs: 24 };
51+
5052
const DocsOverview: FC = (): ReactElement => {
5153
const {
5254
siteConfig: {
@@ -62,15 +64,15 @@ const DocsOverview: FC = (): ReactElement => {
6264
>
6365
<div style={{ height: "100%", width: "100%" }}>
6466
<Row gutter={[12, 12]} className={styles.topCard}>
65-
<Col {...colLayout}>
67+
<Col {...colLayout3}>
6668
<Card href="/guides/overview/editions/dc/" padding={[16, 16]}>
6769
<h3>
6870
<span>{$t("Databend Cloud")}</span>
6971
</h3>
7072
<div>{$t("Fully-Managed on Cloud")}</div>
7173
</Card>
7274
</Col>
73-
<Col {...colLayout}>
75+
<Col {...colLayout3}>
7476
<Card href="/guides/overview/editions/dee/" padding={[16, 16]}>
7577
<h3>
7678
<span> {$t("Databend Enterprise")}</span>
@@ -80,7 +82,7 @@ const DocsOverview: FC = (): ReactElement => {
8082
</div>
8183
</Card>
8284
</Col>
83-
<Col {...colLayout}>
85+
<Col {...colLayout3}>
8486
<Card href="/guides/overview/editions/dce/" padding={[16, 16]}>
8587
<h3>
8688
<span>{$t("Databend Cummunity")}</span>

src/css/custom.scss

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -296,21 +296,6 @@ div[class*="searchQueryColumn"] {
296296
display: flex;
297297
flex-flow: row wrap;
298298
}
299-
.ant-row::before,
300-
.ant-row::after {
301-
display: flex;
302-
}
303-
.ant-col-md-8 {
304-
display: block;
305-
flex: 0 0 33.33333333%;
306-
max-width: 33.33333333%;
307-
}
308-
.ant-col-xl-12 {
309-
display: block;
310-
flex: 0 0 50%;
311-
max-width: 50%;
312-
}
313-
314299
// antd start
315300
.ant-input:focus {
316301
box-shadow: 0px 0px 0px 4px rgba(1, 117, 246, 0.25),
@@ -319,3 +304,15 @@ div[class*="searchQueryColumn"] {
319304
.ant-modal-root .ant-modal-mask {
320305
background-color: var(--docsearch-container-background) !important;
321306
}
307+
@media (min-width: 1200px) {
308+
.ant-col-md-8 {
309+
display: block;
310+
flex: 0 0 33.33333333%;
311+
max-width: 33.33333333%;
312+
}
313+
.ant-col-xl-12 {
314+
display: block;
315+
flex: 0 0 50%;
316+
max-width: 50%;
317+
}
318+
}

0 commit comments

Comments
 (0)