aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2023-01-22 21:54:23 +0100
committerJulien Dessaux2023-01-22 21:58:05 +0100
commit7d34bfeeca80ac88005eaa3d5db6c6a99be09d8b (patch)
tree40c7864e95a88f80f5403b90089acf78068d4755
parentTypos (diff)
downloadwww-7d34bfeeca80ac88005eaa3d5db6c6a99be09d8b.tar.gz
www-7d34bfeeca80ac88005eaa3d5db6c6a99be09d8b.tar.bz2
www-7d34bfeeca80ac88005eaa3d5db6c6a99be09d8b.zip
Switched theme from solarized to selenized
-rw-r--r--assets/code.css86
-rw-r--r--assets/footer.css6
-rw-r--r--assets/header.css6
-rw-r--r--assets/pagination.css12
-rw-r--r--assets/selenized.css28
-rw-r--r--assets/solarized.css30
-rw-r--r--config.toml2
-rw-r--r--layouts/404.html7
-rw-r--r--layouts/_default/baseof.html7
9 files changed, 135 insertions, 49 deletions
diff --git a/assets/code.css b/assets/code.css
new file mode 100644
index 0000000..3f83b8a
--- /dev/null
+++ b/assets/code.css
@@ -0,0 +1,86 @@
+/* Background */ .bg { color: #b9b9b9; background-color: #181818; }
+/* PreWrapper */ .chroma { color: #b9b9b9; background-color: #181818; }
+/* Other */ .chroma .x { color: #e67f43 }
+/* Error */ .chroma .err { }
+/* CodeLine */ .chroma .cl { }
+/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
+/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
+/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
+/* LineHighlight */ .chroma .hl { background-color: #dedede }
+/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #495050 }
+/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #495050 }
+/* Line */ .chroma .line { display: flex; }
+/* Keyword */ .chroma .k { color: #70b443 }
+/* KeywordConstant */ .chroma .kc { color: #e67f43 }
+/* KeywordDeclaration */ .chroma .kd { color: #368aeb }
+/* KeywordNamespace */ .chroma .kn { color: #70b443 }
+/* KeywordPseudo */ .chroma .kp { color: #70b443 }
+/* KeywordReserved */ .chroma .kr { color: #368aeb }
+/* KeywordType */ .chroma .kt { color: #ed4a46 }
+/* Name */ .chroma .n { }
+/* NameAttribute */ .chroma .na { }
+/* NameBuiltin */ .chroma .nb { color: #dbb32d }
+/* NameBuiltinPseudo */ .chroma .bp { color: #368aeb }
+/* NameClass */ .chroma .nc { color: #368aeb }
+/* NameConstant */ .chroma .no { color: #e67f43 }
+/* NameDecorator */ .chroma .nd { color: #368aeb }
+/* NameEntity */ .chroma .ni { color: #e67f43 }
+/* NameException */ .chroma .ne { color: #e67f43 }
+/* NameFunction */ .chroma .nf { color: #368aeb }
+/* NameFunctionMagic */ .chroma .fm { }
+/* NameLabel */ .chroma .nl { }
+/* NameNamespace */ .chroma .nn { }
+/* NameOther */ .chroma .nx { }
+/* NameProperty */ .chroma .py { }
+/* NameTag */ .chroma .nt { color: #368aeb }
+/* NameVariable */ .chroma .nv { color: #368aeb }
+/* NameVariableClass */ .chroma .vc { }
+/* NameVariableGlobal */ .chroma .vg { }
+/* NameVariableInstance */ .chroma .vi { }
+/* NameVariableMagic */ .chroma .vm { }
+/* Literal */ .chroma .l { }
+/* LiteralDate */ .chroma .ld { }
+/* LiteralString */ .chroma .s { color: #3fc5b7 }
+/* LiteralStringAffix */ .chroma .sa { color: #3fc5b7 }
+/* LiteralStringBacktick */ .chroma .sb { color: #777777 }
+/* LiteralStringChar */ .chroma .sc { color: #3fc5b7 }
+/* LiteralStringDelimiter */ .chroma .dl { color: #3fc5b7 }
+/* LiteralStringDoc */ .chroma .sd { }
+/* LiteralStringDouble */ .chroma .s2 { color: #3fc5b7 }
+/* LiteralStringEscape */ .chroma .se { color: #e67f43 }
+/* LiteralStringHeredoc */ .chroma .sh { }
+/* LiteralStringInterpol */ .chroma .si { color: #3fc5b7 }
+/* LiteralStringOther */ .chroma .sx { color: #3fc5b7 }
+/* LiteralStringRegex */ .chroma .sr { color: #ed4a46 }
+/* LiteralStringSingle */ .chroma .s1 { color: #3fc5b7 }
+/* LiteralStringSymbol */ .chroma .ss { color: #3fc5b7 }
+/* LiteralNumber */ .chroma .m { color: #3fc5b7 }
+/* LiteralNumberBin */ .chroma .mb { color: #3fc5b7 }
+/* LiteralNumberFloat */ .chroma .mf { color: #3fc5b7 }
+/* LiteralNumberHex */ .chroma .mh { color: #3fc5b7 }
+/* LiteralNumberInteger */ .chroma .mi { color: #3fc5b7 }
+/* LiteralNumberIntegerLong */ .chroma .il { color: #3fc5b7 }
+/* LiteralNumberOct */ .chroma .mo { color: #3fc5b7 }
+/* Operator */ .chroma .o { color: #70b443 }
+/* OperatorWord */ .chroma .ow { color: #70b443 }
+/* Punctuation */ .chroma .p { }
+/* Comment */ .chroma .c { color: #777777 }
+/* CommentHashbang */ .chroma .ch { color: #777777 }
+/* CommentMultiline */ .chroma .cm { color: #777777 }
+/* CommentSingle */ .chroma .c1 { color: #777777 }
+/* CommentSpecial */ .chroma .cs { color: #70b443 }
+/* CommentPreproc */ .chroma .cp { color: #70b443 }
+/* CommentPreprocFile */ .chroma .cpf { color: #70b443 }
+/* Generic */ .chroma .g { }
+/* GenericDeleted */ .chroma .gd { color: #ed4a46 }
+/* GenericEmph */ .chroma .ge { font-style: italic }
+/* GenericError */ .chroma .gr { color: #ed4a46; font-weight: bold }
+/* GenericHeading */ .chroma .gh { color: #e67f43 }
+/* GenericInserted */ .chroma .gi { color: #70b443 }
+/* GenericOutput */ .chroma .go { }
+/* GenericPrompt */ .chroma .gp { }
+/* GenericStrong */ .chroma .gs { font-weight: bold }
+/* GenericSubheading */ .chroma .gu { color: #368aeb }
+/* GenericTraceback */ .chroma .gt { }
+/* GenericUnderline */ .chroma .gl { }
+/* TextWhitespace */ .chroma .w { }
diff --git a/assets/footer.css b/assets/footer.css
index dfcbbce..4d0bdc0 100644
--- a/assets/footer.css
+++ b/assets/footer.css
@@ -1,11 +1,11 @@
footer {
- background-color: #002b36;
+ background-color: #181818;
padding: 10px;
}
footer p {
- color: #859900;
+ color: #70b443;
text-align: center;
}
footer a {
- color: #859900;
+ color: #70b443;
}
diff --git a/assets/header.css b/assets/header.css
index 9831912..01bb32a 100644
--- a/assets/header.css
+++ b/assets/header.css
@@ -1,5 +1,5 @@
header {
- background-color: #002b36;
+ background-color: #181818;
}
header nav ul {
list-style-type: none;
@@ -19,10 +19,10 @@ header nav ul li a {
text-decoration: none;
}
header nav ul li a:hover {
- background-color: #073642;
+ background-color: #252525;
}
.nav-menu-active {
- background-color: #073642;
+ background-color: #252525;
}
.nav-menu-title {
float: left;
diff --git a/assets/pagination.css b/assets/pagination.css
index abcb0c3..1271bd6 100644
--- a/assets/pagination.css
+++ b/assets/pagination.css
@@ -4,7 +4,7 @@
border-radius:.25rem;
}
.pagination li {
- background-color: #002b36;
+ background-color: #181818;
}
.pagination li a {
border:1px solid rgba(0,0,0,.1);
@@ -23,16 +23,16 @@
border-bottom-right-radius:.25rem
}
.pagination .pagination-enabled a:hover {
- background-color: #073642;
+ background-color: #252525;
z-index: 999;
}
.pagination-disabled a {
- color: #839496;
+ color: #dedede;
}
.pagination-disabled a:hover {
- color: #839496;
+ color: #dedede;
}
.pagination-active a {
- color: white;
- background-color: #073642;
+ color: b9b9b9;
+ background-color: #252525;
}
diff --git a/assets/selenized.css b/assets/selenized.css
new file mode 100644
index 0000000..0541547
--- /dev/null
+++ b/assets/selenized.css
@@ -0,0 +1,28 @@
+html {
+ background-color: #181818;
+ color: #b9b9b9;
+}
+body, main {
+ background-color: #252525;
+}
+a {
+ color: #dbb32d;
+}
+a:visited {
+ color: #e67f43;
+}
+a:hover {
+ color: #ed4a46;
+}
+h1,
+body header nav ul li a,
+body header nav ul li a:visited {
+ color: #ed4a46;
+}
+h2, h3, h4, h5, h6 {
+ color: #70b443;
+}
+pre, code {
+ background-color: #181818;
+ color: #b9b9b9;
+}
diff --git a/assets/solarized.css b/assets/solarized.css
deleted file mode 100644
index 73dfa3a..0000000
--- a/assets/solarized.css
+++ /dev/null
@@ -1,30 +0,0 @@
-html {
- background-color: #002b36;
- color: #839496;
-}
-body, main {
- background-color: #073642;
-}
-a {
- color: #b58900;
-}
-a:visited {
- color: #cb4b16;
-}
-a:hover {
- color: #cb4b16;
-}
-h1 {
- color: #cb4b16;
-}
-h2,
-h3,
-h4,
-h5,
-h6 {
- color: #859900;
-}
-pre,code {
- background-color: #002b36;
- color: #839496;
-}
diff --git a/config.toml b/config.toml
index cc41e95..1caed55 100644
--- a/config.toml
+++ b/config.toml
@@ -17,7 +17,7 @@ lineAnchors = ''
lineNoStart = 1
lineNos = false
lineNumbersInTable = true
-noClasses = true
+noClasses = false
style = 'solarized-dark'
tabWidth = 2
diff --git a/layouts/404.html b/layouts/404.html
index dcc5604..dfe20b2 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -10,12 +10,13 @@
{{ $base := resources.Get "base.css" -}}
+ {{- $code := resources.Get "code.css" -}}
+ {{- $footer := resources.Get "footer.css" -}}
{{- $header := resources.Get "header.css" -}}
{{- $home := resources.Get "home.css" -}}
{{- $pagination := resources.Get "pagination.css" -}}
- {{- $footer := resources.Get "footer.css" -}}
- {{- $solarized := resources.Get "solarized.css" -}}
- {{- $allCss := slice $base $header $home $pagination $footer $solarized | resources.Concat "static/all.css" | fingerprint | minify -}}
+ {{- $selenized := resources.Get "selenized.css" -}}
+ {{- $allCss := slice $base $code $footer $header $home $pagination $selenized | resources.Concat "static/all.css" | fingerprint | minify -}}
<link rel="stylesheet" href="{{ $allCss.Permalink }}">
{{ range .AlternativeOutputFormats -}}
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 05345a3..239a5ab 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -10,12 +10,13 @@
{{ template "_internal/opengraph.html" . }}
{{ $base := resources.Get "base.css" -}}
+ {{- $code := resources.Get "code.css" -}}
+ {{- $footer := resources.Get "footer.css" -}}
{{- $header := resources.Get "header.css" -}}
{{- $home := resources.Get "home.css" -}}
{{- $pagination := resources.Get "pagination.css" -}}
- {{- $footer := resources.Get "footer.css" -}}
- {{- $solarized := resources.Get "solarized.css" -}}
- {{- $allCss := slice $base $header $home $pagination $footer $solarized | resources.Concat "static/all.css" | fingerprint | minify -}}
+ {{- $selenized := resources.Get "selenized.css" -}}
+ {{- $allCss := slice $base $code $footer $header $home $pagination $selenized | resources.Concat "static/all.css" | fingerprint | minify -}}
<link rel="stylesheet" href="{{ $allCss.Permalink }}">
{{ range .AlternativeOutputFormats -}}