Skip to content

Commit 6aa499f

Browse files
authored
added datastax icon, social media icons, and footer styles (#11)
1 parent 2e85e99 commit 6aa499f

12 files changed

+181
-5
lines changed

src/css/ds-logo.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,42 @@ html[data-theme="light"] #datastax-docs-logo-main {
66
background: url('../img/datastax-docs-logo-dark-bg.svg') no-repeat center / contain;
77
}
88

9+
html[data-theme="dark"] #datastax-docs-logo-text {
10+
background: url('../img/datastax-docs-logo-text-dark.svg') no-repeat center / contain;
11+
}
12+
13+
html[data-theme="light"] #datastax-docs-logo-text {
14+
background: url('../img/datastax-docs-logo-text-light.svg') no-repeat center / contain;
15+
}
16+
917
#datastax-docs-logo-main {
1018
width: calc(287 / var(--rem-base) * 1rem);
1119
height: calc(40 / var(--rem-base) * 1rem);
1220
}
1321

22+
#datastax-docs-logo-text {
23+
width: calc(172 / var(--rem-base) * 1rem);
24+
height: calc(16 / var(--rem-base) * 1rem);
25+
}
26+
1427
@media (prefers-color-scheme: light) {
1528
:root:not([data-theme="light"]):not([data-theme="dark"]) #datastax-docs-logo-main {
1629
background: url('../img/datastax-docs-logo-light-bg.svg') no-repeat center / contain;
1730
}
31+
32+
:root:not([data-theme="light"]):not([data-theme="dark"]) #datastax-docs-logo-text {
33+
background: url('../img/datastax-docs-logo-text-light.svg') no-repeat center / contain;
34+
}
1835
}
1936

2037
@media (prefers-color-scheme: dark) {
2138
:root:not([data-theme="light"]):not([data-theme="dark"]) #datastax-docs-logo-main {
2239
background: url('../img/datastax-docs-logo-light-bg.svg') no-repeat center / contain;
2340
}
41+
42+
:root:not([data-theme="light"]):not([data-theme="dark"]) #datastax-docs-logo-text {
43+
background: url('../img/datastax-docs-logo-text-dark.svg') no-repeat center / contain;
44+
}
2445
}
2546

2647
@media screen and (max-width: 768.5px) {

src/css/footer.css

Lines changed: 83 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,96 @@
11
footer.footer {
22
background-color: var(--footer-background);
33
color: var(--footer-font-color);
4-
font-size: calc(12 / var(--rem-base) * 1rem);
4+
font-size: calc(14.5 / var(--rem-base) * 1rem);
55
line-height: var(--footer-line-height);
66
padding: var(--ds-space-5);
7+
display: flex;
8+
flex-direction: column;
9+
align-items: flex-start;
10+
gap: var(--ds-space-3);
11+
flex-shrink: 0;
712
}
813

914
.footer p {
10-
margin: 0.5rem 0;
15+
margin: 0;
1116
}
1217

1318
.footer a {
1419
color: var(--footer-link-font-color);
1520
}
21+
22+
.footer-item {
23+
display: flex;
24+
justify-content: space-between;
25+
align-items: center;
26+
align-self: stretch;
27+
font-size: calc(14.5 / var(--rem-base) * 1rem);
28+
}
29+
30+
.footer--divider {
31+
background: var(--ds-divider);
32+
height: calc(1 / var(--rem-base) * 1rem);
33+
width: 100%;
34+
}
35+
36+
.footer--contact-us a {
37+
color: var(--footer-font-color);
38+
}
39+
40+
.footer--trademarks {
41+
font-size: calc(12 / var(--rem-base) * 1rem);
42+
color: var(--text-tertiary);
43+
max-width: 640px;
44+
align-self: stretch;
45+
}
46+
47+
.social-icons {
48+
display: flex;
49+
gap: var(--ds-space-2);
50+
}
51+
52+
.social-icons a {
53+
width: var(--ds-space-2h);
54+
height: var(--ds-space-2h);
55+
background-repeat: no-repeat;
56+
}
57+
58+
/* footer icons */
59+
60+
a.facebook-icon {
61+
background-image: url('../img/social-facebook.svg');
62+
}
63+
64+
a.x-icon {
65+
background-image: url('../img/social-x.svg');
66+
}
67+
68+
a.git-icon {
69+
background-image: url('../img/social-github.svg');
70+
}
71+
72+
a.medium-icon {
73+
background-image: url('../img/social-medium.svg');
74+
}
75+
76+
a.linkedin-icon {
77+
background-image: url('../img/social-linkedin.svg');
78+
}
79+
80+
a.twitch-icon {
81+
content: url('../img/social-twitch.svg');
82+
}
83+
84+
html[data-theme="dark"] {
85+
.social-icons a {
86+
filter: invert(1);
87+
}
88+
}
89+
90+
@media (prefers-color-scheme: dark) {
91+
:root:not([data-theme="light"]):not([data-theme="dark"]) {
92+
.social-icons a {
93+
filter: invert(1);
94+
}
95+
}
96+
}

src/css/vars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
--toc-line-height: 1.5;
101101
/* footer */
102102
--footer-line-height: var(--doc-line-height);
103-
--footer-background: var(--ds-neutral-soft-bg);
103+
--footer-background: var(--ds-background-body);
104104
--footer-font-color: var(--ds-text-primary);
105105
--footer-link-font-color: var(--link-font-color);
106106
/* dimensions and positioning */
Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading

src/img/social-facebook.svg

Lines changed: 3 additions & 0 deletions
Loading

src/img/social-github.svg

Lines changed: 3 additions & 0 deletions
Loading

src/img/social-linkedin.svg

Lines changed: 3 additions & 0 deletions
Loading

src/img/social-medium.svg

Lines changed: 5 additions & 0 deletions
Loading

src/img/social-twitch.svg

Lines changed: 5 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)