1 @import "bootstrap/less/bootstrap";
2 @import url(http://fonts.googleapis.com/css?family=Lato);
4 @icon-font-path: 'fonts/';
5 @brand-primary: #a24689;
6 @brand-dark: darken(@brand-primary, 6%);
7 @brand-light: lighten(@brand-primary, 10%);
8 @brand-text: saturate(lighten(@brand-primary, 46%), 5%);
10 @headings-font-family: Lato, Arial, sans-serif;
12 @navbar-margin-bottom: 0;
14 @navbar-default-bg: white;
15 @navbar-default-border: 0;
17 // indent level for various items list e.g. dl, fields lists, ...
21 box-sizing: border-box;
44 color: @brand-primary;
45 background-color: transparent;
46 border-color: @brand-primary;
47 &:hover, &:focus, &:active {
49 background-color: @brand-primary;
50 border-color: @brand-primary;
55 .btn-outline-inverse {
57 background-color: transparent;
58 border-color: @brand-text;
59 &:hover, &:focus, &:active {
60 color: @brand-primary;
62 background-color: #fff;
71 .navbar-nav > li > a {
76 > a:hover:before, &.current a:before {
88 background: @brand-primary;
90 .transition(all 0.3s ease-out);
94 display: inline-block;
98 vertical-align: middle;
99 border-top: 4px solid @gray-light;
100 border-right: 4px solid transparent;
101 border-left: 4px solid transparent;
103 .dropdown-menu > li.current > a.current {
104 background-color: @brand-primary;
108 /* version switcher */
113 display: inline-block;
119 font-family: Lato, Arial, sans-serif;
121 text-decoration: none;
127 // FIXME: protocol-relative urls for remote but absolute for local (file://)?
129 display: inline-block;
132 background-image: url(odoo_logo_rgb.png);
133 background-repeat: no-repeat;
134 background-position: center center;
135 background-size: contain;
136 color: rgba(255, 255, 255, 0);
137 text-decoration: none;
140 text-decoration: none;
141 color: rgb(143, 143, 143);
142 font-family: Lato, Arial, sans-serif;
151 * Scrollspy and affixed enhanced navigation to highlight sections and secondary
152 * sections of docs content.
155 /* By default it's not affixed in mobile views, so undo that */
156 .sphinxsidebarwrapper.affix {
159 @media (min-width: @screen-sm-min) {
160 .sphinxsidebarwrapper {
165 /* Side navigation visibility changes */
166 .sphinxsidebarwrapper {
167 > .nav { // root (contains document categories), always show
169 // hide sub-everything by default
175 // sub-items of a current or active li are shown
181 /* Side navigation graphical styling */
183 @nav-spacing-increment: 5px;
184 @nav-hover-offset: 1px;
185 @nav-hover: @nav-spacing - @nav-hover-offset;
186 @nav-current-offset: 2px;
187 @nav-current: @nav-spacing - @nav-current-offset;
192 .sphinxsidebarwrapper {
201 /* First level of nav */
209 padding-left: @nav-spacing;
213 padding-left: @nav-spacing + @nav-spacing-increment;
215 .nav .nav .nav > li > a {
217 padding-left: @nav-spacing + 2*@nav-spacing-increment;
219 .nav .nav .nav .nav > li > a {
221 padding-left: @nav-spacing + 3*@nav-spacing-increment;
224 /* All levels of nav */
228 padding: 4px @nav-spacing;
232 padding-left: @nav-hover;
233 color: @brand-primary;
234 text-decoration: none;
235 background-color: transparent;
236 border-left: @nav-hover-offset solid @brand-primary;
240 // before scrollspy is applied, need to use current for docs
241 > .current > a, > .current:hover > a, > .current:focus > a,
242 > .active > a, > .active:hover > a, > .active:focus > a {
243 padding-left: @nav-current;
245 color: @brand-primary;
246 background-color: transparent;
247 border-left: @nav-current-offset solid @brand-primary;
251 > li > a:hover, > li > a:focus {
252 padding-left: @nav-hover + @nav-spacing-increment;
254 > .current > a, > .current:hover > a, > .current:focus > a,
255 > .active > a, > .active:hover > a, > .active:focus > a {
256 padding-left: @nav-current + @nav-spacing-increment;
260 padding-bottom: 10px;
267 > li > a:hover, > li > a:focus {
268 padding-left: @nav-hover + 2 * @nav-spacing-increment;
270 > .active > a, > .active:hover > a, > .active:focus > a {
271 padding-left: @nav-current + 2 * @nav-spacing-increment;
275 .nav .nav .nav .nav {
276 > li > a:hover, > li > a:focus {
277 padding-left: @nav-hover + 3 * @nav-spacing-increment;
279 > .active > a, > .active:hover > a, > .active:focus > a {
280 padding-left: @nav-current + 3 * @nav-spacing-increment;
284 /* github link for current document */
285 .sphinxsidebarwrapper > p {
286 margin: 5px 10px 10px;
290 text-decoration: none;
303 background: url(github-link.png) left bottom / 13px no-repeat;
306 background-position: left top;
312 /* Show and affix the side nav when space allows it */
313 @media (min-width: @screen-md-min) {
314 .sphinxsidebarwrapper {
315 .nav .nav > .active > ul {
318 /* Widen the fixed sidebar */
319 &.affix, &.affix-bottom {
323 position: fixed; /* Undo the static from mobile first approach */
327 position: absolute; /* Undo the static from mobile first approach */
329 &.affix-bottom > .nav, &.affix > .nav {
335 @media (min-width: @screen-lg-min) {
336 /* Widen the fixed sidebar again */
337 .sphinxsidebarwrapper.affix-bottom,
338 .sphinxsidebarwrapper.affix {
346 * Separated section of content at the bottom of all pages, save the homepage.
351 padding-bottom: 40px;
355 border-top: 1px solid #e5e5e5;
362 .docs-footer-links li {
366 .docs-footer-links li:first-child {
370 @media (min-width: 768px) {
376 // move [source] link to the right
382 dt:hover > a > .viewcode-link {
386 // either that or overwrite visit_attribution/depart_attribution
387 blockquote p.attribution:extend(blockquote footer) {}
391 font-size: floor((@font-size-base * 3.05));
396 font-size: @font-size-h1;
401 .body > .section > .section {
405 .literal:extend(code) {}
410 border: 1px solid @gray-lighter;
411 border-left-width: 5px;
414 .admonition-title:after {
418 // only "aphorisms" should have the same size as the admonition category
419 &.aphorism > .admonition-title + p,
420 &.exercise > .admonition-title + p {
421 display: inline-block;
425 font-family: @headings-font-family;
426 font-weight: @headings-font-weight;
427 line-height: @headings-line-height;
428 color: @headings-color;
430 font-size: @font-size-h4;
438 border-left-color: @brand-info;
439 > .admonition-title {
444 border-left-color: @brand-warning;
445 > .admonition-title {
446 color: @brand-warning;
450 border-left-color: @brand-danger;
451 > .admonition-title {
452 color: @brand-danger;
456 border-left-color: @gray-light;
457 > .admonition-title {
466 * Generated via Pygments
472 // code block lines should not wrap
476 .switchable .highlight.with-btn-clipboard pre {
477 // avoid copy button overlapping with even long lines
482 * ZeroClipboard styles
497 background-color: #fff;
498 border: 1px solid #e1e1e8;
499 border-radius: 0 4px 0 4px;
506 background-color: #ffffad;
507 .transition(background-color .5s linear);
518 // Reinstate dd indent, looks horrible and illegible otherwise
519 margin-left: @item-indent;
522 // By default there's (browser) padding on ``ul`` so lists of >1 field are
523 // nicely separated from the section name (e.g. ``Parameters``) but single
524 // fields/items are stuck to it and look horrible. Make everything neatly-ish
525 // aligned. Other option: half and half so list bullets are aligned to text
526 // instead of text to text
528 padding-left: @item-indent;
530 padding-left: @item-indent;
537 // naming collision, rST generates .container nodes with completely different
538 // semantics so go away
539 .section .container {
545 // lighten js namespace/class name
550 // STRIPE-STYLE PAGES
556 // === columning only on medium+ ===
557 @media (min-width: @screen-md-min) {
560 .section > .force-left {
566 .section > .force-right,
567 .section > [class*=highlight] {
572 // fullwidth elements
573 .section > h1, .section > h2, .section > h3, .section > h4, .section > h5,
575 background-color: fadeout(@body-bg, 30%);
577 .section > h1, .section > h2, .section > h3, .section > h4, .section > h5,
578 .section > h6, .section > .section {
595 border-left: 1px solid @gray-light;
602 width: auto !important;
603 float: none !important;
606 display: -webkit-flex;
608 -webkit-justify-content: flex-end;
609 justify-content: flex-end;
618 background-color: #0f131a;
620 border: 1px solid #333;
621 border-left-width: 0;
624 border-left-width: 1px;
625 border-radius: 5px 0 0 5px;
628 border-radius: 0 5px 5px 0;
631 background-color: #222;
634 background-color: #333;
639 // === show/hide code snippets ===
641 .switchable > .highlight {
644 // must be final rule of page
645 .only-python, .highlight-python > .highlight {