Split orange theme out into its own stylesheet

This commit is contained in:
James Panther 2019-10-28 12:51:13 +11:00
parent f8fa62605d
commit 1b5d9d3c1a
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
16 changed files with 22 additions and 46 deletions

View File

@ -6,10 +6,7 @@
<link rel="canonical" href="{{ .Permalink }}" /> <link rel="canonical" href="{{ .Permalink }}" />
<!-- Theme CSS --> <!-- Theme CSS -->
<link rel="stylesheet" href="{{ "assets/style.css" | absURL }}"> <link rel="stylesheet" href="{{ with $.Site.Params.ThemeColor | default "orange" }}{{ printf "assets/%s.css" . | absURL }}{{ end }}">
{{ if (ne $.Site.Params.ThemeColor "orange") }}
<link rel="stylesheet" href="{{ (printf "assets/%s.css" $.Site.Params.ThemeColor) | absURL }}">
{{ end }}
<!-- Custom CSS to override theme properties (/static/style.css) --> <!-- Custom CSS to override theme properties (/static/style.css) -->
{{ if (fileExists "static/style.css") -}} {{ if (fileExists "static/style.css") -}}

View File

@ -1,10 +1,4 @@
@import '../main.css'; @import '../style';
@import '../header.css';
@import '../logo.css';
@import '../pagination.css';
@import '../post.css';
@import '../syntax.css';
@import '../variables.css';
:root { :root {
--accent: #23B0FF; --accent: #23B0FF;

View File

@ -1,10 +1,4 @@
@import '../main.css'; @import '../style';
@import '../header.css';
@import '../logo.css';
@import '../pagination.css';
@import '../post.css';
@import '../syntax.css';
@import '../variables.css';
:root { :root {
--accent: #78E2A0; --accent: #78E2A0;

View File

@ -0,0 +1,8 @@
@import '../style';
:root {
--accent: #FFA86A;
--background: color-mod(var(--accent) blend(#1D1E28 98%));
--color: white;
--border-color: rgba(255, 255, 255, .1);
}

View File

@ -1,10 +1,4 @@
@import '../main.css'; @import '../style';
@import '../header.css';
@import '../logo.css';
@import '../pagination.css';
@import '../post.css';
@import '../syntax.css';
@import '../variables.css';
:root { :root {
--accent: #EE72F1; --accent: #EE72F1;

View File

@ -1,10 +1,4 @@
@import '../main.css'; @import '../style';
@import '../header.css';
@import '../logo.css';
@import '../pagination.css';
@import '../post.css';
@import '../syntax.css';
@import '../variables.css';
:root { :root {
--accent: #FF6266; --accent: #FF6266;

View File

@ -2,12 +2,12 @@
font-family: 'Fira Code'; font-family: 'Fira Code';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url("../fonts/FiraCode-Regular.woff") format("woff"); src: url("../../fonts/FiraCode-Regular.woff") format("woff");
} }
@font-face { @font-face {
font-family: 'Fira Code'; font-family: 'Fira Code';
font-style: normal; font-style: normal;
font-weight: 800; font-weight: 800;
src: url("../fonts/FiraCode-Bold.woff") format("woff"); src: url("../../fonts/FiraCode-Bold.woff") format("woff");
} }

View File

@ -38,7 +38,7 @@ code.language-html {
.token.selector, .token.selector,
.token.tag, .token.tag,
.token.punctuation { .token.punctuation {
color: white; color: var(--color);
} }
.token.comment, .token.comment,

View File

@ -1,9 +1,4 @@
:root { :root {
--accent: #FFA86A;
--background: color-mod(var(--accent) blend(#1D1E28 98%));
--color: white;
--border-color: rgba(255, 255, 255, .1);
/* variables for js, must be the same as these in @custom-media queries */ /* variables for js, must be the same as these in @custom-media queries */
--phoneWidth: (max-width: 684px); --phoneWidth: (max-width: 684px);
--tabletWidth: (max-width: 900px); --tabletWidth: (max-width: 900px);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
static/assets/orange.css Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@ module.exports = {
join("source", "js", "languageSelector.js") join("source", "js", "languageSelector.js")
], ],
"prism.js": join("source", "js", "prism.js"), "prism.js": join("source", "js", "prism.js"),
"style.css": join("source", "css", "style.css"), "orange.css": join("source", "css", "color", "orange.css"),
"red.css": join("source", "css", "color", "red.css"), "red.css": join("source", "css", "color", "red.css"),
"blue.css": join("source", "css", "color", "blue.css"), "blue.css": join("source", "css", "color", "blue.css"),
"green.css": join("source", "css", "color", "green.css"), "green.css": join("source", "css", "color", "green.css"),