fpv/source/libraries/noble/.docs/.ldoc/ldoc.scss
2024-06-01 16:52:11 +03:00

444 lines
8.1 KiB
SCSS

@import url(https://fonts.googleapis.com/css?family=Quicksand:300,700);
@import url(https://fonts.googleapis.com/css?family=Lato);
@import url(https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@200;300;400;600;700;900&display=swap);
$red: #cf5a5a;
$redBright: #eb6e6e;
$yellow: #ffcb1f;
$blue: #056d8d;
$white:#f0ece3;
$black:#31302f;
* {
box-sizing: border-box;
}
body {
margin: 2em;
font-family: "Lato", arial, helvetica, geneva, sans-serif;
background-color: $yellow;
color: $black;
}
code,
tt {
font-family: "Source Code Pro", monospace;
font-size: 1.1em;
letter-spacing: -1px;
font-weight: 600;
color: $blue;
}
span.types:before { content:": "; }
span.types:after { content:""; }
.type,
.default,
.optional {
color: ($black * 0.65) + ($white *0.35);
}
.default .value { font-weight: bold; }
.parameters {
list-style-type: none;
li {
margin-bottom: 10px;
line-height: 1.5em;
}
}
.parameter {
font-weight: 600;
color: $blue * 0.8;
}
body, td, th { font-size: .95em; line-height: 1.2em;}
p, ul { margin: 10px 0 0 0px;}
ul {
padding-left: 25px;
}
strong { font-weight: bold;}
em { font-style: italic;}
.logo {
h1 {
display: none;
}
width: 100%;
background-image: url('logo.png');
background-repeat: no-repeat;
background-position: center;
height: 150px;
}
h1 {
font-family: 'Quicksand', sans-serif;
font-weight: bold;
color: $red;
font-size: 2.5em;
margin: 20px 0 30px 0;
}
h2, h3, h4 {
font-family: 'Quicksand', sans-serif;
font-weight: 700;
margin: 15px 0 10px 0; }
h2 { font-size: 1.25em; color: $red; }
h3 { font-size: 1.15em; }
h4 { font-size: 1em; }
.section-header {
margin-top: 50px;
padding: 10px;
padding-left: 15px;
margin-left: -25px;
border-radius: 50px;
border-left: 20px solid $red;
background-color: ($white * 0.8) + ($red * 0.20);
color: $black;
}
a:link { font-weight: bold; color: $red; text-decoration: none; }
a:visited { font-weight: bold; color: $red; text-decoration: none; }
a:link:hover { text-decoration: underline; }
hr {
background: $red;
border-radius: 100px;
height: 6px;
margin: 60px 20%;
border: none;
}
blockquote { margin-left: 3em; }
ul { list-style-type: none; }
p.name {
font-family: "Andale Mono", monospace;
padding-top: 1em;
}
span.item-name {
background-color: ($white*0.25) + ($yellow*0.75);
display: inline-block;
color: $black;
padding: 10px 20px;
border-radius: 25px;
border: 2px solid $yellow*0.75;
//border-bottom: none;
//border-bottom: 4px solid $red*0.75;
font-size: 1em;
font-family: "Source Code Pro", monospace;
font-weight: 700;
letter-spacing: -1px;
}
pre {
background-color: $blue;
border: 2px solid $blue*0.65;
box-shadow: 0 0 10px 0 rgba($black, 0.5);
border-radius: 15px;
color: $white;
padding: 15px 20px;
margin: 10px 0 10px 0;
//font-family: "Andale Mono", monospace;
font-family: "Source Code Pro", monospace;
//font-size: 20px !important;
tab-size: 4;
overflow-x: auto;
width: 100%;
font-weight: 400;
.keyword {
color: $yellow;
}
.string, .number {
color: $redBright;
font-weight: bold;
}
.comment {
color: $white*0.75;
}
}
pre.example {
font-size: .85em;
}
table.index td { text-align: left; vertical-align: top; }
#container {
margin-left: auto;
margin-right: auto;
border-radius: 25px;
box-shadow: 0 0 25px 0 rgba($black, .3);
overflow: hidden;
max-width: 1600px;
}
#product {
text-align: center;
height: 500px;
background-color: $black;
color: $white;
> :before{
content: 'Noble Engine';
}
}
#product big {
font-size: 2em;
}
#main {
background-color: $black;
display: flex;
flex-direction: row;
}
#navigation {
flex-grow: 1;
flex-shrink: 0;
flex-basis: auto;
width: 275px;
padding: 0 10px;
overflow: hidden;
color: $white;
a:link, a:visited {
font-weight: normal;
}
.nav-module,
.nav-modules {
color: $black;
padding: 15px;
a:link, a:visited {
color: $black;
}
border-radius: 20px;
ul {
a:active, a:hover, .selected {
color: $white;
background-color: $red;
padding: 5px 10px;
margin-left:-10px;
border-radius: 30px;
text-decoration: none;
}
.selected{
line-height: 2em;
margin-left: -28px;
padding-left: 28px;
border-radius: 0 30px 30px 0;
font-weight: bold;
}
}
}
.nav-module {
background-color: $redBright;
margin: 0 -10px 20px 10px;
border-radius: 20px 0 0 20px;
h2 {
background-color: $red;
color: $white;
margin: 0;
}
ul {
a:active, a:hover {
color: $black;
background-color: $yellow;
}
}
}
.nav-modules {
background-color: ($white*0.8) + ($yellow*0.2);
margin: 0 10px 30px 10px;
padding-top: 5px;
}
h1 {
color: $redBright;
line-height: 80%;
font-family: 'Quicksand', sans-serif;
font-weight: 900;
font-size: 32px;
padding-left: 20px;
padding-bottom: 20px;
}
h2 {
color: $black;
font-size:1.1em;
background-color: $white;
padding: 5px 10px;
margin-right: 20px;
border-radius: 30px;
text-decoration: none;
}
ul {
font-size:1em;
list-style-type: none;
margin: 1px 1px 10px 1px;
padding-left: 0px;
}
li {
//font-size: 14px;
display: block;
margin: 0px 0px 6px 12px;
padding-left: 0px;
}
li li a {
margin: 0px 3px 0px -1em;
}
}
#content {
flex-grow: 1;
flex-shrink: 1;
flex-basis: auto;
min-width: 0; // For pre elements...
//margin-left: 14em;
padding: 2em;
padding-left:3.5em;
border-left: 4px solid $red;
box-shadow: inset 0 0 50px 0 rgba($red, 0.25);
background-color: $white;
}
#about {
clear: both;
padding: 20px;
border-top: 2px solid $black;
background-color: $red;
color:$white;
a:link, a:visited, a:hover, a:active {
color: $yellow;
}
}
@media print {
body {
font: 12pt "Times New Roman", "TimeNR", Times, serif;
}
a { font-weight: bold; color: #1c4e68; text-decoration: underline; }
#main {
background-color: #ffffff;
border-left: 0px;
}
#container {
margin-left: 2%;
margin-right: 2%;
background-color: #ffffff;
}
#content {
padding: 1em;
background-color: #ffffff;
}
#navigation {
display: none;
}
pre.example {
font-family: "Andale Mono", monospace;
font-size: 10pt;
page-break-inside: avoid;
}
}
table.module_list {
border-width: 1px;
border-style: solid;
border-color: #b1e3fa;
border-collapse: collapse;
}
table.module_list td {
border-width: 1px;
padding: 3px;
border-style: solid;
border-color: #b1e3fa;
}
table.module_list td.name { background-color: #e0f4fc; min-width: 200px; }
table.module_list td.summary { width: 100%; }
table.function_list {
border-width: 1px;
border-style: solid;
border-color: #b1e3fa;
border-collapse: collapse;
}
table.function_list td {
border-width: 1px;
padding: 3px;
border-style: solid;
border-color: #b1e3fa;
}
table.function_list td.name { background-color: #e0f4fc; min-width: 200px; }
table.function_list td.summary { width: 100%; }
ul.nowrap {
overflow:auto;
white-space:nowrap;
}
dl.table dt,
dl.function dt {
padding-top: 1em;
}
dl.table dd,
dl.function {
dd {
padding-bottom: 30px;
margin: 10px 0 10px 20px;
border-bottom: 2px dotted $blue;
}
> :last-child {
border-bottom: none;
}
}
dl.table h3,
dl.function h3 {
font-size: .95em;
}
/* stop sublists from having initial vertical space */
ul ul { margin-top: 0px; }
ol ul { margin-top: 0px; }
ol ol { margin-top: 0px; }
ul ol { margin-top: 0px; }
/* make the target distinct; helps when we're navigating to a function */
a:target + * {
border: 2px solid $black;
border-bottom: 6px solid $black;
background-color: $red;
color: $white;
}