diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 58383fd..6db46ff 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -104,9 +104,9 @@ const config: Config = { position: 'right', value: ` diff --git a/src/components/BrandAssets/BrandAssets.tsx b/src/components/BrandAssets/BrandAssets.tsx index dd26e0a..14e6b4b 100644 --- a/src/components/BrandAssets/BrandAssets.tsx +++ b/src/components/BrandAssets/BrandAssets.tsx @@ -7,7 +7,7 @@ const BrandAssets: React.FC = () => ( href="/stakewise-brand-assets.zip" download > -
+
Download StakeWise brand assets
diff --git a/src/components/DocsSections/Blocks/Block/Block.module.css b/src/components/DocsSections/Blocks/Block/Block.module.css index 8177ea3..184edb5 100644 --- a/src/components/DocsSections/Blocks/Block/Block.module.css +++ b/src/components/DocsSections/Blocks/Block/Block.module.css @@ -4,12 +4,6 @@ cursor: pointer; } -.container:hover { - transform: scale(1.05); - text-decoration: none; - background-color: rgba(var(--moon-rgb), .1) !important; -} - .icon { width: 24px; height: 24px; diff --git a/src/components/DocsSections/Blocks/Block/Block.tsx b/src/components/DocsSections/Blocks/Block/Block.tsx index 6af83a3..9a10056 100644 --- a/src/components/DocsSections/Blocks/Block/Block.tsx +++ b/src/components/DocsSections/Blocks/Block/Block.tsx @@ -19,7 +19,7 @@ const Block: React.FC = (props) => { return (
diff --git a/src/components/DocsSections/DocsSections.tsx b/src/components/DocsSections/DocsSections.tsx index 313bf25..0afa996 100644 --- a/src/components/DocsSections/DocsSections.tsx +++ b/src/components/DocsSections/DocsSections.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react' +import React from 'react' import useDocusaurusContext from '@docusaurus/useDocusaurusContext' import Blocks from './Blocks/Blocks' @@ -7,21 +7,9 @@ import Blocks from './Blocks/Blocks' const DocsSections: React.FC = () => { const { siteConfig } = useDocusaurusContext() - useEffect(() => { - // Something prevents adding a class, apparently a little later - // calls for another modification of the element - setTimeout(() => { - document.body.classList.add('bg-gradient') - }) - - return () => { - document.body.classList.remove('bg-gradient') - } - }, []) - return (
-

{siteConfig.title}

+

{siteConfig.title}

{siteConfig.tagline}

diff --git a/src/components/FAQ/Question/Question.tsx b/src/components/FAQ/Question/Question.tsx index 3763296..ef3c127 100644 --- a/src/components/FAQ/Question/Question.tsx +++ b/src/components/FAQ/Question/Question.tsx @@ -54,7 +54,7 @@ const Question: React.FC = (props) => {
= (props) => { static ref={panelRef} > -
+
{text}
diff --git a/src/components/GitHub/GitHub.module.css b/src/components/GitHub/GitHub.module.css new file mode 100644 index 0000000..1b845cb --- /dev/null +++ b/src/components/GitHub/GitHub.module.css @@ -0,0 +1,7 @@ +:global(html[data-theme='dark']) .box { + background-color: rgba(39, 40, 42, .2); +} + +:global(html[data-theme='light']) .box { + background-color: rgba(255, 255, 255, .3); +} diff --git a/src/components/GitHub/GitHub.tsx b/src/components/GitHub/GitHub.tsx index f1847c8..e467c43 100644 --- a/src/components/GitHub/GitHub.tsx +++ b/src/components/GitHub/GitHub.tsx @@ -1,7 +1,10 @@ import React from 'react' +import cx from 'classnames' import Item from './Item/Item' +import s from './GitHub.module.css' + const items = [ { @@ -27,7 +30,7 @@ const items = [ ] as const const GitHub: React.FC = () => ( -
+
Developer Links
{ diff --git a/src/components/GitHub/Item/Item.module.css b/src/components/GitHub/Item/Item.module.css index 66a8b36..151325d 100644 --- a/src/components/GitHub/Item/Item.module.css +++ b/src/components/GitHub/Item/Item.module.css @@ -3,9 +3,3 @@ transition: .2s; cursor: pointer; } - -.container:hover { - transform: scale(1.05); - text-decoration: none; - background-color: rgba(var(--moon-rgb), .1) !important; -} diff --git a/src/components/GitHub/Item/Item.tsx b/src/components/GitHub/Item/Item.tsx index 784de2f..37493c7 100644 --- a/src/components/GitHub/Item/Item.tsx +++ b/src/components/GitHub/Item/Item.tsx @@ -16,7 +16,7 @@ const Item: React.FC = (props) => { return ( diff --git a/src/components/Links/Block/Block.module.css b/src/components/Links/Block/Block.module.css index 77b6546..8c62a28 100644 --- a/src/components/Links/Block/Block.module.css +++ b/src/components/Links/Block/Block.module.css @@ -4,12 +4,6 @@ cursor: pointer; } -.container:hover { - transform: scale(1.05); - text-decoration: none; - background-color: rgba(var(--moon-rgb), .1) !important; -} - .icon { width: 24px; height: 24px; diff --git a/src/components/Links/Block/Block.tsx b/src/components/Links/Block/Block.tsx index 93d313b..1cf91b1 100644 --- a/src/components/Links/Block/Block.tsx +++ b/src/components/Links/Block/Block.tsx @@ -17,13 +17,13 @@ const Block: React.FC = (props) => { return (
- -
+ +
{title}
diff --git a/src/css/custom.css b/src/css/custom.css index a78eb47..c4a9593 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -1,24 +1,5 @@ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600,700&display=swap'); -.bg-gradient { - background-image: radial-gradient(50% 50% at 50% 40%, rgb(139 0 255 / 13%) 0%, rgb(255 255 255 / 0%) 100%); -} - -.footer__link-item svg, -.navbar__link svg { - display: none; -} - -::-moz-selection { - color: #47347e; - background: #c8bfe3; -} - -::selection { - color: #47347e; - background: #c8bfe3; -} - html { scroll-behavior: smooth; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, @@ -29,13 +10,25 @@ html { font-weight: 400; } -html[data-theme='dark'] { - --ifm-toc-border-color: #ffffff0d; - --ifm-footer-background-color: #ffffff0d; - --ifm-navbar-background-color: #ffffff0d; - --ifm-global-shadow-md: 0 5px 4px rgba(255, 255, 255, 0.448); +body::before { + position: fixed; + top: 0; + left: 0; + z-index: -20; + width: 100%; + height: 100%; + background-repeat: no-repeat; + background-position: top center; + background-size: 100% 1500px; + content: ''; +} + +html[data-theme='dark'] body::before { + background-image: linear-gradient(171.89deg, #2e4145 2.92%, #4b605a 54.05%, #23414b 85.21%); +} - background-color: #181618; +html[data-theme='light'] body::before { + background-image: linear-gradient(171.89deg, #c4ddd2 2.92%, #f2e5c4 55.54%, #d0ccb1 87.6%); } html[data-theme='dark'] .alert--success { @@ -51,16 +44,8 @@ html[data-theme='dark'] .alert--warning { --ifm-alert-background-color: #9490596b; } -html[data-theme='light'] { - --ifm-toc-border-color: #00060f0d; - --ifm-footer-background-color: #00060f0d; - --ifm-navbar-background-color: #00060f0d; - - background-color: #f1f2fd; -} - .markdown a { - color: #3578e5; + color: var(--coral); } p { @@ -120,6 +105,77 @@ a:hover { margin-left: auto; } +html[data-theme='light'] .navbar { + background: rgba(26, 29, 28, .05); +} + +html[data-theme='dark'] .navbar { + background: rgba(26, 29, 28, .2); +} + +html[data-theme='light'] .menu { + background: rgba(26, 29, 28, .05); +} + +html[data-theme='dark'] .menu { + background: rgba(26, 29, 28, .2); +} + +html[data-theme='light'] .footer { + background: rgba(26, 29, 28, .05); +} + +html[data-theme='dark'] .footer { + background: rgba(26, 29, 28, .3); +} + +html[data-theme='light'] .crystal-button-block { + box-shadow: 0 7px 12px 0 rgba(39, 40, 42, .15); + background: rgba(255, 255, 255, .4); + border: solid 1px rgba(255, 255, 255, .2); +} + +html[data-theme='light'] .crystal-button-block:hover { + transform: scale(1.05); + text-decoration: none; + background: rgba(255, 255, 255, .8); + border: solid 1px rgba(255, 255, 255, 1); +} + +html[data-theme='dark'] .crystal-button-block { + box-shadow: 0 7px 12px 0 rgba(39, 40, 42, .35); + background: rgba(39, 40, 42, .5); + border: solid 1px rgba(39, 40, 42, .5); +} + +html[data-theme='dark'] .crystal-button-block:hover { + transform: scale(1.05); + text-decoration: none; + background: rgba(39, 40, 42, .8); + border: solid 1px rgba(39, 40, 42, .8); +} + +html[data-theme='light'] .crystal-bg { + box-shadow: 0 7px 12px 0 rgba(39, 40, 42, .15); + background: rgba(255, 255, 255, .4); + border: solid 1px rgba(255, 255, 255, .2); +} + +html[data-theme='dark'] .crystal-bg { + box-shadow: 0 7px 12px 0 rgba(39, 40, 42, .35); + background: rgba(39, 40, 42, .5); + border: solid 1px rgba(39, 40, 42, .5); +} + +.footer__link-item svg, +.navbar__link svg { + display: none; +} + +.alert a { + text-decoration-color: var(--color-coral) !important; +} + @media (max-width: 960px) { .navbar__toggle { margin-left: 16px; @@ -137,6 +193,14 @@ a:hover { background-color: #00060f; } + html[data-theme='light'] .navbar-sidebar{ + background-color: #f1f2fd; + } + + html[data-theme='dark'] .navbar-sidebar { + background-color: #00060f; + } + .navbar-sidebar__items ul.menu__list { padding-left: 24px; } diff --git a/src/css/tailwind/layers/base.css b/src/css/tailwind/layers/base.css index 521cc34..84b518d 100644 --- a/src/css/tailwind/layers/base.css +++ b/src/css/tailwind/layers/base.css @@ -11,15 +11,41 @@ :root[data-theme='light'] { --moon: #00060f; --moon-rgb: 0, 6, 15; - --lilac: #846ab2; - --lilac-rgb: 132, 106, 178; + --coral-rgb: 1, 137, 112; + --coral: rgb(1, 137, 112); + + --ifm-navbar-link-hover-color: rgb(1, 137, 112) !important; + --ifm-breadcrumb-color-active: rgb(1, 137, 112) !important; + --ifm-tabs-color-active-border: rgb(1, 137, 112) !important; + --ifm-menu-color-active: rgb(1, 137, 112) !important; + --ifm-tabs-color-active: rgb(1, 137, 112) !important; + --ifm-color-primary: rgb(1, 137, 112) !important; + + --ifm-color-emphasis-200: transparent !important; + + --ifm-card-background-color: rgba(26, 29, 28, .05) !important; + --ifm-menu-color-background-hover: rgba(26, 29, 28, .05) !important; + --ifm-menu-color-background-active: rgba(26, 29, 28, .05) !important; } :root[data-theme='dark'] { --moon: #ffffff; --moon-rgb: 255, 255, 255; - --lilac: #b68dff; - --lilac-rgb: 182, 141, 255; + --coral-rgb: 64, 233, 222; + --coral: rgb(64, 233, 222); + + --ifm-navbar-link-hover-color: rgb(64, 233, 222) !important; + --ifm-breadcrumb-color-active: rgb(64, 233, 222) !important; + --ifm-tabs-color-active-border: rgb(64, 233, 222) !important; + --ifm-menu-color-active: rgb(64, 233, 222) !important; + --ifm-tabs-color-active: rgb(64, 233, 222) !important; + --ifm-color-primary: rgb(64, 233, 222) !important; + + --ifm-color-emphasis-200: transparent !important; + + --ifm-card-background-color: rgba(26, 29, 28, .2) !important; + --ifm-menu-color-background-hover:rgba(26, 29, 28, .2) !important; + --ifm-menu-color-background-active: rgba(26, 29, 28, .2) !important; } ::-moz-selection { @@ -43,7 +69,6 @@ body { position: relative; - background-color: var(--mirror); -webkit-overflow-scrolling: touch; } diff --git a/src/css/tailwind/layers/utilities.css b/src/css/tailwind/layers/utilities.css index 33fe4f9..794ad6b 100644 --- a/src/css/tailwind/layers/utilities.css +++ b/src/css/tailwind/layers/utilities.css @@ -48,11 +48,11 @@ } /* Colors */ - .bg-fancy-ocean { - background: linear-gradient(90deg, #394cf6 0%, #74aafc 100%); + .bg-white { + background: white; } - .bg-fancy-ocean:hover { - background: linear-gradient(90deg, rgb(16.8757826087, 39.0694347826, 237.6442173913) 0%, rgb(65.5684507042, 139.1605633803, 250.9115492958) 90%); + .bg-white:hover { + opacity: .8; } } diff --git a/src/css/tailwind/theme.css b/src/css/tailwind/theme.css index 03cfb38..32dde74 100644 --- a/src/css/tailwind/theme.css +++ b/src/css/tailwind/theme.css @@ -2,21 +2,8 @@ --*: initial; /* Colors */ - /* --color-sun: var(--sun); - --color-coal: var(--coal); - --color-snow: var(--snow); */ --color-moon: var(--moon); - --color-lilac: var(--lilac); - /* --color-stone: var(--stone); - --color-smoke: var(--smoke); - --color-ocean: var(--ocean); - --color-autumn: var(--autumn); - --color-forest: var(--forest); - --color-jungle: var(--jungle); - --color-sunset: var(--sunset); - --color-mirror: var(--mirror); - --color-volcano: var(--volcano); - --color-titanium: var(--titanium); */ + --color-coral: var(--coral); /* Border radius */ --radius-4: 4px;