summaryrefslogtreecommitdiff
path: root/themes/PaperMod/assets/css
diff options
context:
space:
mode:
Diffstat (limited to 'themes/PaperMod/assets/css')
-rw-r--r--themes/PaperMod/assets/css/common/main.css8
-rw-r--r--themes/PaperMod/assets/css/common/post-entry.css10
-rw-r--r--themes/PaperMod/assets/css/common/post-single.css35
-rw-r--r--themes/PaperMod/assets/css/common/profile-mode.css9
-rw-r--r--themes/PaperMod/assets/css/core/license.css2
-rw-r--r--themes/PaperMod/assets/css/core/theme-vars.css4
-rw-r--r--themes/PaperMod/assets/css/core/zmedia.css6
-rw-r--r--themes/PaperMod/assets/css/hljs/an-old-hope.min.css63
-rw-r--r--themes/PaperMod/assets/css/includes/chroma-mod.css24
-rw-r--r--themes/PaperMod/assets/css/includes/chroma-styles.css86
-rw-r--r--themes/PaperMod/assets/css/includes/scroll-bar.css4
11 files changed, 156 insertions, 95 deletions
diff --git a/themes/PaperMod/assets/css/common/main.css b/themes/PaperMod/assets/css/common/main.css
index 50022ac..25ae4da 100644
--- a/themes/PaperMod/assets/css/common/main.css
+++ b/themes/PaperMod/assets/css/common/main.css
@@ -27,12 +27,10 @@
margin-inline-start: auto;
}
-.social-icons {
- padding: 12px 0;
-}
-.social-icons a:not(:last-of-type) {
- margin-inline-end: 12px;
+.social-icons a {
+ display: inline-flex;
+ padding: 10px;
}
.social-icons a svg {
diff --git a/themes/PaperMod/assets/css/common/post-entry.css b/themes/PaperMod/assets/css/common/post-entry.css
index 885aa2a..c3cba37 100644
--- a/themes/PaperMod/assets/css/common/post-entry.css
+++ b/themes/PaperMod/assets/css/common/post-entry.css
@@ -80,13 +80,17 @@
bottom: 0;
}
-.entry-cover,
-.entry-isdraft {
- font-size: 14px;
+.entry-hint {
color: var(--secondary);
}
+.entry-hint-parent {
+ display: flex;
+ justify-content: space-between;
+}
+
.entry-cover {
+ font-size: 14px;
margin-bottom: var(--gap);
text-align: center;
}
diff --git a/themes/PaperMod/assets/css/common/post-single.css b/themes/PaperMod/assets/css/common/post-single.css
index 47b9888..9f9f479 100644
--- a/themes/PaperMod/assets/css/common/post-single.css
+++ b/themes/PaperMod/assets/css/common/post-single.css
@@ -130,19 +130,18 @@
}
.post-content table {
- margin-bottom: 32px;
+ margin-bottom: var(--content-gap);
}
.post-content table th,
.post-content table:not(.highlighttable, .highlight table, .gist .highlight) td {
min-width: 80px;
- padding: 12px 8px;
+ padding: 8px 5px;
line-height: 1.5;
border-bottom: 1px solid var(--border);
}
.post-content table th {
- font-size: 14px;
text-align: start;
}
@@ -156,7 +155,7 @@
.post-content .highlight:not(table) {
margin: 10px auto;
- background: var(--hljs-bg) !important;
+ background: var(--code-block-bg) !important;
border-radius: var(--radius);
direction: ltr;
}
@@ -200,11 +199,11 @@
}
.post-content pre code {
- display: block;
+ display: grid;
margin: auto 0;
padding: 10px;
color: rgb(213, 213, 214);
- background: var(--hljs-bg) !important;
+ background: var(--code-block-bg) !important;
border-radius: var(--radius);
overflow-x: auto;
word-break: break-all;
@@ -296,10 +295,18 @@
margin-top: 56px;
}
+.post-footer>* {
+ margin-bottom: 10px;
+}
+
+.post-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+}
+
.post-tags li {
display: inline-block;
- margin-inline-end: 3px;
- margin-bottom: 5px;
}
.post-tags a,
@@ -312,8 +319,7 @@
.post-tags a {
display: block;
- padding-inline-start: 14px;
- padding-inline-end: 14px;
+ padding: 0 14px;
color: var(--secondary);
font-size: 14px;
line-height: 34px;
@@ -326,15 +332,16 @@
}
.share-buttons {
- margin: 14px 0;
- padding-inline-start: var(--radius);
+ padding: 10px;
display: flex;
justify-content: center;
overflow-x: auto;
+ gap: 10px;
}
+.share-buttons li,
.share-buttons a {
- margin-top: 10px;
+ display: inline-flex;
}
.share-buttons a:not(:last-of-type) {
@@ -355,10 +362,8 @@ h6:hover .anchor {
}
.paginav {
- margin: 10px 0;
display: flex;
line-height: 30px;
- border-radius: var(--radius);
}
.paginav a {
diff --git a/themes/PaperMod/assets/css/common/profile-mode.css b/themes/PaperMod/assets/css/common/profile-mode.css
index 58f2819..9e98df5 100644
--- a/themes/PaperMod/assets/css/common/profile-mode.css
+++ b/themes/PaperMod/assets/css/common/profile-mode.css
@@ -10,19 +10,20 @@
text-align: center;
}
-.profile .profile_inner h1 {
- padding: 12px 0;
+.profile .profile_inner {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 10px;
}
.profile img {
- display: inline-table;
border-radius: 50%;
}
.buttons {
flex-wrap: wrap;
max-width: 400px;
- margin: 0 auto;
}
.button {
diff --git a/themes/PaperMod/assets/css/core/license.css b/themes/PaperMod/assets/css/core/license.css
index 6234007..fb3dfec 100644
--- a/themes/PaperMod/assets/css/core/license.css
+++ b/themes/PaperMod/assets/css/core/license.css
@@ -2,5 +2,5 @@
PaperMod v7
License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE
Copyright (c) 2020 nanxiaobei and adityatelange
- Copyright (c) 2021-2023 adityatelange
+ Copyright (c) 2021-2024 adityatelange
*/
diff --git a/themes/PaperMod/assets/css/core/theme-vars.css b/themes/PaperMod/assets/css/core/theme-vars.css
index fd0c5ee..db1845d 100644
--- a/themes/PaperMod/assets/css/core/theme-vars.css
+++ b/themes/PaperMod/assets/css/core/theme-vars.css
@@ -12,7 +12,7 @@
--secondary: rgb(108, 108, 108);
--tertiary: rgb(214, 214, 214);
--content: rgb(31, 31, 31);
- --hljs-bg: rgb(28, 29, 33);
+ --code-block-bg: rgb(28, 29, 33);
--code-bg: rgb(245, 245, 245);
--border: rgb(238, 238, 238);
}
@@ -24,7 +24,7 @@
--secondary: rgb(155, 156, 157);
--tertiary: rgb(65, 66, 68);
--content: rgb(196, 196, 197);
- --hljs-bg: rgb(46, 46, 51);
+ --code-block-bg: rgb(46, 46, 51);
--code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51);
}
diff --git a/themes/PaperMod/assets/css/core/zmedia.css b/themes/PaperMod/assets/css/core/zmedia.css
index 210d486..a68fd71 100644
--- a/themes/PaperMod/assets/css/core/zmedia.css
+++ b/themes/PaperMod/assets/css/core/zmedia.css
@@ -36,6 +36,12 @@
}
}
+@media screen and (max-width: 340px) {
+ .share-buttons {
+ justify-content: unset;
+ }
+}
+
@media (prefers-reduced-motion) {
/* terms; profile-mode; post-single; post-entry; post-entry; search; search */
.terms-tags a:active,
diff --git a/themes/PaperMod/assets/css/hljs/an-old-hope.min.css b/themes/PaperMod/assets/css/hljs/an-old-hope.min.css
deleted file mode 100644
index b5dabdf..0000000
--- a/themes/PaperMod/assets/css/hljs/an-old-hope.min.css
+++ /dev/null
@@ -1,63 +0,0 @@
-.hljs-comment,
-.hljs-quote {
- color: #b6b18b;
-}
-
-.hljs-deletion,
-.hljs-name,
-.hljs-regexp,
-.hljs-selector-class,
-.hljs-selector-id,
-.hljs-tag,
-.hljs-template-variable,
-.hljs-variable {
- color: #eb3c54;
-}
-
-.hljs-built_in,
-.hljs-builtin-name,
-.hljs-link,
-.hljs-literal,
-.hljs-meta,
-.hljs-number,
-.hljs-params,
-.hljs-type {
- color: #e7ce56;
-}
-
-.hljs-attribute {
- color: #ee7c2b;
-}
-
-.hljs-addition,
-.hljs-bullet,
-.hljs-string,
-.hljs-symbol {
- color: #4fb4d7;
-}
-
-.hljs-section,
-.hljs-title {
- color: #78bb65;
-}
-
-.hljs-keyword,
-.hljs-selector-tag {
- color: #b45ea4;
-}
-
-.hljs {
- display: block;
- overflow-x: auto;
- background: #1c1d21;
- color: #c0c5ce;
- padding: .5em;
-}
-
-.hljs-emphasis {
- font-style: italic;
-}
-
-.hljs-strong {
- font-weight: 700;
-}
diff --git a/themes/PaperMod/assets/css/includes/chroma-mod.css b/themes/PaperMod/assets/css/includes/chroma-mod.css
new file mode 100644
index 0000000..ad89b96
--- /dev/null
+++ b/themes/PaperMod/assets/css/includes/chroma-mod.css
@@ -0,0 +1,24 @@
+.chroma {
+ background-color: unset !important;
+}
+
+.chroma .hl {
+ display: flex;
+}
+
+.chroma .lnt {
+ padding: 0 0 0 12px;
+}
+
+.highlight pre.chroma code {
+ padding: 8px 0;
+}
+
+.highlight pre.chroma .line .cl,
+.chroma .ln {
+ padding: 0 10px;
+}
+
+.chroma .lntd:last-of-type {
+ width: 100%;
+}
diff --git a/themes/PaperMod/assets/css/includes/chroma-styles.css b/themes/PaperMod/assets/css/includes/chroma-styles.css
new file mode 100644
index 0000000..63a73ab
--- /dev/null
+++ b/themes/PaperMod/assets/css/includes/chroma-styles.css
@@ -0,0 +1,86 @@
+/* Background */ .bg { color: #cad3f5; background-color: #24273a; }
+/* PreWrapper */ .chroma { color: #cad3f5; background-color: #24273a; }
+/* Other */ .chroma .x { }
+/* Error */ .chroma .err { color: #ed8796 }
+/* 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: #474733 }
+/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #8087a2 }
+/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #8087a2 }
+/* Line */ .chroma .line { display: flex; }
+/* Keyword */ .chroma .k { color: #c6a0f6 }
+/* KeywordConstant */ .chroma .kc { color: #f5a97f }
+/* KeywordDeclaration */ .chroma .kd { color: #ed8796 }
+/* KeywordNamespace */ .chroma .kn { color: #8bd5ca }
+/* KeywordPseudo */ .chroma .kp { color: #c6a0f6 }
+/* KeywordReserved */ .chroma .kr { color: #c6a0f6 }
+/* KeywordType */ .chroma .kt { color: #ed8796 }
+/* Name */ .chroma .n { }
+/* NameAttribute */ .chroma .na { color: #8aadf4 }
+/* NameBuiltin */ .chroma .nb { color: #91d7e3 }
+/* NameBuiltinPseudo */ .chroma .bp { color: #91d7e3 }
+/* NameClass */ .chroma .nc { color: #eed49f }
+/* NameConstant */ .chroma .no { color: #eed49f }
+/* NameDecorator */ .chroma .nd { color: #8aadf4; font-weight: bold }
+/* NameEntity */ .chroma .ni { color: #8bd5ca }
+/* NameException */ .chroma .ne { color: #f5a97f }
+/* NameFunction */ .chroma .nf { color: #8aadf4 }
+/* NameFunctionMagic */ .chroma .fm { color: #8aadf4 }
+/* NameLabel */ .chroma .nl { color: #91d7e3 }
+/* NameNamespace */ .chroma .nn { color: #f5a97f }
+/* NameOther */ .chroma .nx { }
+/* NameProperty */ .chroma .py { color: #f5a97f }
+/* NameTag */ .chroma .nt { color: #c6a0f6 }
+/* NameVariable */ .chroma .nv { color: #f4dbd6 }
+/* NameVariableClass */ .chroma .vc { color: #f4dbd6 }
+/* NameVariableGlobal */ .chroma .vg { color: #f4dbd6 }
+/* NameVariableInstance */ .chroma .vi { color: #f4dbd6 }
+/* NameVariableMagic */ .chroma .vm { color: #f4dbd6 }
+/* Literal */ .chroma .l { }
+/* LiteralDate */ .chroma .ld { }
+/* LiteralString */ .chroma .s { color: #a6da95 }
+/* LiteralStringAffix */ .chroma .sa { color: #ed8796 }
+/* LiteralStringBacktick */ .chroma .sb { color: #a6da95 }
+/* LiteralStringChar */ .chroma .sc { color: #a6da95 }
+/* LiteralStringDelimiter */ .chroma .dl { color: #8aadf4 }
+/* LiteralStringDoc */ .chroma .sd { color: #6e738d }
+/* LiteralStringDouble */ .chroma .s2 { color: #a6da95 }
+/* LiteralStringEscape */ .chroma .se { color: #8aadf4 }
+/* LiteralStringHeredoc */ .chroma .sh { color: #6e738d }
+/* LiteralStringInterpol */ .chroma .si { color: #a6da95 }
+/* LiteralStringOther */ .chroma .sx { color: #a6da95 }
+/* LiteralStringRegex */ .chroma .sr { color: #8bd5ca }
+/* LiteralStringSingle */ .chroma .s1 { color: #a6da95 }
+/* LiteralStringSymbol */ .chroma .ss { color: #a6da95 }
+/* LiteralNumber */ .chroma .m { color: #f5a97f }
+/* LiteralNumberBin */ .chroma .mb { color: #f5a97f }
+/* LiteralNumberFloat */ .chroma .mf { color: #f5a97f }
+/* LiteralNumberHex */ .chroma .mh { color: #f5a97f }
+/* LiteralNumberInteger */ .chroma .mi { color: #f5a97f }
+/* LiteralNumberIntegerLong */ .chroma .il { color: #f5a97f }
+/* LiteralNumberOct */ .chroma .mo { color: #f5a97f }
+/* Operator */ .chroma .o { color: #91d7e3; font-weight: bold }
+/* OperatorWord */ .chroma .ow { color: #91d7e3; font-weight: bold }
+/* Punctuation */ .chroma .p { }
+/* Comment */ .chroma .c { color: #6e738d; font-style: italic }
+/* CommentHashbang */ .chroma .ch { color: #6e738d; font-style: italic }
+/* CommentMultiline */ .chroma .cm { color: #6e738d; font-style: italic }
+/* CommentSingle */ .chroma .c1 { color: #6e738d; font-style: italic }
+/* CommentSpecial */ .chroma .cs { color: #6e738d; font-style: italic }
+/* CommentPreproc */ .chroma .cp { color: #6e738d; font-style: italic }
+/* CommentPreprocFile */ .chroma .cpf { color: #6e738d; font-weight: bold; font-style: italic }
+/* Generic */ .chroma .g { }
+/* GenericDeleted */ .chroma .gd { color: #ed8796; background-color: #363a4f }
+/* GenericEmph */ .chroma .ge { font-style: italic }
+/* GenericError */ .chroma .gr { color: #ed8796 }
+/* GenericHeading */ .chroma .gh { color: #f5a97f; font-weight: bold }
+/* GenericInserted */ .chroma .gi { color: #a6da95; background-color: #363a4f }
+/* GenericOutput */ .chroma .go { }
+/* GenericPrompt */ .chroma .gp { }
+/* GenericStrong */ .chroma .gs { font-weight: bold }
+/* GenericSubheading */ .chroma .gu { color: #f5a97f; font-weight: bold }
+/* GenericTraceback */ .chroma .gt { color: #ed8796 }
+/* GenericUnderline */ .chroma .gl { text-decoration: underline }
+/* TextWhitespace */ .chroma .w { }
diff --git a/themes/PaperMod/assets/css/includes/scroll-bar.css b/themes/PaperMod/assets/css/includes/scroll-bar.css
index 47405de..f6e577d 100644
--- a/themes/PaperMod/assets/css/includes/scroll-bar.css
+++ b/themes/PaperMod/assets/css/includes/scroll-bar.css
@@ -31,7 +31,7 @@
}
.post-content :not(table) ::-webkit-scrollbar-thumb {
- border: 2px solid var(--hljs-bg);
+ border: 2px solid var(--code-block-bg);
background: rgb(113, 113, 117);
}
@@ -60,4 +60,4 @@
width: 19px;
height: 11px;
}
-} \ No newline at end of file
+}