mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-22 04:05:57 +00:00
Follows https://gitea.com/gitea/blog/pulls/266, should wait for the PR because it has href points to https://blog.gitea.com PC:  Mobile:  Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/43 Co-authored-by: HesterG <hestergong@gmail.com> Co-committed-by: HesterG <hestergong@gmail.com>
178 lines
5.2 KiB
CSS
178 lines
5.2 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);
|
|
}
|
|
|
|
.redocusaurus .menu-content {
|
|
top: 70px !important;
|
|
height: calc(100vh - 70px) !important;
|
|
}
|
|
|
|
.gt-hidden {
|
|
display: none;
|
|
}
|
|
/* The following css is for toggling API version dropdown/menu,
|
|
TODO: need to find a proper way to customize the classname
|
|
*/
|
|
@supports selector(:has(*)) {
|
|
/* Do not show doc search on api pages */
|
|
body:has(.redocusaurus) [class*='searchBox'] {
|
|
display: none;
|
|
}
|
|
|
|
@media (min-width: 996px) {
|
|
/* hide other dropdowns except for api dropdown on api pages */
|
|
body:has(.redocusaurus) .navbar__item.dropdown:not(:has(.api-dropdown)) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 996px) {
|
|
/* on mobile, dropdown becomes menu list */
|
|
/* Hide collapsible menus except for API menu on API pages */
|
|
body:has(.redocusaurus) .menu__list-item.menu__list-item--collapsed:not(:has(.api-dropdown)) {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
/* selectors like :first-of-type are for browsers those do not support :has */
|
|
@supports not (selector(:has(*))) {
|
|
.plugin-redoc [class*='searchBox'],
|
|
.plugin-pages [class*='searchBox'] {
|
|
display: none;
|
|
}
|
|
|
|
@media (min-width: 996px) {
|
|
.plugin-redoc .navbar__item.dropdown:not(:first-of-type),
|
|
.plugin-pages .navbar__item.dropdown:not(:first-of-type) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 996px) {
|
|
.plugin-redoc .menu__list-item.menu__list-item--collapsed:not(:nth-of-type(3)),
|
|
.plugin-pages .menu__list-item.menu__list-item--collapsed:not(:nth-of-type(3)) {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.internal-href [class*='iconExternalLink'] {
|
|
display: none;
|
|
}
|
|
|
|
.signin-button {
|
|
--bs-btn-padding-x: .75rem;
|
|
--bs-btn-padding-y: .375rem;
|
|
--bs-btn-font-family: ;
|
|
--bs-btn-font-size: 1rem;
|
|
--bs-btn-font-weight: 400;
|
|
--bs-btn-line-height: 1.5;
|
|
--bs-btn-bg: transparent;
|
|
--bs-btn-border-width: 1px;
|
|
--bs-btn-border-radius: .375rem;
|
|
--bs-btn-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(29,45,53,0.075);
|
|
--bs-btn-disabled-opacity: .65;
|
|
--bs-btn-focus-box-shadow: 0 0 0 0 rgba(var(--bs-btn-focus-shadow-rgb), .5);
|
|
--bs-btn-color: #198754;
|
|
--bs-btn-border-color: #198754;
|
|
--bs-btn-hover-color: #fff;
|
|
--bs-btn-hover-bg: #198754;
|
|
--bs-btn-hover-border-color: #198754;
|
|
--bs-btn-focus-shadow-rgb: 25,135,84;
|
|
--bs-btn-active-color: #fff;
|
|
--bs-btn-active-bg: #198754;
|
|
--bs-btn-active-border-color: #198754;
|
|
--bs-btn-active-shadow: inset 0 3px 5px rgba(29,45,53,0.125);
|
|
--bs-btn-disabled-color: #198754;
|
|
--bs-btn-disabled-bg: transparent;
|
|
--bs-gradient: none;
|
|
display: inline-block;
|
|
padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
|
|
font-family: var(--bs-btn-font-family);
|
|
font-size: var(--bs-btn-font-size);
|
|
font-weight: var(--bs-btn-font-weight);
|
|
line-height: var(--bs-btn-line-height);
|
|
color: var(--bs-btn-color);
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
user-select: none;
|
|
border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
|
|
border-radius: var(--bs-btn-border-radius);
|
|
background-color: var(--bs-btn-bg);
|
|
transition: color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out;
|
|
margin-left: var(--ifm-navbar-item-padding-horizontal);
|
|
order: 1;
|
|
}
|
|
|
|
.signin-button:hover {
|
|
color: var(--bs-btn-hover-color);
|
|
background-color: var(--bs-btn-hover-bg);
|
|
border-color: var(--bs-btn-hover-border-color);
|
|
}
|
|
|
|
@media (max-width: 996px) {
|
|
.navbar__item.signin-button {
|
|
display: none;
|
|
}
|
|
}
|