Skip to content
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

homepageBtn (Getting Started, Join Official Discord Fix) responsiveness fix #755

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"docusaurus": "^1.14.7"
}
}
41 changes: 34 additions & 7 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ main details {
main details summary {
margin-bottom: 1rem;
outline: none;
/* Make it look like a link to notify user that it's clickable */
text-decoration: underline;

/* Refer to #309 */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
Expand All @@ -46,19 +44,48 @@ main details summary {

main details summary:hover {
cursor: pointer;
/* Hide the underline on hover */
text-decoration: none;
}
main details:hover {
border-color: var(--ifm-pagination-nav-color-hover);
}

.homePageBtns {
display: grid;
gap: 20px;
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}
@media (min-width: 480px) {

.homePageBtns a {
padding: 10px 40px;
border: 1px solid;
border-radius: 5px;
transition: all 0.3s ease;
min-width: 200px;
text-align: center;
display: inline-block;
white-space: nowrap;
}

@media (max-width: 480px) {
.homePageBtns {
grid-template-columns: 1fr 1fr;
flex-direction: column;
align-items: center;
}

.homePageBtns a {
width: 100%;
max-width: 300px;
padding: 8px 18px;
font-size: 12px;
}
}


@media (min-width: 1024px) {
.homePageBtns a {
padding: 6px 180px;
min-width: 250px;
}
}
2 changes: 1 addition & 1 deletion website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function Home() {
to={useBaseUrl(siteConfig.customFields.firstDoc)}
className="button button--lg button--outline button--primary"
>
Getting started
Getting Started
</Link>
<Link
to={"https://discord.gg/wTGS5z9"}
Expand Down
Loading