Spaces:
Sleeping
Sleeping
Upload 203 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- app/themes/hugo-theme-stack/.devcontainer/Dockerfile +31 -0
- app/themes/hugo-theme-stack/.devcontainer/devcontainer.json +45 -0
- app/themes/hugo-theme-stack/.github/FUNDING.yml +2 -0
- app/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/bug_report.yml +65 -0
- app/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/config.yml +5 -0
- app/themes/hugo-theme-stack/.gitignore +4 -0
- app/themes/hugo-theme-stack/LICENSE +674 -0
- app/themes/hugo-theme-stack/README.md +28 -0
- app/themes/hugo-theme-stack/archetypes/categories.md +7 -0
- app/themes/hugo-theme-stack/archetypes/default.md +11 -0
- app/themes/hugo-theme-stack/archetypes/tags.md +5 -0
- app/themes/hugo-theme-stack/assets/icons/archives.svg +8 -0
- app/themes/hugo-theme-stack/assets/icons/arrow-back.svg +6 -0
- app/themes/hugo-theme-stack/assets/icons/back.svg +6 -0
- app/themes/hugo-theme-stack/assets/icons/brand-github.svg +6 -0
- app/themes/hugo-theme-stack/assets/icons/brand-twitter.svg +6 -0
- app/themes/hugo-theme-stack/assets/icons/categories.svg +9 -0
- app/themes/hugo-theme-stack/assets/icons/clock.svg +7 -0
- app/themes/hugo-theme-stack/assets/icons/copyright.svg +7 -0
- app/themes/hugo-theme-stack/assets/icons/date.svg +9 -0
- app/themes/hugo-theme-stack/assets/icons/hash.svg +9 -0
- app/themes/hugo-theme-stack/assets/icons/home.svg +8 -0
- app/themes/hugo-theme-stack/assets/icons/infinity.svg +6 -0
- app/themes/hugo-theme-stack/assets/icons/language.svg +10 -0
- app/themes/hugo-theme-stack/assets/icons/link.svg +7 -0
- app/themes/hugo-theme-stack/assets/icons/messages.svg +7 -0
- app/themes/hugo-theme-stack/assets/icons/rss.svg +8 -0
- app/themes/hugo-theme-stack/assets/icons/search.svg +7 -0
- app/themes/hugo-theme-stack/assets/icons/tag.svg +7 -0
- app/themes/hugo-theme-stack/assets/icons/toggle-left.svg +7 -0
- app/themes/hugo-theme-stack/assets/icons/toggle-right.svg +7 -0
- app/themes/hugo-theme-stack/assets/icons/user.svg +7 -0
- app/themes/hugo-theme-stack/assets/img/avatar.png +0 -0
- app/themes/hugo-theme-stack/assets/jsconfig.json +12 -0
- app/themes/hugo-theme-stack/assets/scss/breakpoints.scss +17 -0
- app/themes/hugo-theme-stack/assets/scss/custom.scss +1 -0
- app/themes/hugo-theme-stack/assets/scss/external/normalize.scss +349 -0
- app/themes/hugo-theme-stack/assets/scss/general.scss +31 -0
- app/themes/hugo-theme-stack/assets/scss/grid.scss +101 -0
- app/themes/hugo-theme-stack/assets/scss/partials/article.scss +278 -0
- app/themes/hugo-theme-stack/assets/scss/partials/base.scss +38 -0
- app/themes/hugo-theme-stack/assets/scss/partials/comments/disqusjs.scss +394 -0
- app/themes/hugo-theme-stack/assets/scss/partials/footer.scss +30 -0
- app/themes/hugo-theme-stack/assets/scss/partials/highlight/common.scss +428 -0
- app/themes/hugo-theme-stack/assets/scss/partials/highlight/dark.scss +14 -0
- app/themes/hugo-theme-stack/assets/scss/partials/highlight/light.scss +14 -0
- app/themes/hugo-theme-stack/assets/scss/partials/layout/404.scss +6 -0
- app/themes/hugo-theme-stack/assets/scss/partials/layout/article.scss +461 -0
- app/themes/hugo-theme-stack/assets/scss/partials/layout/list.scss +71 -0
- app/themes/hugo-theme-stack/assets/scss/partials/layout/search.scss +82 -0
app/themes/hugo-theme-stack/.devcontainer/Dockerfile
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Update the NODE_VERSION arg in docker-compose.yml to pick a Node version: 10, 12, 14
|
| 2 |
+
ARG NODE_VERSION=14
|
| 3 |
+
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${NODE_VERSION}
|
| 4 |
+
|
| 5 |
+
# VARIANT can be either 'hugo' for the standard version or 'hugo_extended' for the extended version.
|
| 6 |
+
ARG VARIANT=hugo
|
| 7 |
+
# VERSION can be either 'latest' or a specific version number
|
| 8 |
+
ARG VERSION=latest
|
| 9 |
+
|
| 10 |
+
# Download Hugo
|
| 11 |
+
RUN apt-get update && apt-get install -y ca-certificates openssl git curl && \
|
| 12 |
+
rm -rf /var/lib/apt/lists/* && \
|
| 13 |
+
case ${VERSION} in \
|
| 14 |
+
latest) \
|
| 15 |
+
export VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') ;;\
|
| 16 |
+
esac && \
|
| 17 |
+
echo ${VERSION} && \
|
| 18 |
+
wget -O ${VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${VARIANT}_${VERSION}_Linux-64bit.tar.gz && \
|
| 19 |
+
tar xf ${VERSION}.tar.gz && \
|
| 20 |
+
mv hugo /usr/bin/hugo
|
| 21 |
+
|
| 22 |
+
# Hugo dev server port
|
| 23 |
+
EXPOSE 1313
|
| 24 |
+
|
| 25 |
+
# [Optional] Uncomment this section to install additional OS packages you may want.
|
| 26 |
+
#
|
| 27 |
+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
| 28 |
+
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
| 29 |
+
|
| 30 |
+
# [Optional] Uncomment if you want to install more global node packages
|
| 31 |
+
# RUN sudo -u node npm install -g <your-package-list-here>
|
app/themes/hugo-theme-stack/.devcontainer/devcontainer.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
| 2 |
+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/hugo
|
| 3 |
+
{
|
| 4 |
+
"name": "Hugo (Community)",
|
| 5 |
+
"build": {
|
| 6 |
+
"dockerfile": "Dockerfile",
|
| 7 |
+
"args": {
|
| 8 |
+
// Update VARIANT to pick hugo variant.
|
| 9 |
+
// Example variants: hugo, hugo_extended
|
| 10 |
+
// Rebuild the container if it already exists to update.
|
| 11 |
+
"VARIANT": "hugo_extended",
|
| 12 |
+
// Update VERSION to pick a specific hugo version.
|
| 13 |
+
// Example versions: latest, 0.73.0, 0,71.1
|
| 14 |
+
// Rebuild the container if it already exists to update.
|
| 15 |
+
"VERSION": "latest",
|
| 16 |
+
// Update NODE_VERSION to pick the Node.js version: 12, 14
|
| 17 |
+
"NODE_VERSION": "14",
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
|
| 21 |
+
// Set *default* container specific settings.json values on container create.
|
| 22 |
+
"settings": {
|
| 23 |
+
"html.format.templating": true,
|
| 24 |
+
},
|
| 25 |
+
|
| 26 |
+
// Add the IDs of extensions you want installed when the container is created.
|
| 27 |
+
"extensions": [
|
| 28 |
+
"bungcip.better-toml",
|
| 29 |
+
"davidanson.vscode-markdownlint"
|
| 30 |
+
],
|
| 31 |
+
|
| 32 |
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
| 33 |
+
"forwardPorts": [
|
| 34 |
+
1313
|
| 35 |
+
],
|
| 36 |
+
|
| 37 |
+
// Use 'postCreateCommand' to run commands after the container is created.
|
| 38 |
+
// "postCreateCommand": "uname -a",
|
| 39 |
+
|
| 40 |
+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
| 41 |
+
"remoteUser": "node",
|
| 42 |
+
"features": {
|
| 43 |
+
"golang": "latest"
|
| 44 |
+
}
|
| 45 |
+
}
|
app/themes/hugo-theme-stack/.github/FUNDING.yml
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ko_fi: jimmycai
|
| 2 |
+
github: CaiJimmy
|
app/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/bug_report.yml
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Bug Report
|
| 2 |
+
description: File a bug report
|
| 3 |
+
body:
|
| 4 |
+
- type: markdown
|
| 5 |
+
attributes:
|
| 6 |
+
value: |
|
| 7 |
+
Thanks for taking the time to fill out this bug report! Please provide as much information as possible and make sure you have checked the [documentation](https://stack.jimmycai.com/guide/).
|
| 8 |
+
- type: textarea
|
| 9 |
+
id: what-happened
|
| 10 |
+
attributes:
|
| 11 |
+
label: What happened?
|
| 12 |
+
description: Also tell us, what did you expect to happen? Please be as detailed as possible, including screenshots and any other information that might help us reproduce the problem.
|
| 13 |
+
placeholder: Tell us what you see!
|
| 14 |
+
validations:
|
| 15 |
+
required: true
|
| 16 |
+
- type: input
|
| 17 |
+
id: hugo-version
|
| 18 |
+
attributes:
|
| 19 |
+
label: Hugo version
|
| 20 |
+
description: "What is the version of Hugo you are using? (Note: this theme does not support non-extended version of Hugo)"
|
| 21 |
+
placeholder: ex. 0.100.0
|
| 22 |
+
validations:
|
| 23 |
+
required: true
|
| 24 |
+
- type: input
|
| 25 |
+
id: theme-version
|
| 26 |
+
attributes:
|
| 27 |
+
label: Theme version
|
| 28 |
+
description: "What is the version of Stack theme you are using?"
|
| 29 |
+
placeholder: ex. 3.12.0
|
| 30 |
+
validations:
|
| 31 |
+
required: true
|
| 32 |
+
- type: dropdown
|
| 33 |
+
id: browsers
|
| 34 |
+
attributes:
|
| 35 |
+
label: What browsers are you seeing the problem on?
|
| 36 |
+
multiple: true
|
| 37 |
+
options:
|
| 38 |
+
- Firefox
|
| 39 |
+
- Chrome
|
| 40 |
+
- Safari
|
| 41 |
+
- Microsoft Edge
|
| 42 |
+
- type: input
|
| 43 |
+
id: browser-info
|
| 44 |
+
attributes:
|
| 45 |
+
label: More information about the browser
|
| 46 |
+
description: "E.g: Browser version, OS version, etc."
|
| 47 |
+
placeholder: ex. Chrome 104, Windows 11
|
| 48 |
+
validations:
|
| 49 |
+
required: false
|
| 50 |
+
- type: textarea
|
| 51 |
+
id: logs
|
| 52 |
+
attributes:
|
| 53 |
+
label: Relevant log output
|
| 54 |
+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
| 55 |
+
render: shell
|
| 56 |
+
- type: input
|
| 57 |
+
id: minimal-reproduction-url
|
| 58 |
+
attributes:
|
| 59 |
+
label: Link to Minimal Reproducible Example
|
| 60 |
+
description: |
|
| 61 |
+
Use [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter) to create a minimal reproduction of the problem.
|
| 62 |
+
A minimal reproduction is required so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be auto-closed.
|
| 63 |
+
placeholder: https://github.com/username/your-repository
|
| 64 |
+
validations:
|
| 65 |
+
required: true
|
app/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/config.yml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
blank_issues_enabled: false
|
| 2 |
+
contact_links:
|
| 3 |
+
- name: Discussions
|
| 4 |
+
url: https://github.com/CaiJimmy/hugo-theme-stack/discussions
|
| 5 |
+
about: Please ask and answer questions here.
|
app/themes/hugo-theme-stack/.gitignore
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
public
|
| 2 |
+
resources
|
| 3 |
+
assets/jsconfig.json
|
| 4 |
+
.hugo_build.lock
|
app/themes/hugo-theme-stack/LICENSE
ADDED
|
@@ -0,0 +1,674 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
GNU GENERAL PUBLIC LICENSE
|
| 2 |
+
Version 3, 29 June 2007
|
| 3 |
+
|
| 4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
| 5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
| 6 |
+
of this license document, but changing it is not allowed.
|
| 7 |
+
|
| 8 |
+
Preamble
|
| 9 |
+
|
| 10 |
+
The GNU General Public License is a free, copyleft license for
|
| 11 |
+
software and other kinds of works.
|
| 12 |
+
|
| 13 |
+
The licenses for most software and other practical works are designed
|
| 14 |
+
to take away your freedom to share and change the works. By contrast,
|
| 15 |
+
the GNU General Public License is intended to guarantee your freedom to
|
| 16 |
+
share and change all versions of a program--to make sure it remains free
|
| 17 |
+
software for all its users. We, the Free Software Foundation, use the
|
| 18 |
+
GNU General Public License for most of our software; it applies also to
|
| 19 |
+
any other work released this way by its authors. You can apply it to
|
| 20 |
+
your programs, too.
|
| 21 |
+
|
| 22 |
+
When we speak of free software, we are referring to freedom, not
|
| 23 |
+
price. Our General Public Licenses are designed to make sure that you
|
| 24 |
+
have the freedom to distribute copies of free software (and charge for
|
| 25 |
+
them if you wish), that you receive source code or can get it if you
|
| 26 |
+
want it, that you can change the software or use pieces of it in new
|
| 27 |
+
free programs, and that you know you can do these things.
|
| 28 |
+
|
| 29 |
+
To protect your rights, we need to prevent others from denying you
|
| 30 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
| 31 |
+
certain responsibilities if you distribute copies of the software, or if
|
| 32 |
+
you modify it: responsibilities to respect the freedom of others.
|
| 33 |
+
|
| 34 |
+
For example, if you distribute copies of such a program, whether
|
| 35 |
+
gratis or for a fee, you must pass on to the recipients the same
|
| 36 |
+
freedoms that you received. You must make sure that they, too, receive
|
| 37 |
+
or can get the source code. And you must show them these terms so they
|
| 38 |
+
know their rights.
|
| 39 |
+
|
| 40 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
| 41 |
+
(1) assert copyright on the software, and (2) offer you this License
|
| 42 |
+
giving you legal permission to copy, distribute and/or modify it.
|
| 43 |
+
|
| 44 |
+
For the developers' and authors' protection, the GPL clearly explains
|
| 45 |
+
that there is no warranty for this free software. For both users' and
|
| 46 |
+
authors' sake, the GPL requires that modified versions be marked as
|
| 47 |
+
changed, so that their problems will not be attributed erroneously to
|
| 48 |
+
authors of previous versions.
|
| 49 |
+
|
| 50 |
+
Some devices are designed to deny users access to install or run
|
| 51 |
+
modified versions of the software inside them, although the manufacturer
|
| 52 |
+
can do so. This is fundamentally incompatible with the aim of
|
| 53 |
+
protecting users' freedom to change the software. The systematic
|
| 54 |
+
pattern of such abuse occurs in the area of products for individuals to
|
| 55 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
| 56 |
+
have designed this version of the GPL to prohibit the practice for those
|
| 57 |
+
products. If such problems arise substantially in other domains, we
|
| 58 |
+
stand ready to extend this provision to those domains in future versions
|
| 59 |
+
of the GPL, as needed to protect the freedom of users.
|
| 60 |
+
|
| 61 |
+
Finally, every program is threatened constantly by software patents.
|
| 62 |
+
States should not allow patents to restrict development and use of
|
| 63 |
+
software on general-purpose computers, but in those that do, we wish to
|
| 64 |
+
avoid the special danger that patents applied to a free program could
|
| 65 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
| 66 |
+
patents cannot be used to render the program non-free.
|
| 67 |
+
|
| 68 |
+
The precise terms and conditions for copying, distribution and
|
| 69 |
+
modification follow.
|
| 70 |
+
|
| 71 |
+
TERMS AND CONDITIONS
|
| 72 |
+
|
| 73 |
+
0. Definitions.
|
| 74 |
+
|
| 75 |
+
"This License" refers to version 3 of the GNU General Public License.
|
| 76 |
+
|
| 77 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
| 78 |
+
works, such as semiconductor masks.
|
| 79 |
+
|
| 80 |
+
"The Program" refers to any copyrightable work licensed under this
|
| 81 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
| 82 |
+
"recipients" may be individuals or organizations.
|
| 83 |
+
|
| 84 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
| 85 |
+
in a fashion requiring copyright permission, other than the making of an
|
| 86 |
+
exact copy. The resulting work is called a "modified version" of the
|
| 87 |
+
earlier work or a work "based on" the earlier work.
|
| 88 |
+
|
| 89 |
+
A "covered work" means either the unmodified Program or a work based
|
| 90 |
+
on the Program.
|
| 91 |
+
|
| 92 |
+
To "propagate" a work means to do anything with it that, without
|
| 93 |
+
permission, would make you directly or secondarily liable for
|
| 94 |
+
infringement under applicable copyright law, except executing it on a
|
| 95 |
+
computer or modifying a private copy. Propagation includes copying,
|
| 96 |
+
distribution (with or without modification), making available to the
|
| 97 |
+
public, and in some countries other activities as well.
|
| 98 |
+
|
| 99 |
+
To "convey" a work means any kind of propagation that enables other
|
| 100 |
+
parties to make or receive copies. Mere interaction with a user through
|
| 101 |
+
a computer network, with no transfer of a copy, is not conveying.
|
| 102 |
+
|
| 103 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
| 104 |
+
to the extent that it includes a convenient and prominently visible
|
| 105 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
| 106 |
+
tells the user that there is no warranty for the work (except to the
|
| 107 |
+
extent that warranties are provided), that licensees may convey the
|
| 108 |
+
work under this License, and how to view a copy of this License. If
|
| 109 |
+
the interface presents a list of user commands or options, such as a
|
| 110 |
+
menu, a prominent item in the list meets this criterion.
|
| 111 |
+
|
| 112 |
+
1. Source Code.
|
| 113 |
+
|
| 114 |
+
The "source code" for a work means the preferred form of the work
|
| 115 |
+
for making modifications to it. "Object code" means any non-source
|
| 116 |
+
form of a work.
|
| 117 |
+
|
| 118 |
+
A "Standard Interface" means an interface that either is an official
|
| 119 |
+
standard defined by a recognized standards body, or, in the case of
|
| 120 |
+
interfaces specified for a particular programming language, one that
|
| 121 |
+
is widely used among developers working in that language.
|
| 122 |
+
|
| 123 |
+
The "System Libraries" of an executable work include anything, other
|
| 124 |
+
than the work as a whole, that (a) is included in the normal form of
|
| 125 |
+
packaging a Major Component, but which is not part of that Major
|
| 126 |
+
Component, and (b) serves only to enable use of the work with that
|
| 127 |
+
Major Component, or to implement a Standard Interface for which an
|
| 128 |
+
implementation is available to the public in source code form. A
|
| 129 |
+
"Major Component", in this context, means a major essential component
|
| 130 |
+
(kernel, window system, and so on) of the specific operating system
|
| 131 |
+
(if any) on which the executable work runs, or a compiler used to
|
| 132 |
+
produce the work, or an object code interpreter used to run it.
|
| 133 |
+
|
| 134 |
+
The "Corresponding Source" for a work in object code form means all
|
| 135 |
+
the source code needed to generate, install, and (for an executable
|
| 136 |
+
work) run the object code and to modify the work, including scripts to
|
| 137 |
+
control those activities. However, it does not include the work's
|
| 138 |
+
System Libraries, or general-purpose tools or generally available free
|
| 139 |
+
programs which are used unmodified in performing those activities but
|
| 140 |
+
which are not part of the work. For example, Corresponding Source
|
| 141 |
+
includes interface definition files associated with source files for
|
| 142 |
+
the work, and the source code for shared libraries and dynamically
|
| 143 |
+
linked subprograms that the work is specifically designed to require,
|
| 144 |
+
such as by intimate data communication or control flow between those
|
| 145 |
+
subprograms and other parts of the work.
|
| 146 |
+
|
| 147 |
+
The Corresponding Source need not include anything that users
|
| 148 |
+
can regenerate automatically from other parts of the Corresponding
|
| 149 |
+
Source.
|
| 150 |
+
|
| 151 |
+
The Corresponding Source for a work in source code form is that
|
| 152 |
+
same work.
|
| 153 |
+
|
| 154 |
+
2. Basic Permissions.
|
| 155 |
+
|
| 156 |
+
All rights granted under this License are granted for the term of
|
| 157 |
+
copyright on the Program, and are irrevocable provided the stated
|
| 158 |
+
conditions are met. This License explicitly affirms your unlimited
|
| 159 |
+
permission to run the unmodified Program. The output from running a
|
| 160 |
+
covered work is covered by this License only if the output, given its
|
| 161 |
+
content, constitutes a covered work. This License acknowledges your
|
| 162 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
| 163 |
+
|
| 164 |
+
You may make, run and propagate covered works that you do not
|
| 165 |
+
convey, without conditions so long as your license otherwise remains
|
| 166 |
+
in force. You may convey covered works to others for the sole purpose
|
| 167 |
+
of having them make modifications exclusively for you, or provide you
|
| 168 |
+
with facilities for running those works, provided that you comply with
|
| 169 |
+
the terms of this License in conveying all material for which you do
|
| 170 |
+
not control copyright. Those thus making or running the covered works
|
| 171 |
+
for you must do so exclusively on your behalf, under your direction
|
| 172 |
+
and control, on terms that prohibit them from making any copies of
|
| 173 |
+
your copyrighted material outside their relationship with you.
|
| 174 |
+
|
| 175 |
+
Conveying under any other circumstances is permitted solely under
|
| 176 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
| 177 |
+
makes it unnecessary.
|
| 178 |
+
|
| 179 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
| 180 |
+
|
| 181 |
+
No covered work shall be deemed part of an effective technological
|
| 182 |
+
measure under any applicable law fulfilling obligations under article
|
| 183 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
| 184 |
+
similar laws prohibiting or restricting circumvention of such
|
| 185 |
+
measures.
|
| 186 |
+
|
| 187 |
+
When you convey a covered work, you waive any legal power to forbid
|
| 188 |
+
circumvention of technological measures to the extent such circumvention
|
| 189 |
+
is effected by exercising rights under this License with respect to
|
| 190 |
+
the covered work, and you disclaim any intention to limit operation or
|
| 191 |
+
modification of the work as a means of enforcing, against the work's
|
| 192 |
+
users, your or third parties' legal rights to forbid circumvention of
|
| 193 |
+
technological measures.
|
| 194 |
+
|
| 195 |
+
4. Conveying Verbatim Copies.
|
| 196 |
+
|
| 197 |
+
You may convey verbatim copies of the Program's source code as you
|
| 198 |
+
receive it, in any medium, provided that you conspicuously and
|
| 199 |
+
appropriately publish on each copy an appropriate copyright notice;
|
| 200 |
+
keep intact all notices stating that this License and any
|
| 201 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
| 202 |
+
keep intact all notices of the absence of any warranty; and give all
|
| 203 |
+
recipients a copy of this License along with the Program.
|
| 204 |
+
|
| 205 |
+
You may charge any price or no price for each copy that you convey,
|
| 206 |
+
and you may offer support or warranty protection for a fee.
|
| 207 |
+
|
| 208 |
+
5. Conveying Modified Source Versions.
|
| 209 |
+
|
| 210 |
+
You may convey a work based on the Program, or the modifications to
|
| 211 |
+
produce it from the Program, in the form of source code under the
|
| 212 |
+
terms of section 4, provided that you also meet all of these conditions:
|
| 213 |
+
|
| 214 |
+
a) The work must carry prominent notices stating that you modified
|
| 215 |
+
it, and giving a relevant date.
|
| 216 |
+
|
| 217 |
+
b) The work must carry prominent notices stating that it is
|
| 218 |
+
released under this License and any conditions added under section
|
| 219 |
+
7. This requirement modifies the requirement in section 4 to
|
| 220 |
+
"keep intact all notices".
|
| 221 |
+
|
| 222 |
+
c) You must license the entire work, as a whole, under this
|
| 223 |
+
License to anyone who comes into possession of a copy. This
|
| 224 |
+
License will therefore apply, along with any applicable section 7
|
| 225 |
+
additional terms, to the whole of the work, and all its parts,
|
| 226 |
+
regardless of how they are packaged. This License gives no
|
| 227 |
+
permission to license the work in any other way, but it does not
|
| 228 |
+
invalidate such permission if you have separately received it.
|
| 229 |
+
|
| 230 |
+
d) If the work has interactive user interfaces, each must display
|
| 231 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
| 232 |
+
interfaces that do not display Appropriate Legal Notices, your
|
| 233 |
+
work need not make them do so.
|
| 234 |
+
|
| 235 |
+
A compilation of a covered work with other separate and independent
|
| 236 |
+
works, which are not by their nature extensions of the covered work,
|
| 237 |
+
and which are not combined with it such as to form a larger program,
|
| 238 |
+
in or on a volume of a storage or distribution medium, is called an
|
| 239 |
+
"aggregate" if the compilation and its resulting copyright are not
|
| 240 |
+
used to limit the access or legal rights of the compilation's users
|
| 241 |
+
beyond what the individual works permit. Inclusion of a covered work
|
| 242 |
+
in an aggregate does not cause this License to apply to the other
|
| 243 |
+
parts of the aggregate.
|
| 244 |
+
|
| 245 |
+
6. Conveying Non-Source Forms.
|
| 246 |
+
|
| 247 |
+
You may convey a covered work in object code form under the terms
|
| 248 |
+
of sections 4 and 5, provided that you also convey the
|
| 249 |
+
machine-readable Corresponding Source under the terms of this License,
|
| 250 |
+
in one of these ways:
|
| 251 |
+
|
| 252 |
+
a) Convey the object code in, or embodied in, a physical product
|
| 253 |
+
(including a physical distribution medium), accompanied by the
|
| 254 |
+
Corresponding Source fixed on a durable physical medium
|
| 255 |
+
customarily used for software interchange.
|
| 256 |
+
|
| 257 |
+
b) Convey the object code in, or embodied in, a physical product
|
| 258 |
+
(including a physical distribution medium), accompanied by a
|
| 259 |
+
written offer, valid for at least three years and valid for as
|
| 260 |
+
long as you offer spare parts or customer support for that product
|
| 261 |
+
model, to give anyone who possesses the object code either (1) a
|
| 262 |
+
copy of the Corresponding Source for all the software in the
|
| 263 |
+
product that is covered by this License, on a durable physical
|
| 264 |
+
medium customarily used for software interchange, for a price no
|
| 265 |
+
more than your reasonable cost of physically performing this
|
| 266 |
+
conveying of source, or (2) access to copy the
|
| 267 |
+
Corresponding Source from a network server at no charge.
|
| 268 |
+
|
| 269 |
+
c) Convey individual copies of the object code with a copy of the
|
| 270 |
+
written offer to provide the Corresponding Source. This
|
| 271 |
+
alternative is allowed only occasionally and noncommercially, and
|
| 272 |
+
only if you received the object code with such an offer, in accord
|
| 273 |
+
with subsection 6b.
|
| 274 |
+
|
| 275 |
+
d) Convey the object code by offering access from a designated
|
| 276 |
+
place (gratis or for a charge), and offer equivalent access to the
|
| 277 |
+
Corresponding Source in the same way through the same place at no
|
| 278 |
+
further charge. You need not require recipients to copy the
|
| 279 |
+
Corresponding Source along with the object code. If the place to
|
| 280 |
+
copy the object code is a network server, the Corresponding Source
|
| 281 |
+
may be on a different server (operated by you or a third party)
|
| 282 |
+
that supports equivalent copying facilities, provided you maintain
|
| 283 |
+
clear directions next to the object code saying where to find the
|
| 284 |
+
Corresponding Source. Regardless of what server hosts the
|
| 285 |
+
Corresponding Source, you remain obligated to ensure that it is
|
| 286 |
+
available for as long as needed to satisfy these requirements.
|
| 287 |
+
|
| 288 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
| 289 |
+
you inform other peers where the object code and Corresponding
|
| 290 |
+
Source of the work are being offered to the general public at no
|
| 291 |
+
charge under subsection 6d.
|
| 292 |
+
|
| 293 |
+
A separable portion of the object code, whose source code is excluded
|
| 294 |
+
from the Corresponding Source as a System Library, need not be
|
| 295 |
+
included in conveying the object code work.
|
| 296 |
+
|
| 297 |
+
A "User Product" is either (1) a "consumer product", which means any
|
| 298 |
+
tangible personal property which is normally used for personal, family,
|
| 299 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
| 300 |
+
into a dwelling. In determining whether a product is a consumer product,
|
| 301 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
| 302 |
+
product received by a particular user, "normally used" refers to a
|
| 303 |
+
typical or common use of that class of product, regardless of the status
|
| 304 |
+
of the particular user or of the way in which the particular user
|
| 305 |
+
actually uses, or expects or is expected to use, the product. A product
|
| 306 |
+
is a consumer product regardless of whether the product has substantial
|
| 307 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
| 308 |
+
the only significant mode of use of the product.
|
| 309 |
+
|
| 310 |
+
"Installation Information" for a User Product means any methods,
|
| 311 |
+
procedures, authorization keys, or other information required to install
|
| 312 |
+
and execute modified versions of a covered work in that User Product from
|
| 313 |
+
a modified version of its Corresponding Source. The information must
|
| 314 |
+
suffice to ensure that the continued functioning of the modified object
|
| 315 |
+
code is in no case prevented or interfered with solely because
|
| 316 |
+
modification has been made.
|
| 317 |
+
|
| 318 |
+
If you convey an object code work under this section in, or with, or
|
| 319 |
+
specifically for use in, a User Product, and the conveying occurs as
|
| 320 |
+
part of a transaction in which the right of possession and use of the
|
| 321 |
+
User Product is transferred to the recipient in perpetuity or for a
|
| 322 |
+
fixed term (regardless of how the transaction is characterized), the
|
| 323 |
+
Corresponding Source conveyed under this section must be accompanied
|
| 324 |
+
by the Installation Information. But this requirement does not apply
|
| 325 |
+
if neither you nor any third party retains the ability to install
|
| 326 |
+
modified object code on the User Product (for example, the work has
|
| 327 |
+
been installed in ROM).
|
| 328 |
+
|
| 329 |
+
The requirement to provide Installation Information does not include a
|
| 330 |
+
requirement to continue to provide support service, warranty, or updates
|
| 331 |
+
for a work that has been modified or installed by the recipient, or for
|
| 332 |
+
the User Product in which it has been modified or installed. Access to a
|
| 333 |
+
network may be denied when the modification itself materially and
|
| 334 |
+
adversely affects the operation of the network or violates the rules and
|
| 335 |
+
protocols for communication across the network.
|
| 336 |
+
|
| 337 |
+
Corresponding Source conveyed, and Installation Information provided,
|
| 338 |
+
in accord with this section must be in a format that is publicly
|
| 339 |
+
documented (and with an implementation available to the public in
|
| 340 |
+
source code form), and must require no special password or key for
|
| 341 |
+
unpacking, reading or copying.
|
| 342 |
+
|
| 343 |
+
7. Additional Terms.
|
| 344 |
+
|
| 345 |
+
"Additional permissions" are terms that supplement the terms of this
|
| 346 |
+
License by making exceptions from one or more of its conditions.
|
| 347 |
+
Additional permissions that are applicable to the entire Program shall
|
| 348 |
+
be treated as though they were included in this License, to the extent
|
| 349 |
+
that they are valid under applicable law. If additional permissions
|
| 350 |
+
apply only to part of the Program, that part may be used separately
|
| 351 |
+
under those permissions, but the entire Program remains governed by
|
| 352 |
+
this License without regard to the additional permissions.
|
| 353 |
+
|
| 354 |
+
When you convey a copy of a covered work, you may at your option
|
| 355 |
+
remove any additional permissions from that copy, or from any part of
|
| 356 |
+
it. (Additional permissions may be written to require their own
|
| 357 |
+
removal in certain cases when you modify the work.) You may place
|
| 358 |
+
additional permissions on material, added by you to a covered work,
|
| 359 |
+
for which you have or can give appropriate copyright permission.
|
| 360 |
+
|
| 361 |
+
Notwithstanding any other provision of this License, for material you
|
| 362 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
| 363 |
+
that material) supplement the terms of this License with terms:
|
| 364 |
+
|
| 365 |
+
a) Disclaiming warranty or limiting liability differently from the
|
| 366 |
+
terms of sections 15 and 16 of this License; or
|
| 367 |
+
|
| 368 |
+
b) Requiring preservation of specified reasonable legal notices or
|
| 369 |
+
author attributions in that material or in the Appropriate Legal
|
| 370 |
+
Notices displayed by works containing it; or
|
| 371 |
+
|
| 372 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
| 373 |
+
requiring that modified versions of such material be marked in
|
| 374 |
+
reasonable ways as different from the original version; or
|
| 375 |
+
|
| 376 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
| 377 |
+
authors of the material; or
|
| 378 |
+
|
| 379 |
+
e) Declining to grant rights under trademark law for use of some
|
| 380 |
+
trade names, trademarks, or service marks; or
|
| 381 |
+
|
| 382 |
+
f) Requiring indemnification of licensors and authors of that
|
| 383 |
+
material by anyone who conveys the material (or modified versions of
|
| 384 |
+
it) with contractual assumptions of liability to the recipient, for
|
| 385 |
+
any liability that these contractual assumptions directly impose on
|
| 386 |
+
those licensors and authors.
|
| 387 |
+
|
| 388 |
+
All other non-permissive additional terms are considered "further
|
| 389 |
+
restrictions" within the meaning of section 10. If the Program as you
|
| 390 |
+
received it, or any part of it, contains a notice stating that it is
|
| 391 |
+
governed by this License along with a term that is a further
|
| 392 |
+
restriction, you may remove that term. If a license document contains
|
| 393 |
+
a further restriction but permits relicensing or conveying under this
|
| 394 |
+
License, you may add to a covered work material governed by the terms
|
| 395 |
+
of that license document, provided that the further restriction does
|
| 396 |
+
not survive such relicensing or conveying.
|
| 397 |
+
|
| 398 |
+
If you add terms to a covered work in accord with this section, you
|
| 399 |
+
must place, in the relevant source files, a statement of the
|
| 400 |
+
additional terms that apply to those files, or a notice indicating
|
| 401 |
+
where to find the applicable terms.
|
| 402 |
+
|
| 403 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
| 404 |
+
form of a separately written license, or stated as exceptions;
|
| 405 |
+
the above requirements apply either way.
|
| 406 |
+
|
| 407 |
+
8. Termination.
|
| 408 |
+
|
| 409 |
+
You may not propagate or modify a covered work except as expressly
|
| 410 |
+
provided under this License. Any attempt otherwise to propagate or
|
| 411 |
+
modify it is void, and will automatically terminate your rights under
|
| 412 |
+
this License (including any patent licenses granted under the third
|
| 413 |
+
paragraph of section 11).
|
| 414 |
+
|
| 415 |
+
However, if you cease all violation of this License, then your
|
| 416 |
+
license from a particular copyright holder is reinstated (a)
|
| 417 |
+
provisionally, unless and until the copyright holder explicitly and
|
| 418 |
+
finally terminates your license, and (b) permanently, if the copyright
|
| 419 |
+
holder fails to notify you of the violation by some reasonable means
|
| 420 |
+
prior to 60 days after the cessation.
|
| 421 |
+
|
| 422 |
+
Moreover, your license from a particular copyright holder is
|
| 423 |
+
reinstated permanently if the copyright holder notifies you of the
|
| 424 |
+
violation by some reasonable means, this is the first time you have
|
| 425 |
+
received notice of violation of this License (for any work) from that
|
| 426 |
+
copyright holder, and you cure the violation prior to 30 days after
|
| 427 |
+
your receipt of the notice.
|
| 428 |
+
|
| 429 |
+
Termination of your rights under this section does not terminate the
|
| 430 |
+
licenses of parties who have received copies or rights from you under
|
| 431 |
+
this License. If your rights have been terminated and not permanently
|
| 432 |
+
reinstated, you do not qualify to receive new licenses for the same
|
| 433 |
+
material under section 10.
|
| 434 |
+
|
| 435 |
+
9. Acceptance Not Required for Having Copies.
|
| 436 |
+
|
| 437 |
+
You are not required to accept this License in order to receive or
|
| 438 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
| 439 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
| 440 |
+
to receive a copy likewise does not require acceptance. However,
|
| 441 |
+
nothing other than this License grants you permission to propagate or
|
| 442 |
+
modify any covered work. These actions infringe copyright if you do
|
| 443 |
+
not accept this License. Therefore, by modifying or propagating a
|
| 444 |
+
covered work, you indicate your acceptance of this License to do so.
|
| 445 |
+
|
| 446 |
+
10. Automatic Licensing of Downstream Recipients.
|
| 447 |
+
|
| 448 |
+
Each time you convey a covered work, the recipient automatically
|
| 449 |
+
receives a license from the original licensors, to run, modify and
|
| 450 |
+
propagate that work, subject to this License. You are not responsible
|
| 451 |
+
for enforcing compliance by third parties with this License.
|
| 452 |
+
|
| 453 |
+
An "entity transaction" is a transaction transferring control of an
|
| 454 |
+
organization, or substantially all assets of one, or subdividing an
|
| 455 |
+
organization, or merging organizations. If propagation of a covered
|
| 456 |
+
work results from an entity transaction, each party to that
|
| 457 |
+
transaction who receives a copy of the work also receives whatever
|
| 458 |
+
licenses to the work the party's predecessor in interest had or could
|
| 459 |
+
give under the previous paragraph, plus a right to possession of the
|
| 460 |
+
Corresponding Source of the work from the predecessor in interest, if
|
| 461 |
+
the predecessor has it or can get it with reasonable efforts.
|
| 462 |
+
|
| 463 |
+
You may not impose any further restrictions on the exercise of the
|
| 464 |
+
rights granted or affirmed under this License. For example, you may
|
| 465 |
+
not impose a license fee, royalty, or other charge for exercise of
|
| 466 |
+
rights granted under this License, and you may not initiate litigation
|
| 467 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
| 468 |
+
any patent claim is infringed by making, using, selling, offering for
|
| 469 |
+
sale, or importing the Program or any portion of it.
|
| 470 |
+
|
| 471 |
+
11. Patents.
|
| 472 |
+
|
| 473 |
+
A "contributor" is a copyright holder who authorizes use under this
|
| 474 |
+
License of the Program or a work on which the Program is based. The
|
| 475 |
+
work thus licensed is called the contributor's "contributor version".
|
| 476 |
+
|
| 477 |
+
A contributor's "essential patent claims" are all patent claims
|
| 478 |
+
owned or controlled by the contributor, whether already acquired or
|
| 479 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
| 480 |
+
by this License, of making, using, or selling its contributor version,
|
| 481 |
+
but do not include claims that would be infringed only as a
|
| 482 |
+
consequence of further modification of the contributor version. For
|
| 483 |
+
purposes of this definition, "control" includes the right to grant
|
| 484 |
+
patent sublicenses in a manner consistent with the requirements of
|
| 485 |
+
this License.
|
| 486 |
+
|
| 487 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
| 488 |
+
patent license under the contributor's essential patent claims, to
|
| 489 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
| 490 |
+
propagate the contents of its contributor version.
|
| 491 |
+
|
| 492 |
+
In the following three paragraphs, a "patent license" is any express
|
| 493 |
+
agreement or commitment, however denominated, not to enforce a patent
|
| 494 |
+
(such as an express permission to practice a patent or covenant not to
|
| 495 |
+
sue for patent infringement). To "grant" such a patent license to a
|
| 496 |
+
party means to make such an agreement or commitment not to enforce a
|
| 497 |
+
patent against the party.
|
| 498 |
+
|
| 499 |
+
If you convey a covered work, knowingly relying on a patent license,
|
| 500 |
+
and the Corresponding Source of the work is not available for anyone
|
| 501 |
+
to copy, free of charge and under the terms of this License, through a
|
| 502 |
+
publicly available network server or other readily accessible means,
|
| 503 |
+
then you must either (1) cause the Corresponding Source to be so
|
| 504 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
| 505 |
+
patent license for this particular work, or (3) arrange, in a manner
|
| 506 |
+
consistent with the requirements of this License, to extend the patent
|
| 507 |
+
license to downstream recipients. "Knowingly relying" means you have
|
| 508 |
+
actual knowledge that, but for the patent license, your conveying the
|
| 509 |
+
covered work in a country, or your recipient's use of the covered work
|
| 510 |
+
in a country, would infringe one or more identifiable patents in that
|
| 511 |
+
country that you have reason to believe are valid.
|
| 512 |
+
|
| 513 |
+
If, pursuant to or in connection with a single transaction or
|
| 514 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
| 515 |
+
covered work, and grant a patent license to some of the parties
|
| 516 |
+
receiving the covered work authorizing them to use, propagate, modify
|
| 517 |
+
or convey a specific copy of the covered work, then the patent license
|
| 518 |
+
you grant is automatically extended to all recipients of the covered
|
| 519 |
+
work and works based on it.
|
| 520 |
+
|
| 521 |
+
A patent license is "discriminatory" if it does not include within
|
| 522 |
+
the scope of its coverage, prohibits the exercise of, or is
|
| 523 |
+
conditioned on the non-exercise of one or more of the rights that are
|
| 524 |
+
specifically granted under this License. You may not convey a covered
|
| 525 |
+
work if you are a party to an arrangement with a third party that is
|
| 526 |
+
in the business of distributing software, under which you make payment
|
| 527 |
+
to the third party based on the extent of your activity of conveying
|
| 528 |
+
the work, and under which the third party grants, to any of the
|
| 529 |
+
parties who would receive the covered work from you, a discriminatory
|
| 530 |
+
patent license (a) in connection with copies of the covered work
|
| 531 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
| 532 |
+
for and in connection with specific products or compilations that
|
| 533 |
+
contain the covered work, unless you entered into that arrangement,
|
| 534 |
+
or that patent license was granted, prior to 28 March 2007.
|
| 535 |
+
|
| 536 |
+
Nothing in this License shall be construed as excluding or limiting
|
| 537 |
+
any implied license or other defenses to infringement that may
|
| 538 |
+
otherwise be available to you under applicable patent law.
|
| 539 |
+
|
| 540 |
+
12. No Surrender of Others' Freedom.
|
| 541 |
+
|
| 542 |
+
If conditions are imposed on you (whether by court order, agreement or
|
| 543 |
+
otherwise) that contradict the conditions of this License, they do not
|
| 544 |
+
excuse you from the conditions of this License. If you cannot convey a
|
| 545 |
+
covered work so as to satisfy simultaneously your obligations under this
|
| 546 |
+
License and any other pertinent obligations, then as a consequence you may
|
| 547 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
| 548 |
+
to collect a royalty for further conveying from those to whom you convey
|
| 549 |
+
the Program, the only way you could satisfy both those terms and this
|
| 550 |
+
License would be to refrain entirely from conveying the Program.
|
| 551 |
+
|
| 552 |
+
13. Use with the GNU Affero General Public License.
|
| 553 |
+
|
| 554 |
+
Notwithstanding any other provision of this License, you have
|
| 555 |
+
permission to link or combine any covered work with a work licensed
|
| 556 |
+
under version 3 of the GNU Affero General Public License into a single
|
| 557 |
+
combined work, and to convey the resulting work. The terms of this
|
| 558 |
+
License will continue to apply to the part which is the covered work,
|
| 559 |
+
but the special requirements of the GNU Affero General Public License,
|
| 560 |
+
section 13, concerning interaction through a network will apply to the
|
| 561 |
+
combination as such.
|
| 562 |
+
|
| 563 |
+
14. Revised Versions of this License.
|
| 564 |
+
|
| 565 |
+
The Free Software Foundation may publish revised and/or new versions of
|
| 566 |
+
the GNU General Public License from time to time. Such new versions will
|
| 567 |
+
be similar in spirit to the present version, but may differ in detail to
|
| 568 |
+
address new problems or concerns.
|
| 569 |
+
|
| 570 |
+
Each version is given a distinguishing version number. If the
|
| 571 |
+
Program specifies that a certain numbered version of the GNU General
|
| 572 |
+
Public License "or any later version" applies to it, you have the
|
| 573 |
+
option of following the terms and conditions either of that numbered
|
| 574 |
+
version or of any later version published by the Free Software
|
| 575 |
+
Foundation. If the Program does not specify a version number of the
|
| 576 |
+
GNU General Public License, you may choose any version ever published
|
| 577 |
+
by the Free Software Foundation.
|
| 578 |
+
|
| 579 |
+
If the Program specifies that a proxy can decide which future
|
| 580 |
+
versions of the GNU General Public License can be used, that proxy's
|
| 581 |
+
public statement of acceptance of a version permanently authorizes you
|
| 582 |
+
to choose that version for the Program.
|
| 583 |
+
|
| 584 |
+
Later license versions may give you additional or different
|
| 585 |
+
permissions. However, no additional obligations are imposed on any
|
| 586 |
+
author or copyright holder as a result of your choosing to follow a
|
| 587 |
+
later version.
|
| 588 |
+
|
| 589 |
+
15. Disclaimer of Warranty.
|
| 590 |
+
|
| 591 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
| 592 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
| 593 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
| 594 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
| 595 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 596 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
| 597 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
| 598 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
| 599 |
+
|
| 600 |
+
16. Limitation of Liability.
|
| 601 |
+
|
| 602 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
| 603 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
| 604 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
| 605 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
| 606 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
| 607 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
| 608 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
| 609 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
| 610 |
+
SUCH DAMAGES.
|
| 611 |
+
|
| 612 |
+
17. Interpretation of Sections 15 and 16.
|
| 613 |
+
|
| 614 |
+
If the disclaimer of warranty and limitation of liability provided
|
| 615 |
+
above cannot be given local legal effect according to their terms,
|
| 616 |
+
reviewing courts shall apply local law that most closely approximates
|
| 617 |
+
an absolute waiver of all civil liability in connection with the
|
| 618 |
+
Program, unless a warranty or assumption of liability accompanies a
|
| 619 |
+
copy of the Program in return for a fee.
|
| 620 |
+
|
| 621 |
+
END OF TERMS AND CONDITIONS
|
| 622 |
+
|
| 623 |
+
How to Apply These Terms to Your New Programs
|
| 624 |
+
|
| 625 |
+
If you develop a new program, and you want it to be of the greatest
|
| 626 |
+
possible use to the public, the best way to achieve this is to make it
|
| 627 |
+
free software which everyone can redistribute and change under these terms.
|
| 628 |
+
|
| 629 |
+
To do so, attach the following notices to the program. It is safest
|
| 630 |
+
to attach them to the start of each source file to most effectively
|
| 631 |
+
state the exclusion of warranty; and each file should have at least
|
| 632 |
+
the "copyright" line and a pointer to where the full notice is found.
|
| 633 |
+
|
| 634 |
+
<one line to give the program's name and a brief idea of what it does.>
|
| 635 |
+
Copyright (C) <year> <name of author>
|
| 636 |
+
|
| 637 |
+
This program is free software: you can redistribute it and/or modify
|
| 638 |
+
it under the terms of the GNU General Public License as published by
|
| 639 |
+
the Free Software Foundation, either version 3 of the License, or
|
| 640 |
+
(at your option) any later version.
|
| 641 |
+
|
| 642 |
+
This program is distributed in the hope that it will be useful,
|
| 643 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 644 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 645 |
+
GNU General Public License for more details.
|
| 646 |
+
|
| 647 |
+
You should have received a copy of the GNU General Public License
|
| 648 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 649 |
+
|
| 650 |
+
Also add information on how to contact you by electronic and paper mail.
|
| 651 |
+
|
| 652 |
+
If the program does terminal interaction, make it output a short
|
| 653 |
+
notice like this when it starts in an interactive mode:
|
| 654 |
+
|
| 655 |
+
<program> Copyright (C) <year> <name of author>
|
| 656 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
| 657 |
+
This is free software, and you are welcome to redistribute it
|
| 658 |
+
under certain conditions; type `show c' for details.
|
| 659 |
+
|
| 660 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
| 661 |
+
parts of the General Public License. Of course, your program's commands
|
| 662 |
+
might be different; for a GUI interface, you would use an "about box".
|
| 663 |
+
|
| 664 |
+
You should also get your employer (if you work as a programmer) or school,
|
| 665 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
| 666 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
| 667 |
+
<https://www.gnu.org/licenses/>.
|
| 668 |
+
|
| 669 |
+
The GNU General Public License does not permit incorporating your program
|
| 670 |
+
into proprietary programs. If your program is a subroutine library, you
|
| 671 |
+
may consider it more useful to permit linking proprietary applications with
|
| 672 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
| 673 |
+
Public License instead of this License. But first, please read
|
| 674 |
+
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
app/themes/hugo-theme-stack/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+

|
| 2 |
+
|
| 3 |
+
# Hugo Theme Stack
|
| 4 |
+
|
| 5 |
+
<img align="right" width="150" alt="logo" src="https://user-images.githubusercontent.com/5889006/190859553-5b229b4f-c476-4cbd-928f-890f5265ca4c.png">
|
| 6 |
+
|
| 7 |
+
Card-style Hugo theme designed for bloggers.
|
| 8 |
+
|
| 9 |
+
## Quickstart
|
| 10 |
+
|
| 11 |
+
Use this template: [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter)
|
| 12 |
+
|
| 13 |
+
## Demo
|
| 14 |
+
|
| 15 |
+
* Starter template demo: [demo.stack.jimmycai.com](https://demo.stack.jimmycai.com)
|
| 16 |
+
* Dev build: [dev.stack.jimmycai.com](https://dev.stack.jimmycai.com)
|
| 17 |
+
|
| 18 |
+
## Documentation
|
| 19 |
+
|
| 20 |
+
Visit [stack.jimmycai.com](https://stack.jimmycai.com)
|
| 21 |
+
|
| 22 |
+
## Copyright
|
| 23 |
+
|
| 24 |
+
**Licensed under the GNU General Public License v3.0**
|
| 25 |
+
|
| 26 |
+
Please do not remove the "*Theme Stack designed by Jimmy*" text and link.
|
| 27 |
+
|
| 28 |
+
If you want to port this theme to another blogging platform, please let me know🙏.
|
app/themes/hugo-theme-stack/archetypes/categories.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "{{ replace .Name "-" " " | title }}"
|
| 3 |
+
image:
|
| 4 |
+
style:
|
| 5 |
+
background: "#2a9d8f"
|
| 6 |
+
color: "#fff"
|
| 7 |
+
---
|
app/themes/hugo-theme-stack/archetypes/default.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "{{ replace .Name "-" " " | title }}"
|
| 3 |
+
description:
|
| 4 |
+
date: {{ .Date }}
|
| 5 |
+
image:
|
| 6 |
+
math:
|
| 7 |
+
license:
|
| 8 |
+
hidden: false
|
| 9 |
+
comments: true
|
| 10 |
+
draft: true
|
| 11 |
+
---
|
app/themes/hugo-theme-stack/archetypes/tags.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "{{ replace .Name "-" " " | title }}"
|
| 3 |
+
description:
|
| 4 |
+
image:
|
| 5 |
+
---
|
app/themes/hugo-theme-stack/assets/icons/archives.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/arrow-back.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/back.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/brand-github.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/brand-twitter.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/categories.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/clock.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/copyright.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/date.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/hash.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/home.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/infinity.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/language.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/link.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/messages.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/rss.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/search.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/tag.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/toggle-left.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/toggle-right.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/icons/user.svg
ADDED
|
|
app/themes/hugo-theme-stack/assets/img/avatar.png
ADDED
|
|
app/themes/hugo-theme-stack/assets/jsconfig.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"compilerOptions": {
|
| 3 |
+
"baseUrl": ".",
|
| 4 |
+
"paths": {
|
| 5 |
+
"*": [
|
| 6 |
+
"*"
|
| 7 |
+
]
|
| 8 |
+
},
|
| 9 |
+
"lib": ["es2020", "dom"],
|
| 10 |
+
"jsx": "preserve"
|
| 11 |
+
}
|
| 12 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/breakpoints.scss
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
$breakpoints: (
|
| 2 |
+
sm: 640px,
|
| 3 |
+
md: 768px,
|
| 4 |
+
lg: 1024px,
|
| 5 |
+
xl: 1280px,
|
| 6 |
+
2xl: 1536px,
|
| 7 |
+
);
|
| 8 |
+
|
| 9 |
+
@mixin respond($breakpoint) {
|
| 10 |
+
@if not map-has-key($breakpoints, $breakpoint) {
|
| 11 |
+
@warn "'#{$breakpoint}' is not a valid breakpoint";
|
| 12 |
+
} @else {
|
| 13 |
+
@media (min-width: map-get($breakpoints, $breakpoint)) {
|
| 14 |
+
@content;
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/custom.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
/* Place your custom SCSS in HUGO_SITE_FOLDER/assets/scss/custom.scss */
|
app/themes/hugo-theme-stack/assets/scss/external/normalize.scss
ADDED
|
@@ -0,0 +1,349 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
| 2 |
+
|
| 3 |
+
/* Document
|
| 4 |
+
========================================================================== */
|
| 5 |
+
|
| 6 |
+
/**
|
| 7 |
+
* 1. Correct the line height in all browsers.
|
| 8 |
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
html {
|
| 12 |
+
line-height: 1.15; /* 1 */
|
| 13 |
+
-webkit-text-size-adjust: 100%; /* 2 */
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
/* Sections
|
| 17 |
+
========================================================================== */
|
| 18 |
+
|
| 19 |
+
/**
|
| 20 |
+
* Remove the margin in all browsers.
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
body {
|
| 24 |
+
margin: 0;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Render the `main` element consistently in IE.
|
| 29 |
+
*/
|
| 30 |
+
|
| 31 |
+
main {
|
| 32 |
+
display: block;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
/**
|
| 36 |
+
* Correct the font size and margin on `h1` elements within `section` and
|
| 37 |
+
* `article` contexts in Chrome, Firefox, and Safari.
|
| 38 |
+
*/
|
| 39 |
+
|
| 40 |
+
h1 {
|
| 41 |
+
font-size: 2em;
|
| 42 |
+
margin: 0.67em 0;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/* Grouping content
|
| 46 |
+
========================================================================== */
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* 1. Add the correct box sizing in Firefox.
|
| 50 |
+
* 2. Show the overflow in Edge and IE.
|
| 51 |
+
*/
|
| 52 |
+
|
| 53 |
+
hr {
|
| 54 |
+
box-sizing: content-box; /* 1 */
|
| 55 |
+
height: 0; /* 1 */
|
| 56 |
+
overflow: visible; /* 2 */
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/**
|
| 60 |
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
| 61 |
+
* 2. Correct the odd `em` font sizing in all browsers.
|
| 62 |
+
*/
|
| 63 |
+
|
| 64 |
+
pre {
|
| 65 |
+
font-family: monospace, monospace; /* 1 */
|
| 66 |
+
font-size: 1em; /* 2 */
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
/* Text-level semantics
|
| 70 |
+
========================================================================== */
|
| 71 |
+
|
| 72 |
+
/**
|
| 73 |
+
* Remove the gray background on active links in IE 10.
|
| 74 |
+
*/
|
| 75 |
+
|
| 76 |
+
a {
|
| 77 |
+
background-color: transparent;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
/**
|
| 81 |
+
* 1. Remove the bottom border in Chrome 57-
|
| 82 |
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
| 83 |
+
*/
|
| 84 |
+
|
| 85 |
+
abbr[title] {
|
| 86 |
+
border-bottom: none; /* 1 */
|
| 87 |
+
text-decoration: underline; /* 2 */
|
| 88 |
+
text-decoration: underline dotted; /* 2 */
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
/**
|
| 92 |
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
| 93 |
+
*/
|
| 94 |
+
|
| 95 |
+
b,
|
| 96 |
+
strong {
|
| 97 |
+
font-weight: bolder;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
/**
|
| 101 |
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
| 102 |
+
* 2. Correct the odd `em` font sizing in all browsers.
|
| 103 |
+
*/
|
| 104 |
+
|
| 105 |
+
code,
|
| 106 |
+
kbd,
|
| 107 |
+
samp {
|
| 108 |
+
font-family: monospace, monospace; /* 1 */
|
| 109 |
+
font-size: 1em; /* 2 */
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
/**
|
| 113 |
+
* Add the correct font size in all browsers.
|
| 114 |
+
*/
|
| 115 |
+
|
| 116 |
+
small {
|
| 117 |
+
font-size: 80%;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
/**
|
| 121 |
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
| 122 |
+
* all browsers.
|
| 123 |
+
*/
|
| 124 |
+
|
| 125 |
+
sub,
|
| 126 |
+
sup {
|
| 127 |
+
font-size: 75%;
|
| 128 |
+
line-height: 0;
|
| 129 |
+
position: relative;
|
| 130 |
+
vertical-align: baseline;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
sub {
|
| 134 |
+
bottom: -0.25em;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
sup {
|
| 138 |
+
top: -0.5em;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
/* Embedded content
|
| 142 |
+
========================================================================== */
|
| 143 |
+
|
| 144 |
+
/**
|
| 145 |
+
* Remove the border on images inside links in IE 10.
|
| 146 |
+
*/
|
| 147 |
+
|
| 148 |
+
img {
|
| 149 |
+
border-style: none;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
/* Forms
|
| 153 |
+
========================================================================== */
|
| 154 |
+
|
| 155 |
+
/**
|
| 156 |
+
* 1. Change the font styles in all browsers.
|
| 157 |
+
* 2. Remove the margin in Firefox and Safari.
|
| 158 |
+
*/
|
| 159 |
+
|
| 160 |
+
button,
|
| 161 |
+
input,
|
| 162 |
+
optgroup,
|
| 163 |
+
select,
|
| 164 |
+
textarea {
|
| 165 |
+
font-family: inherit; /* 1 */
|
| 166 |
+
font-size: 100%; /* 1 */
|
| 167 |
+
line-height: 1.15; /* 1 */
|
| 168 |
+
margin: 0; /* 2 */
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
/**
|
| 172 |
+
* Show the overflow in IE.
|
| 173 |
+
* 1. Show the overflow in Edge.
|
| 174 |
+
*/
|
| 175 |
+
|
| 176 |
+
button,
|
| 177 |
+
input { /* 1 */
|
| 178 |
+
overflow: visible;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
/**
|
| 182 |
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
| 183 |
+
* 1. Remove the inheritance of text transform in Firefox.
|
| 184 |
+
*/
|
| 185 |
+
|
| 186 |
+
button,
|
| 187 |
+
select { /* 1 */
|
| 188 |
+
text-transform: none;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
/**
|
| 192 |
+
* Correct the inability to style clickable types in iOS and Safari.
|
| 193 |
+
*/
|
| 194 |
+
|
| 195 |
+
button,
|
| 196 |
+
[type="button"],
|
| 197 |
+
[type="reset"],
|
| 198 |
+
[type="submit"] {
|
| 199 |
+
-webkit-appearance: button;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
/**
|
| 203 |
+
* Remove the inner border and padding in Firefox.
|
| 204 |
+
*/
|
| 205 |
+
|
| 206 |
+
button::-moz-focus-inner,
|
| 207 |
+
[type="button"]::-moz-focus-inner,
|
| 208 |
+
[type="reset"]::-moz-focus-inner,
|
| 209 |
+
[type="submit"]::-moz-focus-inner {
|
| 210 |
+
border-style: none;
|
| 211 |
+
padding: 0;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
/**
|
| 215 |
+
* Restore the focus styles unset by the previous rule.
|
| 216 |
+
*/
|
| 217 |
+
|
| 218 |
+
button:-moz-focusring,
|
| 219 |
+
[type="button"]:-moz-focusring,
|
| 220 |
+
[type="reset"]:-moz-focusring,
|
| 221 |
+
[type="submit"]:-moz-focusring {
|
| 222 |
+
outline: 1px dotted ButtonText;
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
/**
|
| 226 |
+
* Correct the padding in Firefox.
|
| 227 |
+
*/
|
| 228 |
+
|
| 229 |
+
fieldset {
|
| 230 |
+
padding: 0.35em 0.75em 0.625em;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
/**
|
| 234 |
+
* 1. Correct the text wrapping in Edge and IE.
|
| 235 |
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
| 236 |
+
* 3. Remove the padding so developers are not caught out when they zero out
|
| 237 |
+
* `fieldset` elements in all browsers.
|
| 238 |
+
*/
|
| 239 |
+
|
| 240 |
+
legend {
|
| 241 |
+
box-sizing: border-box; /* 1 */
|
| 242 |
+
color: inherit; /* 2 */
|
| 243 |
+
display: table; /* 1 */
|
| 244 |
+
max-width: 100%; /* 1 */
|
| 245 |
+
padding: 0; /* 3 */
|
| 246 |
+
white-space: normal; /* 1 */
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
/**
|
| 250 |
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
| 251 |
+
*/
|
| 252 |
+
|
| 253 |
+
progress {
|
| 254 |
+
vertical-align: baseline;
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
/**
|
| 258 |
+
* Remove the default vertical scrollbar in IE 10+.
|
| 259 |
+
*/
|
| 260 |
+
|
| 261 |
+
textarea {
|
| 262 |
+
overflow: auto;
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
/**
|
| 266 |
+
* 1. Add the correct box sizing in IE 10.
|
| 267 |
+
* 2. Remove the padding in IE 10.
|
| 268 |
+
*/
|
| 269 |
+
|
| 270 |
+
[type="checkbox"],
|
| 271 |
+
[type="radio"] {
|
| 272 |
+
box-sizing: border-box; /* 1 */
|
| 273 |
+
padding: 0; /* 2 */
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
/**
|
| 277 |
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
| 278 |
+
*/
|
| 279 |
+
|
| 280 |
+
[type="number"]::-webkit-inner-spin-button,
|
| 281 |
+
[type="number"]::-webkit-outer-spin-button {
|
| 282 |
+
height: auto;
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
/**
|
| 286 |
+
* 1. Correct the odd appearance in Chrome and Safari.
|
| 287 |
+
* 2. Correct the outline style in Safari.
|
| 288 |
+
*/
|
| 289 |
+
|
| 290 |
+
[type="search"] {
|
| 291 |
+
-webkit-appearance: textfield; /* 1 */
|
| 292 |
+
outline-offset: -2px; /* 2 */
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
/**
|
| 296 |
+
* Remove the inner padding in Chrome and Safari on macOS.
|
| 297 |
+
*/
|
| 298 |
+
|
| 299 |
+
[type="search"]::-webkit-search-decoration {
|
| 300 |
+
-webkit-appearance: none;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
/**
|
| 304 |
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
| 305 |
+
* 2. Change font properties to `inherit` in Safari.
|
| 306 |
+
*/
|
| 307 |
+
|
| 308 |
+
::-webkit-file-upload-button {
|
| 309 |
+
-webkit-appearance: button; /* 1 */
|
| 310 |
+
font: inherit; /* 2 */
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
/* Interactive
|
| 314 |
+
========================================================================== */
|
| 315 |
+
|
| 316 |
+
/*
|
| 317 |
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
| 318 |
+
*/
|
| 319 |
+
|
| 320 |
+
details {
|
| 321 |
+
display: block;
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
/*
|
| 325 |
+
* Add the correct display in all browsers.
|
| 326 |
+
*/
|
| 327 |
+
|
| 328 |
+
summary {
|
| 329 |
+
display: list-item;
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
/* Misc
|
| 333 |
+
========================================================================== */
|
| 334 |
+
|
| 335 |
+
/**
|
| 336 |
+
* Add the correct display in IE 10+.
|
| 337 |
+
*/
|
| 338 |
+
|
| 339 |
+
template {
|
| 340 |
+
display: none;
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
/**
|
| 344 |
+
* Add the correct display in IE 10.
|
| 345 |
+
*/
|
| 346 |
+
|
| 347 |
+
[hidden] {
|
| 348 |
+
display: none;
|
| 349 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/general.scss
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
a {
|
| 2 |
+
text-decoration: none;
|
| 3 |
+
color: var(--accent-color);
|
| 4 |
+
|
| 5 |
+
&:hover {
|
| 6 |
+
color: var(--accent-color-darker);
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
&.link {
|
| 10 |
+
box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset;
|
| 11 |
+
transition: all 0.3s ease;
|
| 12 |
+
|
| 13 |
+
&:hover {
|
| 14 |
+
box-shadow: 0px calc(-1rem * var(--article-line-height)) 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset;
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.section-title {
|
| 20 |
+
text-transform: uppercase;
|
| 21 |
+
margin-top: 0;
|
| 22 |
+
margin-bottom: 10px;
|
| 23 |
+
display: block;
|
| 24 |
+
font-size: 1.6rem;
|
| 25 |
+
font-weight: bold;
|
| 26 |
+
color: var(--body-text-color);
|
| 27 |
+
|
| 28 |
+
a {
|
| 29 |
+
color: var(--body-text-color);
|
| 30 |
+
}
|
| 31 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/grid.scss
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.container {
|
| 2 |
+
margin-left: auto;
|
| 3 |
+
margin-right: auto;
|
| 4 |
+
|
| 5 |
+
.left-sidebar {
|
| 6 |
+
order: -3;
|
| 7 |
+
max-width: var(--left-sidebar-max-width);
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
.right-sidebar {
|
| 11 |
+
order: -1;
|
| 12 |
+
max-width: var(--right-sidebar-max-width);
|
| 13 |
+
|
| 14 |
+
/// Display right sidebar when min-width: lg
|
| 15 |
+
@include respond(lg) {
|
| 16 |
+
display: flex;
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
&.extended {
|
| 21 |
+
@include respond(md) {
|
| 22 |
+
max-width: 1024px;
|
| 23 |
+
--left-sidebar-max-width: 25%;
|
| 24 |
+
--right-sidebar-max-width: 30%;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
@include respond(lg) {
|
| 28 |
+
max-width: 1280px;
|
| 29 |
+
--left-sidebar-max-width: 20%;
|
| 30 |
+
--right-sidebar-max-width: 30%;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
@include respond(xl) {
|
| 34 |
+
max-width: 1536px;
|
| 35 |
+
--left-sidebar-max-width: 15%;
|
| 36 |
+
--right-sidebar-max-width: 25%;
|
| 37 |
+
}
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
&.compact {
|
| 41 |
+
@include respond(md) {
|
| 42 |
+
--left-sidebar-max-width: 25%;
|
| 43 |
+
max-width: 768px;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
@include respond(lg) {
|
| 47 |
+
max-width: 1024px;
|
| 48 |
+
--left-sidebar-max-width: 20%;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
@include respond(xl) {
|
| 52 |
+
max-width: 1280px;
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.flex {
|
| 58 |
+
display: flex;
|
| 59 |
+
flex-direction: row;
|
| 60 |
+
|
| 61 |
+
&.column {
|
| 62 |
+
flex-direction: column;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
&.on-phone--column {
|
| 66 |
+
flex-direction: column;
|
| 67 |
+
@include respond(md) {
|
| 68 |
+
flex-direction: unset;
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.full-width {
|
| 73 |
+
width: 100%;
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
main.main {
|
| 78 |
+
order: -2;
|
| 79 |
+
min-width: 0;
|
| 80 |
+
max-width: 100%;
|
| 81 |
+
flex-grow: 1;
|
| 82 |
+
display: flex;
|
| 83 |
+
flex-direction: column;
|
| 84 |
+
gap: var(--section-separation);
|
| 85 |
+
|
| 86 |
+
@include respond(md) {
|
| 87 |
+
padding-top: var(--main-top-padding);
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.main-container {
|
| 92 |
+
min-height: 100vh;
|
| 93 |
+
align-items: flex-start;
|
| 94 |
+
padding: 0 15px;
|
| 95 |
+
gap: var(--section-separation);
|
| 96 |
+
padding-top: var(--main-top-padding);
|
| 97 |
+
|
| 98 |
+
@include respond(md) {
|
| 99 |
+
padding: 0 20px;
|
| 100 |
+
}
|
| 101 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/partials/article.scss
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Default article style */
|
| 2 |
+
.article-list {
|
| 3 |
+
display: flex;
|
| 4 |
+
flex-direction: column;
|
| 5 |
+
gap: var(--section-separation);
|
| 6 |
+
|
| 7 |
+
article {
|
| 8 |
+
display: flex;
|
| 9 |
+
flex-direction: column;
|
| 10 |
+
background-color: var(--card-background);
|
| 11 |
+
box-shadow: var(--shadow-l1);
|
| 12 |
+
border-radius: var(--card-border-radius);
|
| 13 |
+
overflow: hidden;
|
| 14 |
+
|
| 15 |
+
transition: box-shadow 0.3s ease;
|
| 16 |
+
|
| 17 |
+
&:hover {
|
| 18 |
+
box-shadow: var(--shadow-l2);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.article-image {
|
| 22 |
+
img {
|
| 23 |
+
width: 100%;
|
| 24 |
+
height: 150px;
|
| 25 |
+
object-fit: cover;
|
| 26 |
+
|
| 27 |
+
@include respond(md) {
|
| 28 |
+
height: 200px;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
@include respond(xl) {
|
| 32 |
+
height: 250px;
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
@for $i from 1 through length($defaultTagBackgrounds) {
|
| 38 |
+
&:nth-child(#{length($defaultTagBackgrounds)}n + #{$i}) {
|
| 39 |
+
.article-category a {
|
| 40 |
+
background: nth($defaultTagBackgrounds, $i);
|
| 41 |
+
color: nth($defaultTagColors, $i);
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.article-details {
|
| 49 |
+
display: flex;
|
| 50 |
+
flex-direction: column;
|
| 51 |
+
justify-content: center;
|
| 52 |
+
padding: var(--card-padding);
|
| 53 |
+
gap: 15px;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.article-title {
|
| 57 |
+
font-family: var(--article-font-family);
|
| 58 |
+
font-weight: 600;
|
| 59 |
+
margin: 0;
|
| 60 |
+
color: var(--card-text-color-main);
|
| 61 |
+
font-size: 2.2rem;
|
| 62 |
+
|
| 63 |
+
@include respond(xl) {
|
| 64 |
+
font-size: 2.4rem;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
a {
|
| 68 |
+
color: var(--card-text-color-main);
|
| 69 |
+
|
| 70 |
+
&:hover {
|
| 71 |
+
color: var(--card-text-color-main);
|
| 72 |
+
}
|
| 73 |
+
}
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
.article-subtitle {
|
| 77 |
+
font-weight: normal;
|
| 78 |
+
color: var(--card-text-color-secondary);
|
| 79 |
+
line-height: 1.5;
|
| 80 |
+
margin: 0;
|
| 81 |
+
font-size: 1.75rem;
|
| 82 |
+
@include respond(xl) {
|
| 83 |
+
font-size: 2rem;
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.article-title-wrapper {
|
| 88 |
+
display: flex;
|
| 89 |
+
flex-direction: column;
|
| 90 |
+
gap: 8px;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.article-time,
|
| 94 |
+
.article-translations {
|
| 95 |
+
display: flex;
|
| 96 |
+
color: var(--card-text-color-tertiary);
|
| 97 |
+
gap: 15px;
|
| 98 |
+
|
| 99 |
+
svg {
|
| 100 |
+
vertical-align: middle;
|
| 101 |
+
width: 20px;
|
| 102 |
+
height: 20px;
|
| 103 |
+
stroke-width: 1.33;
|
| 104 |
+
flex-shrink: 0;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
time,
|
| 108 |
+
a {
|
| 109 |
+
font-size: 1.4rem;
|
| 110 |
+
color: var(--card-text-color-tertiary);
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
& > div {
|
| 114 |
+
display: inline-flex;
|
| 115 |
+
align-items: center;
|
| 116 |
+
gap: 15px;
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
.article-time {
|
| 121 |
+
flex-wrap: wrap;
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
.article-translations {
|
| 125 |
+
& > div {
|
| 126 |
+
flex-wrap: wrap;
|
| 127 |
+
}
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
.article-category,
|
| 131 |
+
.article-tags {
|
| 132 |
+
display: flex;
|
| 133 |
+
gap: 10px;
|
| 134 |
+
flex-wrap: wrap;
|
| 135 |
+
|
| 136 |
+
a {
|
| 137 |
+
color: var(--accent-color-text);
|
| 138 |
+
background-color: var(--accent-color);
|
| 139 |
+
padding: 8px 16px;
|
| 140 |
+
border-radius: var(--tag-border-radius);
|
| 141 |
+
display: inline-block;
|
| 142 |
+
font-size: 1.4rem;
|
| 143 |
+
transition: background-color 0.5s ease;
|
| 144 |
+
|
| 145 |
+
&:hover {
|
| 146 |
+
color: var(--accent-color-text);
|
| 147 |
+
background-color: var(--accent-color-darker);
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
/* Compact style article list */
|
| 153 |
+
.article-list--compact {
|
| 154 |
+
border-radius: var(--card-border-radius);
|
| 155 |
+
box-shadow: var(--shadow-l1);
|
| 156 |
+
background-color: var(--card-background);
|
| 157 |
+
--image-size: 50px;
|
| 158 |
+
|
| 159 |
+
@include respond(md) {
|
| 160 |
+
--image-size: 60px;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
article {
|
| 164 |
+
& > a {
|
| 165 |
+
display: flex;
|
| 166 |
+
align-items: center;
|
| 167 |
+
padding: var(--small-card-padding);
|
| 168 |
+
gap: 15px;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
&:not(:last-of-type) {
|
| 172 |
+
border-bottom: 1.5px solid var(--card-separator-color);
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
.article-details {
|
| 176 |
+
flex-grow: 1;
|
| 177 |
+
padding: 0;
|
| 178 |
+
min-height: var(--image-size);
|
| 179 |
+
gap: 10px;
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
.article-title {
|
| 183 |
+
margin: 0;
|
| 184 |
+
font-size: 1.6rem;
|
| 185 |
+
|
| 186 |
+
@include respond(md) {
|
| 187 |
+
font-size: 1.8rem;
|
| 188 |
+
}
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
.article-image {
|
| 192 |
+
img {
|
| 193 |
+
width: var(--image-size);
|
| 194 |
+
height: var(--image-size);
|
| 195 |
+
object-fit: cover;
|
| 196 |
+
}
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
.article-time {
|
| 200 |
+
font-size: 1.4rem;
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
.article-preview {
|
| 204 |
+
font-size: 1.4rem;
|
| 205 |
+
color: var(--card-text-color-tertiary);
|
| 206 |
+
margin-top: 10px;
|
| 207 |
+
line-height: 1.5;
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
/* Tile style article list */
|
| 213 |
+
.article-list--tile {
|
| 214 |
+
article {
|
| 215 |
+
border-radius: var(--card-border-radius);
|
| 216 |
+
overflow: hidden;
|
| 217 |
+
position: relative;
|
| 218 |
+
height: 350px;
|
| 219 |
+
width: 250px;
|
| 220 |
+
box-shadow: var(--shadow-l1);
|
| 221 |
+
transition: box-shadow 0.3s ease;
|
| 222 |
+
background-color: var(--card-background);
|
| 223 |
+
|
| 224 |
+
&:hover {
|
| 225 |
+
box-shadow: var(--shadow-l2);
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
&.has-image {
|
| 229 |
+
.article-details {
|
| 230 |
+
background-color: rgba(#000, 0.25);
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
.article-title {
|
| 234 |
+
color: #fff;
|
| 235 |
+
}
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
.article-image {
|
| 239 |
+
position: absolute;
|
| 240 |
+
top: 0;
|
| 241 |
+
left: 0;
|
| 242 |
+
width: 100%;
|
| 243 |
+
height: 100%;
|
| 244 |
+
|
| 245 |
+
img {
|
| 246 |
+
width: 100%;
|
| 247 |
+
height: 100%;
|
| 248 |
+
object-fit: cover;
|
| 249 |
+
}
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
.article-details {
|
| 253 |
+
border-radius: var(--card-border-radius);
|
| 254 |
+
position: relative;
|
| 255 |
+
height: 100%;
|
| 256 |
+
width: 100%;
|
| 257 |
+
display: flex;
|
| 258 |
+
flex-direction: column;
|
| 259 |
+
justify-content: flex-end;
|
| 260 |
+
z-index: 2;
|
| 261 |
+
padding: 15px;
|
| 262 |
+
|
| 263 |
+
@include respond(sm) {
|
| 264 |
+
padding: 20px;
|
| 265 |
+
}
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.article-title {
|
| 269 |
+
font-size: 2rem;
|
| 270 |
+
font-weight: 500;
|
| 271 |
+
color: var(--card-text-color-main);
|
| 272 |
+
|
| 273 |
+
@include respond(sm) {
|
| 274 |
+
font-size: 2.2rem;
|
| 275 |
+
}
|
| 276 |
+
}
|
| 277 |
+
}
|
| 278 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/partials/base.scss
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
html {
|
| 2 |
+
font-size: 62.5%;
|
| 3 |
+
overflow-y: scroll;
|
| 4 |
+
}
|
| 5 |
+
|
| 6 |
+
* {
|
| 7 |
+
box-sizing: border-box;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
body {
|
| 11 |
+
background: var(--body-background);
|
| 12 |
+
margin: 0;
|
| 13 |
+
font-family: var(--base-font-family);
|
| 14 |
+
font-size: 1.6rem;
|
| 15 |
+
-webkit-font-smoothing: antialiased;
|
| 16 |
+
-moz-osx-font-smoothing: grayscale;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
/* scrollbar styles for Firefox */
|
| 20 |
+
* {
|
| 21 |
+
scrollbar-width: auto;
|
| 22 |
+
scrollbar-color: var(--scrollbar-thumb) transparent;
|
| 23 |
+
}
|
| 24 |
+
/**/
|
| 25 |
+
|
| 26 |
+
/* scrollbar styles for Chromium */
|
| 27 |
+
::-webkit-scrollbar {
|
| 28 |
+
height: auto;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
::-webkit-scrollbar-thumb {
|
| 32 |
+
background-color: var(--scrollbar-thumb);
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
::-webkit-scrollbar-track {
|
| 36 |
+
background-color: transparent;
|
| 37 |
+
}
|
| 38 |
+
/**/
|
app/themes/hugo-theme-stack/assets/scss/partials/comments/disqusjs.scss
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.disqus-container {
|
| 2 |
+
background-color: var(--card-background);
|
| 3 |
+
border-radius: var(--card-border-radius);
|
| 4 |
+
box-shadow: var(--shadow-l1);
|
| 5 |
+
padding: var(--card-padding);
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
#dsqjs * {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
#dsqjs a {
|
| 14 |
+
text-decoration: none;
|
| 15 |
+
color: #076dd0
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
#dsqjs .dsqjs-hide {
|
| 19 |
+
display: none!important
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
#dsqjs .dsqjs-disabled {
|
| 23 |
+
cursor: not-allowed;
|
| 24 |
+
opacity: .5
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
#dsqjs #dsqjs-msg {
|
| 28 |
+
text-align: center;
|
| 29 |
+
margin-top: 4px;
|
| 30 |
+
margin-bottom: 4px;
|
| 31 |
+
font-size: 14px
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
#dsqjs #dsqjs-msg .dsqjs-msg-btn {
|
| 35 |
+
cursor: pointer
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
#dsqjs .dsqjs-bullet {
|
| 39 |
+
line-height: 1.4;
|
| 40 |
+
margin: 0 2px
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
#dsqjs .dsqjs-bullet:after {
|
| 44 |
+
color: #c2c6cc;
|
| 45 |
+
content: "·";
|
| 46 |
+
font-weight: 700
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
#dsqjs .dsqjs-clearfix:after,#dsqjs .dsqjs-clearfix:before {
|
| 50 |
+
display: table;
|
| 51 |
+
content: "";
|
| 52 |
+
line-height: 0;
|
| 53 |
+
clear: both
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
#dsqjs .dsqjs-nav {
|
| 57 |
+
position: relative;
|
| 58 |
+
margin: 0 0 20px;
|
| 59 |
+
border-bottom: 2px solid #e7e9ee
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
#dsqjs ol,#dsqjs ul {
|
| 63 |
+
list-style: none;
|
| 64 |
+
list-style-type: none
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
#dsqjs .dsqjs-no-comment {
|
| 68 |
+
text-align: center;
|
| 69 |
+
font-size: 16px;
|
| 70 |
+
line-height: 1.5;
|
| 71 |
+
word-wrap: break-word;
|
| 72 |
+
overflow: hidden;
|
| 73 |
+
color: #2a2e2e;
|
| 74 |
+
margin-bottom: 6px
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
#dsqjs .dsqjs-nav-tab {
|
| 78 |
+
float: left;
|
| 79 |
+
text-transform: capitalize;
|
| 80 |
+
font-size: 15px;
|
| 81 |
+
padding: 12px 8px;
|
| 82 |
+
color: #656c7a;
|
| 83 |
+
display: block;
|
| 84 |
+
margin: 0 15px 0 0;
|
| 85 |
+
font-weight: 700;
|
| 86 |
+
line-height: 1;
|
| 87 |
+
position: relative;
|
| 88 |
+
transition: all .2s ease-in-out
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
#dsqjs .dsqjs-nav-tab:last-child {
|
| 92 |
+
margin: 0
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
#dsqjs .dsqjs-tab-active {
|
| 96 |
+
color: #2a2e2e
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
#dsqjs .dsqjs-tab-active>span:after {
|
| 100 |
+
content: " ";
|
| 101 |
+
display: block;
|
| 102 |
+
height: 2px;
|
| 103 |
+
background-color: #076dd0!important;
|
| 104 |
+
position: absolute;
|
| 105 |
+
bottom: -5px;
|
| 106 |
+
left: 0;
|
| 107 |
+
right: 0
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
#dsqjs .dsqjs-post-list .dsqjs-post-item {
|
| 111 |
+
position: relative;
|
| 112 |
+
margin-bottom: 16px
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
#dsqjs .dsqjs-post-list .dsqjs-post-avatar {
|
| 116 |
+
float: left;
|
| 117 |
+
margin-right: 10px;
|
| 118 |
+
position: relative;
|
| 119 |
+
background: #dbdfe4;
|
| 120 |
+
padding: 0;
|
| 121 |
+
display: block;
|
| 122 |
+
border-radius: 4px
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
#dsqjs .dsqjs-post-list .dsqjs-post-avatar img {
|
| 126 |
+
width: 44px;
|
| 127 |
+
height: 44px;
|
| 128 |
+
display: block;
|
| 129 |
+
border-radius: 4px
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
#dsqjs .dsqjs-post-list .dsqjs-post-header {
|
| 133 |
+
line-height: 1;
|
| 134 |
+
font-size: 14px;
|
| 135 |
+
margin-bottom: 3px
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
#dsqjs .dsqjs-post-list .dsqjs-post-header .dsqjs-post-author {
|
| 139 |
+
color: #656c7a;
|
| 140 |
+
font-weight: 700
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
#dsqjs .dsqjs-post-list .dsqjs-post-header .dsqjs-admin-badge {
|
| 144 |
+
color: #fff;
|
| 145 |
+
background: #687a86;
|
| 146 |
+
padding: 1px 3px;
|
| 147 |
+
margin-left: 4px;
|
| 148 |
+
font-size: 12px;
|
| 149 |
+
line-height: 1;
|
| 150 |
+
font-weight: 700;
|
| 151 |
+
border-radius: 3px;
|
| 152 |
+
display: inline-block;
|
| 153 |
+
position: relative;
|
| 154 |
+
top: -1px;
|
| 155 |
+
left: 1px
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
#dsqjs .dsqjs-post-list .dsqjs-post-header .dsqjs-meta {
|
| 159 |
+
display: inline-block;
|
| 160 |
+
font-size: 12px;
|
| 161 |
+
color: #656c7a
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
#dsqjs .dsqjs-post-body {
|
| 165 |
+
font-size: 15px;
|
| 166 |
+
line-height: 1.5;
|
| 167 |
+
word-wrap: break-word;
|
| 168 |
+
overflow: hidden;
|
| 169 |
+
color: #2a2e2e
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
#dsqjs .dsqjs-post-body code {
|
| 173 |
+
padding: .2em .4em;
|
| 174 |
+
margin: 0;
|
| 175 |
+
font-size: 85%;
|
| 176 |
+
background: #f5f5f5;
|
| 177 |
+
color: inherit;
|
| 178 |
+
border-radius: 3px
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
#dsqjs .dsqjs-post-body pre {
|
| 182 |
+
padding: .5em;
|
| 183 |
+
overflow: auto;
|
| 184 |
+
font-size: 85%;
|
| 185 |
+
line-height: 1.45;
|
| 186 |
+
border-radius: 3px;
|
| 187 |
+
background: #f5f5f5;
|
| 188 |
+
margin: .5em 0
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
#dsqjs .dsqjs-post-body blockquote {
|
| 192 |
+
padding: 0 .8em;
|
| 193 |
+
margin: .5em 0;
|
| 194 |
+
color: #6a737d;
|
| 195 |
+
border-left: .25em solid #dfe2e5
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
#dsqjs .dsqjs-post-body p:last-child {
|
| 199 |
+
margin: 0
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
#dsqjs .dsqjs-post-list.dsqjs-children>li {
|
| 203 |
+
margin-left: 30px
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
#dsqjs .dsqjs-post-list.dsqjs-children .dsqjs-post-avatar img {
|
| 207 |
+
width: 38px;
|
| 208 |
+
height: 38px
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
#dsqjs .dsqjs-load-more {
|
| 212 |
+
font-size: 14px;
|
| 213 |
+
font-weight: 400;
|
| 214 |
+
display: block;
|
| 215 |
+
text-align: center;
|
| 216 |
+
padding: 11px 14px;
|
| 217 |
+
margin: 0 0 24px;
|
| 218 |
+
background: #687a86;
|
| 219 |
+
color: #fff;
|
| 220 |
+
cursor: pointer
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
#dsqjs .dsqjs-load-more:hover {
|
| 224 |
+
opacity: .8
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
#dsqjs footer {
|
| 228 |
+
text-align: right;
|
| 229 |
+
line-height: 1.5;
|
| 230 |
+
padding-top: 10px;
|
| 231 |
+
padding-right: 10px;
|
| 232 |
+
border-top: 2px solid #e7e9ee;
|
| 233 |
+
margin-top: 12px;
|
| 234 |
+
font-weight: 700;
|
| 235 |
+
font-size: 16px;
|
| 236 |
+
color: #555
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
#dsqjs .dsqjs-disqus-logo {
|
| 240 |
+
background-image: url(https://c.disquscdn.com/next/embed/assets/img/sprite.654110a9206fd22f08cca0798e34a65e.png);
|
| 241 |
+
background-repeat: no-repeat;
|
| 242 |
+
display: inline-block;
|
| 243 |
+
background-size: 86px 40.5px;
|
| 244 |
+
height: 16.5px;
|
| 245 |
+
width: 86px;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
#dsqjs .dsqjs-order {
|
| 249 |
+
display: flex;
|
| 250 |
+
float: right;
|
| 251 |
+
align-items: center;
|
| 252 |
+
margin-top: 10px;
|
| 253 |
+
margin-bottom: 12px
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
#dsqjs .dsqjs-order-radio {
|
| 257 |
+
display: none
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
#dsqjs .dsqjs-order-radio:checked+.dsqjs-order-label {
|
| 261 |
+
color: #fff;
|
| 262 |
+
background-color: #888
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
#dsqjs .dsqjs-order-label {
|
| 266 |
+
display: block;
|
| 267 |
+
height: 20px;
|
| 268 |
+
line-height: 20px;
|
| 269 |
+
margin-right: 10px;
|
| 270 |
+
font-size: 12px;
|
| 271 |
+
border-radius: 2px;
|
| 272 |
+
padding: 0 5px;
|
| 273 |
+
background-color: #dcdcdc;
|
| 274 |
+
cursor: pointer
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
#dsqjs p.dsqjs-has-more {
|
| 278 |
+
margin-bottom: 24px;
|
| 279 |
+
margin-left: 48px;
|
| 280 |
+
font-size: 13px;
|
| 281 |
+
line-height: 15px
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
#dsqjs p.dsqjs-has-more a.dsqjs-has-more-btn {
|
| 285 |
+
color: #656c7a;
|
| 286 |
+
text-decoration: underline;
|
| 287 |
+
cursor: pointer
|
| 288 |
+
}
|
| 289 |
+
|
| 290 |
+
@media (min-width: 768px) {
|
| 291 |
+
#dsqjs .dsqjs-post-list.dsqjs-children>li {
|
| 292 |
+
margin-left:48px
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
#dsqjs .dsqjs-post-list .dsqjs-post-avatar {
|
| 296 |
+
margin-right: 12px
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
#dsqjs .dsqjs-post-list .dsqjs-post-item {
|
| 300 |
+
margin-bottom: 20px
|
| 301 |
+
}
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
@media (min-width: 1024px) {
|
| 305 |
+
#dsqjs .dsqjs-post-list.dsqjs-children>li {
|
| 306 |
+
margin-left:60px
|
| 307 |
+
}
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
:root[data-scheme="light"] {
|
| 311 |
+
#dsqjs .dsqjs-disqus-logo {
|
| 312 |
+
background-position: 0 -7px;
|
| 313 |
+
}
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
:root[data-scheme="dark"] {
|
| 317 |
+
#dsqjs {
|
| 318 |
+
--t-s: rgba(255,255,255,0.9);
|
| 319 |
+
--alt: #3e4b5e;
|
| 320 |
+
--link-hover: #47a2e0;
|
| 321 |
+
--hover-bg: #3e4b5e;
|
| 322 |
+
--tag: #3e4b5e;
|
| 323 |
+
--border: #435266;
|
| 324 |
+
--pre: #3c495b;
|
| 325 |
+
--c-bg: #2f3947;
|
| 326 |
+
--code: #c3c7cb;
|
| 327 |
+
--kbd: #4e5f77;
|
| 328 |
+
--hl: #abb2bf;
|
| 329 |
+
--hlc: #808895;
|
| 330 |
+
--hlk: #c678dd;
|
| 331 |
+
--hln: #e06c75;
|
| 332 |
+
--hll: #56b6c2;
|
| 333 |
+
--hls: #98c379;
|
| 334 |
+
--hlt: #e6c07b;
|
| 335 |
+
--hlv: #d19a66;
|
| 336 |
+
--bg: #181c27;
|
| 337 |
+
--main: #252d38;
|
| 338 |
+
--t: rgba(255,255,255,0.86);
|
| 339 |
+
--t-l: rgba(255,255,255,0.66);
|
| 340 |
+
--logo: #fff;
|
| 341 |
+
--link: #38a3fd;
|
| 342 |
+
--title: rgba(255,255,255,0.92);
|
| 343 |
+
--fab: #364151;
|
| 344 |
+
--shadow: none;
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
#disqus_thread {
|
| 348 |
+
color: var(--body-text-color)
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
#dsqjs #dsqjs-msg {
|
| 352 |
+
color: var(--t)
|
| 353 |
+
}
|
| 354 |
+
|
| 355 |
+
#dsqjs a {
|
| 356 |
+
color:var(--link)
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
#dsqjs a:focus,#dsqjs a:hover {
|
| 360 |
+
color: var(--link-hover)
|
| 361 |
+
}
|
| 362 |
+
|
| 363 |
+
#dsqjs .dsqjs-disqus-logo {
|
| 364 |
+
background-position: 0 -24px;
|
| 365 |
+
}
|
| 366 |
+
|
| 367 |
+
#dsqjs .dsqjs-nav,#dsqjs footer {
|
| 368 |
+
border-color: var(--hlc)
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
#dsqjs .dsqjs-load-more,#dsqjs .dsqjs-load-more:hover,#dsqjs .dsqjs-nav-tab,#dsqjs .dsqjs-no-comment,#dsqjs .dsqjs-post-content {
|
| 372 |
+
color: var(--t)
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
#dsqjs .dsqjs-order-label {
|
| 376 |
+
background-color: var(--hlc)
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
#dsqjs .dsqjs-order-radio:checked+.dsqjs-order-label {
|
| 380 |
+
background-color: var(--kbd)
|
| 381 |
+
}
|
| 382 |
+
|
| 383 |
+
#dsqjs .dsqjs-tab-active>span:after {
|
| 384 |
+
background-color: #2e9fff
|
| 385 |
+
}
|
| 386 |
+
|
| 387 |
+
#dsqjs .dsqjs-footer,#dsqjs .dsqjs-meta {
|
| 388 |
+
color: var(--t-l)
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
#dsqjs .dsqjs-post-body blockquote {
|
| 392 |
+
border-color: var(--border)
|
| 393 |
+
}
|
| 394 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/partials/footer.scss
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
footer.site-footer {
|
| 2 |
+
padding: 20px 0 var(--section-separation) 0;
|
| 3 |
+
font-size: 1.4rem;
|
| 4 |
+
line-height: 1.75;
|
| 5 |
+
|
| 6 |
+
&:before {
|
| 7 |
+
content: "";
|
| 8 |
+
display: block;
|
| 9 |
+
height: 3px;
|
| 10 |
+
width: 50px;
|
| 11 |
+
background: var(--body-text-color);
|
| 12 |
+
margin-bottom: 20px;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
.copyright {
|
| 16 |
+
color: var(--accent-color);
|
| 17 |
+
font-weight: bold;
|
| 18 |
+
margin-bottom: 5px;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.powerby {
|
| 22 |
+
color: var(--body-text-color);
|
| 23 |
+
font-weight: normal;
|
| 24 |
+
font-size: 1.2rem;
|
| 25 |
+
|
| 26 |
+
a {
|
| 27 |
+
color: var(--body-text-color);
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/partials/highlight/common.scss
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
/* Error */
|
| 12 |
+
.chroma .err {
|
| 13 |
+
color: $error-color;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
/* LineTableTD */
|
| 17 |
+
.chroma .lntd {
|
| 18 |
+
vertical-align: top;
|
| 19 |
+
padding: 0;
|
| 20 |
+
margin: 0;
|
| 21 |
+
border: 0;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
/* LineTable */
|
| 25 |
+
.chroma .lntable {
|
| 26 |
+
border-spacing: 0;
|
| 27 |
+
padding: 0;
|
| 28 |
+
margin: 0;
|
| 29 |
+
border: 0;
|
| 30 |
+
width: 100%;
|
| 31 |
+
display: block;
|
| 32 |
+
|
| 33 |
+
> tbody {
|
| 34 |
+
display: block;
|
| 35 |
+
width: 100%;
|
| 36 |
+
> tr {
|
| 37 |
+
display: flex;
|
| 38 |
+
width: 100%;
|
| 39 |
+
> td:last-child {
|
| 40 |
+
overflow-x: auto;
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
/* LineHighlight */
|
| 47 |
+
.chroma .hl {
|
| 48 |
+
display: block;
|
| 49 |
+
width: 100%;
|
| 50 |
+
background-color: #ffffcc;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
/* LineNumbersTable */
|
| 54 |
+
.chroma .lnt {
|
| 55 |
+
margin-right: 0.4em;
|
| 56 |
+
padding: 0 0.4em 0 0.4em;
|
| 57 |
+
color: #7f7f7f;
|
| 58 |
+
display: block;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/* LineNumbers */
|
| 62 |
+
.chroma .ln {
|
| 63 |
+
margin-right: 0.4em;
|
| 64 |
+
padding: 0 0.4em 0 0.4em;
|
| 65 |
+
color: #7f7f7f;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* Keyword */
|
| 69 |
+
.chroma .k {
|
| 70 |
+
color: $keyword-color;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
/* KeywordConstant */
|
| 74 |
+
.chroma .kc {
|
| 75 |
+
color: $keyword-color;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
/* KeywordDeclaration */
|
| 79 |
+
.chroma .kd {
|
| 80 |
+
color: $keyword-color;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
/* KeywordNamespace */
|
| 84 |
+
.chroma .kn {
|
| 85 |
+
color: #f92672;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
/* KeywordPseudo */
|
| 89 |
+
.chroma .kp {
|
| 90 |
+
color: $keyword-color;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
/* KeywordReserved */
|
| 94 |
+
.chroma .kr {
|
| 95 |
+
color: $keyword-color;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
/* KeywordType */
|
| 99 |
+
.chroma .kt {
|
| 100 |
+
color: $keyword-color;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
/* Name */
|
| 104 |
+
.chroma .n {
|
| 105 |
+
color: $text-color;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
/* NameAttribute */
|
| 109 |
+
.chroma .na {
|
| 110 |
+
color: $name-color;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
/* NameBuiltin */
|
| 114 |
+
.chroma .nb {
|
| 115 |
+
color: $text-color;
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
/* NameBuiltinPseudo */
|
| 119 |
+
.chroma .bp {
|
| 120 |
+
color: $text-color;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
/* NameClass */
|
| 124 |
+
.chroma .nc {
|
| 125 |
+
color: $name-color;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
/* NameConstant */
|
| 129 |
+
.chroma .no {
|
| 130 |
+
color: $keyword-color;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
/* NameDecorator */
|
| 134 |
+
.chroma .nd {
|
| 135 |
+
color: $name-color;
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
/* NameEntity */
|
| 139 |
+
.chroma .ni {
|
| 140 |
+
color: $text-color;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
/* NameException */
|
| 144 |
+
.chroma .ne {
|
| 145 |
+
color: $name-color;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
/* NameFunction */
|
| 149 |
+
.chroma .nf {
|
| 150 |
+
color: $name-color;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
/* NameFunctionMagic */
|
| 154 |
+
.chroma .fm {
|
| 155 |
+
color: $text-color;
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
/* NameLabel */
|
| 159 |
+
.chroma .nl {
|
| 160 |
+
color: $text-color;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
/* NameNamespace */
|
| 164 |
+
.chroma .nn {
|
| 165 |
+
color: $text-color;
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
/* NameOther */
|
| 169 |
+
.chroma .nx {
|
| 170 |
+
color: $name-color;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
/* NameProperty */
|
| 174 |
+
.chroma .py {
|
| 175 |
+
color: $text-color;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
/* NameTag */
|
| 179 |
+
.chroma .nt {
|
| 180 |
+
color: #f92672;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
/* NameVariable */
|
| 184 |
+
.chroma .nv {
|
| 185 |
+
color: $text-color;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
/* NameVariableClass */
|
| 189 |
+
.chroma .vc {
|
| 190 |
+
color: $text-color;
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
/* NameVariableGlobal */
|
| 194 |
+
.chroma .vg {
|
| 195 |
+
color: $text-color;
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
/* NameVariableInstance */
|
| 199 |
+
.chroma .vi {
|
| 200 |
+
color: $text-color;
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
/* NameVariableMagic */
|
| 204 |
+
.chroma .vm {
|
| 205 |
+
color: $text-color;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
/* Literal */
|
| 209 |
+
.chroma .l {
|
| 210 |
+
color: #ae81ff;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
/* LiteralDate */
|
| 214 |
+
.chroma .ld {
|
| 215 |
+
color: $literal-color;
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
/* LiteralString */
|
| 219 |
+
.chroma .s {
|
| 220 |
+
color: $literal-color;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
/* LiteralStringAffix */
|
| 224 |
+
.chroma .sa {
|
| 225 |
+
color: $literal-color;
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
/* LiteralStringBacktick */
|
| 229 |
+
.chroma .sb {
|
| 230 |
+
color: $literal-color;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
/* LiteralStringChar */
|
| 234 |
+
.chroma .sc {
|
| 235 |
+
color: $literal-color;
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
/* LiteralStringDelimiter */
|
| 239 |
+
.chroma .dl {
|
| 240 |
+
color: $literal-color;
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
+
/* LiteralStringDoc */
|
| 244 |
+
.chroma .sd {
|
| 245 |
+
color: $literal-color;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
/* LiteralStringDouble */
|
| 249 |
+
.chroma .s2 {
|
| 250 |
+
color: $literal-color;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
/* LiteralStringEscape */
|
| 254 |
+
.chroma .se {
|
| 255 |
+
color: #ae81ff;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
/* LiteralStringHeredoc */
|
| 259 |
+
.chroma .sh {
|
| 260 |
+
color: $literal-color;
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
/* LiteralStringInterpol */
|
| 264 |
+
.chroma .si {
|
| 265 |
+
color: $literal-color;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
/* LiteralStringOther */
|
| 269 |
+
.chroma .sx {
|
| 270 |
+
color: $literal-color;
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
/* LiteralStringRegex */
|
| 274 |
+
.chroma .sr {
|
| 275 |
+
color: $literal-color;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
/* LiteralStringSingle */
|
| 279 |
+
.chroma .s1 {
|
| 280 |
+
color: $literal-color;
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
/* LiteralStringSymbol */
|
| 284 |
+
.chroma .ss {
|
| 285 |
+
color: $literal-color;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
/* LiteralNumber */
|
| 289 |
+
.chroma .m {
|
| 290 |
+
color: #ae81ff;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
/* LiteralNumberBin */
|
| 294 |
+
.chroma .mb {
|
| 295 |
+
color: #ae81ff;
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
/* LiteralNumberFloat */
|
| 299 |
+
.chroma .mf {
|
| 300 |
+
color: #ae81ff;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
/* LiteralNumberHex */
|
| 304 |
+
.chroma .mh {
|
| 305 |
+
color: #ae81ff;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
/* LiteralNumberInteger */
|
| 309 |
+
.chroma .mi {
|
| 310 |
+
color: #ae81ff;
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
/* LiteralNumberIntegerLong */
|
| 314 |
+
.chroma .il {
|
| 315 |
+
color: #ae81ff;
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
/* LiteralNumberOct */
|
| 319 |
+
.chroma .mo {
|
| 320 |
+
color: #ae81ff;
|
| 321 |
+
}
|
| 322 |
+
|
| 323 |
+
/* Operator */
|
| 324 |
+
.chroma .o {
|
| 325 |
+
color: #f92672;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
/* OperatorWord */
|
| 329 |
+
.chroma .ow {
|
| 330 |
+
color: #f92672;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
/* Punctuation */
|
| 334 |
+
.chroma .p {
|
| 335 |
+
color: $text-color;
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
/* Comment */
|
| 339 |
+
.chroma .c {
|
| 340 |
+
color: #75715e;
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
/* CommentHashbang */
|
| 344 |
+
.chroma .ch {
|
| 345 |
+
color: #75715e;
|
| 346 |
+
}
|
| 347 |
+
|
| 348 |
+
/* CommentMultiline */
|
| 349 |
+
.chroma .cm {
|
| 350 |
+
color: #75715e;
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
/* CommentSingle */
|
| 354 |
+
.chroma .c1 {
|
| 355 |
+
color: #75715e;
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
/* CommentSpecial */
|
| 359 |
+
.chroma .cs {
|
| 360 |
+
color: #75715e;
|
| 361 |
+
}
|
| 362 |
+
|
| 363 |
+
/* CommentPreproc */
|
| 364 |
+
.chroma .cp {
|
| 365 |
+
color: #75715e;
|
| 366 |
+
}
|
| 367 |
+
|
| 368 |
+
/* CommentPreprocFile */
|
| 369 |
+
.chroma .cpf {
|
| 370 |
+
color: #75715e;
|
| 371 |
+
}
|
| 372 |
+
|
| 373 |
+
/* Generic */
|
| 374 |
+
.chroma .g {
|
| 375 |
+
}
|
| 376 |
+
|
| 377 |
+
/* GenericDeleted */
|
| 378 |
+
.chroma .gd {
|
| 379 |
+
color: #f92672;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
/* GenericEmph */
|
| 383 |
+
.chroma .ge {
|
| 384 |
+
font-style: italic;
|
| 385 |
+
}
|
| 386 |
+
|
| 387 |
+
/* GenericError */
|
| 388 |
+
.chroma .gr {
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
/* GenericHeading */
|
| 392 |
+
.chroma .gh {
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
/* GenericInserted */
|
| 396 |
+
.chroma .gi {
|
| 397 |
+
color: $name-color;
|
| 398 |
+
}
|
| 399 |
+
|
| 400 |
+
/* GenericOutput */
|
| 401 |
+
.chroma .go {
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
/* GenericPrompt */
|
| 405 |
+
.chroma .gp {
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
/* GenericStrong */
|
| 409 |
+
.chroma .gs {
|
| 410 |
+
font-weight: bold;
|
| 411 |
+
}
|
| 412 |
+
|
| 413 |
+
/* GenericSubheading */
|
| 414 |
+
.chroma .gu {
|
| 415 |
+
color: #75715e;
|
| 416 |
+
}
|
| 417 |
+
|
| 418 |
+
/* GenericTraceback */
|
| 419 |
+
.chroma .gt {
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
/* GenericUnderline */
|
| 423 |
+
.chroma .gl {
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
/* TextWhitespace */
|
| 427 |
+
.chroma .w {
|
| 428 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/partials/highlight/dark.scss
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Style: monokai
|
| 3 |
+
* https://xyproto.github.io/splash/docs/monokai.html
|
| 4 |
+
*/
|
| 5 |
+
|
| 6 |
+
$color: #f8f8f2;
|
| 7 |
+
$background-color: #272822;
|
| 8 |
+
$error-color: #bb0064;
|
| 9 |
+
$keyword-color: #66d9ef;
|
| 10 |
+
$text-color: $color;
|
| 11 |
+
$name-color: #a6e22e;
|
| 12 |
+
$literal-color: #e6db74;
|
| 13 |
+
|
| 14 |
+
@import "common.scss";
|
app/themes/hugo-theme-stack/assets/scss/partials/highlight/light.scss
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Style: monokailight
|
| 3 |
+
* https://xyproto.github.io/splash/docs/monokailight.html
|
| 4 |
+
*/
|
| 5 |
+
|
| 6 |
+
$color: #272822;
|
| 7 |
+
$background-color: #fafafa;
|
| 8 |
+
$error-color: #960050;
|
| 9 |
+
$keyword-color: #00a8c8;
|
| 10 |
+
$text-color: #111111;
|
| 11 |
+
$name-color: #75af00;
|
| 12 |
+
$literal-color: #d88200;
|
| 13 |
+
|
| 14 |
+
@import "common.scss";
|
app/themes/hugo-theme-stack/assets/scss/partials/layout/404.scss
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.not-found-card {
|
| 2 |
+
background-color: var(--card-background);
|
| 3 |
+
box-shadow: var(--shadow-l1);
|
| 4 |
+
border-radius: var(--card-border-radius);
|
| 5 |
+
padding: var(--card-padding);
|
| 6 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/partials/layout/article.scss
ADDED
|
@@ -0,0 +1,461 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.article-page {
|
| 2 |
+
&.hide-sidebar-sm .left-sidebar {
|
| 3 |
+
display: none;
|
| 4 |
+
|
| 5 |
+
@include respond(md) {
|
| 6 |
+
display: inherit;
|
| 7 |
+
}
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
.main-article {
|
| 11 |
+
background: var(--card-background);
|
| 12 |
+
border-radius: var(--card-border-radius);
|
| 13 |
+
box-shadow: var(--shadow-l1);
|
| 14 |
+
overflow: hidden;
|
| 15 |
+
|
| 16 |
+
.article-header {
|
| 17 |
+
.article-image {
|
| 18 |
+
img {
|
| 19 |
+
height: auto;
|
| 20 |
+
width: 100%;
|
| 21 |
+
max-height: 50vh;
|
| 22 |
+
object-fit: cover;
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.article-details {
|
| 27 |
+
padding: var(--card-padding);
|
| 28 |
+
padding-bottom: 0;
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.article-content {
|
| 33 |
+
margin: var(--card-padding) 0;
|
| 34 |
+
color: var(--card-text-color-main);
|
| 35 |
+
|
| 36 |
+
.footnotes {
|
| 37 |
+
font-family: var(--base-font-family);
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
img {
|
| 41 |
+
max-width: 100%;
|
| 42 |
+
height: auto;
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.article-footer {
|
| 47 |
+
margin: var(--card-padding);
|
| 48 |
+
margin-top: 0;
|
| 49 |
+
|
| 50 |
+
section:not(:first-child) {
|
| 51 |
+
margin-top: var(--card-padding);
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
section {
|
| 55 |
+
color: var(--card-text-color-tertiary);
|
| 56 |
+
text-transform: uppercase;
|
| 57 |
+
display: flex;
|
| 58 |
+
align-items: center;
|
| 59 |
+
font-size: 1.4rem;
|
| 60 |
+
gap: 15px;
|
| 61 |
+
|
| 62 |
+
svg {
|
| 63 |
+
width: 20px;
|
| 64 |
+
height: 20px;
|
| 65 |
+
stroke-width: 1.33;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.article-tags {
|
| 70 |
+
text-transform: unset;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.article-copyright,
|
| 74 |
+
.article-lastmod {
|
| 75 |
+
a {
|
| 76 |
+
color: var(--body-text-color);
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
a.link {
|
| 80 |
+
box-shadow: unset;
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.widget--toc {
|
| 88 |
+
background-color: var(--card-background);
|
| 89 |
+
border-radius: var(--card-border-radius);
|
| 90 |
+
box-shadow: var(--shadow-l1);
|
| 91 |
+
display: flex;
|
| 92 |
+
flex-direction: column;
|
| 93 |
+
color: var(--card-text-color-main);
|
| 94 |
+
overflow: hidden;
|
| 95 |
+
|
| 96 |
+
::-webkit-scrollbar-thumb {
|
| 97 |
+
background-color: var(--card-separator-color);
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
#TableOfContents {
|
| 101 |
+
overflow-x: auto;
|
| 102 |
+
max-height: 75vh;
|
| 103 |
+
|
| 104 |
+
ol,
|
| 105 |
+
ul {
|
| 106 |
+
margin: 0;
|
| 107 |
+
padding: 0;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
ol {
|
| 111 |
+
list-style-type: none;
|
| 112 |
+
counter-reset: item;
|
| 113 |
+
|
| 114 |
+
li a:first-of-type::before {
|
| 115 |
+
counter-increment: item;
|
| 116 |
+
content: counters(item, ".") ". ";
|
| 117 |
+
font-weight: bold;
|
| 118 |
+
margin-right: 5px;
|
| 119 |
+
}
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
& > ul {
|
| 123 |
+
padding: 0 1em;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
li {
|
| 127 |
+
margin: 15px 0 15px 20px;
|
| 128 |
+
padding: 5px;
|
| 129 |
+
|
| 130 |
+
& > ol,
|
| 131 |
+
& > ul {
|
| 132 |
+
margin-top: 10px;
|
| 133 |
+
padding-left: 10px;
|
| 134 |
+
margin-bottom: -5px;
|
| 135 |
+
|
| 136 |
+
& > li:last-child {
|
| 137 |
+
margin-bottom: 0;
|
| 138 |
+
}
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
li.active-class > a {
|
| 142 |
+
border-left: var(--heading-border-size) solid var(--accent-color);
|
| 143 |
+
font-weight: bold;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
ul li.active-class > a {
|
| 147 |
+
display: block;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
@function repeat($str, $n) {
|
| 151 |
+
$result: "";
|
| 152 |
+
@for $_ from 0 to $n {
|
| 153 |
+
$result: $result + $str;
|
| 154 |
+
}
|
| 155 |
+
@return $result;
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
// Support up to 6 levels of indentation for lists in ToCs
|
| 159 |
+
@for $i from 0 to 5 {
|
| 160 |
+
& > ul #{repeat("> li > ul", $i)} > li.active-class > a {
|
| 161 |
+
$n: 25 + $i * 35;
|
| 162 |
+
margin-left: calc(-#{$n}px - 1em);
|
| 163 |
+
padding-left: calc(#{$n}px + 1em - var(--heading-border-size));
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
& > ol #{repeat("> li > ol", $i)} > li.active-class > a {
|
| 167 |
+
$n: 9 + $i * 35;
|
| 168 |
+
margin-left: calc(-#{$n}px - 1em);
|
| 169 |
+
padding-left: calc(#{$n}px + 1em - var(--heading-border-size));
|
| 170 |
+
display: block;
|
| 171 |
+
}
|
| 172 |
+
}
|
| 173 |
+
}
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
.related-content {
|
| 177 |
+
overflow-x: auto;
|
| 178 |
+
padding-bottom: 15px;
|
| 179 |
+
|
| 180 |
+
& > .flex {
|
| 181 |
+
float: left;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
article {
|
| 185 |
+
margin-right: 15px;
|
| 186 |
+
flex-shrink: 0;
|
| 187 |
+
overflow: hidden;
|
| 188 |
+
width: 250px;
|
| 189 |
+
height: 150px;
|
| 190 |
+
|
| 191 |
+
.article-title {
|
| 192 |
+
font-size: 1.8rem;
|
| 193 |
+
margin: 0;
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
&.has-image {
|
| 197 |
+
.article-details {
|
| 198 |
+
padding: 20px;
|
| 199 |
+
background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%);
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
.article-content {
|
| 206 |
+
font-family: var(--article-font-family);
|
| 207 |
+
font-size: var(--article-font-size);
|
| 208 |
+
padding: 0 var(--card-padding);
|
| 209 |
+
line-height: var(--article-line-height);
|
| 210 |
+
|
| 211 |
+
& > p {
|
| 212 |
+
margin: 1.5em 0;
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
h1,
|
| 216 |
+
h2,
|
| 217 |
+
h3,
|
| 218 |
+
h4,
|
| 219 |
+
h5,
|
| 220 |
+
h6 {
|
| 221 |
+
margin-inline-start: calc((var(--card-padding)) * -1);
|
| 222 |
+
padding-inline-start: calc(var(--card-padding) - var(--heading-border-size));
|
| 223 |
+
border-inline-start: var(--heading-border-size) solid var(--accent-color);
|
| 224 |
+
position: relative;
|
| 225 |
+
|
| 226 |
+
a.header-anchor {
|
| 227 |
+
transition: opacity 0.3s ease;
|
| 228 |
+
opacity: 0;
|
| 229 |
+
position: absolute;
|
| 230 |
+
left: 0;
|
| 231 |
+
width: var(--card-padding);
|
| 232 |
+
text-align: center;
|
| 233 |
+
color: var(--accent-color);
|
| 234 |
+
|
| 235 |
+
&:before {
|
| 236 |
+
content: "#";
|
| 237 |
+
}
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
&:hover,
|
| 241 |
+
&:focus {
|
| 242 |
+
a.header-anchor {
|
| 243 |
+
opacity: 1;
|
| 244 |
+
}
|
| 245 |
+
}
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
figure {
|
| 249 |
+
text-align: center;
|
| 250 |
+
|
| 251 |
+
figcaption {
|
| 252 |
+
font-size: 1.4rem;
|
| 253 |
+
color: var(--card-text-color-secondary);
|
| 254 |
+
}
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
blockquote {
|
| 258 |
+
position: relative;
|
| 259 |
+
margin: 1.5em 0;
|
| 260 |
+
border-inline-start: var(--blockquote-border-size) solid var(--card-separator-color);
|
| 261 |
+
padding: 15px calc(var(--card-padding) - var(--blockquote-border-size));
|
| 262 |
+
background-color: var(--blockquote-background-color);
|
| 263 |
+
|
| 264 |
+
.cite {
|
| 265 |
+
display: block;
|
| 266 |
+
text-align: right;
|
| 267 |
+
font-size: 0.75em;
|
| 268 |
+
|
| 269 |
+
a {
|
| 270 |
+
text-decoration: underline;
|
| 271 |
+
}
|
| 272 |
+
}
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
hr {
|
| 276 |
+
width: 100px;
|
| 277 |
+
margin: 40px auto;
|
| 278 |
+
background: var(--card-text-color-tertiary);
|
| 279 |
+
height: 2px;
|
| 280 |
+
border: 0;
|
| 281 |
+
opacity: 0.55;
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
code {
|
| 285 |
+
color: var(--code-text-color);
|
| 286 |
+
background-color: var(--code-background-color);
|
| 287 |
+
padding: 2px 4px;
|
| 288 |
+
border-radius: var(--tag-border-radius);
|
| 289 |
+
font-family: var(--code-font-family);
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
a,
|
| 293 |
+
code {
|
| 294 |
+
word-break: break-word;
|
| 295 |
+
}
|
| 296 |
+
|
| 297 |
+
.gallery {
|
| 298 |
+
position: relative;
|
| 299 |
+
display: flex;
|
| 300 |
+
flex-direction: row;
|
| 301 |
+
justify-content: center;
|
| 302 |
+
margin: 1.5em 0;
|
| 303 |
+
gap: 10px;
|
| 304 |
+
|
| 305 |
+
figure {
|
| 306 |
+
margin: 0;
|
| 307 |
+
}
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
pre {
|
| 311 |
+
overflow-x: auto;
|
| 312 |
+
display: block;
|
| 313 |
+
background-color: var(--pre-background-color);
|
| 314 |
+
color: var(--pre-text-color);
|
| 315 |
+
font-family: var(--code-font-family);
|
| 316 |
+
line-height: 1.428571429;
|
| 317 |
+
word-break: break-all;
|
| 318 |
+
padding: var(--card-padding);
|
| 319 |
+
// keep Codeblocks LTR
|
| 320 |
+
[dir="rtl"] & {
|
| 321 |
+
direction: ltr;
|
| 322 |
+
}
|
| 323 |
+
code {
|
| 324 |
+
color: unset;
|
| 325 |
+
border: none;
|
| 326 |
+
background: none;
|
| 327 |
+
padding: 0;
|
| 328 |
+
}
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
.highlight {
|
| 332 |
+
background-color: var(--pre-background-color);
|
| 333 |
+
padding: var(--card-padding);
|
| 334 |
+
position: relative;
|
| 335 |
+
|
| 336 |
+
&:hover {
|
| 337 |
+
.copyCodeButton {
|
| 338 |
+
opacity: 1;
|
| 339 |
+
}
|
| 340 |
+
}
|
| 341 |
+
// keep Codeblocks LTR
|
| 342 |
+
[dir="rtl"] & {
|
| 343 |
+
direction: ltr;
|
| 344 |
+
}
|
| 345 |
+
pre {
|
| 346 |
+
margin: initial;
|
| 347 |
+
padding: 0;
|
| 348 |
+
margin: 0;
|
| 349 |
+
width: auto;
|
| 350 |
+
}
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
.copyCodeButton {
|
| 354 |
+
position: absolute;
|
| 355 |
+
top: calc(var(--card-padding));
|
| 356 |
+
right: calc(var(--card-padding));
|
| 357 |
+
background: var(--card-background);
|
| 358 |
+
border: none;
|
| 359 |
+
box-shadow: var(--shadow-l2);
|
| 360 |
+
border-radius: var(--tag-border-radius);
|
| 361 |
+
padding: 8px 16px;
|
| 362 |
+
color: var(--card-text-color-main);
|
| 363 |
+
cursor: pointer;
|
| 364 |
+
font-size: 14px;
|
| 365 |
+
opacity: 0;
|
| 366 |
+
transition: opacity 0.3s ease;
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
.table-wrapper {
|
| 370 |
+
padding: 0 var(--card-padding);
|
| 371 |
+
overflow-x: auto;
|
| 372 |
+
display: block;
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
table {
|
| 376 |
+
width: 100%;
|
| 377 |
+
border-collapse: collapse;
|
| 378 |
+
border-spacing: 0;
|
| 379 |
+
margin-bottom: 1.5em;
|
| 380 |
+
font-size: 0.96em;
|
| 381 |
+
}
|
| 382 |
+
|
| 383 |
+
th,
|
| 384 |
+
td {
|
| 385 |
+
text-align: left;
|
| 386 |
+
padding: 4px 8px 4px 10px;
|
| 387 |
+
border: 1px solid var(--table-border-color);
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
td {
|
| 391 |
+
vertical-align: top;
|
| 392 |
+
}
|
| 393 |
+
|
| 394 |
+
tr:nth-child(even) {
|
| 395 |
+
background-color: var(--tr-even-background-color);
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
.twitter-tweet {
|
| 399 |
+
color: var(--card-text-color-main);
|
| 400 |
+
}
|
| 401 |
+
|
| 402 |
+
.video-wrapper {
|
| 403 |
+
position: relative;
|
| 404 |
+
width: 100%;
|
| 405 |
+
height: 0;
|
| 406 |
+
padding-bottom: 56.25%;
|
| 407 |
+
overflow: hidden;
|
| 408 |
+
|
| 409 |
+
& > iframe,
|
| 410 |
+
& > video {
|
| 411 |
+
position: absolute;
|
| 412 |
+
width: 100%;
|
| 413 |
+
height: 100%;
|
| 414 |
+
left: 0;
|
| 415 |
+
top: 0;
|
| 416 |
+
border: 0;
|
| 417 |
+
}
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
.gitlab-embed-snippets {
|
| 421 |
+
margin: 0 !important;
|
| 422 |
+
|
| 423 |
+
.file-holder.snippet-file-content {
|
| 424 |
+
margin-block-end: 0 !important;
|
| 425 |
+
margin-block-start: 0 !important;
|
| 426 |
+
margin-left: calc((var(--card-padding)) * -1) !important;
|
| 427 |
+
margin-right: calc((var(--card-padding)) * -1) !important;
|
| 428 |
+
padding: 0 var(--card-padding) !important;
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
|
| 432 |
+
/// Negative margins
|
| 433 |
+
blockquote,
|
| 434 |
+
figure,
|
| 435 |
+
.highlight,
|
| 436 |
+
pre,
|
| 437 |
+
.gallery,
|
| 438 |
+
.video-wrapper,
|
| 439 |
+
.table-wrapper,
|
| 440 |
+
.s_video_simple {
|
| 441 |
+
margin-left: calc((var(--card-padding)) * -1);
|
| 442 |
+
margin-right: calc((var(--card-padding)) * -1);
|
| 443 |
+
width: calc(100% + var(--card-padding) * 2);
|
| 444 |
+
}
|
| 445 |
+
|
| 446 |
+
/// Make long KaTeX equations scrollable in the x-axis
|
| 447 |
+
.katex-display > .katex {
|
| 448 |
+
overflow-x: auto;
|
| 449 |
+
overflow-y: hidden;
|
| 450 |
+
}
|
| 451 |
+
|
| 452 |
+
kbd {
|
| 453 |
+
border: 1px solid var(--kbd-border-color);
|
| 454 |
+
font-weight: bold;
|
| 455 |
+
font-size: 0.9em;
|
| 456 |
+
line-height: 1;
|
| 457 |
+
padding: 2px 4px;
|
| 458 |
+
border-radius: 4px;
|
| 459 |
+
display: inline-block;
|
| 460 |
+
}
|
| 461 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/partials/layout/list.scss
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.section-card {
|
| 2 |
+
border-radius: var(--card-border-radius);
|
| 3 |
+
background-color: var(--card-background);
|
| 4 |
+
padding: var(--small-card-padding);
|
| 5 |
+
box-shadow: var(--shadow-l1);
|
| 6 |
+
display: flex;
|
| 7 |
+
align-items: center;
|
| 8 |
+
gap: 20px;
|
| 9 |
+
|
| 10 |
+
--separation: 15px;
|
| 11 |
+
|
| 12 |
+
.section-term {
|
| 13 |
+
font-size: 2.2rem;
|
| 14 |
+
margin: 0;
|
| 15 |
+
color: var(--card-text-color-main);
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
.section-description {
|
| 19 |
+
font-weight: normal;
|
| 20 |
+
color: var(--card-text-color-secondary);
|
| 21 |
+
font-size: 1.6rem;
|
| 22 |
+
margin: 0;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.section-details {
|
| 26 |
+
flex-grow: 1;
|
| 27 |
+
display: flex;
|
| 28 |
+
flex-direction: column;
|
| 29 |
+
gap: 8px;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.section-image {
|
| 33 |
+
img {
|
| 34 |
+
width: 60px;
|
| 35 |
+
height: 60px;
|
| 36 |
+
}
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.section-count {
|
| 40 |
+
color: var(--card-text-color-tertiary);
|
| 41 |
+
font-size: 1.4rem;
|
| 42 |
+
margin: 0;
|
| 43 |
+
font-weight: bold;
|
| 44 |
+
text-transform: uppercase;
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.subsection-list {
|
| 49 |
+
overflow-x: auto;
|
| 50 |
+
|
| 51 |
+
.article-list--tile {
|
| 52 |
+
display: flex;
|
| 53 |
+
padding-bottom: 15px;
|
| 54 |
+
|
| 55 |
+
article {
|
| 56 |
+
width: 250px;
|
| 57 |
+
height: 150px;
|
| 58 |
+
margin-right: 20px;
|
| 59 |
+
flex-shrink: 0;
|
| 60 |
+
|
| 61 |
+
.article-title {
|
| 62 |
+
margin: 0;
|
| 63 |
+
font-size: 1.8rem;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.article-details {
|
| 67 |
+
padding: 20px;
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
}
|
app/themes/hugo-theme-stack/assets/scss/partials/layout/search.scss
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.search-form {
|
| 2 |
+
position: relative;
|
| 3 |
+
--button-size: 80px;
|
| 4 |
+
|
| 5 |
+
&.widget {
|
| 6 |
+
--button-size: 60px;
|
| 7 |
+
|
| 8 |
+
label {
|
| 9 |
+
font-size: 1.3rem;
|
| 10 |
+
top: 10px;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
input {
|
| 14 |
+
font-size: 1.5rem;
|
| 15 |
+
padding: 30px 20px 15px 20px;
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
p {
|
| 20 |
+
position: relative;
|
| 21 |
+
margin: 0;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
label {
|
| 25 |
+
position: absolute;
|
| 26 |
+
top: 15px;
|
| 27 |
+
inset-inline-start: 20px;
|
| 28 |
+
font-size: 1.4rem;
|
| 29 |
+
color: var(--card-text-color-tertiary);
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
input {
|
| 33 |
+
padding: 40px 20px 20px;
|
| 34 |
+
border-radius: var(--card-border-radius);
|
| 35 |
+
background-color: var(--card-background);
|
| 36 |
+
box-shadow: var(--shadow-l1);
|
| 37 |
+
color: var(--card-text-color-main);
|
| 38 |
+
width: 100%;
|
| 39 |
+
border: 0;
|
| 40 |
+
-webkit-appearance: none;
|
| 41 |
+
|
| 42 |
+
transition: box-shadow 0.3s ease;
|
| 43 |
+
|
| 44 |
+
font-size: 1.8rem;
|
| 45 |
+
|
| 46 |
+
&:focus {
|
| 47 |
+
outline: 0;
|
| 48 |
+
box-shadow: var(--shadow-l2);
|
| 49 |
+
}
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
button {
|
| 53 |
+
position: absolute;
|
| 54 |
+
inset-inline-end: 0;
|
| 55 |
+
top: 0;
|
| 56 |
+
height: 100%;
|
| 57 |
+
width: var(--button-size);
|
| 58 |
+
cursor: pointer;
|
| 59 |
+
background-color: transparent;
|
| 60 |
+
border: 0;
|
| 61 |
+
|
| 62 |
+
padding: 0 10px;
|
| 63 |
+
|
| 64 |
+
&:focus {
|
| 65 |
+
outline: 0;
|
| 66 |
+
|
| 67 |
+
svg {
|
| 68 |
+
stroke-width: 2;
|
| 69 |
+
color: var(--accent-color);
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
svg {
|
| 74 |
+
color: var(--card-text-color-secondary);
|
| 75 |
+
stroke-width: 1.33;
|
| 76 |
+
transition: all 0.3s ease;
|
| 77 |
+
width: 20px;
|
| 78 |
+
height: 20px;
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
}
|