Skip to content

Commit

Permalink
serve roboto font locally (#2519)
Browse files Browse the repository at this point in the history
* serve roboto locally

* add trailing comma

* fix long line for linter
  • Loading branch information
Alanna Scott authored Apr 3, 2017
1 parent 0c0666c commit dcc6f2a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class QueryAutoRefresh extends React.PureComponent {
const { queries } = this.props;
const queryKeys = Object.keys(queries);
const queriesAsArray = queryKeys.map(key => queries[key]);
return queriesAsArray.some(
q => ['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0);
return queriesAsArray.some(q =>
['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0);
}
startTimer() {
if (!(this.timer)) {
Expand Down
Binary file not shown.
Binary file not shown.
7 changes: 0 additions & 7 deletions superset/assets/stylesheets/less/cosmo/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
// Bootswatch
// -----------------------------------------------------

@web-font-path: "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700";

.web-font(@path) {
@import url("@{path}");
}
.web-font(@web-font-path);

// Navbar =====================================================================

.navbar {
Expand Down
6 changes: 6 additions & 0 deletions superset/assets/stylesheets/superset.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@font-face {
font-family: "Roboto";
src: url("./fonts/Roboto-Regular.woff2") format("woff2"),
url("./fonts/Roboto-Regular.woff") format("woff");
}

body {
margin: 0px !important;
}
Expand Down
2 changes: 1 addition & 1 deletion superset/assets/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const config = {
/* for font-awesome */
{
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'url-loader?limit=10000&minetype=application/font-woff',
loader: 'url-loader?limit=10000&mimetype=application/font-woff',
},
{
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
Expand Down

0 comments on commit dcc6f2a

Please sign in to comment.