Skip to content

Commit 3fdc36d

Browse files
committed
Update config files
1 parent 821a979 commit 3fdc36d

File tree

2 files changed

+92
-52
lines changed

2 files changed

+92
-52
lines changed

docs/navbarConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const navbar = {
22
title: 'Slack Developer Tools',
33
logo: {
44
src: 'img/slack-logo.svg',
5+
href: 'https://tools.slack.dev',
56
},
67
items: [
78
{

docs/src/css/custom.css

Lines changed: 91 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,77 @@
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-
71
:root {
82
/* set hex colors here pls */
93
--aubergine: #4a154b;
10-
114
/* aubergine-active is used in light mode.
125
use something like #853c8c if you use as a link vs black text ( 3:1 contr) */
136
--aubergine-active: #7c3085;
14-
15-
/* aubergine-light is used in dark mode. #b681b5 is another one. i just made both up */
16-
--aubergine-light: #ce70cc;
17-
187
/* horchata is that beige color we use a lot */
198
--horchata: #f4ede4;
20-
21-
/* slack-blue is 36C5F0. used for dark-mode links */
22-
--slack-link: #36c5f0;
23-
--slack-blue: #36c5f0;
9+
/* cloud blue from slack.dev. used for dark-mode links */
10+
--slack-cloud-blue: #1ab9ff;
2411
/* slack marketing color for links 1264A3. used for light-mode links */
2512
--slack-dark-blue: #1264a3;
26-
27-
--grey: #868686;
28-
--white: #FFFFFF;
13+
--dim: #eef2f6;
2914
}
3015

3116
/* resets striped tables that hurt me eyes */
3217
table tr:nth-child(even) {
3318
background-color: inherit;
3419
}
3520

36-
p a {
37-
text-decoration: underline;
38-
color: var(--slack-link);
21+
/* changing the links to blue for accessibility */
22+
p a, .markdown a {
23+
color: var(--slack-cloud-blue);
3924
}
4025

41-
.markdown a {
42-
color: var(--slack-link);
43-
text-decoration: underline;
26+
a:hover {
27+
color: var(--slack-cloud-blue);
4428
}
4529

4630
/* adjusting for light and dark modes */
4731
[data-theme="light"] {
32+
--docusaurus-highlighted-code-line-bg: var(--dim);
33+
--slack-cloud-blue: var(--slack-dark-blue);
4834
--ifm-color-primary: var(--aubergine-active);
4935
--ifm-footer-background-color: var(--horchata);
50-
--slack-link: var(--slack-dark-blue);
36+
--ifm-footer-color: black;
37+
--ifm-table-stripe-background: var(--horchata);
38+
footer a {
39+
color: black;
40+
}
5141
}
5242

5343
[data-theme="dark"] {
54-
--ifm-color-primary: var(--aubergine-light);
55-
--ifm-navbar-background-color: var(--aubergine);
56-
--ifm-footer-background-color: var(--aubergine);
57-
--slack-link: var(--slack-blue);
58-
}
59-
60-
html[data-theme="dark"] {
6144
--docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 30%);
45+
--ifm-color-primary: var(--slack-cloud-blue);
46+
--ifm-navbar-background-color: var(--aubergine) !important;
47+
--ifm-footer-background-color: var(--aubergine) !important;
48+
footer a {
49+
color: white;
50+
}
6251
}
6352

64-
/* bolding Toc for contrast */
53+
/* bolding ToC for contrast */
6554
.table-of-contents__link--active {
6655
font-weight: bold;
6756
}
6857

69-
/* only uncomment for home page -- colors white space on v tall screens */
70-
/* .main-wrapper {
71-
background: var(--horchata);
72-
} */
58+
/* removing ToC line */
59+
.table-of-contents__left-border {
60+
border-left: none !important;
61+
}
62+
63+
/* increasing name of SDK in sidebar */
64+
.sidebar-title {
65+
font-size: 1.25em; /* Adjust the size as needed */
66+
font-weight: bold;
67+
color: #000;
68+
}
69+
70+
/* removing sidebar line and adding space to match ToC */
71+
.theme-doc-sidebar-container {
72+
border-right: none !important;
73+
margin-right: 2rem;
74+
}
7375

7476
/* announcement bar up top */
7577
div[class^="announcementBar_"] {
@@ -78,17 +80,7 @@ div[class^="announcementBar_"] {
7880
background: var(--horchata);
7981
}
8082

81-
/* navbar */
82-
83-
.sidebar-item-overview a {
84-
font-size: 1.2em; /* Adjust size as needed */
85-
font-weight: bold;
86-
}
87-
88-
html[data-theme='light'] .sidebar-item-overview a {
89-
--ifm-menu-color: #000;
90-
}
91-
83+
/* navbar github link */
9284
.navbar-github-link {
9385
width: 32px;
9486
height: 32px;
@@ -116,8 +108,55 @@ html[data-theme="dark"] .navbar-github-link::before {
116108
no-repeat;
117109
}
118110

119-
.sidebar-title {
120-
font-size: 1.25em; /* Adjust the size as needed */
121-
font-weight: bold;
122-
color: #000;
111+
/* Delineate tab blocks */
112+
.tabs-container {
113+
border: 1px solid var(--ifm-color-primary); /* Adjust the color and thickness as needed */
114+
border-radius: 5px; /* To give rounded corners */
115+
padding: 0.5em; /* To add spacing inside the tab */
116+
}
117+
118+
/* Docs code bubbles */
119+
[data-theme="light"] {
120+
--code-link-background: #CFE9FE;
121+
--code-link-text: rgb(21, 50, 59);
122+
123+
--method-link-background: #CDEFC4;
124+
--method-link-text: rgb(0, 41, 0);
125+
126+
--scope-link-background: #FBF3E0;
127+
--scope-link-text: rgb(63, 46, 0);
128+
129+
--event-link-background: #FDDDE3;
130+
--event-link-text: rgb(74, 21, 75);
131+
}
132+
133+
[data-theme="dark"] {
134+
--code-link-text: white;
135+
--method-link-text: white;
136+
--scope-link-text: white;
137+
--event-link-text: white;
138+
--code-link-background: #1AB9FF50;
139+
--method-link-background: #41B65850;
140+
--scope-link-background: #FCC00350;
141+
--event-link-background: #E3066A50;
142+
}
143+
144+
a code {
145+
background-color: var(--code-link-background);
146+
color: var(--code-link-text);
147+
}
148+
149+
a[href^="https://api.slack.com/methods"] > code {
150+
background-color: var(--method-link-background);
151+
color: var(--method-link-text);
152+
}
153+
154+
a[href^="https://api.slack.com/scopes"] > code {
155+
background-color: var(--scope-link-background);
156+
color: var(--scope-link-text);
157+
}
158+
159+
a[href^="https://api.slack.com/events"] > code {
160+
background-color: var(--event-link-background);
161+
color: var(--event-link-text);
123162
}

0 commit comments

Comments
 (0)