[FIX] account: give "Invoice" users access to "Invoice Analysis" Report.
[odoo/odoo.git] / addons / web_kanban / static / src / css / kanban.sass
1 @charset "utf-8"
2
3 // Mixins {{{
4 @mixin vertical-gradient($startColor: #555, $endColor: #333)
5     background-color: $startColor
6     background-image: -webkit-gradient(linear, left top, left bottom, from($startColor), to($endColor)) /* Saf4+, Chrome */
7     background-image: -webkit-linear-gradient(top, $startColor, $endColor) /* Chrome 10+, Saf5.1+, iOS 5+ */
8     background-image:    -moz-linear-gradient(top, $startColor, $endColor) /* FF3.6 */
9     background-image:     -ms-linear-gradient(top, $startColor, $endColor) /* IE10 */
10     background-image:      -o-linear-gradient(top, $startColor, $endColor) /* Opera 11.10+ */
11     background-image:         linear-gradient(to bottom, $startColor, $endColor)
12
13 @mixin radial-gradient($gradient)
14     background-position: center center
15     background-image: -webkit-radial-gradient(circle, $gradient)
16     background-image: -moz-radial-gradient($gradient)
17     background-image: -ms-radial-gradient($gradient)
18     background-image: radial-gradient(circle, $gradient)
19
20 @mixin radius($radius: 5px)
21     -moz-border-radius: $radius
22     -webkit-border-radius: $radius
23     border-radius: $radius
24
25 @mixin box-shadow($bsval: 0px 1px 4px #777)
26     -moz-box-shadow: $bsval
27     -webkit-box-shadow: $bsval
28     -box-shadow: $bsval
29
30 @mixin box-sizing($sizing: border-box)
31     -webkit-box-sizing: $sizing
32     -moz-box-sizing: $sizing
33     box-sizing: $sizing
34
35 @mixin transform($transform)
36     -moz-transform: $transform
37     -webkit-transform: $transform
38     -o-transform: $transform
39     -ms-transform: $transform
40
41 @mixin transition($transition: all 200ms linear)
42     -webkit-transition: $transition
43     -moz-transition: $transition
44     -ms-transition: $transition
45     -o-transition: $transition
46     transition: $transition
47 // }}}
48
49 .openerp .oe_kanban_view
50     // KanbanView {{{
51     //background: url(data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAKElEQVQIHWP8DwTv379nAAFBQUEGhnfv3oHEwADEZgJLIRGMIClkLQCr3x2Htp/lLwAAAABJRU5ErkJggg==)
52     background: white
53     &.oe_background_grey
54         > table.oe_kanban_groups
55             background-color: #eee
56     height: inherit
57     .oe_kanban_column_higlight
58         background: #eeddf6 !important
59     .oe_view_nocontent
60         position: relative
61         max-width: none
62         height: 100%
63         .oe_view_nocontent_content
64             margin-left: 90px
65             margin-top: 5px
66             max-width: 700px
67         .oe_view_nocontent_bg
68             background: #eee
69             opacity: 0.7
70             position: absolute
71             top: 0
72             bottom: 0
73             left: 0
74             right: 0
75             z-index: -1
76     &.oe_kanban_grouped
77         .oe_kanban_dummy_cell
78             background: url(/web/static/src/img/form_sheetbg.png)
79             width: 100%
80     .oe_kanban_group_length
81         text-align: center
82         display: none
83         .oe_tag
84             position: relative
85             top: +8px
86             font-weight: bold
87     .oe_kanban_header:hover .oe_kanban_group_length
88         display: none
89     .ui-sortable-placeholder
90         border: 1px solid rgba(0,0,0,0.1)
91         visibility: visible !important
92     .ui-sortable-helper
93         @include box-shadow(0 1px 10px rgba(0, 0, 0, 0.3))
94         @include transform(rotate(3deg))
95         -webkit-transition: -webkit-transform 100ms linear
96         -moz-transition: -moz-transform 100ms linear
97         transition: transform 100ms linear
98     .oe_kanban_left
99         float: left
100     .oe_kanban_right
101         float: right
102     .oe_kanban_clear
103         clear: both
104     .oe_kanban_content
105         word-wrap: break-word
106         .oe_star_on, .oe_star_off
107             color: #ccc
108             text-shadow: 0 0 2px black
109             vertical-align: top
110             position: relative
111             top: -8px
112             &:hover
113                 text-decoration: none
114         .oe_star_on
115             color: gold
116         div:first-child
117             margin-right: 16px
118     .oe_kanban_button_new
119         color: white
120         background: #DC5F59
121     // }}}
122     // KanbanGroups {{{
123     .oe_kanban_groups
124         height: inherit
125     .oe_kanban_groups_records
126         height: 100%
127     &.oe_kanban_grouped_by_m2o .oe_kanban_group_title
128         cursor: move
129     .oe_kanban_header
130         .oe_dropdown_kanban
131             float: right
132         .oe_dropdown_kanban > span
133             visibility: hidden
134         &:hover
135             .oe_dropdown_kanban > span
136                 visibility: visible
137         .oe_dropdown_menu
138             font-weight: normal
139             font-size: 13px
140     .oe_kanban_group_title
141         position: relative
142         font-size: 16px
143         font-weight: bold
144         color: #333333
145         text-shadow: 0 1px 0 white
146         margin-right: 30px
147         width: 200px
148         .oe_kanban_group_title_text
149             margin-right: 4px
150             white-space: nowrap
151             overflow: hidden
152             text-overflow: ellipsis
153     .oe_fold_column
154         .oe_kanban_group_length
155             position: absolute
156             top: -1px
157             right: -14px
158             float: right
159             display: block
160     &.oe_kanban_grouped
161         .oe_kanban_column, .oe_kanban_group_header
162             width: 185px
163             min-width: 185px
164             &.oe_kanban_group_folded
165                 width: auto
166                 min-width: 30px
167
168     .oe_kanban_column, .oe_kanban_group_header
169         vertical-align: top
170         padding: 5px 5px 5px 4px
171         ul, li
172             margin: 0
173             padding: 0
174             list-style-type: none
175     .oe_kanban_group_header.oe_kanban_no_group
176         padding: 0px
177
178     &.oe_kanban_grouped .oe_kanban_column, .oe_kanban_group_header
179         background: #f0eeee
180         border-left: 1px solid #f0f8f8
181         border-right: 1px solid #b9b9b9
182     .oe_form
183         .oe_kanban_column
184             padding: 0px
185             background: #ffffff
186     &.oe_kanban_grouped
187         .oe_kanban_column, .oe_kanban_column_cards
188             height: 100%
189     .oe_kanban_aggregates
190         padding: 0
191         margin: 0px
192     .oe_kanban_group_folded
193         .oe_kanban_group_title, &.oe_kanban_column *, .oe_kanban_aggregates, .oe_kanban_add
194             display: none
195         .oe_kanban_group_title_vertical, .oe_kanban_group_length
196             display: block
197         .oe_dropdown_kanban
198             left: -5px
199         .oe_kanban_folded_column_cards
200             visibility: visible
201             display: block !important
202             height: 100%
203     .oe_kanban_group_title_undefined
204         color: #666666
205     .oe_kanban_group_title_vertical
206         writing-mode: tb-rl
207         -webkit-transform: rotate(90deg)
208         -moz-transform: rotate(90deg)
209         -o-transform: rotate(90deg)
210         -ms-transform: rotate(90deg)
211         transform: rotate(90deg)
212         width: 30px
213         font-size: 24px
214         white-space: nowrap
215         display: none
216         position: relative
217         opacity: 0.75
218         top: 26px
219     // }}}
220     // KanbanQuickCreate {{{
221     .oe_kanban_add, .oe_kanban_header .oe_dropdown_toggle
222         margin-left: 4px
223         cursor: pointer
224         position: relative
225         z-index: 1
226     .oe_kanban_add
227         top: -8px
228     .oe_kanban_header .oe_dropdown_toggle
229         top: -2px
230         height: 14px
231     .oe_kanban_card, .oe_dropdown_toggle
232         cursor: pointer
233         display: inline-block
234     .oe_kanban_add
235         float: right
236
237     .oe_kanban_quick_create_buttons
238         margin: 4px 0
239     .oe_kanban_no_group .oe_kanban_quick_create
240         width: 185px
241         padding: 10px
242     .oe_kanban_quick_create
243         z-index: 2
244     .oe_kanban_quick_create input
245         @include box-sizing(border-box)
246         outline: none
247         border: 1px solid transparent
248         display: block
249         margin-bottom: 8px
250         font-size: 13px
251         width: 100%
252         @include box-shadow(none)
253         &:focus
254             border: 1px solid #A6A6FE
255             @include box-shadow(0px 0px 7px rgba(0, 133, 255, 0.3) inset)
256     // }}}
257     // KanbanRecords {{{
258     .oe_kanban_vignette
259         padding: 8px
260         min-height: 100px
261     .oe_kanban_image
262         display: inline-block
263         vertical-align: top
264         width: 64px
265         height: 64px
266         text-align: center
267         overflow: hidden
268         @include radius(3px)
269         @include box-shadow(0 1px 4px rgba(0, 0, 0, 0.4))
270     .oe_kanban_details
271         display: inline-block
272         vertical-align: top
273         width: 240px
274         font-size: 13px
275         padding: 0 5px
276         color: #4c4c4c
277         h4
278             margin: 0 0 4px 0
279         .oe_tag
280             display: inline-block
281             margin: 0 2px 2px 0
282     .oe_kanban_record
283         position: relative
284         display: block
285         min-height: 20px
286         margin: 0
287         @include radius(4px)
288         &:last-child
289             margin-bottom: 0
290         .oe_kanban_title
291             font-weight: bold
292             margin: 2px 4px
293         .oe_kanban_alias
294             margin: 0px 0 8px 0
295     &.oe_kanban_grouped
296         .oe_kanban_record
297             margin-bottom: 4px
298     .oe_kanban_avatar_smallbox
299         height: 40px
300         width: 40px
301         border: 1px solid
302         border-color: #e5e5e5 #dbdbdb #d2d2d2
303         @include radius(3px)
304         @include box-shadow(0 1px 2px rgba(0,0,0,0.2))
305     .oe_kanban_box
306         background: #FFF
307         border: 2px solid #CCC
308         border-radius: 4px
309         -moz-border-radius: 4px
310         -webkit-border-radius: 4px
311         margin-bottom: 5px
312     .oe_kanban_box_header
313         border-bottom: 1px solid #CCC
314     .oe_kanban_title
315         font-size: 95%
316         font-weight: bold
317         padding: 0 4px 0 4px
318     .oe_kanban_small
319         font-size: 80%
320         font-weight: normal
321     .oe_kanban_show_more
322         clear: both
323         text-align: center
324     &.oe_kanban_grouped .oe_kanban_show_more .oe_button
325         width: 100%
326     &.oe_kanban_ungrouped .oe_kanban_column
327         .oe_kanban_record
328             display: inline-block
329             padding: 2px
330             vertical-align: top
331             box-sizing: border-box
332             -moz-box-sizing: border-box
333             -webkit-box-sizing: border-box
334     .oe_kanban_action_button
335         height: 22px
336         margin: 0
337     .oe_kanban_action_a
338         text-decoration: none
339         &:hover
340             text-decoration: none
341     .oe_kanban_table
342         width: 100%
343         border: none
344         border-collapse: collapse
345         margin: 0
346         padding: 0
347     .oe_kanban_table tr td
348         padding: 0
349     .oe_kanban_table tr td.oe_kanban_title
350         padding: 2px
351     .oe_kanban_box_content
352         padding: 4px
353         font-size: 90%
354     .oe_kanban_button
355         border: 1px solid #8ec1da
356         background-color: #ddeef6
357         border-radius: 3px
358         -moz-border-radius: 3px
359         -webkit-border-radius: 3px
360         color: #000000
361         text-shadow: 0 1px #fff
362         padding: 0 4px
363         font-size: 85%
364         margin: 1px
365     a.oe_kanban_button:hover, .openerp button.oe_kanban_button:hover
366         background-color: #eeddf6
367     .oe_kanban_buttons_set
368         border-top: 1px dotted
369         white-space: nowrap
370         padding-top: 2px
371         position: relative
372         clear: both
373         a
374             padding: 2px
375     .oe_kanban_box_show_onclick
376         display: none
377     .oe_kanban_draghandle
378         cursor: move
379     .oe_kanban_color_border
380         border-color: #CCCCCC
381     .oe_kanban_color_border
382         border-color: #CCCCCC
383     .oe_kanban_tooltip ul, ul.oe_kanban_tooltip
384         padding: 0 0 4px 0
385         margin: 5px 0 0 15px
386         list-style: circle
387     .oe_kanban_highlight
388         border-radius: 2px
389         -moz-border-radius: 2px
390         -webkit-border-radius: 2px
391         padding: 1px 5px
392         margin: 1px 4px
393         white-space: nowrap
394         display: inline-block
395         line-height: 1em
396     .oe_kanban_card, .oe_kanban_quick_create
397         margin-bottom: 4px
398         position: relative
399         display: block
400         background: white
401         border: 1px solid rgba(0,0,0,0.16)
402         border-bottom-color: rgba(0,0,0,0.3)
403         padding: 5px
404         display: block
405         -webkit-transition: -webkit-transform, -webkit-box-shadow, border 200ms linear
406         @include radius(4px)
407         &:not(.ui-sortable-helper):hover
408             border: 1px solid #7C7BAD
409             @include box-shadow(0 0 4px #7C7BAD)
410             .oe_dropdown_kanban > span
411                 visibility: visible
412         h3
413             margin: 0 16px 0 0
414             color: #4c4c4c
415             text-decoration: none
416         h3:hover
417             text-decoration: none
418         .oe_dropdown_kanban
419             .oe_kanban_project_times
420                 li
421                     float: left
422        
423     .oe_kanban_star
424         float: left
425         position: inline-block
426         margin: 0 4px 0 0
427     .oe_kanban_avatar
428         @include radius(3px)
429         @include box-shadow(0 1px 2px rgba(0,0,0,0.2))
430     .oe_kanban_footer_left
431         margin-top: 2px
432         > span
433             margin-top: 2px
434             display: inline-block
435             background: #E6E6E6
436             border: 1px solid #B9B9B9
437             color: #666
438             padding: 0 2px
439             line-height: 16px
440             @include radius(3px)
441             .oe_e
442                 line-height: 12px
443                 font-size: 22px
444         .oe_tags
445             margin-right: 0
446             .oe_tag
447                 display: inline-block
448                 padding: 0 2px
449                 line-height: 14px
450         .oe_kanban_mail_new
451             line-height: 18px
452             background-color: #8a89ba
453             color: white
454             font-weight: bold
455             position: relative
456             top: -1px
457     .oe_kanban_bottom_right
458         float: right
459         position: relative
460         top: 2px
461
462     .oe_kanban_text_red
463         color: #A61300
464         font-weight: bold
465         @include radius(4px)
466     .oe_kanban_ellipsis
467         overflow: hidden
468         text-overflow: ellipsis
469         white-space: nowrap
470     // }}}
471     // KanbanDropDown {{{
472     .oe_dropdown_kanban
473         float: right
474         cursor: pointer
475         margin-top: -6px
476         &:hover
477             text-decoration: none
478         .oe_dropdown_menu
479             left: 0
480             top: 28px
481             min-width: 160px
482             padding: 2px
483             > li
484                 padding: 3px
485     .oe_dropdown_kanban
486         &.oe_opened > span
487             visibility: visible
488         > span
489             visibility: hidden
490     // }}}
491     // KanbanColorPicker {{{
492     .oe_kanban_colorpicker
493         white-space: nowrap
494     .oe_kanban_colorpicker li
495         float: left
496         margin: 0
497         padding: 0
498         a
499             display: inline-block
500             width: 16px
501             height: 16px
502             border: 1px solid white
503         a:hover
504             border: 1px solid gray !important
505     .oe_kanban_colorpicker li:first-child a
506         border: 1px solid #ccc
507     // }}}
508     // KanbanColors {{{
509     .oe_kanban_color_0
510         background-color: #FFFFFF
511         color: #5a5a5a
512     .oe_kanban_color_1
513         background-color: #CCCCCC
514         color: #424242
515     .oe_kanban_color_2
516         background-color: #FFC7C7
517         color: #7a3737
518     .oe_kanban_color_3
519         background-color: #FFF1C7
520         color: #756832
521     .oe_kanban_color_4
522         background-color: #E3FFC7
523         color: #5d6937
524     .oe_kanban_color_5
525         background-color: #C7FFD5
526         color: #1a7759
527     .oe_kanban_color_6
528         background-color: #C7FFFF
529         color: #1a5d83
530     .oe_kanban_color_7
531         background-color: #C7D5FF
532         color: #3b3e75
533     .oe_kanban_color_8
534         background-color: #E3C7FF
535         color: #4c3668
536     .oe_kanban_color_9
537         background-color: #FFC7F1
538         color: #6d2c70
539     // }}}
540
541 .openerp .oe_form .oe_kanban_view
542     .oe_kanban_column, .oe_kanban_group_header
543         padding: 0px
544         background: #ffffff
545 .openerp
546     .oe_popup_form
547         .oe_kanban_buttons
548             .oe_highlight
549                 color: #404040
550                 background: none
551             button.oe_highlight
552                 @include vertical-gradient(#efefef, #d8d8d8)
553                 @include box-shadow((0 1px 2px rgba(0, 0, 0, .1), 0 1px 1px rgba(255, 255, 255, .8) inset))
554             button.oe_highlight:active
555                 @include vertical-gradient(#e3e3e3, #f6f6f6)
556                 @include box-shadow(none)
557             button.oe_highlight:hover
558                 @include vertical-gradient(#f6f6f6, #e3e3e3)
559                 @include box-shadow((0 1px 2px rgba(0, 0, 0, .1), 0 1px 1px rgba(255, 255, 255, .8) inset))
560
561
562 // Internet Explorer 9+ specifics {{{
563 .openerp_ie .oe_kanban_view
564     .oe_kanban_group_header .oe_kanban_group_title_vertical
565         // TODO: check for IE10
566         display: none !important
567     .oe_kanban_group_header.oe_kanban_group_folded .oe_kanban_group_title_vertical
568         display: inline-block !important
569     .oe_kanban_group_title_vertical
570         -ms-writing-mode: lr-tb !important
571         background: rgb(240, 238, 238)
572     &.oe_kanban_grouped
573         .oe_kanban_group_header
574             height: 1%
575 // }}}
576
577 @media print
578     .openerp
579         .oe_kanban_groups
580             button
581                 visibility: hidden
582             a
583                 &[data-type=object], &[data-type=delete]
584                     visibility: hidden
585         .oe_kanban_view .oe_kanban_group_title
586             text-shadow: none !important
587
588 // au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers <afile> > "%:p:r.css"
589 // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: