Skip to content

Commit 4c92367

Browse files
style: 💄 add extra.scss with styles for page headers (#223)
# Description The scss is simplified from [tidyverse/tidytemplate](https://github.com/tidyverse/tidytemplate) which is MIT licensed. In their `README` is does say "Please don’t use it for your own package.", but since that refers to using the entire template, I believe that using a simplified version of some of their scss is ok. What do you think? Needs a thorough review. ## Checklist - [X] Ran `just run-all` --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9243cf6 commit 4c92367

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

pkgdown/extra.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Simplified from https://github.com/tidyverse/tidytemplate
2+
3+
.page-header {
4+
border-bottom: none;
5+
margin-bottom: 2rem
6+
}
7+
8+
.template-home {
9+
.page-header {
10+
display: flex;
11+
gap: 1rem;
12+
align-items: center;
13+
margin: 2rem 0;
14+
padding: 2rem 0;
15+
h1 {margin-top: 0rem}
16+
17+
@include media-breakpoint-down(sm) {
18+
margin: 0.5rem 0;
19+
padding: 0.5rem 0;
20+
}
21+
}
22+
img.logo {
23+
margin-left: 0;
24+
25+
@include media-breakpoint-down(sm) {
26+
width: 100px;
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)