diff --git a/documentation/dev-portal/book.toml b/documentation/dev-portal/book.toml index 8bfe315678..d36c694e22 100644 --- a/documentation/dev-portal/book.toml +++ b/documentation/dev-portal/book.toml @@ -1,56 +1,35 @@ [book] -title = "Nym Developer Portal" +title = "Nym Docs" authors = ["Max Hampshire, Serinko, Alexia Lorenza Martinel"] +description = "Nym technical documentation" language = "en" -multilingual = false +multilingual = false # for the moment - ideally work on chinese, brazillian ,portugese spanish next src = "src" +[rust] +edition = "2018" + ################# # PREPROCESSORS # ################# -# Note if changing these fields: -# - make sure you aren't running `mdbook serve` -# - change value of `turn-off = true` to `false`. This is set to `true` usually to avoid a known constant-reload bug with `mdbook serve` and this preprocessor -# - delete `./theme/` dir -# - change the preprocessor values that you want to edit -# - run `mdbook build`: this will rebuild the `./theme` directory -# - change value of `turn-off` back to `true` [preprocessor.theme] -pagetoc = true -# some variables related (defined in theme/css/variables.css) -# `content-max-width` + `pagetoc-width` = 95% seems the best -pagetoc-width = "13%" -content-max-width = "70%" # 82 -pagetoc-fontsize = "14.5px" -sidebar-width = "300px" -menu-bar-height = "40px" # memu-bar = the bar on the top -page-padding = "20px" -mobile-content-max-width = "98%" - -# layout -content-padding = "0 10px" -content-main-margin-left = "10%" -content-main-margin-right = "10%" -nav-chapters-max-width = "auto" -nav-chapters-min-width = "auto" -chapter-line-height = "2em" -section-line-height = "1.5em" - -# if true, never read and touch the files in theme dir +sidebar-width = "280px" +content-max-width = "70%" +content-main-margin-left = "5%" +content-main-margin-right = "5%" +root-font-size = "70%" +# DO NOT CHANGE or you might overwrite the custom hbs file turn-off = true - [preprocessor.admonish] command = "mdbook-admonish" assets_version = "3.0.0" # do not edit: managed by `mdbook-admonish install` -# variables preprocessor: import variables into files # https://gitlab.com/tglman/mdbook-variables/ [preprocessor.variables.variables] minimum_rust_version = "1.66" wallet_release_version = "1.2.8" - # nym-vpn related variables nym_vpn_latest_binary_url = "https://github.com/nymtech/nym/releases/tag/nym-vpn-alpha-0.0.3" nym_vpn_form_url = "https://opnform.com/forms/nymvpn-user-research-at-37c3-yccqko-2" @@ -59,10 +38,11 @@ nym_vpn_form_url = "https://opnform.com/forms/nymvpn-user-research-at-37c3-yccqk command = "mdbook-last-changed" renderer = ["html"] -# used for grabbing output of binary commands for automation -# https://github.com/FauconFan/mdbook-cmdrun +# used for grabbing output of binary commands for automation https://github.com/FauconFan/mdbook-cmdrun [preprocessor.cmdrun] +# more pre-processor plugins to look into from https://github.com/rust-lang/mdBook/wiki/Third-party-plugins & https://lib.rs/keywords/mdbook-preprocessor +# mdbook-i18n ######### # BUILD # @@ -79,19 +59,16 @@ extra-watch-dirs = [] # directories to watch for triggering builds ########## [output.html] +theme = "nym_themes" default-theme = "coal" preferred-dark-theme = "coal" curly-quotes = true -# mathjax-support = false # useful if we want to pull equations in ? copy-fonts = true no-section-label = false -additional-css = ["theme/pagetoc.css", "././mdbook-admonish.css", "custom.css", "./mdbook-admonish.css"] -additional-js = ["theme/pagetoc.js"] +additional-css = ["./nym_themes/custom.css", "./nym_themes/mdbook-admonish.css", "./nym_themes/pagetoc.css"] +additional-js = ["./nym_themes/pagetoc.js"] git-repository-url = "https://github.com/nymtech/nym" git-repository-icon = "fa-github" -# edit-url-template = "https://github.com/rust-lang/mdBook/edit/master/guide/{path}" -site-url = "/developers/" -# cname = "nymtech.net" input-404 = "not-found.md" [output.html.fold] @@ -103,7 +80,7 @@ level = 0 # the depth to start folding editable = false # allows editing the source code copyable = true # include the copy button for copying code snippets copy-js = true # includes the JavaScript for the code editor -line-numbers = false # displays line numbers for editable code +line-numbers = true # displays line numbers for editable code runnable = true # displays a run button for rust code # options for the built in text search diff --git a/documentation/dev-portal/custom.css b/documentation/dev-portal/custom.css deleted file mode 100644 index 855f5eef5f..0000000000 --- a/documentation/dev-portal/custom.css +++ /dev/null @@ -1,37 +0,0 @@ -:root { - --mono-font: Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace; -} -.coal { - --bg: #121726; - --fg: #f2f2f2; - - --sidebar-bg: #121726; - --sidebar-fg: #f2f2f2; - --sidebar-active: #fb6e4e; - - --icons: #f2f2f2; - --icons-hover: #fb6e4e; - - --links: #fb6e4e; -} - -.light { - --bg: #f4f6f8; - --fg: #121726; - - --sidebar-bg: #f4f6f8; - --sidebar-fg: #121726; - --sidebar-active: #fb6e4e; - - --icons: #121726; - --icons-hover: #fb6e4e; - - --links: #fb6e4e; -} - -footer { - font-size: 0.8em; - text-align: center; - border-top: 1px solid black; - padding: 5px 0; -} diff --git a/documentation/operators/theme/css/chrome.css b/documentation/dev-portal/nym_themes/css/chrome.css similarity index 69% rename from documentation/operators/theme/css/chrome.css rename to documentation/dev-portal/nym_themes/css/chrome.css index febd1d40a6..a0e30b81ff 100644 --- a/documentation/operators/theme/css/chrome.css +++ b/documentation/dev-portal/nym_themes/css/chrome.css @@ -2,12 +2,6 @@ @import 'variables.css'; -::-webkit-scrollbar { - background: var(--bg); -} -::-webkit-scrollbar-thumb { - background: var(--scrollbar); -} html { scrollbar-color: var(--scrollbar) var(--bg); } @@ -18,6 +12,19 @@ a > .hljs { color: var(--links); } +/* + body-container is necessary because mobile browsers don't seem to like + overflow-x on the body tag when there is a tag. +*/ +#body-container { + /* + This is used when the sidebar pushes the body content off the side of + the screen on small screens. Without it, dragging on mobile Safari + will want to reposition the viewport in a weird way. + */ + overflow-x: clip; +} + /* Menu Bar */ #menu-bar, @@ -30,9 +37,9 @@ a > .hljs { display: flex; flex-wrap: wrap; background-color: var(--bg); - border-bottom-color: var(--bg); - border-bottom-width: 1px; - border-bottom-style: solid; + border-block-end-color: var(--bg); + border-block-end-width: 1px; + border-block-end-style: solid; } #menu-bar.sticky, .js #menu-bar-hover-placeholder:hover + #menu-bar, @@ -49,7 +56,7 @@ a > .hljs { height: var(--menu-bar-height); } #menu-bar.bordered { - border-bottom-color: var(--table-border-color); + border-block-end-color: var(--table-border-color); } #menu-bar i, #menu-bar .icon-button { position: relative; @@ -86,11 +93,13 @@ a > .hljs { display: flex; margin: 0 5px; } -.no-js .left-buttons { +.no-js .left-buttons button { display: none; } .menu-title { + position: absolute; + left: 50%; display: inline-block; font-weight: 200; font-size: 2.4rem; @@ -153,7 +162,7 @@ a > .hljs { } .nav-wrapper { - margin-top: 50px; + margin-block-start: 50px; display: none; } @@ -166,23 +175,34 @@ a > .hljs { background-color: var(--sidebar-bg); } -.previous { - float: left; -} +/* Only Firefox supports flow-relative values */ +.previous { float: left; } +[dir=rtl] .previous { float: right; } +/* Only Firefox supports flow-relative values */ .next { float: right; right: var(--page-padding); } +[dir=rtl] .next { + float: left; + right: unset; + left: var(--page-padding); +} + +/* Use the correct buttons for RTL layouts*/ +[dir=rtl] .previous i.fa-angle-left:before {content:"\f105";} +[dir=rtl] .next i.fa-angle-right:before { content:"\f104"; } @media only screen and (max-width: 1080px) { .nav-wide-wrapper { display: none; } .nav-wrapper { display: block; } } +/* sidebar-visible */ @media only screen and (max-width: 1380px) { - .sidebar-visible .nav-wide-wrapper { display: none; } - .sidebar-visible .nav-wrapper { display: block; } + #sidebar-toggle-anchor:checked ~ .page-wrapper .nav-wide-wrapper { display: none; } + #sidebar-toggle-anchor:checked ~ .page-wrapper .nav-wrapper { display: block; } } /* Inline code */ @@ -229,7 +249,7 @@ pre > .buttons :hover { background-color: var(--theme-hover); } pre > .buttons i { - margin-left: 8px; + margin-inline-start: 8px; } pre > .buttons button { cursor: inherit; @@ -251,8 +271,14 @@ pre > .buttons button { /* On mobile, make it easier to tap buttons. */ padding: 0.3rem 1rem; } + + .sidebar-resize-indicator { + /* Hide resize indicator on devices with limited accuracy */ + display: none; + } } pre > code { + display: block; padding: 1rem; } @@ -266,7 +292,7 @@ pre > code { } pre > .result { - margin-top: 10px; + margin-block-start: 10px; } /* Search */ @@ -277,8 +303,14 @@ pre > .result { mark { border-radius: 2px; - padding: 0 3px 1px 3px; - margin: 0 -3px -1px -3px; + padding-block-start: 0; + padding-block-end: 1px; + padding-inline-start: 3px; + padding-inline-end: 3px; + margin-block-start: 0; + margin-block-end: -1px; + margin-inline-start: -3px; + margin-inline-end: -3px; background-color: var(--search-mark-bg); transition: background-color 300ms linear; cursor: pointer; @@ -290,14 +322,17 @@ mark.fade-out { } .searchbar-outer { - margin-left: auto; - margin-right: auto; + margin-inline-start: auto; + margin-inline-end: auto; max-width: var(--content-max-width); } #searchbar { width: 100%; - margin: 5px auto 0px auto; + margin-block-start: 5px; + margin-block-end: 0; + margin-inline-start: auto; + margin-inline-end: auto; padding: 10px 16px; transition: box-shadow 300ms ease-in-out; border: 1px solid var(--searchbar-border-color); @@ -313,20 +348,23 @@ mark.fade-out { .searchresults-header { font-weight: bold; font-size: 1em; - padding: 18px 0 0 5px; + padding-block-start: 18px; + padding-block-end: 0; + padding-inline-start: 5px; + padding-inline-end: 0; color: var(--searchresults-header-fg); } .searchresults-outer { - margin-left: auto; - margin-right: auto; + margin-inline-start: auto; + margin-inline-end: auto; max-width: var(--content-max-width); - border-bottom: 1px dashed var(--searchresults-border-color); + border-block-end: 1px dashed var(--searchresults-border-color); } ul#searchresults { list-style: none; - padding-left: 20px; + padding-inline-start: 20px; } ul#searchresults li { margin: 10px 0px; @@ -339,7 +377,10 @@ ul#searchresults li.focus { ul#searchresults span.teaser { display: block; clear: both; - margin: 5px 0 0 20px; + margin-block-start: 5px; + margin-block-end: 0; + margin-inline-start: 20px; + margin-inline-end: 0; font-size: 0.8em; } ul#searchresults span.teaser em { @@ -355,19 +396,21 @@ ul#searchresults span.teaser em { top: 0; bottom: 0; width: var(--sidebar-width); - font-size: 1em; + font-size: 0.85em; box-sizing: border-box; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; background-color: var(--sidebar-bg); color: var(--sidebar-fg); } +[dir=rtl] .sidebar { left: unset; right: 0; } .sidebar-resizing { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } +.no-js .sidebar, .js:not(.sidebar-resizing) .sidebar { transition: transform 0.3s; /* Animation: slide away */ } @@ -387,16 +430,35 @@ ul#searchresults span.teaser em { position: absolute; cursor: col-resize; width: 0; - right: 0; + right: calc(var(--sidebar-resize-indicator-width) * -1); top: 0; bottom: 0; + display: flex; + align-items: center; +} + +.sidebar-resize-handle .sidebar-resize-indicator { + width: 100%; + height: 12px; + background-color: var(--icons); + margin-inline-start: var(--sidebar-resize-indicator-space); +} + +[dir=rtl] .sidebar .sidebar-resize-handle { + left: calc(var(--sidebar-resize-indicator-width) * -1); + right: unset; } .js .sidebar .sidebar-resize-handle { cursor: col-resize; - width: 5px; + width: calc(var(--sidebar-resize-indicator-width) - var(--sidebar-resize-indicator-space)); } -.sidebar-hidden .sidebar { - transform: translateX(calc(0px - var(--sidebar-width))); +/* sidebar-hidden */ +#sidebar-toggle-anchor:not(:checked) ~ .sidebar { + transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width))); + z-index: -1; +} +[dir=rtl] #sidebar-toggle-anchor:not(:checked) ~ .sidebar { + transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width))); } .sidebar::-webkit-scrollbar { background: var(--sidebar-bg); @@ -405,19 +467,26 @@ ul#searchresults span.teaser em { background: var(--scrollbar); } -.sidebar-visible .page-wrapper { - transform: translateX(var(--sidebar-width)); +/* sidebar-visible */ +#sidebar-toggle-anchor:checked ~ .page-wrapper { + transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width))); +} +[dir=rtl] #sidebar-toggle-anchor:checked ~ .page-wrapper { + transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width))); } @media only screen and (min-width: 620px) { - .sidebar-visible .page-wrapper { + #sidebar-toggle-anchor:checked ~ .page-wrapper { + transform: none; + margin-inline-start: calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width)); + } + [dir=rtl] #sidebar-toggle-anchor:checked ~ .page-wrapper { transform: none; - margin-left: var(--sidebar-width); } } .chapter { list-style: none outside none; - padding-left: 0; + padding-inline-start: 0; line-height: 2em; } @@ -447,7 +516,7 @@ ul#searchresults span.teaser em { .chapter li > a.toggle { cursor: pointer; display: block; - margin-left: auto; + margin-inline-start: auto; padding: 0 10px; user-select: none; opacity: 0.68; @@ -464,7 +533,7 @@ ul#searchresults span.teaser em { .chapter li.chapter-item { line-height: 1.5em; - margin-top: 0.6em; + margin-block-start: 0.6em; } .chapter li.expanded > a.toggle div { @@ -487,7 +556,7 @@ ul#searchresults span.teaser em { .section { list-style: none outside none; - padding-left: 20px; + padding-inline-start: 20px; line-height: 1.5em; } @@ -510,6 +579,7 @@ ul#searchresults span.teaser em { /* Don't let the children's background extend past the rounded corners. */ overflow: hidden; } +[dir=rtl] .theme-popup { left: unset; right: 10px; } .theme-popup .default { color: var(--icons); } @@ -520,7 +590,7 @@ ul#searchresults span.teaser em { padding: 2px 20px; line-height: 25px; white-space: nowrap; - text-align: left; + text-align: start; cursor: pointer; color: inherit; background: inherit; @@ -533,6 +603,6 @@ ul#searchresults span.teaser em { .theme-selected::before { display: inline-block; content: "✓"; - margin-left: -14px; + margin-inline-start: -14px; width: 14px; } diff --git a/documentation/docs/theme/css/general.css b/documentation/dev-portal/nym_themes/css/general.css similarity index 76% rename from documentation/docs/theme/css/general.css rename to documentation/dev-portal/nym_themes/css/general.css index a06db43965..df8c1d12d2 100644 --- a/documentation/docs/theme/css/general.css +++ b/documentation/dev-portal/nym_themes/css/general.css @@ -5,6 +5,7 @@ :root { /* Browser default font-size is 16px, this way 1 rem = 10px */ font-size: 70%; + color-scheme: var(--color-scheme); } html { @@ -24,6 +25,7 @@ body { code { font-family: var(--mono-font) !important; font-size: 0.9em; + direction: ltr !important; } /* make long words/inline code not x overflow */ @@ -47,13 +49,13 @@ h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { .hide-boring .boring { display: none; } .hidden { display: none !important; } -h2, h3 { margin-top: 2.5em; } -h4, h5 { margin-top: 2em; } +h2, h3 { margin-block-start: 2.5em; } +h4, h5 { margin-block-start: 2em; } .header + .header h3, .header + .header h4, .header + .header h5 { - margin-top: 1em; + margin-block-start: 1em; } h1:target::before, @@ -64,7 +66,7 @@ h5:target::before, h6:target::before { display: inline-block; content: "»"; - margin-left: -30px; + margin-inline-start: -30px; width: 30px; } @@ -73,28 +75,34 @@ h6:target::before { https://bugs.webkit.org/show_bug.cgi?id=218076 */ :target { + /* Safari does not support logical properties */ scroll-margin-top: calc(var(--menu-bar-height) + 0.5em); } .page { outline: 0; padding: 0 var(--page-padding); - margin-top: calc(0px - var(--menu-bar-height)); /* Compensate for the #menu-bar-hover-placeholder */ + margin-block-start: calc(0px - var(--menu-bar-height)); /* Compensate for the #menu-bar-hover-placeholder */ } .page-wrapper { box-sizing: border-box; + background-color: var(--bg); } +.no-js .page-wrapper, .js:not(.sidebar-resizing) .page-wrapper { transition: margin-left 0.3s ease, transform 0.3s ease; /* Animation: slide away */ } +[dir=rtl] .js:not(.sidebar-resizing) .page-wrapper { + transition: margin-right 0.3s ease, transform 0.3s ease; /* Animation: slide away */ +} .content { overflow-y: auto; padding: 0 10px; } .content main { - margin-left: 10%; - margin-right: 10%; + margin-inline-start: auto; + margin-inline-end: auto; max-width: var(--content-max-width); } .content p { line-height: 1.45em; } @@ -144,8 +152,31 @@ blockquote { padding: 0 20px; color: var(--fg); background-color: var(--quote-bg); - border-top: .1em solid var(--quote-border); - border-bottom: .1em solid var(--quote-border); + border-block-start: .1em solid var(--quote-border); + border-block-end: .1em solid var(--quote-border); +} + +.warning { + margin: 20px; + padding: 0 20px; + border-inline-start: 2px solid var(--warning-border); +} + +.warning:before { + position: absolute; + width: 3rem; + height: 3rem; + margin-inline-start: calc(-1.5rem - 21px); + content: "ⓘ"; + text-align: center; + background-color: var(--bg); + color: var(--warning-border); + font-weight: bold; + font-size: 2rem; +} + +blockquote .warning:before { + background-color: var(--quote-bg); } kbd { @@ -163,7 +194,7 @@ kbd { :not(.footnote-definition) + .footnote-definition, .footnote-definition + :not(.footnote-definition) { - margin-top: 2em; + margin-block-start: 2em; } .footnote-definition { font-size: 0.9em; diff --git a/documentation/dev-portal/theme/css/variables.css b/documentation/dev-portal/nym_themes/css/variables.css similarity index 92% rename from documentation/dev-portal/theme/css/variables.css rename to documentation/dev-portal/nym_themes/css/variables.css index f8fa4cfd90..51b94cfc5a 100644 --- a/documentation/dev-portal/theme/css/variables.css +++ b/documentation/dev-portal/nym_themes/css/variables.css @@ -2,9 +2,11 @@ /* Globals */ :root { - --sidebar-width: 300px; - --page-padding: 20px; - --content-max-width: 70%; + --sidebar-width: 280px; + --sidebar-resize-indicator-width: 8px; + --sidebar-resize-indicator-space: 2px; + --page-padding: 15px; + --content-max-width: 80%; --menu-bar-height: 40px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ @@ -18,36 +20,6 @@ } } -@media only screen and (max-width:1439px) { - :root{ - --content-max-width: 98%; - } -} - -@media only screen and (max-width:1439px) { - :root{ - --content-max-width: 98%; - } -} - -@media only screen and (max-width:1439px) { - :root{ - --content-max-width: 98%; - } -} - -@media only screen and (max-width:1439px) { - :root{ - --content-max-width: 98%; - } -} - -@media only screen and (max-width:1439px) { - :root{ - --content-max-width: 98%; - } -} - /* Themes */ .ayu { @@ -76,6 +48,8 @@ --quote-bg: hsl(226, 15%, 17%); --quote-border: hsl(226, 15%, 22%); + --warning-border: #ff8e00; + --table-border-color: hsl(210, 25%, 13%); --table-header-bg: hsl(210, 25%, 28%); --table-alternate-bg: hsl(210, 25%, 11%); @@ -88,6 +62,8 @@ --searchresults-border-color: #888; --searchresults-li-bg: #252932; --search-mark-bg: #e3b171; + + --color-scheme: dark; } .coal { @@ -116,6 +92,8 @@ --quote-bg: hsl(234, 21%, 18%); --quote-border: hsl(234, 21%, 23%); + --warning-border: #ff8e00; + --table-border-color: hsl(200, 7%, 13%); --table-header-bg: hsl(200, 7%, 28%); --table-alternate-bg: hsl(200, 7%, 11%); @@ -128,6 +106,8 @@ --searchresults-border-color: #98a3ad; --searchresults-li-bg: #2b2b2f; --search-mark-bg: #355c7d; + + --color-scheme: dark; } .light { @@ -156,6 +136,8 @@ --quote-bg: hsl(197, 37%, 96%); --quote-border: hsl(197, 37%, 91%); + --warning-border: #ff8e00; + --table-border-color: hsl(0, 0%, 95%); --table-header-bg: hsl(0, 0%, 80%); --table-alternate-bg: hsl(0, 0%, 97%); @@ -168,6 +150,8 @@ --searchresults-border-color: #888; --searchresults-li-bg: #e4f2fe; --search-mark-bg: #a2cff5; + + --color-scheme: light; } .navy { @@ -196,6 +180,8 @@ --quote-bg: hsl(226, 15%, 17%); --quote-border: hsl(226, 15%, 22%); + --warning-border: #ff8e00; + --table-border-color: hsl(226, 23%, 16%); --table-header-bg: hsl(226, 23%, 31%); --table-alternate-bg: hsl(226, 23%, 14%); @@ -208,6 +194,8 @@ --searchresults-border-color: #5c5c68; --searchresults-li-bg: #242430; --search-mark-bg: #a2cff5; + + --color-scheme: dark; } .rust { @@ -236,6 +224,8 @@ --quote-bg: hsl(60, 5%, 75%); --quote-border: hsl(60, 5%, 70%); + --warning-border: #ff8e00; + --table-border-color: hsl(60, 9%, 82%); --table-header-bg: #b3a497; --table-alternate-bg: hsl(60, 9%, 84%); @@ -248,6 +238,8 @@ --searchresults-border-color: #888; --searchresults-li-bg: #dec2a2; --search-mark-bg: #e69f67; + + --color-scheme: light; } @media (prefers-color-scheme: dark) { @@ -277,6 +269,8 @@ --quote-bg: hsl(234, 21%, 18%); --quote-border: hsl(234, 21%, 23%); + --warning-border: #ff8e00; + --table-border-color: hsl(200, 7%, 13%); --table-header-bg: hsl(200, 7%, 28%); --table-alternate-bg: hsl(200, 7%, 11%); diff --git a/documentation/dev-portal/nym_themes/custom.css b/documentation/dev-portal/nym_themes/custom.css new file mode 100644 index 0000000000..35840fabec --- /dev/null +++ b/documentation/dev-portal/nym_themes/custom.css @@ -0,0 +1,54 @@ +:root { + --mono-font: Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace; +} + +.coal { + --fg: #f2f2f2; + --sidebar-fg: #f2f2f2; + --sidebar-active: #fb6e4e; + --icons-hover: #fb6e4e; + --links: #fb6e4e; + ::selection { + color: #121726; + background-color: #c5573d; + } + select option { + background-color: #121726; + } +} + +.light { + --sidebar-active: #fb6e4e; + --icons-hover: #fb6e4e; + --links: #fb6e4e; + ::selection { + color:#f2f2f2; + background-color: #c5573d; + } +} + +/*properly centering the title given the additional header items*/ +.menu-title { + position: absolute; + left: 50%; +} + +.menu-bar .a:hover, + +/*necessary because of ^*/ +.right-buttons { + position: absolute; + right: 0; +} + +select { + font-size: 16px; +} + +footer { + font-size: 0.8em; + text-align: center; + border-top: 1px solid black; + padding: 5px 0; +} + diff --git a/documentation/dev-portal/nym_themes/index.hbs b/documentation/dev-portal/nym_themes/index.hbs new file mode 100644 index 0000000000..b8115558e3 --- /dev/null +++ b/documentation/dev-portal/nym_themes/index.hbs @@ -0,0 +1,381 @@ + + +
+ + +