mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-18 12:08:51 +00:00
Add subscription and community components (#47)
Close #46 Same as those in [blog](https://gitea.com/gitea/blog/pulls/272), but for docs and api Ejected DocPage (unsafe to eject) and ApiDoc (safe to eject) for layout changes  Screenshots  Co-authored-by: techknowlogick <[email protected]> Co-authored-by: techknowlogick <[email protected]> Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/47 Co-authored-by: HesterG <[email protected]> Co-committed-by: HesterG <[email protected]>
This commit is contained in:
committed by
Lunny Xiao
co-authored by
techknowlogick
techknowlogick
parent
c77d0e0e34
commit
02b0ebc9e1
@@ -0,0 +1,31 @@
|
||||
import React from "react";
|
||||
import style from "./styles.module.css";
|
||||
import clsx from "clsx";
|
||||
|
||||
export const Section = ({
|
||||
fullWidth,
|
||||
children,
|
||||
odd,
|
||||
accent,
|
||||
row,
|
||||
noGap,
|
||||
center,
|
||||
className = "",
|
||||
}) => (
|
||||
<div
|
||||
className={clsx(
|
||||
style.root,
|
||||
{
|
||||
[style.odd]: odd,
|
||||
[style.accent]: accent,
|
||||
[style.row]: row,
|
||||
[style.fullWidth]: fullWidth,
|
||||
[style.noGap]: noGap,
|
||||
[style.center]: center,
|
||||
},
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
@@ -0,0 +1,41 @@
|
||||
.root {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: var(--ifm-container-width);
|
||||
width: 100%;
|
||||
padding: 2rem 1rem;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 900px) {
|
||||
.root {
|
||||
padding: 4.5rem 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.row {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.odd {
|
||||
background-color: var(--theme-section-odd-bg-color);
|
||||
}
|
||||
|
||||
.accent {
|
||||
--ifm-link-hover-color: var(--palette-pink);
|
||||
--ifm-link-color: var(--palette-pink);
|
||||
padding-top: 7rem;
|
||||
padding-bottom: 7.5rem;
|
||||
}
|
||||
|
||||
.fullWidth {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.noGap {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.center {
|
||||
align-items: center;
|
||||
}
|
||||
Reference in New Issue
Block a user