Skip to content

Commit

Permalink
Better All Versions Button/Dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimatChamp committed Dec 30, 2023
1 parent 606f23a commit 04be427
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 27 deletions.
10 changes: 8 additions & 2 deletions layouts/shortcodes/versions.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<div class="versions-border">
<a class="versions" href="https://projects.neoforged.net/neoforged/neoforge">All Versions ➤</a>
<div id="projectlink" class="fileinfo">
<details>
<summary class="fileinfo__header">For Other Versions</summary>
<div class="fileinfo__body">
<a href="https://projects.neoforged.net/neoforged/neoforge"><span class="fileinfo__icon"><i class="bi-file-earmark-arrow-down-fill" style="font-size: 2rem;"></i></span>
<span class="fileinfo__content"><span>Click here to go to the version list!</span></span></a>
</div>
</details>
</div>
15 changes: 0 additions & 15 deletions themes/mainroad/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1073,21 +1073,6 @@ summary:hover {
margin-bottom: 5px;
}

.versions {
padding: 5px 10px;
}

.versions-border {
padding: 10px 20px;
text-align: center;
width: max-content;
}

.versions-border:hover > .versions:hover {
text-decoration: none;
color: var(--color-download-highlight);
}

.fileinfo .fileinfo__header {
padding: 10px 15px;
padding: .625rem .9375rem;
Expand Down
11 changes: 1 addition & 10 deletions themes/mainroad/layouts/partials/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -362,19 +362,10 @@ details:hover {
}

/* Installer */
.fileinfo, .versions-border {
.fileinfo {
background-color: var(--color-box);
}

.versions {
background-color: var(--color-background);
}

.versions-border:hover > .versions:hover {
text-decoration: none;
color: var(--color-download-highlight);
}

.fileinfo .fileinfo__body a {
background-color: var(--color-download);
color: var(--color-text);
Expand Down

1 comment on commit 04be427

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying with Cloudflare Pages

Name Result
Last commit: 04be4272934440318ca5847a1c39477a4d8de1dd
Status: ✅ Deploy successful!
Preview URL: https://b94e7265.neoforged-website-previews.pages.dev
PR Preview URL: https://pr-15.neoforged-website-previews.pages.dev

Please sign in to comment.