From 8555cf72dec9321fa010296ce6988cf7b7cf602b Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Sun, 26 Dec 2021 00:30:09 -0500 Subject: convert theme from submodule to regular files --- themes/hugo-coder | 1 - themes/hugo-coder/assets/scss/_content.scss | 240 ++++++++++++++++++++++++++++ 2 files changed, 240 insertions(+), 1 deletion(-) delete mode 160000 themes/hugo-coder create mode 100644 themes/hugo-coder/assets/scss/_content.scss (limited to 'themes/hugo-coder/assets/scss/_content.scss') diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 index 55b2a15..0000000 --- a/themes/hugo-coder +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 55b2a150f990bc56364dba347bc9acc6aab07be3 diff --git a/themes/hugo-coder/assets/scss/_content.scss b/themes/hugo-coder/assets/scss/_content.scss new file mode 100644 index 0000000..bb2720c --- /dev/null +++ b/themes/hugo-coder/assets/scss/_content.scss @@ -0,0 +1,240 @@ +.content { + flex: 1; + display: flex; + margin-top: 1.6rem; + margin-bottom: 3.2rem; + + article { + details { + summary { + cursor: pointer; + } + } + + header { + margin-top: 6.4rem; + margin-bottom: 3.2rem; + + h1 { + font-size: 4.2rem; + line-height: 4.6rem; + margin: 0; + + @media only screen and (max-width: 768px) { + font-size: 4rem; + line-height: 4.4rem; + } + } + } + + footer { + margin-top: 4rem; + + .see-also { + margin: 3.2rem 0; + + h3 { + margin: 3.2rem 0; + } + } + } + + p { + text-align: justify; + text-justify: auto; + hyphens: auto; + } + } + + .post { + .post-title { + margin-bottom: 0.75em; + } + + .post-meta { + i { + text-align: center; + width: 1.6rem; + margin-left: 0; + margin-right: 0.5rem; + } + + .date { + .posted-on { + margin-left: 0; + margin-right: 1.5rem; + } + } + + .tags { + .tag { + display: inline-block; + padding: 0.3rem 0.6rem; + background-color: $alt-bg-color; + border-radius: 0.6rem; + line-height: 1.4em; + + a { + color: $fg-color; + } + a:active { + color: $fg-color; + } + } + } + } + } + + figure { + margin: 0; + padding: 0; + } + + figcaption p { + text-align: center; + font-style: italic; + font-size: 1.6rem; + margin: 0; + } +} + +.avatar img { + width: 20rem; + height: auto; + border-radius: 50%; + + @media only screen and (max-width: 768px) { + width: 10rem; + } +} + +.list { + ul { + margin: 3.2rem 0 3.2rem 0; + list-style: none; + padding: 0; + + li { + font-size: 1.8rem; + + @media only screen and (max-width: 768px) { + margin: 1.6rem 0 1.6rem 0; + } + + .date { + display: inline-block; + flex: 1; + width: 20rem; + text-align: right; + margin-right: 3rem; + + @media only screen and (max-width: 768px) { + display: block; + text-align: left; + } + } + + .title { + font-size: 1.8rem; + flex: 2; + color: $fg-color; + font-family: $font-family; + font-weight: 700; + + &:hover, + &:focus { + color: $link-color; + } + } + } + } + + ul:not(.pagination) { + li { + @media only screen and (min-width: 768.1px) { + display: flex; + } + } + } +} + +.centered { + display: flex; + align-items: center; + justify-content: center; + + .about { + text-align: center; + + h1 { + margin-top: 2rem; + margin-bottom: 0.5rem; + } + + h2 { + margin-top: 1rem; + margin-bottom: 0.5rem; + font-size: 2.4rem; + + @media only screen and (max-width: 768px) { + font-size: 2rem; + } + } + + ul { + list-style: none; + margin: 3rem 0 1rem 0; + padding: 0; + + li { + display: inline-block; + position: relative; + + a { + color: $fg-color; + text-transform: uppercase; + margin-left: 1rem; + margin-right: 1rem; + font-size: 1.6rem; + + &:hover, + &:focus { + color: $link-color; + } + + @media only screen and (max-width: 768px) { + font-size: 1.4rem; + } + + i { + font-size: 3.2rem; + } + } + } + } + } + + .error { + text-align: center; + + h1 { + margin-top: 2rem; + margin-bottom: 0.5rem; + font-size: 4.6rem; + + @media only screen and (max-width: 768px) { + font-size: 3.2rem; + } + } + + h2 { + margin-top: 2rem; + margin-bottom: 3.2rem; + font-size: 3.2rem; + + @media only screen and (max-width: 768px) { + font-size: 2.8rem; + } + } + } +} -- cgit v1.2.3