Skip to content

[docsy] Create assets/scss file to hold inline styles #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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