Skip to content

Commit

Permalink
Dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeio committed May 2, 2018
1 parent 3acbbd5 commit a011204
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
9 changes: 8 additions & 1 deletion Website/SwlMarket/Views/Home/Item.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@
document.getElementById('priceChart').innerHTML = "";
priceData.x = result.dates;
priceData.y = result.prices;
Plotly.plot('priceChart', [priceData]);
var layout = {
font: {
color: '#ffffff'
},
paper_bgcolor: '#222222',
plot_bgcolor: '#222222',
};
Plotly.plot('priceChart', [priceData], layout);
},
error: function () {
$('#priceChart').html("Unable to retrieve pricing data");
Expand Down
6 changes: 2 additions & 4 deletions Website/SwlMarket/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
<link rel="stylesheet" href="~/css/site.css" />
</environment>
<environment exclude="Development">
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css"
asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
</environment>
@Html.Raw(JavaScriptSnippet.FullScript)
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
Expand Down
9 changes: 7 additions & 2 deletions Website/SwlMarket/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,19 @@
font-weight: bold;
}
.Epic {
color: purple;
color: #a46ae7;
font-weight: bold;
}
.Mythic {
color: darkorange;
font-weight: bold;
}
.Legendary {
color: red;
color: #f12f6e;
font-weight: bold;
}

/*Bootstrap overrides*/
.table-striped > tbody > tr:nth-of-type(odd) {
background-color: #2A2A2A;
}
2 changes: 1 addition & 1 deletion Website/SwlMarket/wwwroot/css/site.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a011204

Please sign in to comment.