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