-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcustom.css
More file actions
119 lines (106 loc) · 4.19 KB
/
custom.css
File metadata and controls
119 lines (106 loc) · 4.19 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
108
109
110
111
112
113
114
115
116
117
118
119
/**
* 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: #e76f00; /* Dark Orange for text and interactive elements */
--ifm-color-primary-dark: #cc6400; /* Darker Shade of Orange for headlines or strong emphasis */
--ifm-color-primary-darker: #b35900; /* Even Darker Orange for very important callouts or warnings */
--ifm-color-primary-darkest: #994c00; /* Brownish Orange for the most critical warnings or strong accents */
--ifm-color-primary-light: #fce4d6; /* Very Pale Orange for background highlights or selected items */
--ifm-color-primary-lighter: #fdfaf5; /* Near White with a hint of orange for background areas */
--ifm-color-primary-lightest: #ffffff; /* Pure White for main content background to ensure maximum readability */
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(231, 111, 0, 0.1); /* Soft Orange for code block highlights */
}
/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #f8a949; /* Soft Orange for buttons and icons */
--ifm-color-primary-dark: #c96f2a; /* Darker Orange for headings and important elements */
--ifm-color-primary-darker: #b26425; /* Even Darker Orange for emphasized text or active states */
--ifm-color-primary-darkest: #a2571e; /* Nearly Brown Orange for critical warnings or strong emphasis */
--ifm-color-primary-light: #4d3c30; /* Dark Brownish Gray for less prominent elements to ensure legibility */
--ifm-color-primary-lighter: #3a2e24; /* Darker Brownish Gray for secondary backgrounds, enhancing contrast */
--ifm-color-primary-lightest: #2c221b; /* Even Darker Brownish Gray for main backgrounds, maximizing contrast */
--docusaurus-highlighted-code-line-bg: rgba(231, 111, 0, 0.2); /* Slightly more visible Orange for code highlights */
}
/* AI Follow-up Suggestion Chips
* Evidence-backed design:
* - Pill shape: industry standard (ChatGPT, Google AI) per NNG research
* - 3-4 max: Hick's Law + Miller's Law reduce cognitive load
* - Outlined, low visual weight: answer content stays dominant
* - DocSearch CSS variables: automatic dark mode support
*/
.askai-suggestions {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 12px 0;
margin-top: 8px;
}
.askai-suggestion-btn {
appearance: none;
background: var(--docsearch-hit-background, #fff);
border: 1px solid var(--docsearch-muted-color, #969faf);
border-radius: 16px;
color: var(--docsearch-text-color, #1c1e21);
cursor: pointer;
font-family: inherit;
font-size: 13px;
line-height: 1.4;
min-height: 36px;
padding: 6px 14px;
transition: background 150ms ease, border-color 150ms ease;
}
.askai-suggestion-btn:hover {
background: var(--docsearch-hit-highlight-color, rgba(0, 61, 255, 0.1));
border-color: var(--docsearch-primary-color, #003dff);
}
.askai-suggestion-btn:focus-visible {
outline: 2px solid var(--docsearch-primary-color, #003dff);
outline-offset: 2px;
}
.askai-suggestion-btn:active {
background: var(--docsearch-hit-highlight-color, rgba(0, 61, 255, 0.15));
}
/* Staggered entrance animation (NNG: appear after response completes) */
@media (prefers-reduced-motion: no-preference) {
.askai-suggestion-btn {
animation: askai-chip-enter 300ms ease forwards;
opacity: 0;
transform: translateY(8px);
}
.askai-suggestion-btn:nth-child(2) { animation-delay: 75ms; }
.askai-suggestion-btn:nth-child(3) { animation-delay: 150ms; }
.askai-suggestion-btn:nth-child(4) { animation-delay: 225ms; }
@keyframes askai-chip-enter {
to {
opacity: 1;
transform: translateY(0);
}
}
}
/* Mobile: stack vertically with WCAG 2.5.5 touch targets (44px min) */
@media (max-width: 640px) {
.askai-suggestions {
flex-direction: column;
}
.askai-suggestion-btn {
width: 100%;
text-align: left;
min-height: 44px;
}
}
/* Screen reader only text */
.askai-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}