Skip to content

Commit

Permalink
Change to use new Equinor CDN (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Jun 15, 2023
1 parent 38caae7 commit b0775f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions webviz_config_equinor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
equinor_theme = WebvizConfigTheme(theme_name="equinor")

equinor_theme.external_stylesheets = [
"https://eds-static.equinor.com/font/equinor-font.css"
"https://cdn.eds.equinor.com/font/equinor-font.css"
]

equinor_theme.adjust_csp(
{
"font-src": ["https://eds-static.equinor.com"],
"img-src": ["https://eds-static.equinor.com"],
"style-src": ["https://eds-static.equinor.com"],
"font-src": ["https://cdn.eds.equinor.com"],
"img-src": ["https://cdn.eds.equinor.com"],
"style-src": ["https://cdn.eds.equinor.com"],
},
append=True,
)
Expand Down
2 changes: 1 addition & 1 deletion webviz_config_equinor/assets/equinor_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ hr {
height: 100px;
width: 200px;
background-size: contain;
background-image: url("https://eds-static.equinor.com/logo/equinor-logo-primary.svg#red");
background-image: url("https://cdn.eds.equinor.com/logo/equinor-logo-primary.svg#red");
background-repeat: no-repeat;
}

Expand Down

0 comments on commit b0775f0

Please sign in to comment.