Skip to content

Commit 9f9a44d

Browse files
authored
[docsy] Create assets/scss file to hold inline styles (#75)
1 parent 8b69df3 commit 9f9a44d

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

assets/scss/_csp.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Due to the site's Content-Security-Policy, we must move inline styles
2+
// into this file. For some context, see:
3+
// https://github.com/theupdateframework/theupdateframework.io/issues/73
4+
5+
// The following styles appear in the HTML generated for the ...
6+
7+
// Navbar
8+
9+
.navbar-logo > svg .st0 {
10+
fill: white;
11+
}
12+
13+
// Homepage: it will need to be updated when the hero image is changed.
14+
15+
#td-cover-block-0 {
16+
background-image: url(/featured-background_hu18408291696259244493.jpg)
17+
}
18+
19+
@media only screen and (min-width:1200px) {
20+
#td-cover-block-0 {
21+
background-image: url(/featured-background_hu16056391159218873026.jpg)
22+
}
23+
}

assets/scss/_styles_project.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import 'td/code-dark';
2+
@import 'csp';
23

34
.td-navbar {
45
.navbar-brand {

content/en/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ description: A framework for securing software update systems
44
outputs:
55
- HTML
66
- REDIRECTS # Include this `content/en` ONLY
7-
developer_note:
7+
developer_note: |
88
The blocks/cover shortcode (used below) will use as a background image any
99
image file containing "background" in its name.
10+
Current image source: https://www.pexels.com/photo/close-up-photo-of-programming-of-codes-546819
1011
---
1112

1213
{{% blocks/cover title="The Update Framework" image_anchor="top" color="primary" height="max" %}}

0 commit comments

Comments
 (0)