use ye olde rel='alternate stylesheets' for theming
This commit is contained in:
parent
c9c58ab0ec
commit
6c88201e23
|
@ -20,9 +20,15 @@
|
|||
<meta name="msapplication-TileImage" content="vector-icons/mstile-144x144.png">
|
||||
<meta name="msapplication-config" content="vector-icons/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<% for(var i=0; i<htmlWebpackPlugin.files.css.length; i++) {%>
|
||||
<link href="<%= htmlWebpackPlugin.files.css[i] %>" rel="stylesheet">
|
||||
<% } %>
|
||||
<% for (var i=0; i < htmlWebpackPlugin.files.css.length; i++) {
|
||||
var file = htmlWebpackPlugin.files.css[i];
|
||||
if (file.match(/^theme-(?!light\.)/)) {
|
||||
%>
|
||||
<link rel="alternate stylesheet" title="<%= file %>" href="<%= file %>">
|
||||
<% } else { %>
|
||||
<link rel="stylesheet" href="<%= file %>">
|
||||
<% }
|
||||
} %>
|
||||
</head>
|
||||
<body style="height: 100%;">
|
||||
<section id="matrixchat" style="height: 100%;"></section>
|
||||
|
|
|
@ -30,7 +30,6 @@ require('babel-polyfill');
|
|||
|
||||
// CSS requires: just putting them here for now as CSS is going to be
|
||||
// refactored "soon" anyway
|
||||
require('../../build/dark.scss');
|
||||
require('gemini-scrollbar/gemini-scrollbar.css');
|
||||
require('gfm.css/gfm.css');
|
||||
require('highlight.js/styles/github.css');
|
||||
|
|
|
@ -15,6 +15,10 @@ module.exports = {
|
|||
// point, so that it doesn't block the pageload, but that is a separate
|
||||
// problem)
|
||||
"olm": "./src/vector/olm-loader.js",
|
||||
|
||||
// CSS themes
|
||||
"theme-light": "./build/light.scss",
|
||||
"theme-dark": "./build/dark.scss",
|
||||
},
|
||||
module: {
|
||||
preLoaders: [
|
||||
|
|
Loading…
Reference in New Issue