-
Notifications
You must be signed in to change notification settings - Fork 402
New style for blog authors #178
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
Open
john-sp
wants to merge
7
commits into
LeelaChessZero:master
Choose a base branch
from
john-sp:blog-authors
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a648e5e
New style for blog author
john-sp 3d3903c
Remove duplicate CSS rule
john-sp 9a72153
Redesign authors
john-sp d23a7f1
Remove animations and move guest author to top
john-sp b6f707d
Merge branch 'master' into blog-authors
john-sp fcf43ae
Fix blog authors
john-sp aa44fcb
Fix typo for lepned
john-sp 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # This is used for configuring author information for blog posts. | ||
| # Each author is identified by a unique key (e.g., their github username) in all lowercase. | ||
| # To get your github avatar URL, go to your profile and right-click on your avatar to copy the image address. | ||
| # template: | ||
| # name: "John Doe" (Optional) | ||
| # title: "" | ||
| # image_url: "https://avatars.githubusercontent.com/u/12345678?v=4" | ||
| # url: "https://github.com/johndoe" | ||
|
|
||
| crem: | ||
| # name: "" | ||
| title: "LCZero Core Developer" | ||
| image_url: "https://avatars.githubusercontent.com/u/11266455?v=4" | ||
| url: "https://github.com/mooskagh" | ||
|
|
||
| borg: | ||
| title: "LCZero Contributor" | ||
| image_url: "https://avatars.githubusercontent.com/u/39573933?v=4" | ||
| url: "https://github.com/borg323" | ||
|
|
||
| naphthalin: | ||
| title: "LCZero Contributor" | ||
| image_url: "https://avatars.githubusercontent.com/u/40385638?v=4" | ||
| url: "https://github.com/naphthalin" | ||
|
|
||
| daniel monroe: | ||
| title: "LCZero Contributor" | ||
| image_url: "https://avatars.githubusercontent.com/u/23456789?v=4" | ||
| url: "https://github.com/daniel-monroe" | ||
|
|
||
| ghostway: | ||
| title: "LCZero Contributor" | ||
| image_url: "https://avatars.githubusercontent.com/u/50481015?v=4" | ||
| url: "https://github.com/OfekShochat" | ||
|
|
||
| lepned: | ||
| title: "EngineBattle Developer" | ||
| image_url: "https://avatars.githubusercontent.com/u/1504584?v=4" | ||
| url: "https://github.com/lepned" | ||
|
|
||
| marcogio9: | ||
| title: "LCZero Odds Contributor" | ||
| image_url: "https://avatars.githubusercontent.com/u/154074772?v=4" | ||
| url: "https://github.com/marcogio9" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,132 @@ | ||
| .blog-summary { | ||
| margin-top: 3rem; /* Creates vertical space between posts */ | ||
| padding-bottom: 2rem; | ||
| border-bottom: 1px solid var(--color-border-primary); | ||
| } | ||
|
|
||
| .blog-summary:last-of-type { | ||
| border-bottom: none; | ||
| padding-bottom: 0; | ||
| } | ||
|
|
||
| /* NEW: Flex container for the date and title */ | ||
| .blog-summary-header { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 1rem; /* Space between date and title */ | ||
| } | ||
|
|
||
| /* The date "pill" style */ | ||
| .blog-summary-date { | ||
| flex-shrink: 0; /* Prevents the date from shrinking */ | ||
| background-color: var(--color-bg-secondary); | ||
| color: var(--color-text-tertiary); | ||
| font-size: 0.875rem; | ||
| padding: 0.3rem 0.6rem; | ||
| border-radius: 5px; | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| /* The title heading element */ | ||
| .blog-summary-title { | ||
| margin: 0; | ||
| font-size: var(--font-size-h4); | ||
| font-weight: 600; | ||
| } | ||
|
|
||
| /* NEW: The author meta line */ | ||
| .blog-summary-meta { | ||
| margin-top: 0.5rem; | ||
| font-style: italic; | ||
| } | ||
|
|
||
| /* The summary text paragraph */ | ||
| .blog-summary-content { | ||
| margin-top: 0.75rem; | ||
| } | ||
|
|
||
|
|
||
| .author-box { | ||
| display: flex; | ||
| flex-wrap: wrap; /* Allows content to wrap on smaller screens */ | ||
| gap: 1.5rem; | ||
| align-items: flex-start; | ||
| padding: 2rem; | ||
| margin-block: 2.5rem; /* Vertical margin for spacing */ | ||
| background-color: var(--color-bg-secondary); | ||
| border: 1px solid var(--color-border-primary); | ||
| border-radius: 12px; | ||
| box-shadow: 0 4px 12px var(--shadow-color); | ||
| } | ||
|
|
||
| .author-box { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 1rem; | ||
| padding: 0.875rem 1.25rem; | ||
| margin-block: 2rem 2.5rem; | ||
| background-color: var(--color-bg-secondary); | ||
| border-left: 4px solid var(--color-accent); | ||
| border-radius: 8px; | ||
| box-shadow: 0 4px 12px -4px var(--shadow-color); | ||
| } | ||
|
|
||
| .author-avatar { | ||
| width: 50px; | ||
| height: 50px; | ||
| border-radius: 50%; | ||
| object-fit: cover; | ||
| flex-shrink: 0; | ||
| } | ||
|
|
||
| .author-info { | ||
| flex-grow: 1; | ||
| } | ||
|
|
||
| .author-name { | ||
| font-size: 1.125rem; | ||
| font-weight: 600; | ||
| color: var(--color-text-primary); | ||
| } | ||
|
|
||
| .author-meta { | ||
| display: flex; | ||
| align-items: center; | ||
| flex-wrap: wrap; | ||
| gap: 0.5rem; | ||
| margin-top: 0.125rem; | ||
| } | ||
|
|
||
| .author-title { | ||
| font-size: 0.9rem; | ||
| color: var(--color-text-secondary); | ||
| font-style: italic; | ||
| } | ||
|
|
||
| .author-date { | ||
| font-size: 0.9rem; | ||
| color: var(--color-text-secondary); | ||
| } | ||
|
|
||
| .meta-separator { | ||
| color: var(--color-text-secondary); | ||
| } | ||
|
|
||
| /* --- Fallback Styling --- */ | ||
| .author-default .author-info { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 0.5rem; | ||
| } | ||
|
|
||
| .author-default .author-name, | ||
| .author-default .author-date, | ||
| .author-default .meta-separator { | ||
| font-size: 1rem; | ||
| font-style: italic; | ||
| color: var(--color-text-tertiary); | ||
| } | ||
|
|
||
| .author-default .author-name { | ||
| font-weight: 400; | ||
| } | ||
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.