mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11be2f4881
commit 6f38009a31b2ff5d6f53de7b74469f495fe04092
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 10 15:36:03 2023 -0700
remove default sphinx footer
commit 0d842749566f40fa8c2dd434fa67bcc5e9df3aa0
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 10 15:21:26 2023 -0700
linting
commit c8484ac7c1f54067b0d3c4aa4aa81de7d36df71d
Merge: 8339800d0 b583e9e64
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 10 14:15:03 2023 -0700
Merge branch 'develop' into docs-rebrand
commit 8339800d0fdd197f589337e1198867d4198a3850
Merge: 633c673c5 88d5e06d4
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 10 14:11:58 2023 -0700
Merge branch 'rebrand' into docs-rebrand
commit 88d5e06d4ce79696b9451991b33834ecc55bf66d
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 10 14:11:52 2023 -0700
remove dev code
commit 633c673c5e227009917d888e1f0991f33aa75f44
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 10 14:02:25 2023 -0700
update home url poitner to production domain
commit b3689cb7c230e1fb3a97400e5412ec14c34fc586
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 10 13:59:34 2023 -0700
fix external link arrow to match core site
commit b7a28a5dfe7517a88870afe67783e9e300b85af4
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 10 13:59:19 2023 -0700
swap in cdnfonts for overpass fonts
commit e979ad5c9f69c9c7ee369a0700a64ea6d9061c2b
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 10 08:30:48 2023 -0700
fix external link arrow spacing/underline
commit b90077863cfff5d8776f5dc74f82f061e0162d37
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu Jul 6 16:26:28 2023 -0700
update foot note
commit ed9ddfd327cd0e382286abf0c8896c7c879512b2
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu Jul 6 13:12:14 2023 -0700
update nav link hover color
commit 077d3a0c9333c96cbabc3ce2bccf00afac19a312
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Tue Jul 4 20:27:05 2023 -0700
bug fixed for header/nav-link styling
commit 2584dd2e419255ec93430446bd049ff90155987e
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Tue Jul 4 12:15:09 2023 -0700
fix link shift bug
commit 885d2bc52ca3ed9e4727d7f0eaed0e312fedaaaa
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Tue Jul 4 12:13:03 2023 -0700
update nav link hover styling
commit d06c81592ad88ad2e81701cec9e85b6a3cee86ee
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 3 18:25:37 2023 -0700
extract event listener functions
commit 414e444ee67fe937d1295b14ac8591a710bfbdff
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jul 3 18:22:08 2023 -0700
a11y: skip to content link
commit 6c628ea73995dad9b9a6fb502bb216d88f0e9602
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 21:57:24 2023 -0700
fine-tuning more styling
commit 71b617abaf27c34fcecaf6e30795687abf9885f7
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 21:37:02 2023 -0700
fix primary link color
commit d90627418c605bff4398a9e24ae0c5c685f73992
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 21:21:30 2023 -0700
fix mobile versions expansion
commit f0f0fbbcb74ea35efa6e4cf87ab1d855f1ae2bd2
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 21:21:16 2023 -0700
update code styling
commit 727c7ee9b69427eddd73012a89e6ee9ae1ccec8d
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 21:20:38 2023 -0700
remix link styling
commit 4059c00e3d704002ef34f85fd86495f2a4ac9e57
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 21:19:49 2023 -0700
fix whitespace styling
commit 631e2910a53484b97770cad1b3439d412a0ab6d0
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 20:33:54 2023 -0700
fix search input styling
commit 5e06b22a7200b0774bd135c666b4e3437d342350
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 19:37:19 2023 -0700
css adjustments
commit 637d5122038fd6075cd53d57537d728b730acbcf
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 19:15:05 2023 -0700
selector adjustments, linting
commit 781dc7c3009dc406b36cd2bdcb2d02c3c34fafa6
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 18:26:09 2023 -0700
top version/search layout adjustments
commit 7341e17003700133659e5f64ee2d1369ac50e434
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jul 2 18:18:21 2023 -0700
update version div styling
commit 3a4b3feb581b1799e48d395b73aca05760dc5658
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sat Jul 1 21:18:12 2023 -0700
restyle external link arrow for forum link
commit e6cef6312ca73c125c01b78573f21c75fcbbfc87
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sat Jul 1 20:50:31 2023 -0700
add woff2 fonts, use absolute font urls
commit 3bc401b1dbe971501826011a692c38ee9ce4b992
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sat Jul 1 15:15:26 2023 -0700
fix nav button alignment
commit b7d607b7090e1ac6ded55ac6e534549609226236
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Fri Jun 30 19:02:24 2023 -0700
rename pcm param to color
commit d67e23539f720250bb298c11fd2b1b6d7dbb0815
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Fri Jun 30 17:34:56 2023 -0700
center align footer buttons, fix bug on pre text
commit 34a665038dc27e2b8874b3e16ffc581c33f31bc5
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu Jun 29 16:40:26 2023 -0700
preload fonts
commit 5b987c31455ffe02135e357ea560bbad8a9c6745
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu Jun 29 15:31:41 2023 -0700
antialiased font smoothing
commit 9585fb5bb73f67e37a4f9f1da83e7b133f0b4446
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu Jun 29 13:44:51 2023 -0700
search results styling
commit 224ed028b181b3944d2f2e33f4122b15f38f7608
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu Jun 29 13:29:09 2023 -0700
restore search functionality
commit ec5782a01cd0f1c1808b353560c39911c9fdc645
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Wed Jun 28 21:55:11 2023 -0700
more mobile menu and styling fixes
commit c033f05e2ab839309e7d3864ae66c465d801e806
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Wed Jun 28 13:14:22 2023 -0700
patch location cleaner
commit 6cae3b5ad67e38f6decfa18eeacce973783a2fc1
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Tue Jun 27 17:49:28 2023 -0700
patch location cleaner
commit e86e6a11189ed57f122382c901fe7a0f49518e83
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Tue Jun 27 17:40:11 2023 -0700
color mode continuity
commit c3ba4ee6c614fa637a34eacbae60c5e88cd018c5
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Tue Jun 27 15:32:11 2023 -0700
refactor layout
commit ac3bae8f34ccbd08f68cb784b3ec00bad70a9281
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jun 26 14:35:00 2023 -0700
color and styling updates
commit 42e301818d3d11152c5ce630c8085db1c1664a13
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jun 26 13:23:03 2023 -0700
highlight active nav link
commit fb72573c01494486ab9b0942c3f67c372af0d5e6
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jun 26 12:34:25 2023 -0700
patch mobile menu bottom scroll stop
commit 2dcef754301d35143ea24ca197906c974e128a25
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Mon Jun 26 12:32:38 2023 -0700
adjust header icon sizes
commit dc75b636b7f442dfe7aaa80ad82470be0f3d4f19
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jun 25 21:41:18 2023 -0700
fix header icon sizes
commit de70f1a56eba85c89c1f01f37770b1d6bd91d5db
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sun Jun 25 19:58:18 2023 -0700
mobile meun debugging
commit 1fe20565a838c2f2212cd95045cd309b076c8b2b
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sat Jun 24 13:21:23 2023 -0700
icon color mode improvements
commit fcb134a4209371277693e919fb06eaeb53e36cb6
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sat Jun 24 11:51:24 2023 -0700
initialize with menu closed
commit defa7c78e981037409ec9d2b9ab871910023f5b0
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Sat Jun 24 11:37:47 2023 -0700
color toggle and mobile menu
commit 695d719612be0ed9cac0f246f0eaf91f3fdb2e75
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Fri Jun 23 16:39:32 2023 -0700
forum url as external link
commit ad182602095909d84331339993b31f2a37bf1cd7
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Fri Jun 23 16:28:14 2023 -0700
patch contributing path
commit fbfeaa7a12a1b9bc86b766a0e490b85d2ded8849
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Fri Jun 23 16:20:57 2023 -0700
update contribute path
commit f7dbf1f2e0a3e31d164d6cc67c952f89c3f8f49e
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Fri Jun 23 16:05:22 2023 -0700
dev: point to vercel build for new solidity site
commit c344c1df86e78ad6ab9bc066ac75659180d068cf
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Fri Jun 23 14:30:40 2023 -0700
update stylesheets, constants, logos
commit c15135378c8568ed93bf685552940cdbe1c07b70
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Fri Jun 23 10:25:05 2023 -0700
bg color cleanup
commit c049df77d9d55adc796bc2f8cd7c186d833aca69
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu Jun 22 19:02:49 2023 -0700
clean up initialize and toggle scripts
deprecate dark.css in lieu of a dark more html attribute indicator and css selectors for this attribute. Avoids needing to enable/disable dark stylesheet
commit 881c9cce66e18d30b50c467a22d98836698f5b58
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu Jun 22 18:59:24 2023 -0700
import type faces
commit e9b26157aabf4374754cf14d9a4a980c92bd139c
Author: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Date: Thu Jun 22 15:39:00 2023 -0700
implement initial styling adjustments
816 lines
16 KiB
CSS
816 lines
16 KiB
CSS
/* ROOT DECLARATIONS */
|
|
:root {
|
|
/* Text */
|
|
--color-a: #2B247C;
|
|
--color-b: #672AC8;
|
|
--color-c: #5554D9;
|
|
--color-d: #9F94E8;
|
|
--color-e: #AEC0F1;
|
|
--color-f: #E6E3EC;
|
|
/* Background */
|
|
|
|
--white: #FAF8FF;
|
|
--black: #110C4E;
|
|
--menu-bg: #2B247C06;
|
|
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
|
|
--navHeight: 4.5rem;
|
|
--sideWidth: 300px;
|
|
|
|
text-rendering: geometricPrecision;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
a,
|
|
button {
|
|
border-radius: 0;
|
|
}
|
|
|
|
:root[style*=dark] {
|
|
--color-a: #E6E3EC !important;
|
|
--color-b: #AEC0F1 !important;
|
|
--color-c: #9F94E8 !important;
|
|
--color-d: #5554D9 !important;
|
|
--color-e: #672AC8 !important;
|
|
--color-f: #2B247C !important;
|
|
|
|
--white: #110C4E !important;
|
|
--black: #FAF8FF !important;
|
|
--menu-bg: #E6E3EC06 !important;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
.unified-header::before,
|
|
.wy-nav-side,
|
|
.rst-versions,
|
|
code,
|
|
div,
|
|
input[type=text],
|
|
a,
|
|
.wy-grid-for-nav {
|
|
transition: background 150ms ease-in-out;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
.wy-grid-for-nav {
|
|
background-color: var(--color-f) !important;
|
|
position: relative;
|
|
}
|
|
|
|
body {
|
|
font-family: "Overpass", sans-serif;
|
|
}
|
|
|
|
a {
|
|
color: var(--color-c);
|
|
}
|
|
|
|
hr {
|
|
margin-block: 2rem;
|
|
border-color: var(--color-d) !important;
|
|
}
|
|
|
|
|
|
/* HEADER STYLES */
|
|
h1 {
|
|
font-family: 'Overpass', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 44px;
|
|
color: var(--color-a) !important;
|
|
line-height: 1.1;
|
|
text-wrap: balance;
|
|
margin-top: 4rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
section:first-of-type h1:first-of-type {
|
|
font-family: 'Overpass mono', monospace;
|
|
font-size: 48px;
|
|
margin-top: 3rem;
|
|
margin-bottom: 5rem;
|
|
}
|
|
|
|
h2 {
|
|
font-family: 'Overpass', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 38px;
|
|
color: var(--color-a) !important;
|
|
line-height: 46px;
|
|
text-wrap: balance;
|
|
margin-top: 4rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
*:not([role=navigation])>p[role=heading]>span,
|
|
h3 {
|
|
font-family: 'Overpass', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 32px;
|
|
color: var(--color-a) !important;
|
|
line-height: 46px;
|
|
text-wrap: balance;
|
|
margin-top: 4rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
h4 {
|
|
font-family: 'Overpass', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 32px;
|
|
color: var(--color-a) !important;
|
|
line-height: 46px;
|
|
text-wrap: balance;
|
|
margin-top: 3rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
h5 {
|
|
font-family: 'Overpass', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 18px;
|
|
color: var(--color-a) !important;
|
|
line-height: 1.4;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
h6 {
|
|
font-family: 'Overpass', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
color: var(--color-a) !important;
|
|
line-height: 1.4;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
span.pre,
|
|
pre {
|
|
/* css-3 */
|
|
white-space: pre-wrap;
|
|
/* Mozilla, since 1999 */
|
|
white-space: -moz-pre-wrap;
|
|
/* Opera 4-6 */
|
|
white-space: -pre-wrap;
|
|
/* Opera 7 */
|
|
white-space: -o-pre-wrap;
|
|
word-wrap: break-word;
|
|
font-family: 'Overpass Mono', monospace;
|
|
}
|
|
|
|
small,
|
|
small * {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.wy-table-responsive table td,
|
|
.wy-table-responsive table th {
|
|
white-space: normal;
|
|
}
|
|
|
|
.rst-content table.docutils td {
|
|
vertical-align: top;
|
|
}
|
|
|
|
/* links */
|
|
.rst-content .highlighted {
|
|
background: #eac545;
|
|
}
|
|
|
|
/* code block highlights */
|
|
.rst-content pre {
|
|
background: #fafafa;
|
|
}
|
|
|
|
/* project version (displayed under project logo) */
|
|
.wy-side-nav-search>div.version {
|
|
color: var(--color-b);
|
|
margin-top: 0;
|
|
margin-bottom: 0.5rem;
|
|
text-align: start;
|
|
}
|
|
|
|
/* Link to Remix IDE shown next to code snippets */
|
|
.rst-content p.remix-link-container {
|
|
display: block;
|
|
text-align: right;
|
|
margin: 0;
|
|
line-height: 1em;
|
|
}
|
|
|
|
.rst-content .remix-link-container a.remix-link {
|
|
font-size: 0.7em;
|
|
padding: 0.1em 0.5em;
|
|
background: transparent;
|
|
color: var(--color-a) !important;
|
|
border: 1px solid var(--color-a);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.rst-content div.highlight-solidity,
|
|
.rst-content div.highlight-yul {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* CUSTOMIZATION UPDATES */
|
|
|
|
.wy-nav-content-wrap,
|
|
.wy-nav-content {
|
|
background: transparent !important;
|
|
}
|
|
|
|
.wy-side-nav-search {
|
|
background-color: transparent !important;
|
|
color: var(--color-a) !important;
|
|
box-shadow: 0 4 4 0 var(--color-a);
|
|
border-bottom: 1px solid var(--color-d) !important;
|
|
}
|
|
|
|
.wy-side-nav-search svg {
|
|
color: var(--color-a) !important;
|
|
}
|
|
|
|
.wy-nav-top {
|
|
background-color: transparent !important;
|
|
color: var(--color-a) !important;
|
|
}
|
|
|
|
.wy-nav-top a {
|
|
color: var(--color-a) !important;
|
|
}
|
|
|
|
.wy-breadcrumbs a.icon-home:before {
|
|
content: "Documentation";
|
|
font-family: "Overpass", sans-serif;
|
|
}
|
|
|
|
.rst-content table.docutils thead {
|
|
color: var(--color-a);
|
|
}
|
|
|
|
code.docutils.literal.notranslate {
|
|
padding: 2px 4px;
|
|
font-size: 0.875em;
|
|
font-family: "Overpass Mono", monospace;
|
|
background: var(--white);
|
|
color: var(--color-c);
|
|
border: 0px;
|
|
}
|
|
|
|
dt code.docutils.literal.notranslate {
|
|
background: none;
|
|
}
|
|
|
|
.wy-nav-content {
|
|
color: var(--color-a);
|
|
}
|
|
|
|
/* .rst-content a:not(:visited) { */
|
|
/* color: var(--color-b) !important; */
|
|
/* } */
|
|
|
|
.rst-content a:visited {
|
|
color: var(--color-c) !important;
|
|
}
|
|
|
|
.rst-content a {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.rst-content a:where(:focus, :focus-visible, :hover) {
|
|
color: var(--color-d) !important;
|
|
}
|
|
|
|
.wy-side-scroll a {
|
|
color: var(--color-a);
|
|
background: transparent;
|
|
font-size: 1rem;
|
|
line-height: 125%;
|
|
}
|
|
|
|
.wy-menu-vertical li.current a,
|
|
.wy-menu-vertical li.current li a,
|
|
.wy-menu-vertical li.current li a code {
|
|
border: none;
|
|
color: var(--color-a);
|
|
}
|
|
|
|
ul.current ul,
|
|
.wy-menu-vertical li.current a:hover,
|
|
.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a,
|
|
.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a,
|
|
.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a,
|
|
.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a,
|
|
.wy-menu-vertical li.current {
|
|
background: var(--menu-bg) !important;
|
|
}
|
|
|
|
.wy-menu.wy-menu-vertical>ul {
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.wy-menu.wy-menu-vertical>p {
|
|
color: var(--color-c);
|
|
}
|
|
|
|
.wy-menu-vertical li.on a,
|
|
.wy-menu-vertical li.current>a {
|
|
background: var(--menu-bg) !important;
|
|
border-bottom: 0px !important;
|
|
border-top: 0px !important;
|
|
}
|
|
|
|
.btn {
|
|
border-radius: 0;
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
.wy-breadcrumbs-aside a,
|
|
.wy-breadcrumbs-aside a:visited,
|
|
/* .wy-breadcrumbs-aside a:not(:visited), */
|
|
a.fa.fa-github,
|
|
a.fa.fa-github:visited,
|
|
a.fa.fa-github:not(:visited),
|
|
a.btn.btn-neutral:visited,
|
|
a.btn.btn-neutral:not(:visited),
|
|
a.btn.btn-neutral {
|
|
background: transparent !important;
|
|
color: var(--color-a) !important;
|
|
border: 2px solid var(--color-a) !important;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.rst-content .remix-link-container a.remix-link:hover,
|
|
.wy-breadcrumbs-aside a:hover,
|
|
a.fa.fa-github:hover,
|
|
a.btn.btn-neutral:hover {
|
|
background: var(--white) !important;
|
|
color: var(--color-b) !important;
|
|
border-color: var(--color-b) !important;
|
|
}
|
|
|
|
footer .rst-footer-buttons {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 2rem;
|
|
}
|
|
|
|
/**
|
|
* Customization for the unified layout
|
|
*/
|
|
|
|
/* Site wrapper, and two children: header and rest */
|
|
.unified-wrapper {
|
|
position: fixed;
|
|
inset: 0;
|
|
top: var(--navHeight);
|
|
max-width: 80rem;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
/* Site header */
|
|
.unified-header {
|
|
position: fixed;
|
|
top: 0;
|
|
inset-inline: 0;
|
|
z-index: 99999;
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: var(--shadow);
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
|
|
.unified-header .inner-header {
|
|
display: flex;
|
|
margin-inline: auto;
|
|
width: 100%;
|
|
max-width: 80rem;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-inline: 2rem;
|
|
padding-block: 1rem;
|
|
}
|
|
|
|
.unified-header::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 95%;
|
|
background: var(--color-f);
|
|
z-index: -1;
|
|
}
|
|
|
|
.unified-header .home-link {
|
|
display: block;
|
|
text-decoration: none;
|
|
width: 25px;
|
|
height: 40px;
|
|
}
|
|
|
|
.unified-header .home-link:hover .solidity-logo {
|
|
transform: scale(1.1);
|
|
transition: transform 100ms ease-in-out;
|
|
}
|
|
|
|
.unified-header img.solidity-logo {
|
|
transform: scale(1);
|
|
transition: transform 100ms ease-in-out;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.unified-header .nav-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.unified-header .nav-bar .nav-button-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.unified-header .nav-link {
|
|
display: inline-block;
|
|
padding-inline: 8px;
|
|
padding-block: 4px;
|
|
font-size: 14px;
|
|
font-family: 'Overpass Mono', monospace;
|
|
text-decoration: none;
|
|
color: var(--color-a);
|
|
letter-spacing: -0.02em;
|
|
font-weight: 400;
|
|
box-sizing: content-box;
|
|
border-bottom: 1px solid transparent;
|
|
}
|
|
|
|
.unified-header .nav-link.active {
|
|
background: var(--white);
|
|
}
|
|
|
|
.unified-header .nav-link:hover {
|
|
color: var(--color-c);
|
|
border-bottom: 1px solid var(--color-c);
|
|
}
|
|
|
|
/* Rest: Grid, with two children: side bar, and content */
|
|
.unified-wrapper .wy-grid-for-nav {
|
|
position: relative !important;
|
|
display: grid !important;
|
|
grid-template-columns: var(--sideWidth) 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* First child: Side bar */
|
|
.unified-wrapper .wy-grid-for-nav nav.wy-nav-side {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--color-f);
|
|
color: var(--color-a);
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding-bottom: unset !important;
|
|
min-height: unset !important;
|
|
z-index: 10 !important;
|
|
max-width: var(--sideWidth) !important;
|
|
}
|
|
|
|
.unified-wrapper .wy-grid-for-nav nav.wy-nav-side .wy-side-scroll {
|
|
position: relative !important;
|
|
width: fit-content !important;
|
|
height: unset !important;
|
|
}
|
|
|
|
.unified-wrapper .wy-grid-for-nav nav.wy-nav-side .wy-side-scroll .wy-side-nav-search {
|
|
margin: 0 !important;
|
|
width: var(--sideWidth) !important;
|
|
}
|
|
|
|
.wy-nav-side,
|
|
.wy-side-scroll,
|
|
.wy-side-nav-search,
|
|
.my-menu {
|
|
width: 100% !important;
|
|
}
|
|
|
|
.wy-nav-side input[type=text] {
|
|
font-family: "Overpass", sans-serif;
|
|
border-radius: 0;
|
|
border-color: var(--color-d);
|
|
background: var(--white);
|
|
box-shadow: none;
|
|
color: var(--color-a);
|
|
}
|
|
|
|
.wy-nav-side input[type=text]::placeholder {
|
|
font-family: "Overpass", sans-serif;
|
|
color: var(--color-e);
|
|
font-size: 16px;
|
|
position: relative;
|
|
top: 4px;
|
|
}
|
|
|
|
/* Second child: Content */
|
|
.unified-wrapper .wy-grid-for-nav .wy-nav-content {
|
|
position: relative !important;
|
|
overflow-y: scroll !important;
|
|
width: 100%;
|
|
max-width: 100vw !important;
|
|
padding-inline: 2rem;
|
|
}
|
|
|
|
.unified-wrapper .wy-grid-for-nav .wy-nav-content .rst-content {
|
|
max-width: 70ch;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.unified-wrapper.menu-open .backdrop {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.unified-wrapper .wy-nav-side,
|
|
.unified-wrapper .rst-versions {
|
|
left: auto;
|
|
|
|
}
|
|
|
|
.unified-wrapper .backdrop {
|
|
opacity: 0;
|
|
transition: opacity 200ms ease-in-out;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
h2 {
|
|
margin-top: 3rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
h3 {
|
|
margin-top: 3rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
h4 {
|
|
margin-top: 2rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Menu closed styles */
|
|
.unified-header .nav-link {
|
|
display: none;
|
|
}
|
|
|
|
.unified-header .inner-header {
|
|
padding-inline: 1rem;
|
|
}
|
|
|
|
.unified-wrapper .wy-grid-for-nav {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.unified-wrapper .wy-grid-for-nav nav.wy-nav-side {
|
|
position: absolute;
|
|
inset-block: 0;
|
|
inset-inline-start: 0;
|
|
width: var(--sideWidth);
|
|
overflow-y: scroll;
|
|
transform: translateX(-100%);
|
|
transition: transform 200ms ease-in-out;
|
|
}
|
|
|
|
/* Menu open styles */
|
|
.unified-wrapper .wy-grid-for-nav nav.wy-nav-side {
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
.unified-wrapper.menu-open nav.wy-nav-side {
|
|
transform: translateX(0);
|
|
transition: transform 200ms ease-in-out;
|
|
}
|
|
|
|
.unified-wrapper.menu-open .rst-versions {
|
|
position: sticky;
|
|
bottom: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.unified-wrapper.menu-open .backdrop {
|
|
display: block;
|
|
position: fixed;
|
|
inset: 0;
|
|
opacity: 1;
|
|
transition: opacity 200ms ease-in-out;
|
|
z-index: 5;
|
|
background: #0006;
|
|
}
|
|
|
|
a.skip-to-content {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
ul.search .context {
|
|
color: var(--color-a) !important;
|
|
}
|
|
|
|
.rst-versions {
|
|
background: var(--color-f);
|
|
}
|
|
|
|
.rst-versions.shift-up {
|
|
height: unset !important;
|
|
max-height: unset !important;
|
|
overflow-y: unset !important;
|
|
}
|
|
|
|
.rst-content dl:not(.docutils) dt {
|
|
color: var(--color-a);
|
|
background-color: #fff8;
|
|
border-top: solid 3px #0002;
|
|
border-inline-start: solid 3px #0002;
|
|
padding: 2px 6px;
|
|
}
|
|
|
|
.rst-versions .rst-current-version {
|
|
border-color: var(--color-d) !important;
|
|
}
|
|
|
|
.rst-current-version *,
|
|
.rst-current-version .fa:before,
|
|
.rst-current-version .fa-element {
|
|
color: var(--color-b) !important;
|
|
}
|
|
|
|
.rst-current-version dt,
|
|
.rst-current-version dd,
|
|
.rst-current-version dd a,
|
|
.rst-other-versions dl:last-of-type dt,
|
|
.rst-other-versions dl:last-of-type dd,
|
|
.rst-other-versions dl:last-of-type dd a {
|
|
font-size: 14px !important;
|
|
}
|
|
|
|
.rst-other-versions {
|
|
background: var(--white) !important;
|
|
color: var(--color-a) !important;
|
|
}
|
|
|
|
.rst-other-versions a {
|
|
text-decoration: underline;
|
|
color: var(--color-c) !important;
|
|
}
|
|
|
|
.rst-other-versions dt {
|
|
color: var(--color-a) !important;
|
|
}
|
|
|
|
.rst-other-versions dl {
|
|
margin-bottom: 1.5rem !important;
|
|
}
|
|
|
|
.rst-other-versions dl:last-of-type {
|
|
margin-top: 2rem !important;
|
|
}
|
|
|
|
/* Bottom Search */
|
|
.wy-nav-side input[type=text],
|
|
.rst-other-versions dl:last-of-type dd {
|
|
width: 100%;
|
|
}
|
|
|
|
.rst-other-versions dl:last-of-type dt {
|
|
color: var(--color-b) !important;
|
|
}
|
|
|
|
.rst-other-versions dl:last-of-type div[style*=padding],
|
|
.rst-other-versions dl dd:first-of-type a {
|
|
padding-inline-start: 0 !important;
|
|
}
|
|
|
|
button.toctree-expand {
|
|
color: var(--black) !important;
|
|
}
|
|
|
|
/* Light/dark color mode toggle 🌓 */
|
|
button.color-toggle {
|
|
display: inline-flex;
|
|
appearance: none;
|
|
-webkit-box-align: center;
|
|
align-items: center;
|
|
-webkit-box-pack: center;
|
|
justify-content: center;
|
|
user-select: none;
|
|
outline: none;
|
|
height: 28px;
|
|
width: 28px;
|
|
background: none;
|
|
border: none;
|
|
padding: 6px;
|
|
margin: 6px;
|
|
transition-duration: 200ms;
|
|
transition-property: background-color,
|
|
color,
|
|
fill,
|
|
stroke,
|
|
opacity;
|
|
}
|
|
|
|
button.color-toggle:focus-visible {
|
|
outline: 2px solid var(--color-c);
|
|
color: var(--color-c);
|
|
}
|
|
|
|
button.color-toggle:hover {
|
|
color: var(--color-c);
|
|
background: #0002;
|
|
}
|
|
|
|
button.color-toggle .color-toggle-icon {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
display: inline-block;
|
|
line-height: 1em;
|
|
-webkit-flex-shrink: 0;
|
|
-ms-flex-negative: 0;
|
|
flex-shrink: 0;
|
|
vertical-align: middle;
|
|
/* color: var(--color-a); */
|
|
}
|
|
|
|
|
|
button.mobile-menu-button {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
nav.wy-nav-top {
|
|
display: none;
|
|
}
|
|
|
|
button.mobile-menu-button {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
#search-results .search li:first-child,
|
|
#search-results .search li {
|
|
border-color: var(--color-d);
|
|
}
|
|
|
|
#search-results .search li:last-child {
|
|
border: 0px;
|
|
}
|
|
|
|
.forum-link::after {
|
|
content: ' ↗';
|
|
font-size: 14px;
|
|
font-family: 'Overpass Mono', monospace;
|
|
}
|
|
|
|
.wy-breadcrumbs-aside {
|
|
display: block;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.wy-breadcrumbs-aside a {
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 12px;
|
|
font-family: "'Overpass'", sans-serif;
|
|
font-weight: 700;
|
|
}
|
|
|
|
a.skip-to-content:visited,
|
|
a.skip-to-content:not(:visited),
|
|
a.skip-to-content {
|
|
display: block;
|
|
pointer-events: none;
|
|
width: fit-content;
|
|
opacity: 0;
|
|
transition: opacity 200ms ease-in-out;
|
|
padding: 2px 4px;
|
|
font-size: 14px;
|
|
margin-inline-end: auto;
|
|
margin-inline-start: 2rem;
|
|
color: var(--color-a);
|
|
}
|
|
|
|
a.skip-to-content:focus {
|
|
opacity: 1;
|
|
transition: opacity 200ms ease-in-out;
|
|
}
|
|
|
|
#content {
|
|
scroll-margin-top: 6rem;
|
|
scroll-behavior: smooth;
|
|
} |