Skip to content

Commit

Permalink
optimize: edit markdown css (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
qq635840580 authored Nov 14, 2023
1 parent 940a793 commit 91ef09c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
}
}

h2 {
line-height: 1.25 !important;
}

.DocSearch-Button {
background: var(--docsearch-searchbox-background) !important;
}
Expand Down
6 changes: 5 additions & 1 deletion src/pages/cloud/top.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ const Top = ({ language }: { language?: string }) => {
return (
<BrowserOnly>
{() => (
<section className="bg-gradient-to-b from-white to-blue-400">
<section
className="bg-gradient-to-b from-white to-blue-400"
style={{ background: "repeating-linear-gradient(to top, #60a5fa, #ffffff)" }}
>
<div className="mb-8">
<p className="pt-16 pb-16 text-center text-5xl text-[#4190FF] font-semibold">{topData.title}</p>
{/* <p className="text-center text-[#353535] font-normal leading-6 mt-14">{topData.desc}</p> */}
Expand Down Expand Up @@ -96,6 +99,7 @@ const Top = ({ language }: { language?: string }) => {
<div
key={i}
className="text-left text-xs border-t border-[#979797] leading-9 text-[#000]"
style={{ borderTop: "1px solid #979797" }}
>
<img
src="img/success.png"
Expand Down
16 changes: 14 additions & 2 deletions src/pages/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
.tw{
@tailwind base;
.tw {
/* @tailwind base; */
@tailwind components;
@tailwind utilities;
@tailwind screens;
}

h1 {
@apply text-5xl;
}

h2 {
@apply text-xl;
}

h3 {
@apply text-lg;
}

0 comments on commit 91ef09c

Please sign in to comment.