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, ...
40 color: @brand-primary;
41 background-color: transparent;
42 border-color: @brand-primary;
43 &:hover, &:focus, &:active {
45 background-color: @brand-primary;
46 border-color: @brand-primary;
51 .btn-outline-inverse {
53 background-color: transparent;
54 border-color: @brand-text;
55 &:hover, &:focus, &:active {
56 color: @brand-primary;
58 background-color: #fff;
67 .navbar-nav > li > a {
72 > a:hover:before, &.current a:before {
84 background: @brand-primary;
86 .transition(all 0.3s ease-out);
90 display: inline-block;
94 vertical-align: middle;
95 border-top: 4px solid @gray-light;
96 border-right: 4px solid transparent;
97 border-left: 4px solid transparent;
99 .dropdown-menu > li.current > a.current {
100 background-color: @brand-primary;
106 // FIXME: protocol-relative urls for remote but absolute for local (file://)?
108 display: inline-block;
111 background-image: url(odoo_logo_rgb.png);
112 background-repeat: no-repeat;
113 background-position: center center;
114 background-size: contain;
115 color: rgba(255, 255, 255, 0);
116 text-decoration: none;
119 text-decoration: none;
120 color: rgb(143, 143, 143);
121 font-family: Lato, Arial, sans-serif;
130 * Scrollspy and affixed enhanced navigation to highlight sections and secondary
131 * sections of docs content.
134 /* By default it's not affixed in mobile views, so undo that */
135 .sphinxsidebarwrapper.affix {
138 @media (min-width: @screen-sm-min) {
139 .sphinxsidebarwrapper {
144 /* Side navigation visibility changes */
145 .sphinxsidebarwrapper {
146 > .nav { // root (contains document categories), always show
148 // hide sub-everything by default
154 // sub-items of a current or active li are shown
160 /* Side navigation graphical styling */
162 @nav-spacing-increment: 5px;
163 @nav-hover-offset: 1px;
164 @nav-hover: @nav-spacing - @nav-hover-offset;
165 @nav-current-offset: 2px;
166 @nav-current: @nav-spacing - @nav-current-offset;
168 .sphinxsidebarwrapper {
175 /* First level of nav */
184 padding-left: @nav-spacing;
188 padding-left: @nav-spacing + @nav-spacing-increment;
190 .nav .nav .nav > li > a {
192 padding-left: @nav-spacing + 2*@nav-spacing-increment;
194 .nav .nav .nav .nav > li > a {
196 padding-left: @nav-spacing + 3*@nav-spacing-increment;
199 /* All levels of nav */
203 padding: 4px @nav-spacing;
207 padding-left: @nav-hover;
208 color: @brand-primary;
209 text-decoration: none;
210 background-color: transparent;
211 border-left: @nav-hover-offset solid @brand-primary;
215 // before scrollspy is applied, need to use current for docs
216 > .current > a, > .current:hover > a, > .current:focus > a,
217 > .active > a, > .active:hover > a, > .active:focus > a {
218 padding-left: @nav-current;
220 color: @brand-primary;
221 background-color: transparent;
222 border-left: @nav-current-offset solid @brand-primary;
226 > li > a:hover, > li > a:focus {
227 padding-left: @nav-hover + @nav-spacing-increment;
229 > .current > a, > .current:hover > a, > .current:focus > a,
230 > .active > a, > .active:hover > a, > .active:focus > a {
231 padding-left: @nav-current + @nav-spacing-increment;
235 padding-bottom: 10px;
242 > li > a:hover, > li > a:focus {
243 padding-left: @nav-hover + 2 * @nav-spacing-increment;
245 > .active > a, > .active:hover > a, > .active:focus > a {
246 padding-left: @nav-current + 2 * @nav-spacing-increment;
250 .nav .nav .nav .nav {
251 > li > a:hover, > li > a:focus {
252 padding-left: @nav-hover + 3 * @nav-spacing-increment;
254 > .active > a, > .active:hover > a, > .active:focus > a {
255 padding-left: @nav-current + 3 * @nav-spacing-increment;
260 /* Show and affix the side nav when space allows it */
261 @media (min-width: @screen-md-min) {
262 .sphinxsidebarwrapper {
263 .nav .nav > .active > ul {
266 /* Widen the fixed sidebar */
267 &.affix, &.affix-bottom {
271 position: fixed; /* Undo the static from mobile first approach */
275 position: absolute; /* Undo the static from mobile first approach */
277 &.affix-bottom > .nav, &.affix > .nav {
283 @media (min-width: @screen-lg-min) {
284 /* Widen the fixed sidebar again */
285 .sphinxsidebarwrapper.affix-bottom,
286 .sphinxsidebarwrapper.affix {
294 * Separated section of content at the bottom of all pages, save the homepage.
299 padding-bottom: 40px;
303 border-top: 1px solid #e5e5e5;
310 .docs-footer-links li {
314 .docs-footer-links li:first-child {
318 @media (min-width: 768px) {
324 // hide header ΒΆ link
328 // either that or overwrite visit_attribution/depart_attribution
329 blockquote p.attribution:extend(blockquote footer) {}
333 font-size: floor((@font-size-base * 3.05));
338 font-size: @font-size-h1;
343 .body > .section > .section {
347 .literal:extend(code) {}
352 border: 1px solid @gray-lighter;
353 border-left-width: 5px;
356 .admonition-title:after {
360 // only "aphorisms" should have the same size as the admonition category
361 &.aphorism > .admonition-title + p,
362 &.exercise > .admonition-title + p {
363 display: inline-block;
367 font-family: @headings-font-family;
368 font-weight: @headings-font-weight;
369 line-height: @headings-line-height;
370 color: @headings-color;
372 font-size: @font-size-h4;
380 border-left-color: @brand-info;
381 > .admonition-title {
386 border-left-color: @brand-warning;
387 > .admonition-title {
388 color: @brand-warning;
392 border-left-color: @brand-danger;
393 > .admonition-title {
394 color: @brand-danger;
398 border-left-color: @gray-light;
399 > .admonition-title {
408 * Generated via Pygments
414 background-color: #f7f7f9 !important;
415 border: 1px solid #e1e1e8;
423 background-color: transparent;
428 * ZeroClipboard styles
445 background-color: #fff;
446 border: 1px solid #e1e1e8;
447 border-radius: 0 4px 0 4px;
449 .btn-clipboard-hover {
451 background-color: @brand-primary;
452 border-color: @brand-primary;
455 @media (min-width: 768px) {
468 // Reinstate dd indent, looks horrible and illegible otherwise
469 margin-left: @item-indent;
472 // By default there's (browser) padding on ``ul`` so lists of >1 field are
473 // nicely separated from the section name (e.g. ``Parameters``) but single
474 // fields/items are stuck to it and look horrible. Make everything neatly-ish
475 // aligned. Other option: half and half so list bullets are aligned to text
476 // instead of text to text
478 padding-left: @item-indent;
480 padding-left: @item-indent;
487 // naming collision, rST generates .container nodes with completely different
488 // semantics so go away
489 .section .container {
495 // code block lines should not wrap