ab13d795465f3f01c13f6e6c77ae5b292be3c768
[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 [data-snippet-id],.colmd,.hr,.blockquote
246     overflow: hidden
247
248 .carousel-inner
249     height: 100%
250     .item
251         height: 100%
252         background-size: 100%
253 .carousel
254     .carousel-caption
255         left: auto
256         right: auto
257         bottom: 10%
258         text-align: left
259         padding: 20px
260         background: rgba(0, 0, 0, 0.4)
261         h1, h2, h3
262             margin-top: 10px
263             margin-bottom: 10px
264     .carousel-image
265         right: 50%
266         left: 50%
267         top: 5%
268         bottom: 5%
269         position: absolute
270         max-height: 90%
271         margin: 0 auto
272     .item.text_only
273         .carousel-image
274             display: none !important
275         .carousel-caption
276             left: 10%
277             right: 10%
278             top: 10%
279             bottom: auto
280             text-align: center
281             background: transparent
282     .item.image_text
283         .carousel-caption
284             right: 10%
285         .carousel-image
286             left: 10%
287     .carousel-control
288         cursor: pointer
289         span
290             top: 50%
291             position: absolute
292             margin-top: -8px
293         &.left span
294             left: 10px
295         &.right span
296             right: 10px
297
298
299 /* Parallax Theme */
300
301 div.carousel[data-snippet-id="slider"]
302     .carousel-indicators
303         li
304             border: 1px solid grey
305         .active
306             background-color: grey
307
308 .parallax
309     position: relative
310     background-size: 100%
311     display: table
312     width: 100%
313     min-height: 100px
314     &.oe_small
315         min-height: 200px
316     &.oe_medium
317         min-height: 300px
318     &.oe_big
319         min-height: 450px
320     > div
321         display: table-cell
322         vertical-align: middle
323         padding: 32px 0
324
325 /* Background */
326  
327 .oe_dark
328     background: #eff8f8
329     background: rgba(100, 200, 200, 0.14)
330     +box-shadow(0px 5px 9px -7px rgba(0, 0, 255, 0.5) inset, 0px -3px 9px -7px rgba(0, 0, 255, 0.5) inset)
331 .oe_black
332     background-color: rgba(0, 0, 0, 0.9)
333 .oe_green
334     background-color: rgba(0, 128, 0, 0.8)
335 .oe_red
336     background-color: rgba(255, 0, 0, 0.8)
337 .oe_img_bg
338     background-size: 100%
339
340 .texttop
341     vertical-align: top
342
343 table.well tr
344     th
345         text-align: right
346         padding-right: 10px
347     td
348         padding-right: 5px
349
350 .logo-img
351     width: 220px
352
353 .oe_demo
354     position: relative
355     img
356         width: 100%
357     div
358         position: absolute
359         left: 0
360         background-color: rgba(0,0,0,0.4)
361         opacity: 0.85
362         bottom: 0px
363         width: 100%
364         padding: 7px
365         color: white
366         font-weight: bold
367         a
368             color: white
369
370 address
371     .fa.fa-mobile-phone
372         margin: 0 3px 0 2px
373     .fa.fa-file-text-o
374         margin-right: 1px
375
376 span[data-oe-type="monetary"]
377     white-space: nowrap
378
379 .oe_template_fallback
380     @include column-count(3)
381
382 // ---- Callouts from bootstrap doc ---- {{{
383 .bs-callout
384     margin: 20px 0
385     padding: 20px
386     border-left: 3px solid #eee
387 .bs-callout h4
388     margin-top: 0
389     margin-bottom: 5px
390 .bs-callout p:last-child
391     margin-bottom: 0
392
393 .bs-callout-danger
394     background-color: #fdf7f7
395     border-color: #eed3d7
396 .bs-callout-danger h4
397     color: #b94a48
398 .bs-callout-warning
399     background-color: #faf8f0
400     border-color: #faebcc
401 .bs-callout-warning h4
402     color: #8a6d3b
403 .bs-callout-info
404     background-color: #f4f8fa
405     border-color: #bce8f1
406 .bs-callout-info h4
407     color: #34789a
408 // }}}