[ADD] <main> tag around content for easy replacing, and CSS changes to maintain curre...
[odoo/odoo.git] / addons / website / static / src / css / website.sass
1 @charset "utf-8"
2
3 @import "common"
4
5 /*
6  *       THIS CSS FILE IS FOR WEBSITE THEMING CUSTOMIZATION ONLY
7  *
8  * css for editor buttons, openerp widget included in the website and other
9  * stuff must go to the editor.css
10  *
11  */
12
13 /* ----- GENERIC LAYOUTING HELPERS ---- */
14
15 /* Vertical Spacing */
16 .mt128
17     margin-top: 128px !important
18 .mt92
19     margin-top: 92px !important
20 .mt64
21     margin-top: 64px !important
22 .mt48
23     margin-top: 48px !important
24 .mt32
25     margin-top: 32px !important
26 .mt16
27     margin-top: 16px !important
28 .mt8
29     margin-top: 8px !important
30 .mt4
31     margin-top: 4px !important
32 .mt0
33     margin-top: 0px !important
34
35 .mb128
36     margin-bottom: 128px !important
37 .mb92
38     margin-bottom: 92px !important
39 .mb64
40     margin-bottom: 64px !important
41 .mb48
42     margin-bottom: 48px !important
43 .mb32
44     margin-bottom: 32px !important
45 .mb16
46     margin-bottom: 16px !important
47 .mb8
48     margin-bottom: 8px !important
49 .mb4
50     margin-bottom: 4px !important
51 .mb0
52     margin-bottom: 0px !important
53
54 .pt128
55     padding-top: 128px !important
56 .pt92
57     padding-top: 92px !important
58 .pt64
59     padding-top: 64px !important
60 .pt48
61     padding-top: 48px !important
62 .pt32
63     padding-top: 32px !important
64 .pt16
65     padding-top: 16px !important
66 .pt8
67     padding-top: 8px !important
68 .pt4
69     padding-top: 4px !important
70 .pt0
71     padding-top: 0px !important
72
73 .pb128
74     padding-bottom: 128px !important
75 .pb92
76     padding-bottom: 92px !important
77 .pb64
78     padding-bottom: 64px !important
79 .pb48
80     padding-bottom: 48px !important
81 .pb32
82     padding-bottom: 32px !important
83 .pb16
84     padding-bottom: 16px !important
85 .pb8
86     padding-bottom: 8px !important
87 .pb4
88     padding-bottom: 4px !important
89 .pb0
90     padding-bottom: 0px !important
91
92 /* Grid of unequally tall elements */
93 .grid > [class*="col-md"]
94     display: inline-block
95     float: none
96     vertical-align: top
97     box-sizing: border-box
98     &.grid-align-top > [class*="col-md"]
99         vertical-align: top
100     &.grid-align-middle > [class*="col-md"]
101         vertical-align: middle
102     &.grid-align-bottom > [class*="col-md"]
103         vertical-align: bottom
104
105 /* Extra Styles */
106
107 img.shadow
108     +border-radius(3px)
109     +box-shadow(0px 3px 8px rgba(0, 0, 0, 0.2))
110     margin: 0 auto
111
112 h1.text-muted, h2.text-muted, h3.text-muted
113     margin-top: 10px
114
115 /* ----- BOOTSTRAP HACK FOR HEADER NAV BAR ----- */
116
117 .navbar.navbar-default.navbar-static-top
118     margin-bottom: 0
119
120 /* ----- BOOTSTRAP HACK FOR STICKY FOOTER ----- */
121
122 html,body, #wrapwrap
123     +box-sizing(border-box)
124     height: 100%
125
126 #wrapwrap
127     display: table
128     width: 100%
129
130 header, main, footer
131     display: table-row
132
133 footer
134     height: 100%
135     background: rgb(239, 248, 248)
136     background: rgba(100, 200, 200, 0.1)
137
138 #footer_container
139     padding-top: 24px
140     padding-bottom: 12px
141
142 /* ----- BOOTSTRAP FIX ----- */
143
144 .col-md-12
145     float: left
146     width: 100%
147
148 .row
149     min-height: 32px
150
151 /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
152
153 .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
154     background-image: url('/website/static/src/img/drag_here.png')
155
156 .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
157     background-image: url('/website/static/src/img/edit_here.png')
158     background-repeat: no-repeat
159     background-position: center
160     height: 220px !important
161
162 .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child
163     position: static
164
165 .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
166     content: 'Press The Top-Left Edit Button'
167     text-align: center
168     display: block
169     padding-top: 160px
170     padding-bottom: 30px
171     color: grey
172     font-size: 24px
173
174 .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
175     content: 'Drag Building Blocks Here'
176
177 /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
178
179 .navbar .nav > li > p
180     margin-bottom: 0px
181
182 // .navbar .nav > li  a
183 //     text-shadow: none
184
185 // .nav > li  a
186 //     display: block
187
188 /* ---- HOMEPAGE THEME CUSTOMIZATION ---- */
189
190 .nav-hierarchy
191     padding-left: 16px
192
193 #themes-list .well
194     padding: 0 0 20px 0
195
196 /* -- Hack for removing double scrollbar from mobile preview -- */
197 div#mobile-preview.modal
198     overflow: hidden
199     overflow-y: hidden
200
201 ul.nav-stacked > li > a
202     padding: 2px 15px
203
204 #customize-menu .dropdown-header
205     text-transform: uppercase
206
207 /* ---- PUBLISH ---- */
208 .css_published
209     .btn-danger, .css_publish
210         display: none
211 .css_unpublished
212     .btn-success, .css_unpublish
213         display: none
214
215 [data-publish='off']
216     +opacity(0.5)
217
218 /* ---- END of PUBLISH ---- */
219
220 @include selection
221     background: rgba(150, 150, 220, 0.3)
222
223 .logo-img
224     width: 220px
225
226
227 .oe_demo
228     position: relative
229     img
230         width: 100%
231     div
232         position: absolute
233         left: 0
234         background-color: rgba(0,0,0,0.4)
235         opacity: 0.85
236         bottom: 0px
237         width: 100%
238         padding: 7px
239         color: white
240         font-weight: bold
241         a
242             color: white
243
244 /* ---- SNIPPETS --- */
245
246 .carousel-inner .item
247     height: 100%
248     background-size: 100%
249
250 .carousel
251     &.oe_small .carousel-inner
252         height: 200px
253     &.oe_medium .carousel-inner
254         height: 300px
255     &.oe_big .carousel-inner
256         height: 450px
257     .carousel-caption
258         left: auto
259         right: auto
260         bottom: 10%
261         text-align: left
262         padding: 20px
263         background: rgba(0, 0, 0, 0.4)
264         h1, h2, h3
265             margin-top: 10px
266             margin-bottom: 10px
267     .carousel-image
268         right: 50%
269         left: 50%
270         top: 5%
271         bottom: 5%
272         position: absolute
273         max-height: 90%
274         margin: 0 auto
275     .item.text_only
276         .carousel-image
277             display: none !important
278         .carousel-caption
279             left: 10%
280             right: 10%
281             top: 10%
282             bottom: auto
283             text-align: center
284             background: transparent
285     .item.image_text
286         .carousel-caption
287             right: 10%
288         .carousel-image
289             left: 10%
290     .carousel-control
291         cursor: pointer
292         span
293             top: 50%
294             position: absolute
295             margin-top: -8px
296         &.left span
297             left: 10px
298         &.right span
299             right: 10px
300
301
302 /* Parallax Theme */
303
304 div.carousel[data-snippet-id="slider"]
305     .carousel-indicators
306         li
307             border: 1px solid grey
308         .active
309             background-color: grey
310
311 .parallax
312     position: relative
313     background-size: 100%
314     display: table
315     width: 100%
316     min-height: 100px
317     &.oe_small
318         min-height: 200px
319     &.oe_medium
320         min-height: 300px
321     &.oe_big
322         min-height: 450px
323     > div
324         display: table-cell
325         vertical-align: middle
326         padding: 32px 0
327
328 /* Background */
329  
330 .oe_dark
331     background: #eff8f8
332     background: rgba(100, 200, 200, 0.14)
333     +box-shadow(0px 5px 9px -7px rgba(0, 0, 255, 0.5) inset, 0px -3px 9px -7px rgba(0, 0, 255, 0.5) inset)
334 .oe_black
335     background-color: rgba(0, 0, 0, 0.9)
336 .oe_green
337     background-color: rgba(0, 128, 0, 0.8)
338 .oe_red
339     background-color: rgba(255, 0, 0, 0.8)
340 .oe_img_bg
341     background-size: 100%
342
343 .texttop
344     vertical-align: top
345
346 table.well tr
347     th
348         text-align: right
349         padding-right: 10px
350     td
351         padding-right: 5px
352
353 .logo-img
354     width: 220px
355
356 .oe_demo
357     position: relative
358     img
359         width: 100%
360     div
361         position: absolute
362         left: 0
363         background-color: rgba(0,0,0,0.4)
364         opacity: 0.85
365         bottom: 0px
366         width: 100%
367         padding: 7px
368         color: white
369         font-weight: bold
370         a
371             color: white
372
373 address
374     .fa.fa-mobile-phone
375         margin: 0 3px 0 2px
376     .fa.fa-file-text-o
377         margin-right: 1px
378
379 span[data-oe-type="monetary"]
380     white-space: nowrap