Skip to content

Commit 9e73c35

Browse files
brianhawthornejarrodmillman
authored andcommitted
style footer
1 parent 37a924a commit 9e73c35

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

myst.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ site:
1919
favicon: images/favicon.ico
2020
logo: images/statistical-python-logo.svg
2121
logo_text: Statistical Python
22+
style: ./site.css
2223
parts:
2324
footer: footer.md

site.css

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
html, body {
2+
height: 100%;
3+
}
4+
body {
5+
display: flex;
6+
flex-direction: column;
7+
}
8+
9+
.article.content {
10+
min-height: 50vh;
11+
flex: 1 0 auto;
12+
}
13+
14+
.footer {
15+
flex-shrink: 0;
16+
background: #013243;
17+
color: white;
18+
padding-left: 2rem;
19+
padding-right: 2rem;
20+
21+
padding-left: 3.5rem;
22+
padding-right: 3.5rem;
23+
24+
/* Outer content grid */
25+
& .outer-grid {
26+
/* spacer, project description, spacer, link columns, spacer */
27+
grid-template-columns: 3fr 3fr 4fr;
28+
align-items: center;
29+
margin-bottom: 0rem;
30+
31+
& li {
32+
list-style: none;
33+
}
34+
}
35+
36+
@media (max-width: 640px) {
37+
& .outer-grid {
38+
grid-template-columns: 1fr;
39+
justify-items: start;
40+
}
41+
}
42+
43+
/* Heading colours */
44+
& a,
45+
h1,
46+
h2,
47+
h3,
48+
h4,
49+
h5,
50+
h6 {
51+
color: white;
52+
}
53+
54+
& h1 {
55+
font-size: 1.25rem;
56+
font-weight: bold;
57+
}
58+
}

0 commit comments

Comments
 (0)