:
+ null
+ }
);
}
diff --git a/src/components/main/sidebar.js b/src/components/main/sidebar.js
index 36c6485ae..58f9046fa 100644
--- a/src/components/main/sidebar.js
+++ b/src/components/main/sidebar.js
@@ -13,22 +13,22 @@ export const Sidebar = (
return (
-
- {displayNarrative ?
- :
-
- }
+
+ {displayNarrative ?
+ :
+
+ }
);
diff --git a/src/components/navBar/index.js b/src/components/navBar/index.js
index ed3cc7dd8..b63513b68 100644
--- a/src/components/navBar/index.js
+++ b/src/components/navBar/index.js
@@ -31,8 +31,8 @@ const NavBar = ({sidebar, mobileDisplay, toggleHandler, narrativeTitle, width})
return (
diff --git a/src/css/awesomplete.css b/src/css/awesomplete.css
index 211e9690d..369581a30 100644
--- a/src/css/awesomplete.css
+++ b/src/css/awesomplete.css
@@ -36,67 +36,67 @@
.awesomplete > ul {
width: 80%;
- border-radius: .3em;
- margin: .2em 0 0;
- background: hsla(0,0%,100%,.9);
- background: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));
- border: 1px solid rgba(0,0,0,.3);
- box-shadow: .05em .2em .6em rgba(0,0,0,.2);
- text-shadow: none;
+ border-radius: .3em;
+ margin: .2em 0 0;
+ background: hsla(0,0%,100%,.9);
+ background: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));
+ border: 1px solid rgba(0,0,0,.3);
+ box-shadow: .05em .2em .6em rgba(0,0,0,.2);
+ text-shadow: none;
}
@supports (transform: scale(0)) {
- .awesomplete > ul {
- transition: .3s cubic-bezier(.4,.2,.5,1.4);
- transform-origin: 1.43em -.43em;
- }
+ .awesomplete > ul {
+ transition: .3s cubic-bezier(.4,.2,.5,1.4);
+ transform-origin: 1.43em -.43em;
+ }
- .awesomplete > ul[hidden],
- .awesomplete > ul:empty {
- opacity: 0;
- transform: scale(0);
- display: block;
- transition-timing-function: ease;
- }
+ .awesomplete > ul[hidden],
+ .awesomplete > ul:empty {
+ opacity: 0;
+ transform: scale(0);
+ display: block;
+ transition-timing-function: ease;
+ }
}
- /* Pointer */
- .awesomplete > ul:before {
- content: "";
- position: absolute;
- top: -.43em;
- left: 1em;
- width: 0; height: 0;
- padding: .4em;
- background: white;
- border: inherit;
- border-right: 0;
- border-bottom: 0;
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg);
- }
+ /* Pointer */
+ .awesomplete > ul:before {
+ content: "";
+ position: absolute;
+ top: -.43em;
+ left: 1em;
+ width: 0; height: 0;
+ padding: .4em;
+ background: white;
+ border: inherit;
+ border-right: 0;
+ border-bottom: 0;
+ -webkit-transform: rotate(45deg);
+ transform: rotate(45deg);
+ }
- .awesomplete > ul > li {
- position: relative;
- padding: .2em .5em;
- cursor: pointer;
- }
+ .awesomplete > ul > li {
+ position: relative;
+ padding: .2em .5em;
+ cursor: pointer;
+ }
- .awesomplete > ul > li:hover {
- background: hsl(200, 40%, 80%);
- color: black;
- }
+ .awesomplete > ul > li:hover {
+ background: hsl(200, 40%, 80%);
+ color: black;
+ }
- .awesomplete > ul > li[aria-selected="true"] {
- background: hsl(205, 40%, 40%);
- color: white;
- }
+ .awesomplete > ul > li[aria-selected="true"] {
+ background: hsl(205, 40%, 40%);
+ color: white;
+ }
- .awesomplete mark {
- color: rgb(80, 151, 186);
+ .awesomplete mark {
+ color: rgb(80, 151, 186);
background: white;
- }
+ }
- .awesomplete li:hover mark {
- background: hsl(200, 40%, 80%);
- }
+ .awesomplete li:hover mark {
+ background: hsl(200, 40%, 80%);
+ }
diff --git a/src/css/static.css b/src/css/static.css
index 440649aff..f55fed906 100644
--- a/src/css/static.css
+++ b/src/css/static.css
@@ -91,31 +91,31 @@ the content, the padding and border, but not the margin.
}
.static .hugespacer {
- height: 50px;
+ height: 50px;
}
.static .bigspacer {
- height: 30px;
+ height: 30px;
}
.static .spacer {
- height: 10px;
+ height: 10px;
}
.static .smallspacer {
- height: 5px;
+ height: 5px;
}
.static .highlight {
- background-color: white;
- color: var(--medGrey);
- font-size: 94%; /* same as
*/
+ background-color: white;
+ color: var(--medGrey);
+ font-size: 94%; /* same as */
}
strong {
- background-color: white;
- color: var(--medGrey);
- font-size: 94%; /* same as */
+ background-color: white;
+ color: var(--medGrey);
+ font-size: 94%; /* same as */
}
.static.container {
diff --git a/src/middleware/changeURL.js b/src/middleware/changeURL.js
index ec0ef1a5d..333b87b0f 100644
--- a/src/middleware/changeURL.js
+++ b/src/middleware/changeURL.js
@@ -136,7 +136,7 @@ export const changeURLMiddleware = (store) => (next) => (action) => {
case types.PAGE_CHANGE:
/* desired behaviour depends on the displayComponent selected... */
if (action.displayComponent === "main" || action.displayComponent === "datasetLoader") {
- pathname = action.path || pathname;
+ pathname = action.path || pathname;
} else if (action.displayComponent === "splash") {
pathname = action.path;
} else if (pathname.startsWith(`/${action.displayComponent}`)) {
diff --git a/src/util/polyfills.js b/src/util/polyfills.js
index bdbccedbc..c7db5be48 100644
--- a/src/util/polyfills.js
+++ b/src/util/polyfills.js
@@ -10,7 +10,7 @@ require('es6-object-assign/auto');
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith#Polyfill
if (!String.prototype.startsWith) {
- String.prototype.startsWith = function(search, pos) {
- return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
- };
+ String.prototype.startsWith = function(search, pos) {
+ return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
+ };
}
diff --git a/webpack.config.js b/webpack.config.js
index 6a1add420..0425aa169 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -97,23 +97,23 @@ const generateConfig = ({extensionPath, devMode=false, customOutputPath}) => {
},
module: {
rules: [
- {
- test: /\.js$/,
- loader: 'babel-loader',
- include: directoriesToTransform,
- options: {
- cwd: path.resolve(__dirname)
- }
- },
- {
- test: /\.css$/,
- use: ["style-loader", "css-loader"]
- },
- {
- test: /\.(gif|png|jpe?g|svg)$/i,
- use: "file-loader",
- include: directoriesToTransform
- }
+ {
+ test: /\.js$/,
+ loader: 'babel-loader',
+ include: directoriesToTransform,
+ options: {
+ cwd: path.resolve(__dirname)
+ }
+ },
+ {
+ test: /\.css$/,
+ use: ["style-loader", "css-loader"]
+ },
+ {
+ test: /\.(gif|png|jpe?g|svg)$/i,
+ use: "file-loader",
+ include: directoriesToTransform
+ }
]
}
};