Skip to content

Commit

Permalink
refactor(v2): minor styling improvements (#4167)
Browse files Browse the repository at this point in the history
* refactor(v2): minor styling improvements

* Fixes
  • Loading branch information
lex111 authored Feb 4, 2021
1 parent d63a77d commit dbfa256
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 28 deletions.
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

0 comments on commit dbfa256

Please sign in to comment.