Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
m1k1o
GitHub Repository: m1k1o/neko
Path: blob/master/webpage/src/css/custom.css
1007 views
1
/**
2
* Any CSS included here will be global. The classic template
3
* bundles Infima by default. Infima is a CSS framework designed to
4
* work well for content-centric websites.
5
*/
6
7
/* You can override the default Infima variables here. */
8
:root {
9
--ifm-color-primary: #2e8555;
10
--ifm-color-primary-dark: #29784c;
11
--ifm-color-primary-darker: #277148;
12
--ifm-color-primary-darkest: #205d3b;
13
--ifm-color-primary-light: #33925d;
14
--ifm-color-primary-lighter: #359962;
15
--ifm-color-primary-lightest: #3cad6e;
16
--ifm-code-font-size: 95%;
17
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
18
}
19
20
/* For readability concerns, you should choose a lighter palette in dark mode. */
21
[data-theme='dark'] {
22
--ifm-color-primary: #25c2a0;
23
--ifm-color-primary-dark: #21af90;
24
--ifm-color-primary-darker: #1fa588;
25
--ifm-color-primary-darkest: #1a8870;
26
--ifm-color-primary-light: #29d5b0;
27
--ifm-color-primary-lighter: #32d8b4;
28
--ifm-color-primary-lightest: #4fddbf;
29
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
30
}
31
32
.anchorOffset {
33
scroll-margin-top: calc(var(--ifm-navbar-height) + 0.5rem)
34
}
35
36
/*
37
* Custom CSS for OpenAPI documentation
38
*/
39
40
.api-method>.menu__link {
41
align-items: center;
42
justify-content: start;
43
}
44
45
.api-method>.menu__link::before {
46
width: 50px;
47
height: 20px;
48
font-size: 12px;
49
line-height: 20px;
50
text-transform: uppercase;
51
font-weight: 600;
52
border-radius: 0.25rem;
53
border: 1px solid;
54
margin-right: var(--ifm-spacing-horizontal);
55
text-align: center;
56
flex-shrink: 0;
57
border-color: transparent;
58
color: white;
59
}
60
61
.get>.menu__link::before {
62
content: "get";
63
background-color: var(--ifm-color-primary);
64
}
65
66
.put>.menu__link::before {
67
content: "put";
68
background-color: var(--openapi-code-blue);
69
}
70
71
.post>.menu__link::before {
72
content: "post";
73
background-color: var(--openapi-code-green);
74
}
75
76
.delete>.menu__link::before {
77
content: "del";
78
background-color: var(--openapi-code-red);
79
}
80
81
.patch>.menu__link::before {
82
content: "patch";
83
background-color: var(--openapi-code-orange);
84
}
85
86
/*
87
* Custom CSS for the sidebar
88
*/
89
90
.menu__list-item-flat > .menu__list-item-collapsible > .menu__link:not([aria-expanded]) {
91
pointer-events: none;
92
user-select: none;
93
text-transform: uppercase;
94
font-size: 0.8em;
95
padding-top: 16px;
96
padding-bottom: 3px;
97
}
98
99
.menu__list-item-flat > .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible .menu__link:not([aria-expanded]) {
100
padding-top: 22px;
101
padding-bottom: 3px;
102
}
103
104
.menu__list-item-flat > .menu__list-item-collapsible:has(> .menu__link:not([aria-expanded])) + .menu__list {
105
padding-left: 0;
106
}
107
108
.menu__list-item-flat > .menu__list-item-collapsible:has(.menu__link:not([aria-expanded])) {
109
pointer-events: none;
110
}
111
112