logiguard fork v3: full patch set on verified 8c74db0 tree

Includes prior-session patches (carry forward so the app compiles):
  - crates/gpui/build.rs: cross-compile manifest fix
  - crates/gpui/src/platform.rs: PlatformWindow::activate_with_token trait method
  - crates/gpui/src/window.rs: Window::activate_with_token public API
  - crates/gpui_linux/src/linux/wayland/window.rs: WaylandWindow::activate_with_token + activate() keyboard-serial fix

Plus the focus-serial fix:
  - serial.rs: SerialKind::KeyboardEnter
  - client.rs: store wl_keyboard.enter serial; latest_serial_of()

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mohamad Khani
2026-07-14 01:52:12 +03:30
commit b9819977a5
3984 changed files with 1487015 additions and 0 deletions

867
docs/theme/css/chrome.css vendored Normal file
View File

@@ -0,0 +1,867 @@
/* CSS for UI elements (a.k.a. chrome) */
@import "variables.css";
html {
background-color: var(--bg);
scrollbar-color: var(--scrollbar) var(--bg);
}
#searchresults a,
.content a:link,
a:visited,
a > .hljs {
color: var(--links);
}
.icon-logo-img {
display: block;
}
.icon-button {
position: relative;
height: 28px;
width: 28px;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: color 0.5s;
border: 0;
background-color: transparent;
border-radius: 4px;
color: var(--icons);
}
.icon-button:hover {
color: var(--icons-hover);
background-color: var(--icon-btn-bg-hover);
}
.ib-hidden-desktop {
display: none;
}
.header-bar {
position: sticky;
top: 0;
z-index: 100;
padding: 12px 16px;
background-color: var(--sidebar-bg);
border-bottom: 1px solid var(--divider);
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.header-bar .left-container {
width: 160px;
display: flex;
align-items: center;
gap: 8px;
}
.header-bar .right-container {
width: 160px;
display: flex;
align-items: center;
gap: 4px;
}
.logo-nav {
display: flex;
align-items: center;
justify-content: center;
filter: var(--logo-brightness);
}
.nav-chapters {
font-size: 2.5em;
text-align: center;
text-decoration: none;
position: fixed;
top: 0;
bottom: 0;
margin: 0;
max-width: 150px;
min-width: 90px;
display: flex;
justify-content: center;
align-content: center;
flex-direction: column;
transition:
color 0.5s,
background-color 0.5s;
}
.nav-chapters:hover {
text-decoration: none;
background-color: var(--theme-hover);
transition:
background-color 0.15s,
color 0.15s;
}
.nav-wrapper {
margin-block-start: 50px;
display: none;
}
.footer-buttons {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 24px 0;
}
.footer-button {
width: 100%;
padding: 12px;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
background-color: var(--footer-btn-bg);
border: 1px solid var(--footer-btn-border);
border-radius: 0.5rem;
font-size: 0.9em;
}
.footer-button:hover {
background-color: var(--footer-btn-bg-hover);
border-color: var(--footer-btn-border-hover);
}
.footer-button i {
text-decoration: underline !important;
text-decoration-color: transparent !important;
}
.footer {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 0.5rem;
padding: 24px 0;
border-top: 1px dashed var(--border-footer);
}
.footer-link {
font-size: 1.25rem;
color: var(--links);
text-decoration: underline;
text-decoration-color: var(--link-line-decoration);
text-wrap-mode: nowrap;
:hover {
text-decoration-color: var(--link-line-decoration-hover);
}
}
.footer-separator {
color: var(--border-light);
font-size: 0.8em;
}
.footer-logo {
height: 16px;
border-radius: 0 !important;
border: none !important;
background: transparent !important;
}
.mobile-nav-chapters {
font-size: 2.5em;
text-align: center;
text-decoration: none;
width: 90px;
border-radius: 5px;
background-color: var(--sidebar-bg);
}
/* 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-toggle-anchor:checked ~ .page-wrapper .nav-wide-wrapper {
display: none;
}
#sidebar-toggle-anchor:checked ~ .page-wrapper .nav-wrapper {
display: block;
}
}
/* Inline code */
:not(pre) > .hljs {
display: inline;
padding: 0.1em 0.3em;
border-radius: 3px;
}
:not(pre):not(a) > .hljs {
color: var(--inline-code-color);
overflow-x: initial;
}
a:hover > .hljs {
text-decoration: underline;
}
pre {
background-color: var(--pre-bg);
border: 1px solid;
border-color: var(--pre-border);
box-shadow: var(--pre-shadow) 4px 4px 0px 0px;
position: relative;
}
pre > .hljs {
background-color: initial;
}
pre > .buttons {
position: absolute;
z-index: 100;
right: 0px;
top: 2px;
margin: 0px;
padding: 2px 0px;
color: var(--sidebar-fg);
cursor: pointer;
visibility: hidden;
opacity: 0;
transition:
visibility 0.1s linear,
opacity 0.1s linear;
}
pre:hover > .buttons {
visibility: visible;
opacity: 1;
}
pre > .buttons :hover {
color: var(--sidebar-active);
border-color: var(--border-hover);
background-color: var(--theme-hover);
}
pre > .buttons i {
margin-inline-start: 8px;
}
pre > .buttons button {
cursor: inherit;
margin: 0 4px;
height: 26px;
width: 26px;
font-size: 14px;
border-style: solid;
border-width: 1px;
border-radius: 4px;
border-color: var(--border);
background-color: var(--popover-bg);
transition: 100ms;
transition-property: color, border-color, background-color;
color: var(--icons);
}
pre > .playground {
border: none;
margin: 0;
box-shadow: none;
/* HACK: This serves to visually hide nested <pre> elements in "playground" code snippets.
A more robust solution would involve modifying the rendered HTML. */
}
@media (pointer: coarse) {
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;
}
/* TODO: ACE editors overlap their buttons because ACE does absolute
positioning within the code block which breaks padding. The only solution I
can think of is to move the padding to the outer pre tag (or insert a div
wrapper), but that would require fixing a whole bunch of CSS rules.
*/
.hljs.ace_editor {
padding: 0rem 0rem;
}
pre > .result {
margin-block-start: 10px;
}
/* Search */
#searchresults a {
text-decoration: none;
}
mark {
border-radius: 2px;
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;
}
mark.fade-out {
background-color: rgba(0, 0, 0, 0) !important;
cursor: auto;
}
.searchbar-outer {
margin-inline-start: auto;
margin-inline-end: auto;
width: 100%;
max-width: var(--content-max-width);
box-sizing: border-box;
padding: 16px;
}
#searchbar {
width: 100%;
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);
border-radius: 3px;
background-color: var(--searchbar-bg);
color: var(--searchbar-fg);
}
#searchbar:focus,
#searchbar.active {
box-shadow: 0 0 3px var(--searchbar-shadow-color);
outline: none;
border-color: var(--search-mark-bg);
}
.searchresults-header {
font-weight: bold;
font-size: 1em;
padding-block-start: 0;
padding-block-end: 0;
color: var(--searchresults-header-fg);
}
ul#searchresults {
list-style: none;
padding-inline-start: 0;
margin-block-end: 0;
}
ul#searchresults li {
margin: 10px 0px;
padding: 2px;
border-radius: 2px;
scroll-margin-block-end: 10px;
}
ul#searchresults li.focus {
background-color: var(--searchresults-li-bg);
}
ul#searchresults span.teaser {
display: block;
font-size: 0.8em;
margin-block-start: 5px;
margin-inline-start: 4px;
padding-inline-start: 2ch;
border-left: 1px solid var(--divider);
}
ul#searchresults span.teaser em {
font-weight: bold;
color: var(--full-contrast);
background: var(--code-bg);
}
/* Sidebar */
.sidebar {
position: relative;
width: var(--sidebar-width);
flex-shrink: 0;
display: flex;
flex-direction: column;
font-size: 0.875em;
box-sizing: border-box;
-webkit-overflow-scrolling: touch;
overscroll-behavior-y: none;
overflow: hidden;
background-color: var(--sidebar-bg);
color: var(--sidebar-fg);
border-right: 1px solid var(--divider);
}
[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 */
}
.sidebar code {
line-height: 2em;
}
.sidebar .sidebar-scrollbox {
flex: 1;
overflow-y: auto;
min-height: 0;
}
.sidebar .sidebar-resize-handle {
position: absolute;
cursor: col-resize;
width: 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: calc(
var(--sidebar-resize-indicator-width) -
var(--sidebar-resize-indicator-space)
);
}
.sidebar::-webkit-scrollbar {
background: var(--sidebar-bg);
}
.sidebar::-webkit-scrollbar-thumb {
background: var(--scrollbar);
}
@media only screen and (max-width: 780px) {
.sidebar {
position: fixed;
top: 0;
left: 0;
height: 100vh;
padding-top: 57px; /* Account for header height */
transform: translateX(-100%);
z-index: 99;
transition: transform 0.1s ease;
}
[dir="rtl"] .sidebar {
left: unset;
right: 0;
transform: translateX(100%);
}
body.sidebar-open .sidebar {
box-shadow: var(--sidebar-mobile-shadow);
transform: translateX(0);
}
}
.chapter {
list-style: none outside none;
padding: 16px;
padding-top: 8px;
line-height: 2.2em;
margin: 0;
}
.chapter ol {
width: 100%;
}
.chapter li {
display: flex;
color: var(--sidebar-non-existant);
}
.chapter li a {
display: block;
padding: 0 4px;
text-decoration: none;
color: var(--sidebar-fg);
}
.chapter li a:hover {
color: var(--sidebar-active);
}
.chapter li a.active {
color: var(--sidebar-active);
background-color: var(--sidebar-active-bg);
}
.chapter li > a.toggle {
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
margin-inline-start: auto;
user-select: none;
opacity: 0.5;
border-radius: 4px;
transition:
opacity 0.15s ease,
background-color 0.15s ease;
}
.chapter li > a.toggle:hover {
opacity: 1;
background-color: var(--theme-hover);
}
.chapter li.chapter-item {
display: flex;
flex-wrap: wrap;
align-items: center;
line-height: 1.5em;
margin-block-start: 0.6em;
}
.section li.chapter-item {
margin-block-start: 0;
}
.chapter li.part-title + li.chapter-item {
margin-block-start: 0.2em;
}
.chapter li.chapter-item > a:first-child {
flex: 1;
min-width: 0;
}
.chapter li.expanded > a.toggle div {
transform: rotate(90deg);
}
.chapter li.part-title {
font-size: 1.4rem;
padding: 0 8px 0 4px;
color: var(--title-color);
cursor: pointer;
user-select: none;
display: flex;
align-items: center;
justify-content: space-between;
line-height: auto;
border-radius: 2px;
}
.chapter li.part-title.collapsible:hover {
background-color: var(--hover-section-title);
}
.chapter li.part-title.collapsible::after {
content: "";
display: inline-block;
font-size: 1rem;
opacity: 0.6;
transition: transform 0.2s ease;
flex-shrink: 0;
}
.chapter li.part-title.collapsible.expanded::after {
transform: rotate(90deg);
}
.chapter li.section-spacer {
height: 1.5rem;
list-style: none;
}
.chapter li.section-hidden {
display: none !important;
}
.section {
list-style: none outside none;
padding-inline-start: 1.5ch;
margin-inline-start: 1ch;
margin-top: 6px;
border-left: 1px solid var(--border-light);
line-height: 1.9em;
display: flex;
flex-direction: column;
gap: 0.6em;
}
.theme-popup {
position: absolute;
right: 155px;
top: calc(var(--menu-bar-height) - 18px);
z-index: 1000;
border-radius: 4px;
font-size: 1.4rem;
color: var(--fg);
background: var(--popover-bg);
border: 1px solid var(--popover-border);
margin: 0;
padding: 0;
list-style: none;
display: none;
overflow: hidden;
}
[dir="rtl"] .theme-popup {
left: unset;
right: 10px;
}
.theme-popup .default {
color: var(--icons);
}
.theme-popup .theme {
width: 100%;
border: 0;
margin: 0;
padding: 2px 24px;
line-height: 25px;
white-space: nowrap;
text-align: start;
cursor: pointer;
color: inherit;
background: inherit;
font-size: inherit;
font-family: inherit;
}
.theme-popup .theme:hover {
background-color: var(--theme-hover);
}
.theme-selected::before {
font-family: Arial, Helvetica, sans-serif;
text-align: center;
display: inline-block;
content: "✓";
margin-inline-start: -20px;
width: 20px;
}
.download-button {
max-height: 28px;
margin-left: 8px;
background: var(--download-btn-bg);
color: var(--download-btn-color);
padding: 4px 8px;
border: 1px solid;
border-color: var(--download-btn-border);
font-size: 1.4rem;
border-radius: 4px;
box-shadow: var(--download-btn-shadow) 0px -2px 0px 0px inset;
text-decoration: none;
transition: 100ms;
transition-property: box-shadow, border-color, background-color;
}
.download-button:hover {
background: var(--download-btn-bg);
border-color: var(--download-btn-border-hover);
box-shadow: none;
}
.search-button {
min-width: 100px;
max-width: 300px;
height: 28px;
width: 100%;
padding: 4px 4px 4px 8px;
display: flex;
gap: 8px;
background: var(--search-btn-bg);
border: 1px solid;
border-color: var(--search-btn-border);
font-size: 1.4rem;
font-family: var(--font);
color: var(--icons);
border-radius: 4px;
transition: 100ms;
transition-property: box-shadow, border-color, background-color;
}
.search-button:hover {
background: var(--search-btn-bg-hover);
}
.search-button .icon {
width: 12px;
height: 12px;
transform: translateY(10%);
scale: 0.9;
}
.search-content-desktop {
width: 100%;
display: flex;
justify-content: space-between;
}
.search-content-mobile {
display: none;
}
.search-container {
box-sizing: border-box;
position: fixed;
inset: 0;
z-index: 1000;
padding: 24px;
padding-top: 72px;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
}
.search-container:has(#search-wrapper:not(.hidden)) {
display: flex;
}
.search-modal {
box-sizing: border-box;
max-width: 600px;
min-width: 600px;
height: fit-content;
max-height: 600px;
display: flex;
flex-direction: column;
overflow-y: hidden;
border-radius: 8px;
background: var(--popover-bg);
border: 1px solid var(--popover-border);
box-shadow: var(--popover-shadow);
}
.searchresults-outer {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 0px 22px 22px 22px;
}
#searchbar {
margin: 0;
}
@media only screen and (max-width: 780px) {
.header-bar {
padding: 16px;
justify-content: start;
}
.download-button {
display: none;
}
.ib-hidden-mobile {
display: none;
}
.header-bar .left-container {
width: fit-content;
}
.header-bar .right-container {
width: fit-content;
}
.search-button {
width: 100px;
margin-left: auto;
margin-right: 8px;
}
.ib-hidden-desktop {
display: block;
}
.search-modal {
width: 90vw;
min-width: auto;
}
.search-content-desktop {
display: none;
}
.search-content-mobile {
display: flex;
}
.theme-popup {
right: 15px;
}
}

473
docs/theme/css/general.css vendored Normal file
View File

@@ -0,0 +1,473 @@
/* Base styles and content styles */
@import "variables.css";
:root {
/* Browser default font-size is 16px, this way 1 rem = 10px */
font-size: 62.5%;
color-scheme: var(--color-scheme);
}
html {
font-family: var(--font);
color: var(--fg);
background-color: var(--bg);
text-size-adjust: none;
-webkit-text-size-adjust: none;
text-rendering: geometricPrecision !important;
-webkit-font-smoothing: antialiased !important;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.005);
}
body {
margin: 0;
font-size: 1.6rem;
overflow: hidden;
height: 100vh;
overscroll-behavior-y: none;
}
#body-container {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
code {
font-family: var(--mono-font) !important;
font-size: var(--code-font-size);
direction: ltr !important;
}
/* make long words/inline code not x overflow */
main {
overflow-wrap: break-word;
}
.noise-pattern {
pointer-events: none;
user-select: none;
z-index: 105;
position: absolute;
inset: 0;
background-size: 180px;
background-repeat: repeat;
opacity: var(--noise-opacity);
}
/* make wide tables scroll if they overflow */
.table-wrapper {
overflow-x: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
position: relative;
font-family: var(--title-font);
font-weight: 400;
}
h1 {
color: var(--title-color);
}
h2,
h3,
h4,
h5,
h6 {
color: var(--full-contrast);
}
/* Don't change font size in headers. */
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code {
font-size: unset;
}
.left {
float: left;
}
.right {
float: right;
}
.boring {
opacity: 0.6;
}
.hide-boring .boring {
display: none;
}
.hidden {
display: none !important;
}
h1 {
font-size: 3.4rem;
}
h2 {
padding-bottom: 1rem;
border-bottom: 1px solid;
border-color: var(--border-light);
}
h3 {
font-size: 2rem;
padding-bottom: 0.8rem;
border-bottom: 1px dashed;
border-color: var(--border-light);
}
h4 {
font-size: 1.8rem;
}
h5 {
font-size: 1.6rem;
}
h2,
h3,
h4,
h5 {
margin-block-start: 1.5em;
margin-block-end: 0;
}
strong {
color: var(--full-contrast);
}
code:focus-visible,
pre:focus-visible,
li:focus-visible,
button:focus-visible,
a:focus-visible {
outline: 3px solid #094ece80;
}
.header + .header h3,
.header + .header h4,
.header + .header h5 {
margin-block-start: 1em;
}
h1:target::before,
h2:target::before,
h3:target::before,
h4:target::before,
h5:target::before,
h6:target::before {
content: "»";
position: absolute;
left: -1.5ch;
}
hr {
border: 0px solid;
color: transparent;
width: 100%;
height: 1px;
background-color: var(--border-light);
}
/* This is broken on Safari as of version 14, but is fixed
in Safari Technology Preview 117 which I think will be Safari 14.2.
https://bugs.webkit.org/show_bug.cgi?id=218076
*/
:target {
/* Safari does not support logical properties */
scroll-margin-top: calc(var(--menu-bar-height) + 2rem);
}
.page-wrapper {
box-sizing: border-box;
background-color: var(--bg);
display: flex;
flex: 1;
overflow: hidden;
min-height: 0;
}
.page {
outline: 0;
flex: 1;
display: flex;
flex-direction: column;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior-y: none;
min-width: 0;
position: relative;
}
.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 {
padding: 32px 32px 0 32px;
display: flex;
justify-content: space-between;
gap: 36px;
}
.content main {
margin-inline-start: auto;
margin-inline-end: auto;
max-width: var(--content-max-width);
}
.content p {
line-height: 1.625em;
}
.content div.video {
z-index: 150;
margin-top: 1rem;
border: 1px solid;
border-color: var(--border);
border-radius: 8px;
overflow: clip;
}
.content div.video iframe {
margin: 0;
}
.content ol {
marker: none;
line-height: 1.8;
padding-left: 2em;
::marker {
font-size: 1.4rem;
}
li {
padding-left: 0;
}
}
.content ul {
line-height: 1.8;
padding-left: 1.8em;
}
.content a {
text-decoration: underline;
text-decoration-color: var(--link-line-decoration);
}
.content a:hover {
text-decoration-color: var(--link-line-decoration-hover);
}
.content img,
.content video {
position: relative;
z-index: 150;
max-width: 100%;
background-color: var(--media-bg);
border: 1px solid;
border-color: var(--border);
border-radius: 8px;
overflow: clip;
}
.content h1 .header:link,
.content h1 .header:visited {
color: var(--title-color);
}
.content :is(h2, h3, h4, h5, h6) .header:link,
.content :is(h2, h3, h4, h5, h6) .header:visited {
color: var(--full-contrast);
}
.content .header:link,
.content .header:visited:hover {
text-decoration: none;
}
iframe {
margin-top: 1rem;
margin-bottom: 10rem;
}
table {
margin-top: 1.4rem;
width: 100%;
border-collapse: collapse;
font-size: 1.4rem;
}
table td {
padding: 4px 12px;
border: 1px var(--table-border-color) solid;
}
table thead {
background: var(--table-header-bg);
}
table thead td {
font-weight: 700;
border: none;
}
table thead th {
padding: 6px 12px;
color: var(--full-contrast);
text-align: left;
border: 1px var(--table-border-color) solid;
}
table thead tr {
border: 1px var(--table-border-color) solid;
}
/* Alternate background colors for rows */
table tbody tr:nth-child(2n) {
background: var(--table-alternate-bg);
}
blockquote {
margin: auto;
margin-top: 1rem;
padding: 1rem 1.25rem;
color: var(--full-contrast);
background-color: var(--quote-bg);
border: 1px solid var(--quote-border);
}
blockquote > p {
margin: 0;
padding-left: 2.6rem;
font-size: 1.4rem;
}
blockquote:before {
--size: 1.4rem;
position: absolute;
content: "ⓘ";
margin: 0.3rem 0;
width: var(--size);
height: var(--size);
font-size: var(--size);
font-weight: bold;
color: var(--icons);
display: flex;
align-items: center;
justify-content: center;
line-height: 1.625em;
}
blockquote .warning:before {
background-color: var(--quote-bg);
}
.warning {
margin: auto;
padding: 1rem 1.25rem;
color: var(--full-contrast);
background-color: var(--warning-bg);
border: 1px solid var(--warning-border);
}
.warning > p {
margin: 0;
padding-left: 2.6rem;
font-size: 1.4rem;
}
.warning:before {
--size: 1.4rem;
position: absolute;
content: "ⓘ";
margin: 0.3rem 0;
width: var(--size);
height: var(--size);
font-size: var(--size);
font-weight: bold;
color: var(--warning-icon);
display: flex;
align-items: center;
justify-content: center;
line-height: 1.625em;
}
kbd {
background-color: var(--keybinding-bg);
padding: 4px 4px 6px 4px;
border-radius: 4px;
font-family: var(--mono-font);
display: inline-block;
margin: 0 2px;
border: solid 1px var(--popover-border);
box-shadow: inset 0 -1px 0 var(--theme-hover);
font-size: var(--code-font-size);
color: var(--full-contrast);
line-height: 10px;
vertical-align: middle;
}
:not(.footnote-definition) + .footnote-definition,
.footnote-definition + :not(.footnote-definition) {
margin-block-start: 2em;
}
.footnote-definition {
font-size: 1.4rem;
margin: 0.5em 0;
border-bottom: 1px solid;
border-color: var(--divider);
}
.footnote-definition p {
display: inline;
}
.tooltiptext {
position: absolute;
visibility: hidden;
color: #fff;
background-color: #333;
transform: translateX(
-50%
); /* Center by moving tooltip 50% of its width left */
left: -8px; /* Half of the width of the icon */
top: -35px;
font-size: 0.8em;
text-align: center;
border-radius: 6px;
padding: 5px 8px;
margin: 5px;
z-index: 1000;
}
.tooltipped .tooltiptext {
visibility: visible;
}
.result-no-output {
font-style: italic;
}
code:not(pre code).hljs {
color: var(--code-text) !important;
background-color: var(--code-bg) !important;
}
@media only screen and (max-width: 1020px) {
.content {
padding: 16px 32px 0 32px;
}
.content main {
width: 100%;
}
}
@media only screen and (max-width: 400px) {
.content {
padding: 16px 16px 0 16px;
}
}

211
docs/theme/css/variables.css vendored Normal file
View File

@@ -0,0 +1,211 @@
/* Globals */
:root {
--color-scheme: light;
--logo-brightness: brightness(1);
--sidebar-width: 280px;
--sidebar-resize-indicator-width: 0px;
--sidebar-resize-indicator-space: 2px;
--page-padding: 15px;
--content-max-width: 690px;
--menu-bar-height: 64px;
--font: "iA Writer Quattro S", sans-serif;
--title-font:
"IBM Plex Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
--mono-font:
"Lilex", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
Liberation Mono, Courier New, monospace;
--code-font-size: 0.875em
/* please adjust the ace font size accordingly in editor.js */;
--noise-opacity: 0.024;
--bg: hsla(50, 25%, 96%);
--fg: hsl(220, 13%, 34%);
--title-color: hsl(220, 92%, 42%);
--border: hsl(220, 13%, 80%);
--border-light: hsl(220, 13%, 90%);
--border-hover: hsl(220, 13%, 70%);
--border-footer: hsl(220, 13%, 91%);
--media-bg: hsl(50, 25%, 92%);
--sidebar-bg: hsla(50, 25%, 94%);
--sidebar-fg: hsl(0, 0%, 0%);
--sidebar-non-existant: #aaaaaa;
--sidebar-active: hsl(220, 93%, 42%);
--sidebar-active-bg: hsl(220, 93%, 42%, 0.1);
--sidebar-mobile-shadow: 0px 16px 16px hsl(0, 0%, 0%, 0.1);
--divider: hsl(220, 50%, 45%, 0.1);
--scrollbar: #8f8f8f;
--icons: #747474;
--icons-hover: #000000;
--icon-btn-bg-hover: hsl(220, 93%, 42%, 0.15);
--links: hsl(220, 92%, 42%);
--link-line-decoration: hsl(220, 93%, 42%, 0.2);
--link-line-decoration-hover: hsl(220, 93%, 42%, 0.5);
--full-contrast: #000;
--inline-code-color: #301900;
--code-text: hsl(220, 13%, 10%);
--code-bg: hsl(220, 93%, 42%, 0.1);
--keybinding-bg: hsl(0, 0%, 94%);
--pre-bg: #fff;
--pre-border: hsla(220, 93%, 42%, 0.3);
--pre-shadow: hsla(220, 93%, 42%, 0.07);
--popover-bg: #fafafa;
--popover-border: #cccccc;
--popover-shadow:
0 10px 15px -3px hsl(0, 0%, 0%, 0.1), 0 4px 6px -4px hsl(0, 0%, 0%, 0.1);
--theme-hover: #e6e6e6;
--hover-section-title: hsl(50, 25%, 88%);
--quote-bg: hsl(197, 37%, 96%);
--quote-border: hsl(197, 37%, 84%);
--warning-border: hsl(25, 100%, 85%);
--warning-bg: hsl(42, 100%, 60%, 0.1);
--warning-icon: hsl(42, 100%, 30%);
--table-header-bg: hsl(220, 50%, 90%, 0.4);
--table-border-color: hsl(220, 93%, 42%, 0.15);
--table-alternate-bg: hsl(220, 10%, 90%, 0.4);
--toc-link-underline: hsl(0, 0%, 0%, 0.1);
--toc-link-underline-hover: hsl(0, 0%, 0%, 0.5);
--searchbar-border-color: #aaa;
--searchbar-bg: #fafafa;
--searchbar-fg: #000;
--searchbar-shadow-color: #aaa;
--searchresults-header-fg: #666;
--searchresults-li-bg: #e4f2fe;
--search-mark-bg: #a2cff5;
--download-btn-bg: hsl(220, 60%, 95%);
--download-btn-bg-hover: hsl(220, 60%, 93%);
--download-btn-color: hsl(220, 60%, 30%);
--download-btn-border: hsla(220, 60%, 40%, 0.2);
--download-btn-border-hover: hsla(220, 60%, 50%, 0.2);
--download-btn-shadow: hsla(220, 40%, 60%, 0.1);
--search-btn-bg: hsl(220, 100%, 100%);
--search-btn-bg-hover: hsla(50, 25%, 97%);
--search-btn-border: hsl(220, 50%, 45%, 0.2);
--toast-bg: hsla(220, 93%, 98%);
--toast-border: hsla(220, 93%, 42%, 0.3);
--toast-border-success: hsla(120, 73%, 42%, 0.3);
--toast-border-error: hsla(0, 90%, 50%, 0.3);
--footer-btn-bg: hsl(220, 60%, 98%, 0.4);
--footer-btn-bg-hover: hsl(220, 60%, 93%, 0.5);
--footer-btn-border: hsla(220, 60%, 40%, 0.15);
--footer-btn-border-hover: hsla(220, 60%, 50%, 0.2);
}
.dark {
--color-scheme: dark;
--logo-brightness: brightness(2);
--noise-opacity: 0.012;
--bg: hsl(220, 13%, 7.5%);
--fg: hsl(220, 14%, 70%);
--title-color: hsl(220, 92%, 80%);
--border: hsl(220, 13%, 20%);
--border-light: hsl(220, 13%, 15%);
--border-hover: hsl(220, 13%, 40%);
--border-footer: hsl(220, 13%, 12%);
--media-bg: hsl(220, 13%, 8%);
--sidebar-bg: hsl(220, 13%, 6.5%);
--sidebar-fg: hsl(220, 14%, 71%);
--sidebar-non-existant: #505254;
--sidebar-active: hsl(220, 92%, 75%);
--sidebar-active-bg: hsl(220, 93%, 42%, 0.25);
--sidebar-mobile-shadow: 0px 16px 16px hsl(0, 0%, 0%, 0.6);
--divider: hsl(220, 13%, 12%);
--scrollbar: hsl(220, 13%, 30%);
--icons: hsl(220, 14%, 71%);
--icons-hover: hsl(220, 14%, 90%);
--icon-btn-bg-hover: hsl(220, 93%, 42%, 0.4);
--links: hsl(220, 93%, 75%);
--link-line-decoration: hsl(220, 92%, 80%, 0.4);
--link-line-decoration-hover: hsl(220, 92%, 80%, 0.8);
--full-contrast: #fff;
--inline-code-color: hsl(40, 100%, 80%);
--code-text: hsl(220, 13%, 95%);
--code-bg: hsl(220, 93%, 50%, 0.2);
--keybinding-bg: hsl(220, 20%, 10%);
--pre-bg: hsl(220, 13%, 5%);
--pre-border: hsla(220, 93%, 70%, 0.3);
--pre-shadow: hsla(220, 93%, 70%, 0.1);
--popover-bg: hsl(220, 13%, 8%);
--popover-border: hsl(220, 13%, 20%);
--popover-shadow:
0 10px 15px -3px hsl(0, 0%, 0%, 0.1), 0 4px 6px -4px hsl(0, 0%, 0%, 0.1);
--theme-hover: hsl(220, 13%, 20%);
--hover-section-title: hsl(220, 13%, 11%);
--quote-bg: hsl(220, 13%, 25%, 0.4);
--quote-border: hsl(220, 13%, 32%, 0.5);
--table-border-color: hsl(220, 13%, 30%, 0.5);
--table-header-bg: hsl(220, 13%, 25%, 0.5);
--table-alternate-bg: hsl(220, 13%, 20%, 0.4);
--toc-link-underline: hsl(255, 100%, 100%, 0.1);
--toc-link-underline-hover: hsl(255, 100%, 100%, 0.4);
--warning-border: hsl(25, 100%, 85%, 0.2);
--warning-bg: hsl(42, 100%, 40%, 0.1);
--warning-icon: hsl(42, 100%, 80%);
--searchbar-border-color: hsl(220, 13%, 30%);
--searchbar-bg: hsl(220, 13%, 22%, 0.5);
--searchbar-fg: hsl(220, 14%, 71%);
--searchbar-shadow-color: hsl(220, 13%, 15%);
--searchresults-header-fg: hsl(220, 14%, 60%);
--searchresults-li-bg: hsl(220, 13%, 25%);
--search-mark-bg: hsl(220, 93%, 60%);
--download-btn-bg: hsl(220, 90%, 30%, 0.5);
--download-btn-bg-hover: hsl(220, 90%, 50%, 0.4);
--download-btn-color: hsl(220, 90%, 95%);
--download-btn-border: hsla(220, 90%, 80%, 0.2);
--download-btn-border-hover: hsla(220, 90%, 80%, 0.4);
--download-btn-shadow: hsla(220, 50%, 60%, 0.15);
--search-btn-bg: hsl(220, 90%, 90%, 0.05);
--search-btn-bg-hover: hsl(220, 90%, 90%, 0.1);
--search-btn-border: hsla(220, 90%, 80%, 0.1);
--toast-bg: hsla(220, 20%, 98%, 0.05);
--toast-border: hsla(220, 93%, 70%, 0.2);
--toast-border-success: hsla(120, 90%, 60%, 0.3);
--toast-border-error: hsla(0, 90%, 80%, 0.3);
--footer-btn-bg: hsl(220, 90%, 95%, 0.01);
--footer-btn-bg-hover: hsl(220, 90%, 50%, 0.05);
--footer-btn-border: hsla(220, 90%, 90%, 0.05);
--footer-btn-border-hover: hsla(220, 90%, 80%, 0.2);
}