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

refactor(v2): minor styling improvements #4167

Merged
merged 2 commits into from
Feb 4, 2021
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

.docSidebarContainerHidden {
width: 30px;
cursor: e-resize;
cursor: pointer;
}

.collapsedDocSidebar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
position: sticky;
bottom: 0;
border-radius: 0;
border: 1px solid var(--ifm-toc-border-color);
}

.collapseSidebarButtonIcon {
Expand All @@ -80,8 +81,6 @@

html[data-theme='dark'] .collapseSidebarButton {
background-color: var(--collapse-button-bg-color-dark);
border: none;
border-left: 1px solid var(--ifm-toc-border-color);
}

html[data-theme='dark'] .collapseSidebarButton:hover,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
left: 27px;
}

:global(.react-toggle--focus .react-toggle-thumb) {
:global(.react-toggle--focus .react-toggle-thumb),
:global(.react-toggle-thumb:hover) {
box-shadow: 0px 0px 2px 3px var(--ifm-color-primary);
}

Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ function Home() {
/>
</h1>
<div className={styles.indexCtas}>
<Link className={styles.indexCtasGetStartedButton} to="/docs">
<Link className="button button--primary" to="/docs">
<Translate>Get Started</Translate>
</Link>
<Link
className={styles.indexCtaTryNowButton}
className="button button--info"
to="https://new.docusaurus.io">
<Translate>Playground</Translate>
</Link>
Expand Down
30 changes: 8 additions & 22 deletions website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
color: var(--ifm-color-primary);
}


@keyframes jackInTheBox {
from {
opacity: 0;
Expand Down Expand Up @@ -98,22 +97,15 @@
}

.indexCtas {
--ifm-button-size-multiplier: 1.6;
display: flex;
flex-wrap: wrap;
align-items: center;
margin-top: 24px;
}

.indexCtasGetStartedButton {
border: 2px solid var(--ifm-color-primary);
line-height: 1.2em;
text-decoration: none !important;
text-transform: uppercase;
transition: background 0.3s, color 0.3s;
border-radius: 8px;
color: #fff;
font-size: 24px;
font-weight: bold;
padding: 18px 36px;
.indexCtas a:last-of-type {
margin: 20px 36px;
}

.indexCtasGitHubButtonWrapper {
Expand All @@ -125,16 +117,6 @@
overflow: hidden;
}

.indexCtaTryNowButton {
line-height: 1.2em;
text-decoration: underline;
text-transform: uppercase;
transition: background 0.3s, color 0.3s;
color: #fff;
font-size: 14px;
font-weight: bold;
margin: 0 36px;
}
.indexCtaTryNowButton:hover {
color: var(--ifm-color-primary);
}
Expand Down Expand Up @@ -164,6 +146,10 @@
justify-content: center;
}

.indexCtas a {
margin: 20px 36px;
}

.indexCtasGitHubButton {
display: none;
}
Expand Down