-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcustom.css
More file actions
107 lines (95 loc) · 2.65 KB
/
custom.css
File metadata and controls
107 lines (95 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/**
* 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);
}
/* Custom styling for LLM Cheatsheet navbar icon */
.navbar-llm-cheatsheet-icon {
position: relative;
font-size: 1.1em;
transition: opacity 0.2s ease;
}
.navbar-llm-cheatsheet-icon:hover {
opacity: 0.7;
}
/* Tooltip */
.navbar-llm-cheatsheet-icon:hover::after {
content: "LLM Cheatsheet";
position: absolute;
bottom: -35px;
left: 50%;
transform: translateX(-50%);
background: var(--ifm-color-gray-900);
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.8em;
white-space: nowrap;
opacity: 1;
z-index: 1000;
pointer-events: none;
}
.navbar-llm-cheatsheet-icon:hover::before {
content: "";
position: absolute;
bottom: -7px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid var(--ifm-color-gray-900);
z-index: 1000;
pointer-events: none;
}
[data-theme='dark'] .navbar-llm-cheatsheet-icon:hover::after {
background: var(--ifm-color-gray-100);
color: var(--ifm-color-gray-900);
}
[data-theme='dark'] .navbar-llm-cheatsheet-icon:hover::before {
border-bottom-color: var(--ifm-color-gray-100);
}
/* Breadcrumb Markdown buttons */
.breadcrumb-markdown-button {
background: none;
border: none;
font-size: 1.1em;
padding: 4px 6px;
margin: 0;
border-radius: 4px;
cursor: pointer;
transition: opacity 0.2s ease, background-color 0.2s ease;
color: var(--ifm-color-content-secondary);
}
.breadcrumb-markdown-button:hover {
opacity: 0.7;
background-color: var(--ifm-color-emphasis-200);
}
.breadcrumb-markdown-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}