Skip to content

Commit

Permalink
[docsy] Create assets/scss file to hold inline styles (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Sep 5, 2024
1 parent 8b69df3 commit 9f9a44d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions assets/scss/_csp.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Due to the site's Content-Security-Policy, we must move inline styles
// into this file. For some context, see:
// https://github.com/theupdateframework/theupdateframework.io/issues/73

// The following styles appear in the HTML generated for the ...

// Navbar

.navbar-logo > svg .st0 {
fill: white;
}

// Homepage: it will need to be updated when the hero image is changed.

#td-cover-block-0 {
background-image: url(/featured-background_hu18408291696259244493.jpg)
}

@media only screen and (min-width:1200px) {
#td-cover-block-0 {
background-image: url(/featured-background_hu16056391159218873026.jpg)
}
}
1 change: 1 addition & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import 'td/code-dark';
@import 'csp';

.td-navbar {
.navbar-brand {
Expand Down
3 changes: 2 additions & 1 deletion content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ description: A framework for securing software update systems
outputs:
- HTML
- REDIRECTS # Include this `content/en` ONLY
developer_note:
developer_note: |
The blocks/cover shortcode (used below) will use as a background image any
image file containing "background" in its name.
Current image source: https://www.pexels.com/photo/close-up-photo-of-programming-of-codes-546819
---

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

0 comments on commit 9f9a44d

Please sign in to comment.