12ab72e96d310dcaee4e85c3870776e17a39a766
[odoo/odoo.git] / addons / website / static / src / css / website.css
1 @charset "utf-8";
2 /*       THIS CSS FILE IS FOR WEBSITE THEMING CUSTOMIZATION ONLY
3  *
4  * css for editor buttons, openerp widget included in the website and other
5  * stuff must go to the editor.css
6  *
7  */
8 /* ----- GENERIC LAYOUTING HELPERS ---- */
9 /* Vertical Spacing */
10 .mt128 {
11   margin-top: 128px !important;
12 }
13
14 .mt92 {
15   margin-top: 92px !important;
16 }
17
18 .mt64 {
19   margin-top: 64px !important;
20 }
21
22 .mt48 {
23   margin-top: 48px !important;
24 }
25
26 .mt32 {
27   margin-top: 32px !important;
28 }
29
30 .mt16 {
31   margin-top: 16px !important;
32 }
33
34 .mt8 {
35   margin-top: 8px !important;
36 }
37
38 .mt4 {
39   margin-top: 4px !important;
40 }
41
42 .mt0 {
43   margin-top: 0px !important;
44 }
45
46 .mb128 {
47   margin-bottom: 128px !important;
48 }
49
50 .mb92 {
51   margin-bottom: 92px !important;
52 }
53
54 .mb64 {
55   margin-bottom: 64px !important;
56 }
57
58 .mb48 {
59   margin-bottom: 48px !important;
60 }
61
62 .mb32 {
63   margin-bottom: 32px !important;
64 }
65
66 .mb16 {
67   margin-bottom: 16px !important;
68 }
69
70 .mb8 {
71   margin-bottom: 8px !important;
72 }
73
74 .mb4 {
75   margin-bottom: 4px !important;
76 }
77
78 .mb0 {
79   margin-bottom: 0px !important;
80 }
81
82 /* Extra Styles */
83 img.shadow {
84   -webkit-border-radius: 3px;
85   -moz-border-radius: 3px;
86   -ms-border-radius: 3px;
87   -o-border-radius: 3px;
88   border-radius: 3px;
89   -webkit-box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
90   -moz-box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
91   box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
92   margin: 0 auto;
93 }
94
95 h1.text-muted, h2.text-muted, h3.text-muted {
96   margin-top: 10px;
97 }
98
99 header a.navbar-brand.logo {
100   padding: 0 15px;
101 }
102 header a.navbar-brand img {
103   max-height: 50px;
104 }
105
106 #wrapwrap p:empty:after {
107   content: "\2060";
108 }
109
110 /* ----- Snippets Styles ----- */
111 .para_large {
112   font-size: 120%;
113 }
114
115 .readable {
116   font-size: 120%;
117   max-width: 700px;
118   margin-left: auto;
119   margin-right: auto;
120 }
121
122 /* ----- EDITOR ----- */
123 #oe_main_menu_navbar {
124   min-height: 34px;
125   z-index: 1001;
126   -webkit-border-radius: 0px;
127   -moz-border-radius: 0px;
128   -ms-border-radius: 0px;
129   -o-border-radius: 0px;
130   border-radius: 0px;
131   margin-bottom: 0px;
132 }
133 #oe_main_menu_navbar li a, #oe_main_menu_navbar li button {
134   padding: 4px 8px 4px 8px;
135   margin-top: 2px;
136   font-size: 13px;
137 }
138 #oe_main_menu_navbar .navbar-nav.navbar-right:last-child {
139   margin-right: 0 !important;
140 }
141
142 .css_non_editable_mode_hidden {
143   display: none;
144 }
145
146 /* ----- BOOTSTRAP FIX ----- */
147 .container .container, .readable .container {
148   padding-left: 0;
149   padding-right: 0;
150   width: auto;
151 }
152
153 /* ----- BOOTSTRAP HACK FOR HEADER NAV BAR ----- */
154 .navbar.navbar-static-top {
155   margin-bottom: 0;
156 }
157 .navbar.navbar-static-top ul.nav > li.divider {
158   margin-top: 15px;
159   padding-top: 20px;
160   border-right: 1px solid grey;
161 }
162
163 /* ----- BOOTSTRAP HACK FOR STICKY FOOTER ----- */
164 html, body, #wrapwrap {
165   -webkit-box-sizing: border-box;
166   -moz-box-sizing: border-box;
167   box-sizing: border-box;
168   height: 100%;
169 }
170
171 #wrapwrap {
172   display: table;
173   width: 100%;
174 }
175
176 header, main, footer {
177   display: table-row;
178 }
179
180 footer {
181   height: 100%;
182   background: #eff8f8;
183   background: rgba(200, 200, 200, 0.1);
184 }
185
186 #footer_container {
187   padding-top: 24px;
188   padding-bottom: 12px;
189 }
190
191 /* ----- BOOTSTRAP FIX ----- */
192 .col-md-12 {
193   float: left;
194   width: 100%;
195 }
196
197 /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
198 .oe_structure.oe_editable.oe_empty:empty, .oe_editable[data-oe-type=html]:empty, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child {
199   background-image: url("/website/static/src/img/drag_here.png") !important;
200 }
201
202 .oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child {
203   background-image: none;
204   background-repeat: no-repeat;
205   background-position: center;
206   height: 220px !important;
207 }
208
209 .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child {
210   position: static;
211 }
212
213 .oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before {
214   content: " ";
215   text-align: center;
216   display: block;
217   padding-top: 160px;
218   padding-bottom: 30px;
219   color: grey;
220   font-size: 24px;
221 }
222
223 .oe_structure.oe_editable.oe_empty:empty:before, .oe_editable[data-oe-type=html]:empty:before, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before {
224   content: "Drag Building Blocks Here" !important;
225 }
226
227 .css_editable_display {
228   display: none;
229 }
230
231 /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
232 .navbar .nav > li > p {
233   margin-bottom: 0px;
234 }
235
236 /* ---- HOMEPAGE THEME CUSTOMIZATION ---- */
237 .nav-hierarchy {
238   padding-left: 16px;
239 }
240
241 #themes-list .well {
242   padding: 0 0 20px 0;
243 }
244
245 /* -- Hack for removing double scrollbar from mobile preview -- */
246 div#mobile-preview.modal {
247   overflow: hidden;
248 }
249
250 ul.nav-stacked > li > a {
251   padding: 2px 15px;
252 }
253
254 #customize-menu .dropdown-header {
255   text-transform: uppercase;
256 }
257
258 /* ---- PUBLISH ---- */
259 .css_published .btn-danger, .css_published .css_publish {
260   display: none;
261 }
262
263 .css_unpublished .btn-success, .css_unpublished .css_unpublish {
264   display: none;
265 }
266
267 [data-publish='off'] > *:not(.css_options) {
268   filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
269   opacity: 0.5;
270 }
271
272 /* ---- END of PUBLISH ---- */
273 ::-moz-selection {
274   background: rgba(150, 150, 220, 0.3);
275 }
276
277 ::selection {
278   background: rgba(150, 150, 220, 0.3);
279 }
280
281 .logo-img {
282   width: 220px;
283 }
284
285 .oe_demo {
286   position: relative;
287 }
288 .oe_demo img {
289   width: 100%;
290 }
291 .oe_demo div {
292   position: absolute;
293   left: 0;
294   background-color: rgba(0, 0, 0, 0.4);
295   opacity: 0.85;
296   bottom: 0px;
297   width: 100%;
298   padding: 7px;
299   color: white;
300   font-weight: bold;
301 }
302 .oe_demo div a {
303   color: white;
304 }
305
306 /* ---- SNIPPETS --- */
307 .oe_img_bg {
308   background-size: 100%;
309 }
310
311 .carousel, .parallax, .blockquote {
312   overflow: hidden;
313 }
314
315 @media (max-width: 400px) {
316   section, .parallax, .row, .hr, .blockquote {
317     height: auto !important;
318   }
319 }
320 .carousel-inner {
321   height: 100%;
322 }
323 .carousel-inner .item {
324   height: 100%;
325   background-size: cover;
326 }
327
328 .carousel .carousel-control {
329   cursor: pointer;
330 }
331 .carousel .carousel-control span {
332   top: 50%;
333   position: absolute;
334   margin-top: -8px;
335 }
336 .carousel .carousel-control.left {
337   left: -10px;
338 }
339 .carousel .carousel-control.left * {
340   position: absolute;
341   top: 50%;
342   z-index: 5;
343   right: 50%;
344 }
345 .carousel .carousel-control.right {
346   right: -10px;
347 }
348 .carousel .carousel-control.right * {
349   position: absolute;
350   top: 50%;
351   z-index: 5;
352   left: 50%;
353 }
354
355 .quotecarousel {
356   padding-bottom: 16px;
357 }
358
359 .hr {
360   padding: 4px 0;
361 }
362
363 /* Parallax Theme */
364 div.carousel .carousel-indicators li {
365   border: 1px solid grey;
366 }
367 div.carousel .carousel-indicators .active {
368   background-color: grey;
369 }
370 div.carousel span.carousel-img img, div.carousel div.carousel-content {
371   max-height: 95%;
372   padding: 10px;
373 }
374 div.carousel div.carousel-content {
375   background-color: black;
376   color: white;
377   background: rgba(0, 0, 0, 0.3);
378   margin-top: 75px;
379 }
380
381 .parallax {
382   background-size: cover;
383 }
384 .parallax > div {
385   position: relative;
386   display: table;
387   width: 100%;
388   min-height: 200px;
389 }
390 .parallax > div > div {
391   display: table-cell;
392   vertical-align: middle;
393   padding: 32px 0;
394 }
395
396 /* Background */
397 .oe_dark {
398   background: #eff8f8;
399   background: rgba(200, 200, 200, 0.14);
400 }
401
402 .oe_black {
403   background-color: rgba(0, 0, 0, 0.9);
404   color: white;
405 }
406
407 .oe_green {
408   background-color: #169c78;
409   color: white;
410 }
411 .oe_green .text-muted {
412   color: #dddddd;
413 }
414
415 .oe_blue_light {
416   background-color: #41b6ab;
417   color: white;
418 }
419 .oe_blue_light .text-muted {
420   color: #dddddd;
421 }
422
423 .oe_blue {
424   background-color: #34495e;
425   color: white;
426 }
427
428 .oe_orange {
429   background-color: #f05442;
430   color: white;
431 }
432 .oe_orange .text-muted {
433   color: #dddddd;
434 }
435
436 .oe_purple {
437   background-color: #b163a3;
438   color: white;
439 }
440 .oe_purple .text-muted {
441   color: #dddddd;
442 }
443
444 .oe_red {
445   background-color: #9c1b31;
446   color: white;
447 }
448 .oe_red .text-muted {
449   color: #dddddd;
450 }
451
452 /* Misc */
453 .texttop {
454   vertical-align: top;
455 }
456
457 table.well tr th {
458   text-align: right;
459   padding-right: 10px;
460 }
461 table.well tr td {
462   padding-right: 5px;
463 }
464
465 .logo-img {
466   width: 220px;
467 }
468
469 .oe_demo {
470   position: relative;
471 }
472 .oe_demo img {
473   width: 100%;
474 }
475 .oe_demo div {
476   position: absolute;
477   left: 0;
478   background-color: rgba(0, 0, 0, 0.4);
479   opacity: 0.85;
480   bottom: 0px;
481   width: 100%;
482   padding: 7px;
483   color: white;
484   font-weight: bold;
485 }
486 .oe_demo div a {
487   color: white;
488 }
489
490 address .fa.fa-mobile-phone {
491   margin: 0 3px 0 2px;
492 }
493 address .fa.fa-file-text-o {
494   margin-right: 1px;
495 }
496
497 span[data-oe-type="monetary"] {
498   white-space: nowrap;
499 }
500
501 .oe_template_fallback {
502   -webkit-column-count: 3;
503   -moz-column-count: 3;
504   -ms-column-count: 3;
505   -o-column-count: 3;
506   column-count: 3;
507 }
508
509 .oe_website_login_container {
510   width: 400px;
511   margin: 40px auto;
512 }
513
514 div.media_iframe_video {
515   height: 0;
516   margin: 0 auto;
517   text-align: center;
518   position: relative;
519   overflow: hidden;
520   padding-bottom: 66.5%;
521 }
522 div.media_iframe_video iframe {
523   width: 100%;
524   height: 100%;
525 }
526 div.media_iframe_video div {
527   position: absolute;
528   width: 100%;
529   height: 100%;
530   display: none;
531 }
532
533 /* Mobile view */
534 @media (max-width: 768px) {
535   img:not(.cke_iframe), .media_iframe_video, span.fa, i.fa {
536     -webkit-transform: none !important;
537     -moz-transform: none !important;
538     -ms-transform: none !important;
539     -o-transform: none !important;
540     transform: none !important;
541   }
542 }