Skip to content

Commit bbc8500

Browse files
committed
fix the border, and the footer
1 parent 8ebeaca commit bbc8500

File tree

2 files changed

+24
-116
lines changed

2 files changed

+24
-116
lines changed

inst/pkgdown/_pkgdown.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ template:
77
heading_font: {google: "Source Serif Pro"}
88
primary: "#941120"
99
secondary: "#8C338F"
10-
border-radius: 0
10+
border-radius: 0.2rem
1111
headings-color: "#002676"
1212
navbar-light-color: "$headings-color"
1313
navbar-light-hover-color: "$headings-color"
@@ -27,8 +27,14 @@ navbar:
2727
left: [intro, reference, articles, tutorials]
2828
right: [search, github, news]
2929

30-
3130
footer:
3231
structure:
33-
left: developed_by
34-
right: [built_with]
32+
left: links
33+
right: package
34+
components:
35+
links: |
36+
[About Delphi](https://delphi.cmu.edu/about/) •
37+
[Terms of Use](https://delphi.cmu.edu/epidemic-signals/terms-of-use/) •
38+
[Contact Us](https://docs.google.com/forms/u/1/d/e/1FAIpQLScqgT1fKZr5VWBfsaSp-DNaN03aV6EoZU4YljIzHJ1Wl_zmtg/viewform) •
39+
[Delphi GitHub](https://github.com/cmu-delphi/) •
40+
[Epidata API](https://cmu-delphi.github.io/delphi-epidata/)

inst/pkgdown/extra.scss

+14-112
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/* Navbar */
22
.navbar {
33
transition: all 0.3s ease;
4-
border-bottom: 3px solid $headings-color;
4+
border-bottom: 2px solid $headings-color;
55
background-color: $body-bg !important;
6+
line-height: inherit;
67
}
78

89
#navbar {
@@ -13,8 +14,6 @@
1314
font-family: '"Source Serif Pro",Times,serif';
1415
}
1516

16-
17-
1817
.page-header {
1918
border-bottom: none;
2019
}
@@ -37,8 +36,6 @@ img.logo {
3736
}
3837
}
3938

40-
41-
4239
/* Reference index. To make it very different from h2 */
4340
.template-reference-index h3 {
4441
font-size: 1.5rem;
@@ -55,50 +52,7 @@ img.logo {
5552
// needed for scrollspy
5653
body {position: relative;}
5754

58-
/*
59-
60-
#toc > .nav {
61-
margin-bottom: 1rem;
62-
63-
h2 {
64-
font-size: $font-size-lg;
65-
}
66-
67-
li { font-size: 90%;
68-
}
69-
70-
a.nav-link {
71-
color: inherit;
72-
padding: 0.25rem 0.5rem;
73-
margin-bottom: 2px;
74-
@include border-radius(0);
75-
76-
&:hover, &:focus {
77-
background-color: $pkgdown-toc-hover-bg;
78-
color: $primary;
79-
text-decoration: none;
80-
font-weight: 700 !important;
81-
border-left: $pkgdown-toc-border-width solid $pkgdown-toc-border-color;
82-
}
83-
&.active {
84-
background-color: transparent !important;
85-
color: $primary;
86-
font-weight: 700 !important;
87-
border-left: 3px solid $primary;
88-
}
89-
}
90-
}
91-
92-
*/
93-
94-
9555
aside {
96-
/*
97-
a {
98-
color: "#ff9900" !important;
99-
}
100-
*/
101-
10256
padding-top: 1.5rem;
10357
border-left: 2px solid $headings-color;
10458

@@ -131,28 +85,23 @@ aside {
13185

13286

13387

134-
/* Footer */
13588

89+
/* Footer ----------------------------------------------------------------- */
90+
91+
.row > main { // space before the footer to match the space under the navbar
92+
margin-bottom: 56px;
93+
}
94+
95+
footer {
96+
border-top: 2px solid $headings-color;
97+
margin: 0 0 1rem 0;
98+
}
13699

137100
/* Position hack to get full width footer even though pkgdown puts it inside a container
138101
* See: https://css-tricks.com/full-width-containers-limited-width-parents/
139102
*/
140103

141-
footer h5 {
142-
color: white;
143-
}
144-
145-
footer a {
146-
text-decoration: none;
147-
}
148-
149-
footer a:hover, footer ul li a:hover {
150-
text-decoration: underline !important;
151-
}
152-
.cc-revoke {
153-
display: none !important;
154-
}
155-
104+
/*
156105
footer {
157106
background: $headings-color;
158107
font-size: 18px;
@@ -173,51 +122,4 @@ footer {
173122
}
174123
}
175124
176-
footer img {
177-
width: 100px;
178-
max-width: 10vw;
179-
}
180-
181-
footer .icon {
182-
width: 20%;
183-
font-size: 21.6px;
184-
margin-top: 9px;
185-
}
186-
187-
footer h5 {
188-
text-transform: uppercase;
189-
font-weight: 600;
190-
font-size: 13.5px;
191-
margin-bottom: 10px;
192-
}
193-
194-
footer ul {
195-
text-align: left;
196-
list-style: none;
197-
margin: 0;
198-
padding: 0;
199-
border: 0;
200-
}
201-
202-
footer ul li {
203-
line-height: 32px;
204-
}
205-
206-
footer ul li a {
207-
text-decoration: none;
208-
color: #fff;
209-
}
210-
211-
footer a:hover {
212-
text-decoration: none;
213-
color: white;
214-
}
215-
216-
footer a {
217-
color: #fff;
218-
}
219-
220-
footer p {
221-
font-size: inherit;
222-
line-height: 28.8px;
223-
}
125+
*/

0 commit comments

Comments
 (0)