[MERGE] trunk-website-demo-partner-bth
[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, #wrap, 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 /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
149
150 .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
151     background-image: url('/website/static/src/img/drag_here.png')
152
153 .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
154     background-image: url('/website/static/src/img/edit_here.png')
155     background-repeat: no-repeat
156     background-position: center
157     height: 220px !important
158
159 .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child
160     position: static
161
162 .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
163     content: 'Press The Top-Left Edit Button'
164     text-align: center
165     display: block
166     padding-top: 160px
167     padding-bottom: 30px
168     color: grey
169     font-size: 24px
170
171 .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
172     content: 'Drag Building Blocks Here'
173
174 /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
175
176 .navbar .nav > li > p
177     margin-bottom: 0px
178
179 // .navbar .nav > li  a
180 //     text-shadow: none
181
182 // .nav > li  a
183 //     display: block
184
185 /* ---- HOMEPAGE THEME CUSTOMIZATION ---- */
186
187 .nav-hierarchy
188     padding-left: 16px
189
190 #themes-list .well
191     padding: 0 0 20px 0
192
193 /* -- Hack for removing double scrollbar from mobile preview -- */
194 div#mobile-preview.modal
195     overflow: hidden
196     overflow-y: hidden
197
198 ul.nav-stacked > li > a
199     padding: 2px 15px
200
201 #customize-menu .dropdown-header
202     text-transform: uppercase
203
204 /* ---- PUBLISH ---- */
205 .css_unpublish, .css_publish
206     display: none
207 .css_published .css_unpublish, .css_unpublished .css_publish
208     display: block
209
210 [data-publish='off']
211     +opacity(0.5)
212
213 /* ---- END of PUBLISH ---- */
214
215 @include selection
216     background: rgba(150, 150, 220, 0.3)
217
218 .logo-img
219     width: 220px
220
221
222 .oe_demo
223     position: relative
224     img
225         width: 100%
226     div
227         position: absolute
228         left: 0
229         background-color: rgba(0,0,0,0.4)
230         opacity: 0.85
231         bottom: 0px
232         width: 100%
233         padding: 7px
234         color: white
235         font-weight: bold
236         a
237             color: white
238
239 /* ---- SNIPPETS --- */
240
241 .carousel-inner .item
242     height: 100%
243     background-size: 100%
244
245 .carousel
246     &.oe_small .carousel-inner
247         height: 200px
248     &.oe_medium .carousel-inner
249         height: 300px
250     &.oe_big .carousel-inner
251         height: 450px
252     .carousel-caption
253         h1, h2, h3
254             margin-top: 10px
255             margin-bottom: 10px
256     .carousel-image
257         right: 10%
258         left: 50%
259         top: 5%
260         bottom: 5%
261         position: absolute
262         text-align: center
263         img
264             height: 100%
265             margin: 0 auto
266     .item.text_image
267         .carousel-caption
268             left: auto
269             right: auto
270             bottom: 10%
271             text-align: left
272             padding: 20px
273             background: rgba(0, 0, 0, 0.4)
274     .item.text_only
275         .carousel-image
276             display: none !important
277         .carousel-caption
278             left: 10%
279             right: 10%
280             top: 10%
281             text-align: center
282     .item.image_text
283         .carousel-caption
284             left: auto
285             text-align: left
286             right: 10%
287             bottom: 10%
288             padding: 20px
289             background: rgba(0, 0, 0, 0.4)
290         .carousel-image
291             right: 50%
292             left: 10%
293     .carousel-control
294         cursor: pointer
295         span
296             top: 50%
297             position: absolute
298             margin-top: -8px
299         &.left span
300             left: 10px
301         &.right span
302             right: 10px
303
304
305 /* Parallax Theme */
306
307 .parallax_quote
308     background: center center no-repeat fixed
309     background-size: contain
310     .carousel-indicators
311         li
312             border: 1px solid grey
313         .active
314             background-color: grey
315
316 .parallax
317     position: relative
318     background-size: 100%
319     &.oe_small
320         height: 200px
321     &.oe_medium
322         height: 300px
323     &.oe_big
324         height: 450px
325
326 /* Background */
327  
328 .oe_dark
329     background: #eff8f8
330     background: rgba(100, 200, 200, 0.14)
331     +box-shadow(0px 5px 9px -7px rgba(0, 0, 255, 0.5) inset, 0px -3px 9px -7px rgba(0, 0, 255, 0.5) inset)
332 .oe_black
333     background-color: rgba(0, 0, 0, 0.9)
334 .oe_green
335     background-color: rgba(0, 128, 0, 0.8)
336 .oe_red
337     background-color: rgba(255, 0, 0, 0.8)
338 .oe_img_bg
339     height: 100%
340     background-size: 100%
341
342 .texttop
343     vertical-align: top
344
345 table.well tr
346     th
347         text-align: right
348         padding-right: 10px
349     td
350         padding-right: 5px
351
352 .logo-img
353     width: 220px
354
355 .oe_demo
356     position: relative
357     img
358         width: 100%
359     div
360         position: absolute
361         left: 0
362         background-color: rgba(0,0,0,0.4)
363         opacity: 0.85
364         bottom: 0px
365         width: 100%
366         padding: 7px
367         color: white
368         font-weight: bold
369         a
370             color: white