forked from smartcontractkit/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/153 changelog #152
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
tyrelchambers
wants to merge
13
commits into
dev-3.0
Choose a base branch
from
feat/153-changelog
base: dev-3.0
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
Feat/153 changelog #152
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
21641ee
add page
tyrelchambers 2cf2029
add changelog page
tyrelchambers b97ed64
adjust tyling
tyrelchambers 678348a
copy button
tyrelchambers 8d8b35d
add individual changelog page
tyrelchambers 825c4cf
styling
tyrelchambers 7dec2c2
make individual page for changelog item
tyrelchambers ce7d5d0
add pagination
tyrelchambers bf8dc2c
Update [...id].astro
tyrelchambers b53ab8c
Merge pull request #153 from thisdot/feat/155-changelog-item-page
tyrelchambers 181685e
add networks
tyrelchambers 6ae0d12
fix some styling
tyrelchambers 2aa65f8
Update README.md
tyrelchambers 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 |
|---|---|---|
| @@ -1,27 +1,58 @@ | ||
| /* Card Wrapper */ | ||
| /* Card Wrapper used in Changelog page */ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is also too much space between the items on mobile. (not sure if it is too much on desktop too) |
||
| .cardWrapper { | ||
| max-height: 400px; | ||
| overflow: hidden; | ||
| transition: max-height 0.5s ease; | ||
| transition: all 0.5s ease; | ||
| position: relative; | ||
|
|
||
| &:hover { | ||
| background-color: var(--gray-50); | ||
| } | ||
|
|
||
| &:hover .copyButton { | ||
| opacity: 1; | ||
| } | ||
|
|
||
| & .card { | ||
| padding: var(--space-4x); | ||
| } | ||
| } | ||
|
|
||
| /* Used on individual pages like CCIP/DataFeeds */ | ||
| .cardWrapper.withBorder { | ||
| border: 1px solid var(--border); | ||
|
|
||
| &:hover { | ||
| background-color: var(--muted); | ||
| } | ||
| } | ||
|
|
||
| /* Disable hover background when disableHover is true */ | ||
| .cardWrapper[data-disable-hover="true"]:hover { | ||
| background-color: transparent !important; | ||
| } | ||
|
|
||
| .cardWrapper.withBorder[data-disable-hover="true"]:hover { | ||
| background-color: transparent !important; | ||
| } | ||
|
|
||
| /* Remove padding when disableHover is true */ | ||
| .cardWrapper[data-disable-hover="true"] .card { | ||
| padding: 0 !important; | ||
| } | ||
|
|
||
| /* Card Container */ | ||
| .card { | ||
| display: flex; | ||
| gap: 82px; | ||
| padding: var(--space-6x); | ||
| } | ||
|
|
||
| .cardWrapper.expanded .card { | ||
| .cardWrapper.withBorder.expanded .card { | ||
| -webkit-mask-image: none; | ||
| mask-image: none; | ||
| } | ||
|
|
||
| .cardWrapper:hover { | ||
| background-color: var(--muted); | ||
|
|
||
| .cardWrapper.withBorder:hover { | ||
| & .contentFooter { | ||
| background: linear-gradient(to top, var(--muted) 50%, transparent); | ||
| } | ||
|
|
@@ -54,11 +85,11 @@ | |
|
|
||
| .description p { | ||
| margin: 0; | ||
| color: var(--foreground); | ||
| color: var(--muted-foreground); | ||
| } | ||
|
|
||
| .description a { | ||
| color: var(--color-blue-600); | ||
| color: var(--link); | ||
| text-decoration: none; | ||
| } | ||
|
|
||
|
|
@@ -68,7 +99,7 @@ | |
|
|
||
| .header { | ||
| display: flex; | ||
| width: 150px; | ||
| width: 160px; | ||
| } | ||
|
|
||
| .content { | ||
|
|
@@ -82,6 +113,15 @@ | |
| flex: 1; | ||
| } | ||
|
|
||
| /* Networks and Topic Section */ | ||
| .networksAndTopicSection { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: var(--space-3x); | ||
| margin-bottom: var(--space-4x); | ||
| flex-wrap: wrap; | ||
| } | ||
|
|
||
| /* Content Footer */ | ||
| .contentFooter { | ||
| position: absolute; | ||
|
|
@@ -119,16 +159,58 @@ | |
| transition: transform 0.3s ease; | ||
| } | ||
|
|
||
| @media (max-width: 768px) { | ||
| .copyButton { | ||
| display: flex; | ||
| height: fit-content; | ||
| gap: var(--space-2x); | ||
| border-radius: var(--space-1x); | ||
| border: 1px solid var(--border); | ||
| width: 118px; | ||
| justify-content: center; | ||
| align-items: center; | ||
| padding: var(--space-2x) 0; | ||
| transition: all 0.2s ease; | ||
| opacity: 0; | ||
|
|
||
| & > svg { | ||
| color: var(--muted-foreground); | ||
| } | ||
|
|
||
| &:hover { | ||
| border: 1px solid var(--foreground); | ||
| } | ||
| } | ||
|
|
||
| .checkmark { | ||
| stroke: var(--success-foreground); | ||
| } | ||
| .copyIconMobile { | ||
| display: none; | ||
| } | ||
|
|
||
| .copyIconDesktop { | ||
| display: block; | ||
| } | ||
|
|
||
| @media screen and (max-width: 425px) { | ||
| .changelogType { | ||
| font-size: 14px; | ||
| } | ||
|
|
||
| .metaSection { | ||
| gap: 0 !important; | ||
| } | ||
| } | ||
|
|
||
| @media screen and (max-width: 768px) { | ||
| .card { | ||
| padding: var(--space-4x); | ||
| padding: 0 !important; | ||
| gap: 0; | ||
| flex-direction: column; | ||
| gap: var(--space-4x); | ||
| } | ||
|
|
||
| .header { | ||
| gap: var(--space-3x); | ||
| width: 100%; | ||
| } | ||
|
|
||
| .metaSection { | ||
|
|
@@ -147,4 +229,28 @@ | |
| .contentFooter { | ||
| padding-left: var(--space-4x); | ||
| } | ||
|
|
||
| .copyIconDesktop { | ||
| display: none; | ||
| } | ||
|
|
||
| .copyIconMobile { | ||
| display: block; | ||
| } | ||
| .copyText { | ||
| display: none; | ||
| } | ||
|
|
||
| .copyButton { | ||
| width: 32px; | ||
| opacity: 1; | ||
| } | ||
| } | ||
|
|
||
| @media screen and (max-width: 990px) { | ||
| .copyButton { | ||
| position: absolute; | ||
| right: var(--space-4x); | ||
| top: var(--space-4x); | ||
| } | ||
| } | ||
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
Oops, something went wrong.
Oops, something went wrong.
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.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is missing extra info:

Do you need them in the algolia Index?