Skip to content

Commit ff1b214

Browse files
authored
Merge pull request #3 from kaskada-ai/new-ui
Added Updates related to the new UI
2 parents b56a2c7 + de75191 commit ff1b214

20 files changed

+428
-702
lines changed

package-lock.json

Lines changed: 31 additions & 394 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
"scripts": {},
1717
"devDependencies": {
1818
"@asciidoctor/core": "~2.2",
19-
"@fontsource/roboto": "~4.5",
20-
"@fontsource/roboto-mono": "~4.5",
19+
"@fontsource/noto-sans": "^4.5.11",
20+
"@fontsource/sora": "^4.5.12",
21+
"@fontsource/source-code-pro": "^4.5.14",
2122
"autoprefixer": "~9.7",
2223
"browser-pack-flat": "~3.4",
2324
"browserify": "~16.5",
@@ -54,4 +55,4 @@
5455
"vinyl-buffer": "~1.0",
5556
"vinyl-fs": "~3.0"
5657
}
57-
}
58+
}

src/css/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ th {
5353

5454
sub,
5555
sup {
56-
font-size: 75%;
56+
font-size: 0.75rem;
5757
line-height: 0;
5858
position: relative;
5959
vertical-align: baseline;

src/css/doc.css

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
font-size: 0.8em;
8989
font-weight: normal;
9090
padding-top: 0.05em;
91+
color: inherit;
9192
}
9293

9394
.doc h1 .anchor::before,
@@ -121,6 +122,24 @@
121122
color: var(--link_hover-font-color);
122123
}
123124

125+
.doc h1 a,
126+
.doc h2 a,
127+
.doc h3 a,
128+
.doc h4 a,
129+
.doc h5 a,
130+
.doc h6 a {
131+
color: inherit;
132+
}
133+
134+
.doc h1 a:hover,
135+
.doc h2 a:hover,
136+
.doc h3 a:hover,
137+
.doc h4 a:hover,
138+
.doc h5 a:hover,
139+
.doc h6 a:hover {
140+
color: inherit;
141+
}
142+
124143
.doc a.bare {
125144
hyphens: none;
126145
}
@@ -139,9 +158,7 @@
139158
.doc .colist > table code {
140159
color: var(--code-font-color);
141160
background: var(--code-background);
142-
border-radius: 0.25em;
143-
font-size: 0.95em;
144-
padding: 0.125em 0.25em;
161+
font-size: 0.875em;
145162
}
146163

147164
.doc code,
@@ -150,8 +167,8 @@
150167
}
151168

152169
.doc pre {
153-
font-size: calc(16 / var(--rem-base) * 1rem);
154-
line-height: 1.5;
170+
font-size: 0.875rem;
171+
line-height: 1.4em;
155172
margin: 0;
156173
}
157174

@@ -352,21 +369,23 @@
352369
}
353370

354371
.doc .admonitionblock td.content {
355-
padding: 1rem 1rem 0.75rem;
356-
background: var(--admonition-background);
372+
padding: 1.5rem;
373+
background: var(--color-white);
374+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
375+
border-radius: 10px;
357376
width: 100%;
358377
word-wrap: anywhere;
359378
}
360379

361380
.doc .admonitionblock .icon {
362381
position: absolute;
363382
top: 0;
364-
left: 0;
365-
font-size: calc(15 / var(--rem-base) * 1rem);
366-
padding: 0 0.5rem;
367-
height: 1.25rem;
368-
line-height: 1;
369-
font-weight: var(--admonition-label-font-weight);
383+
left: 1.5rem;
384+
font-family: (--sora-font-family);
385+
font-size: 0.75rem;
386+
line-height: 1.33em;
387+
font-weight: 600;
388+
padding: 0.5rem 0.5rem;
370389
text-transform: uppercase;
371390
border-radius: 0.45rem;
372391
transform: translate(-0.5rem, -50%);
@@ -729,6 +748,7 @@
729748
box-shadow: inset 0 0 1.75px var(--pre-border-color);
730749
display: block;
731750
overflow-x: auto;
751+
border-radius: 10px;
732752
padding: 0.75rem;
733753
}
734754

@@ -927,7 +947,9 @@
927947
background: var(--kbd-background);
928948
border: 1px solid var(--kbd-border-color);
929949
border-radius: 0.25em;
930-
box-shadow: 0 1px 0 var(--kbd-border-color), 0 0 0 0.1em var(--body-background) inset;
950+
box-shadow:
951+
0 1px 0 var(--kbd-border-color),
952+
0 0 0 0.1em var(--body-background) inset;
931953
padding: 0.25em 0.5em;
932954
vertical-align: text-bottom;
933955
white-space: nowrap; /* effectively ignores hyphens setting */

src/css/footer.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ footer.footer {
44
font-size: calc(15 / var(--rem-base) * 1rem);
55
line-height: var(--footer-line-height);
66
padding: 1.5rem;
7+
text-align: center;
78
}
89

910
.footer p {

0 commit comments

Comments
 (0)