mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-17 19:55:34 +00:00
- `git log` needs all commit history to compare latest commit of files, so changed `git clone --depth=1` to `git clone`. This will make the step take longer, so might be improved if there is a better way. - `src/theme/MDXContent/index.js` is from [ejecting of the component](https://docusaurus.io/docs/swizzling#ejecting) inside `@docusaurus/theme-classic` plugin, and this one is safe to eject according to docusaurus   - [Outdated component style reference](https://mui.com/material-ui/react-alert/) - Added [`Translate` component](https://docusaurus.io/docs/next/docusaurus-core#translate) to `Outdated` so it can be localized. [reference](https://docusaurus.io/docs/next/i18n/tutorial#translate-your-react-code) - One way to check for the specific outdated documents: search for `lastest commit timestamp` in [prepare nightly docs and prepare 1.19 docs steps](https://gitea.com/gitea/gitea-docusaurus/actions/runs/74) # After The Chinese documents that are outdated (latest commit is ealier than laster commit of English version):    Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/25 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: HesterG <[email protected]> Co-committed-by: HesterG <[email protected]>
61 lines
1.7 KiB
CSS
61 lines
1.7 KiB
CSS
/**
|
|
* Any CSS included here will be global. The classic template
|
|
* bundles Infima by default. Infima is a CSS framework designed to
|
|
* work well for content-centric websites.
|
|
*/
|
|
|
|
/* You can override the default Infima variables here. */
|
|
:root {
|
|
--ifm-color-primary: #2e8555;
|
|
--ifm-color-primary-dark: #29784c;
|
|
--ifm-color-primary-darker: #277148;
|
|
--ifm-color-primary-darkest: #205d3b;
|
|
--ifm-color-primary-light: #33925d;
|
|
--ifm-color-primary-lighter: #359962;
|
|
--ifm-color-primary-lightest: #3cad6e;
|
|
--ifm-code-font-size: 95%;
|
|
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* For readability concerns, you should choose a lighter palette in dark mode. */
|
|
[data-theme='dark'] {
|
|
--ifm-color-primary: #25c2a0;
|
|
--ifm-color-primary-dark: #21af90;
|
|
--ifm-color-primary-darker: #1fa588;
|
|
--ifm-color-primary-darkest: #1a8870;
|
|
--ifm-color-primary-light: #29d5b0;
|
|
--ifm-color-primary-lighter: #32d8b4;
|
|
--ifm-color-primary-lightest: #4fddbf;
|
|
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
[data-theme='dark'] [class*='announcementBar'] {
|
|
color: var(--ifm-font-color-base);
|
|
background-color: var(--ifm-background-color);
|
|
}
|
|
|
|
[data-theme='dark'] .close {
|
|
color: var(--ifm-color-white);
|
|
}
|
|
|
|
.outdated-text {
|
|
margin: 20px 0;
|
|
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
border-radius: 4px;
|
|
box-shadow: none;
|
|
font-family: Roboto, Helvetica, Arial, sans-serif;
|
|
font-weight: 400;
|
|
font-size: 0.875rem;
|
|
line-height: 1.43;
|
|
letter-spacing: 0.01071em;
|
|
background-color: rgb(229, 246, 253);
|
|
display: flex;
|
|
padding: 6px 16px;
|
|
color: rgb(1, 67, 97);
|
|
}
|
|
|
|
[data-theme='dark'] .outdated-text {
|
|
background-color: rgb(7, 19, 24);
|
|
color: rgb(184, 231, 251);
|
|
}
|