-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathscientific-python.css
More file actions
104 lines (89 loc) · 2 KB
/
scientific-python.css
File metadata and controls
104 lines (89 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
main {
min-height: 0;
flex: 1 0 auto;
}
.article.content {
/* Override 100vh from myst-theme:styles/typography.css so content div
* doesn't grow <main> to push the footer offscreen.
*/
min-height: 0;
}
.footer {
/* Make footer "sticky" to page bottom (also the above flex rules), per
* the flexbox strategy described here:
* https://css-tricks.com/couple-takes-sticky-footer/#aa-there-is-flexbox
* and here:
* https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
* This solution does not require hardcoding a fixed footer height in the
* style rules.
*/
flex-shrink: 0;
background: #013243;
color: white;
padding-left: 2rem;
padding-right: 2rem;
padding-left: 3.5rem;
padding-right: 3.5rem;
/* Outer content grid */
& .outer-grid {
/* spacer, project description, spacer, link columns, spacer */
grid-template-columns: 3fr 3fr 4fr;
align-items: center;
margin-bottom: 0rem;
& li {
list-style: none;
}
}
@media (max-width: 640px) {
& .outer-grid {
grid-template-columns: 1fr;
justify-items: start;
}
}
/* Heading colours */
& a,
h1,
h2,
h3,
h4,
h5,
h6 {
color: white;
}
& h1 {
font-size: 1.25rem;
font-weight: bold;
}
}
/* Hide download button */
.myst-fm-downloads-button {
display: none;
}
/* Set site title bold */
.myst-home-link {
font-weight: bold;
}
/* Unsure where this CSS came from, but keeping it for now */
/* --- Make layout feel less "book-ish" and closer to a website --- */
.bd-main .bd-content .bd-article-container {
max-width: 900px; /* keep readable, less wide than default "docs" feel */
}
h1,
h2,
h3,
h4 {
letter-spacing: -0.01em;
}
/* Slightly tighten the top spacing so it feels more like a marketing/docs site */
.bd-header {
box-shadow: none;
}
/* If the left sidebar feels too dominant, reduce its visual weight */
.bd-sidebar-primary {
border-right: 0;
}