[IMP] js: js domain css customization

closes odoo/documentation#1272

X-original-commit: 05a0a49a20
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
This commit is contained in:
Simon Genin (ges) 2021-10-22 07:52:46 +00:00
parent 85fc0b6063
commit f0b550fa16
2 changed files with 43 additions and 1 deletions

View File

@ -184,7 +184,7 @@ html_permalinks = True # Sphinx >= 3.5
# Additional JS & CSS files that can be imported with the 'custom-js' and 'custom-css' metadata.
# Lists are empty because the files are specified in extensions/themes.
html_js_files = []
html_css_files = []
html_css_files = ["css/js.css"]
# PHP lexer option to not require <?php
highlight_options = {

42
static/css/js.css Normal file
View File

@ -0,0 +1,42 @@
/** temporary file while js doc is being written - subject to heavy changes **/
.js, .js.method, .js.function, .js.class { /** temp hack for nested apis - have to find a nice look for it **/
padding: 1rem !important;
border-radius: .25rem;
background-color: #F9FAFB;
border: 2px solid #017e84;
margin-left: 0;
}
.js dd div {
margin: 0 !important;
}
.js dl {
padding: 0 !important;
margin: 0;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
.js blockquote {
margin: 0;
}
.js > dd > p:before {
content: "-> ";
}
.js .field-list {
border: none !important;
}
.js .sig-param, .js .sig-paren {
font-style: normal;
font-size: initial;
color: #4B5563;
font-family: var(--bs-font-monospace);
}
.js .sig-paren {
color: #212529;
}