refactor(v2): minor styling improvements (#4167)

* refactor(v2): minor styling improvements

* Fixes
This commit is contained in:
Alexey Pyltsyn 2021-02-04 13:53:20 +03:00 committed by GitHub
parent d63a77d239
commit dbfa256a7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 28 deletions

View file

@ -25,7 +25,7 @@
.docSidebarContainerHidden { .docSidebarContainerHidden {
width: 30px; width: 30px;
cursor: e-resize; cursor: pointer;
} }
.collapsedDocSidebar { .collapsedDocSidebar {

View file

@ -71,6 +71,7 @@
position: sticky; position: sticky;
bottom: 0; bottom: 0;
border-radius: 0; border-radius: 0;
border: 1px solid var(--ifm-toc-border-color);
} }
.collapseSidebarButtonIcon { .collapseSidebarButtonIcon {
@ -80,8 +81,6 @@
html[data-theme='dark'] .collapseSidebarButton { html[data-theme='dark'] .collapseSidebarButton {
background-color: var(--collapse-button-bg-color-dark); 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, html[data-theme='dark'] .collapseSidebarButton:hover,

View file

@ -104,7 +104,8 @@
left: 27px; 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); box-shadow: 0px 0px 2px 3px var(--ifm-color-primary);
} }

View file

@ -106,11 +106,11 @@ function Home() {
/> />
</h1> </h1>
<div className={styles.indexCtas}> <div className={styles.indexCtas}>
<Link className={styles.indexCtasGetStartedButton} to="/docs"> <Link className="button button--primary" to="/docs">
<Translate>Get Started</Translate> <Translate>Get Started</Translate>
</Link> </Link>
<Link <Link
className={styles.indexCtaTryNowButton} className="button button--info"
to="https://new.docusaurus.io"> to="https://new.docusaurus.io">
<Translate>Playground</Translate> <Translate>Playground</Translate>
</Link> </Link>

View file

@ -67,7 +67,6 @@
color: var(--ifm-color-primary); color: var(--ifm-color-primary);
} }
@keyframes jackInTheBox { @keyframes jackInTheBox {
from { from {
opacity: 0; opacity: 0;
@ -98,22 +97,15 @@
} }
.indexCtas { .indexCtas {
--ifm-button-size-multiplier: 1.6;
display: flex; display: flex;
flex-wrap: wrap;
align-items: center; align-items: center;
margin-top: 24px; margin-top: 24px;
} }
.indexCtasGetStartedButton { .indexCtas a:last-of-type {
border: 2px solid var(--ifm-color-primary); margin: 20px 36px;
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;
} }
.indexCtasGitHubButtonWrapper { .indexCtasGitHubButtonWrapper {
@ -125,16 +117,6 @@
overflow: hidden; 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 { .indexCtaTryNowButton:hover {
color: var(--ifm-color-primary); color: var(--ifm-color-primary);
} }
@ -164,6 +146,10 @@
justify-content: center; justify-content: center;
} }
.indexCtas a {
margin: 20px 36px;
}
.indexCtasGitHubButton { .indexCtasGitHubButton {
display: none; display: none;
} }