Skip to content

Commit

Permalink
Use official font CDN (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Feb 5, 2020
1 parent bbb81b7 commit 343f614
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 119 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
entry_points={
"webviz_config_themes": ["equinor_theme = webviz_config_equinor:equinor_theme"]
},
install_requires=[
'webviz-config>=0.0.23'
],
install_requires=["webviz-config>=0.0.23"],
tests_require=tests_require,
extras_require={"tests": tests_require},
setup_requires=["setuptools_scm~=3.2"],
Expand Down
11 changes: 10 additions & 1 deletion webviz_config_equinor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,17 @@

equinor_theme = WebvizConfigTheme(theme_name="equinor")

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

equinor_theme.adjust_csp(
{"font-src": ["https://webviz-cdn.azureedge.net"],}
{
"font-src": ["https://eds-static.equinor.com"],
"img-src": ["https://eds-static.equinor.com"],
"style-src": ["https://eds-static.equinor.com"],
},
append=True,
)

equinor_theme.assets = glob.glob(
Expand Down
87 changes: 0 additions & 87 deletions webviz_config_equinor/assets/equinor_fonts.css

This file was deleted.

2 changes: 1 addition & 1 deletion webviz_config_equinor/assets/equinor_local.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ h1, h2, h3, h4, h5, h6, p, a, div, button {
height: 100px;
width: 200px;
background-size: contain;
background-image: url("./equinor_logo_primary.svg#red");
background-image: url("https://eds-static.equinor.com/logo/equinor-logo-primary.svg#red");
background-repeat: no-repeat;
}

Expand Down
27 changes: 0 additions & 27 deletions webviz_config_equinor/assets/equinor_logo_primary.svg

This file was deleted.

0 comments on commit 343f614

Please sign in to comment.