Skip to content

Commit b854b55

Browse files
add sora font, update code block styles, add link to survey (#49)
* add sora font, update code block styles, add link to survey * fix heading hover color, add community link * fix var name
1 parent 13b4d19 commit b854b55

File tree

10 files changed

+36
-9
lines changed

10 files changed

+36
-9
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"devDependencies": {
1818
"@asciidoctor/core": "~2.2",
1919
"@asciidoctor/tabs": "1.0.0-beta.6",
20+
"@fontsource-variable/sora": "^5.0.15",
2021
"@fontsource/material-icons-outlined": "~5.0",
2122
"@fontsource/roboto-flex": "~5.0",
2223
"@fontsource/roboto-mono": "~5.0",

src/css/doc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
.doc a.link,
7777
.doc a.link:hover {
78-
color: var(--heading-font-color);
78+
color: var(--heading-font-color) !important;
7979
text-decoration: none;
8080
}
8181

src/css/ds-blocks.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
font-style: normal;
2626
color: var(--ds-text-primary);
2727
margin-bottom: 0;
28-
padding: var(--ds-space-h) var(--ds-space-2);
28+
padding: var(--ds-space-1) var(--ds-space-2);
2929
background: var(--ds-background-level2);
3030
border-top-left-radius: calc(6 / var(--rem-base) * 1rem);
3131
border-top-right-radius: calc(6 / var(--rem-base) * 1rem);
@@ -35,6 +35,7 @@
3535
.doc .listingblock .title .source-lang {
3636
margin-left: auto;
3737
text-transform: uppercase;
38+
color: var(--ds-text-secondary);
3839
}
3940

4041
.doc .source-toolbox {

src/css/ds-typography.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
@mixin text-display {
22
font-size: calc(34 / var(--rem-base) * 1rem);
3-
font-weight: 600;
3+
font-weight: 500;
4+
font-family: "Sora", sans-serif;
45
}
56

67
@mixin text-h1 {
78
font-size: calc(24 / var(--rem-base) * 1rem);
8-
font-weight: 600;
9+
font-weight: 550;
10+
font-family: "Sora", sans-serif;
911
}
1012

1113
@mixin text-h2 {
1214
font-size: calc(20 / var(--rem-base) * 1rem);
13-
font-weight: 600;
15+
font-weight: 550;
16+
font-family: "Sora", sans-serif;
1417
}
1518

1619
@mixin text-h3 {

src/css/highlight.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@
116116

117117
.hljs {
118118
border-radius: 6px;
119-
border: 1px solid var(--ds-background-level2);
119+
border: 1px solid transparent;
120120
}

src/css/nav.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ html.is-clipped--nav {
122122
position: relative;
123123
display: flex;
124124
align-items: center;
125-
padding: 1rem 3rem 1rem var(--site-padding);
125+
padding: 1rem 4rem 1rem var(--site-padding);
126126
}
127127

128128
.nav-link {

src/css/site.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import "typeface-material-icons-outlined.css";
22
@import "typeface-roboto-flex.css";
3+
@import "typeface-sora.css";
34
@import "typeface-roboto-mono.css";
45
@import "ds-vars.css";
56
@import "ds-light.css";

src/css/typeface-sora.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@font-face {
2+
font-family: 'Sora';
3+
font-style: normal;
4+
font-display: swap;
5+
font-weight: 100 800;
6+
src: url(~@fontsource-variable/sora/files/sora-latin-wght-normal.woff2) format("woff2");
7+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
8+
}

src/partials/survey.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
<div class="ulist unstyled landing-support">
4444
<ul class="unstyled">
4545
<li>
46-
<p><a href="{#}" class="community">
46+
<p><a href="https://www.datastax.com/dev/community" target="_blank" class="community">
4747
Ask the Astra community</a></p></li>
4848
<li>
49-
<p><a href="{#}" class="support">
49+
<p><a href="https://support.datastax.com/" target="_blank" class="support">
5050
Get in touch with support</a></p></li>
5151
</ul>
5252
</div>

0 commit comments

Comments
 (0)