Skip to content

Commit 12ec726

Browse files
authored
Docs facelift (#174)
1 parent 70eacb1 commit 12ec726

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

spiceaidocs/src/css/custom.css

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,53 @@
1313
--ifm-color-primary-light: #33925d;
1414
--ifm-color-primary-lighter: #359962;
1515
--ifm-color-primary-lightest: #3cad6e;
16-
--ifm-code-font-size: 95%;
1716
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
18-
17+
1918
--announcement-bar-bg: #fafbfc;
2019
--announcement-bar-text: #091E42;
20+
21+
/* override code size */
22+
--ifm-code-font-size: 13px;
23+
24+
/* disable shadows */
25+
--ifm-global-shadow-lw: none;
26+
--ifm-global-shadow-md: none;
27+
--ifm-global-shadow-tl: none;
28+
--ifm-code-background: rgb(246, 247, 248);
29+
30+
/* reduce border radius */
31+
--ifm-global-radius: 4px;
32+
33+
/* adjust inline code paddings */
34+
--ifm-code-padding-horizontal: 0.3rem;
35+
}
36+
37+
38+
.theme-code-block {
39+
border: 1px solid var(--ifm-color-emphasis-300);
40+
}
41+
42+
.navbar {
43+
border-bottom: 1px solid var(--ifm-color-emphasis-300);
44+
}
45+
46+
code {
47+
border: 1px solid var(--ifm-color-emphasis-300);
48+
}
49+
50+
pre {
51+
font-family: 'iAWriterMonoS', monospace;
52+
}
53+
54+
/* override card styles */
55+
.card {
56+
box-shadow: none !important;
57+
border-radius: var(--ifm-global-radius);
58+
border-color: var(--ifm-color-emphasis-300) !important;
59+
}
60+
61+
.card:hover {
62+
border-color: var(--ifm-color-primary) !important;
2163
}
2264

2365
/* For readability concerns, you should choose a lighter palette in dark mode. */

0 commit comments

Comments
 (0)