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