[FIX] portal_claim: security group_portal
[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 .oe_structure.oe_editable [data-snippet-id]:empty
175     background: rgba(255,0,0,0.1)
176     &:before
177         content: 'Please Edit This Empty Block'
178
179 /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
180
181 .navbar .nav > li > p
182     margin-bottom: 0px
183
184 // .navbar .nav > li  a
185 //     text-shadow: none
186
187 // .nav > li  a
188 //     display: block
189
190 /* ---- HOMEPAGE THEME CUSTOMIZATION ---- */
191
192 .nav-hierarchy
193     padding-left: 16px
194
195 #themes-list .well
196     padding: 0 0 20px 0
197
198 /* -- Hack for removing double scrollbar from mobile preview -- */
199 div#mobile-preview.modal
200     overflow: hidden
201     overflow-y: hidden
202
203 ul.nav-stacked > li > a
204     padding: 2px 15px
205
206 #customize-menu .dropdown-header
207     text-transform: uppercase
208
209 /* ---- PUBLISH ---- */
210 .css_unpublish, .css_publish
211     display: none
212 .css_published .css_unpublish, .css_unpublished .css_publish
213     display: block
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         h1, h2, h3
259             margin-top: 10px
260             margin-bottom: 10px
261     .carousel-image
262         right: 10%
263         left: 50%
264         top: 5%
265         bottom: 5%
266         position: absolute
267         text-align: center
268         img
269             height: 100%
270             margin: 0 auto
271     .item.text_image
272         .carousel-caption
273             left: auto
274             right: auto
275             bottom: 10%
276             text-align: left
277             padding: 20px
278             background: rgba(0, 0, 0, 0.4)
279     .item.text_only
280         .carousel-image
281             display: none !important
282         .carousel-caption
283             left: 10%
284             right: 10%
285             top: 10%
286             text-align: center
287     .item.image_text
288         .carousel-caption
289             left: auto
290             text-align: left
291             right: 10%
292             bottom: 10%
293             padding: 20px
294             background: rgba(0, 0, 0, 0.4)
295         .carousel-image
296             right: 50%
297             left: 10%
298     .carousel-control
299         cursor: pointer
300         span
301             top: 50%
302             position: absolute
303             margin-top: -8px
304         &.left span
305             left: 10px
306         &.right span
307             right: 10px
308
309
310 /* Parallax Theme */
311
312 .parallax_quote, [data-snippet-id="slider"]
313     background: center center no-repeat fixed
314     background-size: contain
315     .carousel-indicators
316         li
317             border: 1px solid grey
318         .active
319             background-color: grey
320
321 .parallax
322     position: relative
323     background-size: 100%
324     &.oe_small
325         height: 200px
326     &.oe_medium
327         height: 300px
328     &.oe_big
329         height: 450px
330
331 /* Background */
332  
333 .oe_dark
334     background: #eff8f8
335     background: rgba(100, 200, 200, 0.14)
336     +box-shadow(0px 5px 9px -7px rgba(0, 0, 255, 0.5) inset, 0px -3px 9px -7px rgba(0, 0, 255, 0.5) inset)
337 .oe_black
338     background-color: rgba(0, 0, 0, 0.9)
339 .oe_green
340     background-color: rgba(0, 128, 0, 0.8)
341 .oe_red
342     background-color: rgba(255, 0, 0, 0.8)
343 .oe_img_bg
344     height: 100%
345     background-size: 100%
346
347 .texttop
348     vertical-align: top
349
350 table.well tr
351     th
352         text-align: right
353         padding-right: 10px
354     td
355         padding-right: 5px
356
357 .logo-img
358     width: 220px
359
360 .oe_demo
361     position: relative
362     img
363         width: 100%
364     div
365         position: absolute
366         left: 0
367         background-color: rgba(0,0,0,0.4)
368         opacity: 0.85
369         bottom: 0px
370         width: 100%
371         padding: 7px
372         color: white
373         font-weight: bold
374         a
375             color: white