Skip to content

Commit 0de9850

Browse files
authored
docs: design-qa (#1189)
* update welcome page * replicate styling * add repo_url back * fixing lint issue * fix lint issue
1 parent 48706f8 commit 0de9850

File tree

6 files changed

+77
-316
lines changed

6 files changed

+77
-316
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- The welcome page is rendered from the Kedro repository.
2+
Any updates to the welcome page must be made in the Kedro repo:
3+
https://github.com/kedro-org/kedro/blob/main/docs/overrides/welcome.html -->

kedro-datasets/docs/stylesheets/footer.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@
118118
.md-footer__link:hover {
119119
.md-footer__direction,
120120
.md-ellipsis,
121-
.footer__button {
121+
.md-footer__button {
122122
color: var(--text-hover-color);
123+
opacity: 1;
123124
}
124125
}
125126
}

kedro-datasets/docs/stylesheets/globals.css

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,21 @@
130130
padding: 0;
131131
padding: 24px 10px;
132132

133-
/* Colour for the section labels */
133+
/* Colour for the section label, which is the header of each section in the left sidebar */
134134
.md-nav__item--section > .md-nav__link[for] {
135135
color: var(--text-primary-color);
136136
align-items: center;
137+
margin-left: 20px;
138+
}
139+
140+
/* Apply border-radius to scrollbar container */
141+
.md-sidebar__scrollwrap {
142+
border-radius: 12px;
137143
}
138144

139145
.md-sidebar__inner {
140146
background-color: var(--primary-sidebar-bg-color);
141-
padding: 24px 0;
142-
border-radius: 12px;
147+
padding: 24px 10px;
143148
}
144149

145150
.md-nav__item--section {
@@ -163,6 +168,11 @@
163168
line-height: 32px;
164169
}
165170

171+
/* Target the arrow circle on the nav link list */
172+
.md-nav__link .md-icon:last-child:hover {
173+
background-color: var(--primary-sidebar-bg-color);
174+
}
175+
166176
.md-nav__link--active,
167177
.md-nav__link[href]:hover,
168178
.md-nav__link[href]:focus,
@@ -188,6 +198,7 @@
188198
/* Secondary sidebar styles */
189199
.md-sidebar--secondary {
190200
margin-right: 64px;
201+
margin-top: 48px;
191202

192203
.md-nav__title {
193204
background: transparent;
@@ -203,10 +214,6 @@
203214
padding-bottom: 10px;
204215
}
205216

206-
.md-nav {
207-
padding-top: 10px;
208-
}
209-
210217
.md-nav__link {
211218
color: var(--text-secondary-color);
212219
}
@@ -225,23 +232,29 @@
225232
max-width: none;
226233
}
227234

228-
.md-content {
229-
padding: 48px 64px 48px 64px;
230-
}
231-
232235
.md-main__inner {
233236
margin: 0;
234237
}
235238

239+
/* Add margin to the h1 for each page section content */
240+
.md-content__inner.md-typeset {
241+
margin-top: 48px;
242+
}
243+
236244
/* Code Block Styles */
237245

238246
.md-typeset pre {
239247
background-color: var(--admonition-bg-color);
240248
}
241249

242-
.md-typeset pre code {
250+
.md-typeset pre code,
251+
.md-typeset code {
243252
background-color: var(--admonition-bg-color);
244253
color: var(--text-primary-color);
254+
255+
}
256+
257+
.md-typeset pre code {
245258
margin: 20px; /* this is to ensure there's no overlap with the copy icon */
246259
}
247260

@@ -250,7 +263,7 @@
250263
color: var(--text-secondary-color);
251264
}
252265

253-
/** hightlight the copy icon buton on hover */
266+
/** highlight the copy icon button on hover */
254267
.md-clipboard:hover,
255268
pre:hover .md-clipboard {
256269
color: var(--text-hover-color);
@@ -385,8 +398,6 @@ pre:hover .md-clipboard {
385398
#__nav_4_label {
386399
display: none;
387400
}
388-
389-
390401
}
391402

392403
/** MOBILE STYLES */

kedro-datasets/docs/stylesheets/typography.css

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,24 @@ body {
2020
line-height: 24px;;
2121
}
2222

23+
/* All headings color */
24+
h1, h2, h3, h4, h5, h6,
25+
.md-typeset h1,
26+
.md-typeset h2,
27+
.md-typeset h3,
28+
.md-typeset h4,
29+
.md-typeset h5,
30+
.md-typeset h6 {
31+
color: var(--text-primary-color);
32+
}
33+
2334
h1,
2435
.md-typeset h1 {
2536
font-family: Inter;
2637
font-size: 32px;
2738
font-style: normal;
2839
font-weight: 400;
2940
line-height: 40px;
30-
color: var(--text-primary-color);
3141
margin-bottom: 32px;
3242
}
3343

@@ -38,7 +48,6 @@ h2,
3848
font-style: normal;
3949
font-weight: 400;
4050
line-height: 32px;
41-
color: var(--text-primary-color);
4251
margin: 32px 0 24px 0;
4352
}
4453

@@ -49,11 +58,41 @@ h3,
4958
font-style: normal;
5059
font-weight: 400;
5160
line-height: 28px;
52-
color: var(--text-primary-color);
5361
margin: 24px 0 12px 0;
5462
}
5563

64+
h4,
65+
.md-typeset h4 {
66+
font-family: Inter;
67+
font-size: 18px;
68+
font-style: normal;
69+
font-weight: 400;
70+
line-height: 26px;
71+
margin: 20px 0 12px 0;
72+
}
73+
74+
h5,
75+
.md-typeset h5 {
76+
font-family: Inter;
77+
font-size: 16px;
78+
font-style: normal;
79+
font-weight: 400;
80+
line-height: 24px;
81+
margin: 16px 0 8px 0;
82+
}
83+
84+
h6,
85+
.md-typeset h6 {
86+
font-family: Inter;
87+
font-size: 14px;
88+
font-style: normal;
89+
font-weight: 400;
90+
line-height: 22px;
91+
margin: 16px 0 8px 0;
92+
}
93+
5694
p,
95+
.md-typeset,
5796
.md-typeset thead ,
5897
.md-typeset td {
5998
font-family: Inter;

0 commit comments

Comments
 (0)