2021-04-23 17:45:34 -04:00
|
|
|
table, th, td {
|
|
|
|
|
border: 1px solid #bbb;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
span.pre {
|
2021-05-04 11:53:39 +02:00
|
|
|
padding-right:8px;
|
2021-05-03 17:55:09 +02:00
|
|
|
}
|
2021-05-04 11:53:39 +02:00
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
span.pre {
|
|
|
|
|
padding-right: 8px;
|
2021-05-04 11:53:39 +02:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
span.pre:first-child {
|
|
|
|
|
padding-right: 0px;
|
|
|
|
|
}
|
2021-05-04 11:53:39 +02:00
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
code.sig-name {
|
2021-06-18 12:25:49 -04:00
|
|
|
/*margin-left:8px;*/
|
2021-05-04 11:53:39 +02:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
* `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 .3s ease-out;
|
2021-04-23 17:45:34 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
.home-img:hover {
|
|
|
|
|
transform: translate(0, -10px);
|
2021-04-23 17:45:34 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
* All `wy-...` and `rst-content` classes are classes from
|
|
|
|
|
* `sphinx_rtd_theme` `layout.html` template.
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
* `wy-side-nav-search` class adorns the <div> element in the upper left
|
|
|
|
|
* corner of each page that contains:
|
|
|
|
|
* - the LVGL logo
|
|
|
|
|
* - documentation-version selector drop-down (matches LVGL release versions)
|
|
|
|
|
* - search TextBox
|
|
|
|
|
*/
|
|
|
|
|
.wy-side-nav-search {
|
|
|
|
|
background-color: #f5f5f5;
|
2021-04-23 17:45:34 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
.wy-side-nav-search > div.version {
|
|
|
|
|
color: #333;
|
|
|
|
|
display: none; /*replaced by dropdown*/
|
2021-04-23 17:45:34 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* `rst-content` class marks the <div> element that contains the whole
|
|
|
|
|
* visible part of the right panel where the page content is shown. */
|
|
|
|
|
/*Let `code` wrap*/
|
|
|
|
|
.rst-content code, .rst-content tt, code {
|
|
|
|
|
white-space: normal;
|
2021-04-23 17:45:34 -04:00
|
|
|
}
|
2025-04-03 06:53:25 -06:00
|
|
|
|
|
|
|
|
.wy-nav-content {
|
|
|
|
|
padding: 1.618em 3.236em;
|
|
|
|
|
height: 100%;
|
|
|
|
|
max-width: 1920px;
|
|
|
|
|
margin: auto
|
2021-04-23 17:45:34 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
* `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 <section> element and title from this.
|
|
|
|
|
*
|
|
|
|
|
* .. lv_example:: get_started/lv_example_get_started_1 // `lv_example.py` generates the
|
|
|
|
|
* :language: c // rest of the <section> content
|
|
|
|
|
* // below from this.
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
* Visible layout consists of a <section> element containing:
|
|
|
|
|
* - <h3> element with title
|
|
|
|
|
* - <div> element containing live running web-assembly example of LVGL UI
|
|
|
|
|
* - <div> element containing [> Show C Code] [G View on GitHub] buttons
|
|
|
|
|
* and the C code below them.
|
|
|
|
|
*
|
|
|
|
|
* <section id="a-very-simple-hello-world-label"> // Contains whole example, buttons and code.
|
|
|
|
|
* <h3>A very simple <em>hello world</em> label...</h3> // The title itself.
|
|
|
|
|
* <div class="lv-example-container"> // Container for running example.
|
|
|
|
|
* <div class="lv-example" data-real-src="..." data-is-loaded="true">
|
|
|
|
|
* <iframe src="..."></iframe> // Running web-assembly example.
|
|
|
|
|
* </div>
|
|
|
|
|
* <div class="lv-example-description"></div> // Whole area to the right of running example.
|
|
|
|
|
* </div>
|
|
|
|
|
* <div class="toggle docutils container"> // Contains buttons + code;
|
|
|
|
|
* <div class="header docutils container" ...> // Contains buttons + code; `open` class is added to this to element "open" the code <div> element.
|
|
|
|
|
* <p>C code </p> // [C code] "button"; JS code in `page.html` template arms this "button" with its events when `$(document).ready` event fires.
|
|
|
|
|
* <a class="lv-example-link-button" ...> // [View on GitHub] "button"; provides hyperlink to the example code on GitHub.
|
|
|
|
|
* <i class="fa fa-github"></i> // "GitHub Cat" icon
|
|
|
|
|
* View on GitHub // text of "button"
|
|
|
|
|
* </a>
|
|
|
|
|
* </div>
|
|
|
|
|
* <div class="highlight-c notranslate" ...>
|
|
|
|
|
* <div class="highlight">
|
|
|
|
|
* <pre>
|
|
|
|
|
* ... // Highlighted C code
|
|
|
|
|
* </pre>
|
|
|
|
|
* </div>
|
|
|
|
|
* </div>
|
|
|
|
|
* </div>
|
|
|
|
|
* <hr>
|
|
|
|
|
* </section>
|
|
|
|
|
*/
|
|
|
|
|
.toggle .header {
|
|
|
|
|
display: block;
|
|
|
|
|
clear: both;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
2021-04-23 17:45:34 -04:00
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects <div class="header docutils container" ...> 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;
|
2021-04-23 17:45:34 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects <div class="header docutils container" ...> 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 */
|
2021-04-23 17:45:34 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects the [> C code] "button". */
|
|
|
|
|
.header p {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-size: 1.1em;
|
|
|
|
|
margin-bottom: 8px;
|
2021-11-19 10:32:33 +01:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects web-assembly example <div> and child <iframe> elements. */
|
2021-06-18 12:25:49 -04:00
|
|
|
.lv-example, .lv-example > iframe {
|
2021-04-23 17:45:34 -04:00
|
|
|
border: none;
|
|
|
|
|
outline: none;
|
2025-04-03 06:53:25 -06:00
|
|
|
padding: 0;
|
2021-04-23 17:45:34 -04:00
|
|
|
display: block;
|
|
|
|
|
width: 320px;
|
|
|
|
|
height: 240px;
|
2021-06-18 12:25:49 -04:00
|
|
|
flex: none;
|
|
|
|
|
position: relative;
|
2021-04-23 17:45:34 -04:00
|
|
|
}
|
2021-07-13 16:42:03 +02:00
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects only the <iframe> elements. */
|
2021-06-18 12:25:49 -04:00
|
|
|
.lv-example > iframe {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects outer example <div> container elements. */
|
2021-06-18 12:25:49 -04:00
|
|
|
.lv-example-container {
|
2025-04-03 06:53:25 -06:00
|
|
|
display: flex;
|
|
|
|
|
padding-bottom: 16px;
|
2021-06-18 12:25:49 -04:00
|
|
|
}
|
2025-04-03 06:53:25 -06:00
|
|
|
|
|
|
|
|
/* Selects <div class="lv-example-description"></div>
|
|
|
|
|
* which is the whole area to the right of running example. */
|
2021-06-18 12:25:49 -04:00
|
|
|
.lv-example-description {
|
2025-04-03 06:53:25 -06:00
|
|
|
flex: 1 1 auto;
|
|
|
|
|
margin-left: 1rem;
|
2021-06-18 12:25:49 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects [View on GitHub] "button". */
|
2021-06-18 12:25:49 -04:00
|
|
|
.lv-example-link-button {
|
2025-04-03 06:53:25 -06:00
|
|
|
display: inline-block;
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
background-color: #2980b9;
|
|
|
|
|
color: white;
|
|
|
|
|
margin: 0 4px;
|
2021-06-18 12:25:49 -04:00
|
|
|
}
|
2025-04-03 06:53:25 -06:00
|
|
|
|
|
|
|
|
/* Selects [View on GitHub] "button" when in `:hover` state. */
|
2021-06-18 12:25:49 -04:00
|
|
|
.lv-example-link-button:hover {
|
2025-04-03 06:53:25 -06:00
|
|
|
color: white;
|
|
|
|
|
filter: brightness(120%);
|
2021-06-18 12:25:49 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects [View on GitHub] "button" when in `:visited` state. */
|
2021-06-18 12:25:49 -04:00
|
|
|
.lv-example-link-button:visited {
|
2025-04-03 06:53:25 -06:00
|
|
|
color: white;
|
2021-06-18 12:38:08 -04:00
|
|
|
}
|
2022-05-09 14:21:31 -04:00
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
* This doesn't select anything at this writing (29-Mar-2025).
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
2022-05-09 14:21:31 -04:00
|
|
|
dl.cpp.unexpanded dd {
|
2025-04-03 06:53:25 -06:00
|
|
|
display: none;
|
2022-05-09 14:21:31 -04:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
* The `lv-api-...` classes do not select anything at this writing (29-Mar-2025).
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
2022-05-09 14:21:31 -04:00
|
|
|
.lv-api-expansion-button {
|
2025-04-03 06:53:25 -06:00
|
|
|
padding: 4px;
|
2022-05-09 14:21:31 -04:00
|
|
|
}
|
2025-04-03 06:53:25 -06:00
|
|
|
|
|
|
|
|
/* There are no elements that these select at this writing (29-Mar-2025). */
|
2022-05-09 14:21:31 -04:00
|
|
|
.lv-api-expansion-button::before {
|
2025-04-03 06:53:25 -06:00
|
|
|
font-family: FontAwesome, "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-size: 1.1em;
|
|
|
|
|
cursor: pointer;
|
2022-05-09 14:21:31 -04:00
|
|
|
}
|
2025-04-03 06:53:25 -06:00
|
|
|
|
|
|
|
|
/* There are no elements that these select at this writing (29-Mar-2025). */
|
2022-05-09 14:21:31 -04:00
|
|
|
.unexpanded .lv-api-expansion-button::before {
|
2025-04-03 06:53:25 -06:00
|
|
|
content: "\f0da \00a0";
|
2023-04-27 06:42:02 -06:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
.expanded .lv-api-expansion-button::before {
|
|
|
|
|
content: "\f0d7 \00a0";
|
2023-04-27 06:42:02 -06:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects all <div> elements with "body" class.
|
|
|
|
|
* There are no elements that this selects at this writing (29-Mar-2025). */
|
2023-04-27 06:42:02 -06:00
|
|
|
div.body {
|
2025-04-03 06:53:25 -06:00
|
|
|
min-width: 360px;
|
|
|
|
|
max-width: 1920px;
|
2023-10-22 15:12:39 +02:00
|
|
|
}
|
|
|
|
|
|
2025-04-03 06:53:25 -06:00
|
|
|
/* Selects CPP-expression content <span> elements generated from
|
|
|
|
|
* :cpp:expr:`...` Interpreted-Text-Role expressions in the `.rst` source files. */
|
2023-10-22 15:12:39 +02:00
|
|
|
.cpp-expr {
|
2025-04-03 06:53:25 -06:00
|
|
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace;
|
2024-01-02 08:10:46 +01:00
|
|
|
color: #e74c3c;
|
|
|
|
|
padding: 2px 5px;
|
|
|
|
|
border: 1px solid #e1e4e5;
|
|
|
|
|
font-size: 75%;
|
2023-10-22 15:12:39 +02:00
|
|
|
}
|
2024-11-04 01:52:15 -07:00
|
|
|
|
2025-02-24 15:24:51 -07:00
|
|
|
/* These replace colors present in `pygments.css` which is used in code highlighting.
|
|
|
|
|
* These are too dark to be readlable in DARK mode. They include:
|
|
|
|
|
* .highlight .nf -- function names
|
|
|
|
|
* .highlight .nl -- code labels
|
|
|
|
|
* .descname .n -- API documentation function names
|
|
|
|
|
* The first 2 were created by lightening the `pygments.css` colors without changing their
|
|
|
|
|
* angle on the color wheel. The added "conditional" also limits this change to
|
|
|
|
|
* DARK MODE only instead of both light and dark modes.
|
|
|
|
|
*/
|
|
|
|
|
html[data-theme="dark"] .highlight .nf {
|
|
|
|
|
color: #3569f5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html[data-theme="dark"] .highlight .nl {
|
|
|
|
|
color: #0043e2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html[data-theme="dark"] .descname .n {
|
|
|
|
|
color: #0a44de;
|
|
|
|
|
}
|