@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"); /*------------------------------------------------------------------------- * Connect FontAwesome file with FontAwesome family name. Supplements * fontawesome.min.css. Without this, the codes like `fa-github` don't # work in the Furo theme as they did with RTD theme. *-------------------------------------------------------------------------*/ @font-face { font-family: FontAwesome; src: url("../fonts/fontawesome-webfont.woff2") format("woff2"), url("../fonts/fontawesome-webfont.woff") format("woff"); } .fa { font-family: FontAwesome, "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif; cursor: pointer; } /*------------------------------------------------------------------------- * Colors *-------------------------------------------------------------------------*/ body, body[data-theme="light"] { --color-link: #000; --color-sidebar-link-text--top-level: #000; --color-sidebar-item-background--hover: #f0f0f0; --color-toc-item-text--active: #000; --color-toc-item-text: #000; --color-sidebar-background: transparent; } @media (prefers-color-scheme: dark) { body { --color-link: #fff; --color-sidebar-link-text--top-level: #fff; --color-sidebar-item-background--hover: #222; --color-toc-item-text--active: #fff; --color-toc-item-text: #fff; --color-sidebar-background: transparent; } } body[data-theme="dark"] { --color-link: #fff; --color-sidebar-link-text--top-level: #fff; --color-sidebar-item-background--hover: #222; --color-toc-item-text--active: #fff; --color-toc-item-text: #fff; --color-sidebar-background: transparent; } /*------------------------------------------------------------------------- * Element Overrides *-------------------------------------------------------------------------*/ section + section { margin-top: 4rem; } table, th, td { border: 1px solid #bbb; padding: 10px; } span.pre { padding-right: 8px; } span.pre { padding-right: 8px; } span.pre:first-child { padding-right: 0px; } code.sig-name { /*margin-left:8px;*/ } .sidebar-drawer { width: fit-content; padding: 1rem; } .sidebar-tree label .icon { opacity: 0.25; } .main { justify-content: center; gap: 6rem; padding: 3rem; } .content { padding: 0; width: 100%; max-width: 696px; } .no-toc { display: block; } /*------------------------------------------------------------------------- * `home-img` class is (at this writing) exclusively used for the large * buttons on the landing page. The rules below provide their hover * movement behavior. *------------------------------------------------------------------------- */ .home-img { width: 32%; transition: transform 0.3s ease-out; } .home-img:hover { transform: translate(0, -10px); } .sidebar-logo { max-width: 120px; align-self: left; } /*------------------------------------------------------------------------- * Version Dropdown Styling *-------------------------------------------------------------------------*/ #version_dropdown { background-color: var(--color-sidebar-background); color: var(--color-foreground-primary); margin: 4px 0; width: 150px; border-radius: 5px; } /*------------------------------------------------------------------------- * `lv_example` Sections *------------------------------------------------------------------------- * The below contains a documented example to show the relationships of * the rules below to their selected elements within the example itself. *------------------------------------------------------------------------- * `lv_example` sections are the output of `./docs/src/_ext/lv_example.py` * custom Sphinx extension. These are generated when the `.rst` source * file contains a pattern like this: * * A very simple *hello world* label // Sphinx+docutils (.rst parser) generates * --------------------------------- // the
element and title from this. * * .. lv_example:: get_started/lv_example_get_started_1 // `lv_example.py` generates the * :language: c // rest of the
content * // below from this. *------------------------------------------------------------------------- * Visible layout consists of a
element containing: * -

element with title * -
element containing live running web-assembly example of LVGL UI * -
element containing [> Show C Code] [G View on GitHub] buttons * and the C code below them. * *
// Contains whole example, buttons and code. *

A very simple hello world label...

// The title itself. *
// Container for running example. *
* // Running web-assembly example. *
*
// Whole area to the right of running example. *
*
// Contains buttons + code; *
// Contains buttons + code; `open` class is added to this to element "open" the code
element. *

C code  

// [C code] "button"; JS code in `page.html` template arms this "button" with its events when `$(document).ready` event fires. * // [View on GitHub] "button"; provides hyperlink to the example code on GitHub. * // "GitHub Cat" icon *  View on GitHub // text of "button" * *
*
*
*
 *           ...                                    // Highlighted C code
 *         
*
*
*
*
*
*/ .toggle .header { display: block; clear: both; cursor: pointer; font-weight: bold; } /* Selects
element. * Places "disclosure triangle" icon + non-breaking space to its left.*/ .toggle .header:before { font-family: FontAwesome, "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif; content: "\f0da \00a0 Show "; /* \f0da = "closed" disclosure triangle; \f00a0 = non-breaking space */ display: inline-block; font-size: 1.1em; } /* Selects
element when it also contains * `open` class, which class is toggled by JS code in `page.html` template. */ .toggle .header.open:before { content: "\f0d7 \00a0 Hide "; /* \f0d7 = "open" disclosure triangle; \f00a0 = non-breaking space */ } /* Selects the [> C code] "button". */ .header p { display: inline-block; font-size: 1.1em; margin-bottom: 8px; } /* Selects web-assembly example
and child