Skip to content

Commit 2139691

Browse files
align docs with our external design
1 parent 324049b commit 2139691

File tree

1 file changed

+117
-18
lines changed

1 file changed

+117
-18
lines changed

src/css/custom.css

Lines changed: 117 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,32 @@
44
* work well for content-centric websites.
55
*/
66

7+
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Source+Code+Pro:wght@400;600&display=swap");
8+
79
/* You can override the default Infima variables here. */
810
:root {
9-
--ifm-color-primary: #5835D4;
10-
--ifm-color-primary-dark: #361d8d;
11-
--ifm-color-primary-darker: #2c1773;
12-
--ifm-color-primary-darkest: #221159;
13-
--ifm-color-primary-light: #3b209a;
14-
--ifm-color-primary-lighter: #4526b4;
15-
--ifm-color-primary-lightest: #4f2cce;
11+
--ifm-color-primary: #5331ca;
12+
--ifm-color-primary-dark: #4a2bb9;
13+
--ifm-color-primary-darker: #4125a3;
14+
--ifm-color-primary-darkest: #332083;
15+
--ifm-color-primary-light: #6a47d7;
16+
--ifm-color-primary-lighter: #7b59e0;
17+
--ifm-color-primary-lightest: #8c6be9;
18+
--ifm-color-secondary: #df1a0c;
1619
--ifm-code-font-size: 95%;
17-
--ifm-navbar-link-color: #646464;
18-
--ifm-hero-banner-bg: #6343d1;
20+
--ifm-navbar-link-color: #4a4a4a;
21+
--ifm-hero-banner-bg: #5331ca;
22+
--ifm-background-color: #f6f6f7;
23+
--ifm-font-family-base: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
24+
--ifm-font-family-monospace: "Source Code Pro", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
25+
--color-status-ready: #176114;
26+
--color-status-ready-bg: #ddffdc;
27+
--color-status-disconnected: #585858;
28+
--color-status-lost: #de3618;
29+
--color-status-inactive: #99999b;
30+
--color-alert-error: #ff8f7b;
31+
--color-alert-warning: #ffefa4;
32+
--color-alert-notice: #addcaf;
1933
--docusaurus-highlighted-code-line-bg: #dae1f3;
2034
}
2135

@@ -38,15 +52,24 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
3852
--ifm-navbar-link-color: #eeee;
3953
--ifm-hero-banner-bg: linear-gradient(13deg, rgb(24 25 26) 49%, rgba(99,67,209,1) 100%);
4054
--docusaurus-highlighted-code-line-bg: #37393f;
41-
--ifm-color-primary: #25c2a0;
42-
--ifm-color-primary-dark: rgb(33, 175, 144);
43-
--ifm-color-primary-darker: rgb(31, 165, 136);
44-
--ifm-color-primary-darkest: rgb(26, 136, 112);
45-
--ifm-color-primary-light: rgb(70, 203, 174);
46-
--ifm-color-primary-lighter: rgb(102, 212, 189);
47-
--ifm-color-primary-lightest: rgb(146, 224, 208);
55+
--ifm-color-primary: #b7a6ff;
56+
--ifm-color-primary-dark: #a590ff;
57+
--ifm-color-primary-darker: #947bff;
58+
--ifm-color-primary-darkest: #7b5be5;
59+
--ifm-color-primary-light: #c2b4ff;
60+
--ifm-color-primary-lighter: #cec3ff;
61+
--ifm-color-primary-lightest: #dcd5ff;
4862
}
4963

64+
body {
65+
background-color: var(--ifm-background-color);
66+
font-family: var(--ifm-font-family-base);
67+
}
68+
69+
code,
70+
pre {
71+
font-family: var(--ifm-font-family-monospace);
72+
}
5073

5174
h1 {
5275
font-size: 2.3rem;
@@ -74,6 +97,82 @@ h1 {
7497
background: var(--ifm-menu-link-sublist-icon) 50% / 1.5rem 1.5rem;
7598
}
7699

100+
.button, button {
101+
text-transform: none;
102+
}
103+
104+
[contenteditable="true"] {
105+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
106+
border: 1px solid transparent;
107+
border-radius: 6px;
108+
padding: 2px 4px;
109+
}
110+
111+
[contenteditable="true"]:hover {
112+
border-color: #51a7e8;
113+
box-shadow: 0 0 0 2px rgba(81, 167, 232, 0.15);
114+
}
115+
116+
.underline-dotted {
117+
text-decoration: underline dotted rgba(0, 0, 0, 0.87);
118+
text-underline-offset: 0.18em;
119+
}
120+
121+
.indicator-dot {
122+
display: inline-block;
123+
width: 10px;
124+
height: 10px;
125+
border-radius: 50%;
126+
background: #ea4c89;
127+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 6px 1px rgba(234, 76, 137, 0.45);
128+
}
129+
130+
.indicator-dot.is-online {
131+
background: #2fbb39;
132+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 6px 1px rgba(47, 187, 57, 0.5);
133+
}
134+
135+
.badge--ready {
136+
color: var(--color-status-ready);
137+
background: var(--color-status-ready-bg);
138+
border: 1px solid var(--color-status-ready);
139+
}
140+
141+
.badge--disconnected {
142+
color: var(--color-status-disconnected);
143+
background: #f0f0f0;
144+
}
145+
146+
.badge--lost {
147+
color: #fff;
148+
background: var(--color-status-lost);
149+
}
150+
151+
.badge--inactive {
152+
color: #fff;
153+
background: var(--color-status-inactive);
154+
}
155+
156+
.alert-fill--error {
157+
background: var(--color-alert-error);
158+
}
159+
160+
.alert-fill--warning {
161+
background: var(--color-alert-warning);
162+
}
163+
164+
.alert-fill--notice {
165+
background: var(--color-alert-notice);
166+
}
167+
168+
@keyframes blink {
169+
0%, 100% { opacity: 1; }
170+
50% { opacity: 0.2; }
171+
}
172+
173+
.blink {
174+
animation: blink 1s linear infinite;
175+
}
77176

78177
.responsive-video {
79178
position: relative;
@@ -92,11 +191,11 @@ h1 {
92191
}
93192

94193
.hidden {
95-
display: none !important;
194+
display: none !important;
96195
}
97196

98197
.cardGrid {
99198
display: grid;
100199
grid-template-columns: repeat(3, 1fr); /* Creates three columns */
101200
gap: 20px; /* Space between the cards */
102-
}
201+
}

0 commit comments

Comments
 (0)