[IMP] website: create customize theme application and color-picker; Create theme_boot...
[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 /* -- Hack for removing double scrollbar from mobile preview -- */
242 div#mobile-preview.modal {
243   overflow: hidden;
244 }
245
246 ul.nav-stacked > li > a {
247   padding: 2px 15px;
248 }
249
250 #customize-menu .dropdown-header {
251   text-transform: uppercase;
252 }
253
254 /* ---- PUBLISH ---- */
255 .css_published .btn-danger, .css_published .css_publish {
256   display: none;
257 }
258
259 .css_unpublished .btn-success, .css_unpublished .css_unpublish {
260   display: none;
261 }
262
263 [data-publish='off'] > *:not(.css_options) {
264   filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
265   opacity: 0.5;
266 }
267
268 /* ---- END of PUBLISH ---- */
269 ::-moz-selection {
270   background: rgba(150, 150, 220, 0.3);
271 }
272
273 ::selection {
274   background: rgba(150, 150, 220, 0.3);
275 }
276
277 .logo-img {
278   width: 220px;
279 }
280
281 .oe_demo {
282   position: relative;
283 }
284 .oe_demo img {
285   width: 100%;
286 }
287 .oe_demo div {
288   position: absolute;
289   left: 0;
290   background-color: rgba(0, 0, 0, 0.4);
291   opacity: 0.85;
292   bottom: 0px;
293   width: 100%;
294   padding: 7px;
295   color: white;
296   font-weight: bold;
297 }
298 .oe_demo div a {
299   color: white;
300 }
301
302 /* ---- SNIPPETS --- */
303 .oe_img_bg {
304   background-size: 100%;
305 }
306
307 .carousel, .parallax, .blockquote {
308   overflow: hidden;
309 }
310
311 @media (max-width: 400px) {
312   section, .parallax, .row, .hr, .blockquote {
313     height: auto !important;
314   }
315 }
316 .carousel-inner {
317   height: 100%;
318 }
319 .carousel-inner .item {
320   height: 100%;
321   background-size: cover;
322 }
323
324 .carousel .carousel-control {
325   cursor: pointer;
326 }
327 .carousel .carousel-control span {
328   top: 50%;
329   position: absolute;
330   margin-top: -8px;
331 }
332 .carousel .carousel-control.left {
333   left: -10px;
334 }
335 .carousel .carousel-control.left * {
336   position: absolute;
337   top: 50%;
338   z-index: 5;
339   right: 50%;
340 }
341 .carousel .carousel-control.right {
342   right: -10px;
343 }
344 .carousel .carousel-control.right * {
345   position: absolute;
346   top: 50%;
347   z-index: 5;
348   left: 50%;
349 }
350
351 .quotecarousel {
352   padding-bottom: 16px;
353 }
354
355 .hr {
356   padding: 4px 0;
357 }
358
359 /* Parallax Theme */
360 div.carousel .carousel-indicators li {
361   border: 1px solid grey;
362 }
363 div.carousel .carousel-indicators .active {
364   background-color: grey;
365 }
366 div.carousel span.carousel-img img, div.carousel div.carousel-content {
367   max-height: 95%;
368   padding: 10px;
369 }
370 div.carousel div.carousel-content {
371   background-color: black;
372   color: white;
373   background: rgba(0, 0, 0, 0.3);
374   margin-top: 75px;
375 }
376
377 .parallax {
378   background-size: cover;
379 }
380 .parallax > div {
381   position: relative;
382   display: table;
383   width: 100%;
384   min-height: 200px;
385 }
386 .parallax > div > div {
387   display: table-cell;
388   vertical-align: middle;
389   padding: 32px 0;
390 }
391
392 /* Misc */
393 .texttop {
394   vertical-align: top;
395 }
396
397 table.well tr th {
398   text-align: right;
399   padding-right: 10px;
400 }
401 table.well tr td {
402   padding-right: 5px;
403 }
404
405 .logo-img {
406   width: 220px;
407 }
408
409 .oe_demo {
410   position: relative;
411 }
412 .oe_demo img {
413   width: 100%;
414 }
415 .oe_demo div {
416   position: absolute;
417   left: 0;
418   background-color: rgba(0, 0, 0, 0.4);
419   opacity: 0.85;
420   bottom: 0px;
421   width: 100%;
422   padding: 7px;
423   color: white;
424   font-weight: bold;
425 }
426 .oe_demo div a {
427   color: white;
428 }
429
430 address .fa.fa-mobile-phone {
431   margin: 0 3px 0 2px;
432 }
433 address .fa.fa-file-text-o {
434   margin-right: 1px;
435 }
436
437 span[data-oe-type="monetary"] {
438   white-space: nowrap;
439 }
440
441 .oe_template_fallback {
442   -webkit-column-count: 3;
443   -moz-column-count: 3;
444   -ms-column-count: 3;
445   -o-column-count: 3;
446   column-count: 3;
447 }
448
449 .oe_website_login_container {
450   width: 400px;
451   margin: 40px auto;
452 }
453
454 div.media_iframe_video {
455   height: 0;
456   margin: 0 auto;
457   text-align: center;
458   position: relative;
459   overflow: hidden;
460   padding-bottom: 66.5%;
461 }
462 div.media_iframe_video iframe {
463   width: 100%;
464   height: 100%;
465 }
466 div.media_iframe_video div {
467   position: absolute;
468   width: 100%;
469   height: 100%;
470   display: none;
471 }
472
473 /* Mobile view */
474 @media (max-width: 768px) {
475   img:not(.cke_iframe), .media_iframe_video, span.fa, i.fa {
476     -webkit-transform: none !important;
477     -moz-transform: none !important;
478     -ms-transform: none !important;
479     -o-transform: none !important;
480     transform: none !important;
481   }
482 }