Skip to content

Commit 05a0a49

Browse files
committed
[IMP] js: js domain css customization
closes odoo#1206 Signed-off-by: Simon Genin (ges@odoo) <[email protected]>
1 parent d72c3fd commit 05a0a49

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
# Additional JS & CSS files that can be imported with the 'custom-js' and 'custom-css' metadata.
186186
# Lists are empty because the files are specified in extensions/themes.
187187
html_js_files = []
188-
html_css_files = []
188+
html_css_files = ["css/js.css"]
189189

190190
# PHP lexer option to not require <?php
191191
highlight_options = {

static/css/js.css

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/** temporary file while js doc is being written - subject to heavy changes **/
2+
3+
.js, .js.method, .js.function, .js.class { /** temp hack for nested apis - have to find a nice look for it **/
4+
padding: 1rem !important;
5+
border-radius: .25rem;
6+
background-color: #F9FAFB;
7+
border: 2px solid #017e84;
8+
margin-left: 0;
9+
}
10+
11+
.js dd div {
12+
margin: 0 !important;
13+
}
14+
.js dl {
15+
padding: 0 !important;
16+
margin: 0;
17+
margin-top: 0.5rem;
18+
margin-bottom: 0.5rem;
19+
}
20+
21+
.js blockquote {
22+
margin: 0;
23+
}
24+
25+
.js > dd > p:before {
26+
content: "-> ";
27+
}
28+
29+
.js .field-list {
30+
border: none !important;
31+
}
32+
33+
.js .sig-param, .js .sig-paren {
34+
font-style: normal;
35+
font-size: initial;
36+
color: #4B5563;
37+
font-family: var(--bs-font-monospace);
38+
}
39+
40+
.js .sig-paren {
41+
color: #212529;
42+
}

0 commit comments

Comments
 (0)