-
Notifications
You must be signed in to change notification settings - Fork 0
Move the local edits out of the vendored theme, and document its width knobs #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| /* | ||
| Site styles, bundled into the theme's stylesheet. | ||
|
|
||
| PaperMod's head partial concatenates `resources.Match "css/extended/*.css"` across the union | ||
| of this project's `assets/` and the theme's, so a file here is picked up by the same glob | ||
| that finds the theme's own `extended/blank.css` placeholder. Concatenation is in path | ||
| order, which puts this file last; upstream's placeholder carries no rules, so nothing here | ||
| depends on that ordering. | ||
|
|
||
| These rules lived in the theme's placeholder until they were moved out. Keeping them here | ||
| is what leaves `themes/PaperMod/` byte identical to its upstream commit, so an update is a | ||
| directory replace with nothing to reapply. See `themes/README.md`. | ||
|
|
||
| The body font is loaded by `layouts/_partials/extend_head.html`, which was moved out of the | ||
| vendored tree for the same reason. The two belong together. | ||
| */ | ||
|
|
||
| body { | ||
| font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | ||
| font-size: 18px; | ||
| line-height: 1.6; | ||
| word-break: break-word; | ||
| background: var(--theme); | ||
| } | ||
|
|
||
| /* Layout for the `gallery` shortcode at `layouts/shortcodes/gallery.html`. */ | ||
| .gallery { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| } | ||
|
|
||
| .gallery figure, | ||
| .gallery figure img { | ||
| text-align: center; | ||
| } | ||
|
|
||
| .gallery figure img { | ||
| margin: 1rem auto; | ||
| } | ||
|
|
||
| .gallery-cols-1 figure { | ||
| width: 100%; | ||
| } | ||
|
|
||
| .gallery-cols-2 figure { | ||
| width: 50%; | ||
| } | ||
|
|
||
| .gallery-cols-3 figure { | ||
| width: 33.3333333333%; | ||
| } | ||
|
|
||
| .gallery-cols-4 figure { | ||
| width: 25%; | ||
| } | ||
|
|
||
| .gallery-cols-5 figure { | ||
| width: 25%; | ||
| } | ||
|
|
||
| .gallery-cols-6 figure { | ||
| width: 16.666666666%; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| {{- /* Head custom content area start */ -}} | ||
| {{- /* Insert any custom code (web-analytics, resources, etc.) - it will appear in the <head></head> section of every page. */ -}} | ||
| {{- /* Can be overwritten by partial with the same name in the global layouts. */ -}} | ||
| {{- /* Head custom content area end */ -}} | ||
| {{- /* */ -}} | ||
| {{- /* This file is that override. It carries the Lexend web font the body rule in */ -}} | ||
| {{- /* `assets/css/extended/custom.css` selects, which is why the two move together. */ -}} | ||
| {{- /* Holding it here leaves `themes/PaperMod/` byte identical to its upstream commit, */ -}} | ||
| {{- /* so an update is a directory replace with nothing to reapply. See `themes/README.md`. */ -}} | ||
|
|
||
| <link rel="preconnect" href="https://fonts.googleapis.com"> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
| <link href="https://fonts.googleapis.com/css2?family=Lexend&display=swap" rel="stylesheet"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.