diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/web/static/src/scss/kanban_dashboard.scss | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/web/static/src/scss/kanban_dashboard.scss')
| -rw-r--r-- | addons/web/static/src/scss/kanban_dashboard.scss | 210 |
1 files changed, 210 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/kanban_dashboard.scss b/addons/web/static/src/scss/kanban_dashboard.scss new file mode 100644 index 00000000..bba243de --- /dev/null +++ b/addons/web/static/src/scss/kanban_dashboard.scss @@ -0,0 +1,210 @@ + +.o_kanban_view.o_kanban_dashboard { + &:not(.o_kanban_grouped) { + // correctly display the no_content_helper in dashboards + flex-flow: row wrap; + } + + .o_kanban_record { + position: relative; + display: flex; + flex-flow: column nowrap; + justify-content: space-between; + padding: $o-kanban-dashboard-vpadding $o-kanban-dashboard-hpadding; + + @include media-breakpoint-down(sm) { + margin-bottom: 10px; + } + + // ------- Generic layout adaptations ------- + .container { + width: 100%; + } + + // ------- Dropdown toggle & menu ------- + $o-kanban-manage-toggle-height: 35px; + + .o_kanban_manage_toggle_button { + @include o-kanban-dropdown($o-kanban-dashboard-hpadding); + height: $o-kanban-manage-toggle-height; + } + + .o_kanban_card_manage_pane { + @include o-kanban-dropdown-menu; + + // Arbitrary value to place the dropdown-menu exactly below the + // dropdown-toggle (height is forced so that it works on Firefox) + top: $o-kanban-manage-toggle-height; + + > div:not(.o_no_padding_kanban_colorpicker) { + padding: 3px 0 3px 20px; + visibility: visible; + margin-bottom: 5px; + } + + > .o_kanban_card_manage_section { + border-bottom: 1px solid gray('300'); + margin-bottom: 10px; + + > div { + @include o-kanban-dashboard-dropdown-link; + } + } + + // Dropdown menu with complex layout + &.container { + width: 95%; + max-width: 400px; + + .row { + display: flex; + flex-flow: row nowrap; + justify-content: space-between; + margin-left: 0; + margin-right: 0; + padding-left: $o-kanban-dashboard-dropdown-complex-gap*2; + padding-right: $o-kanban-dashboard-dropdown-complex-gap*2; + } + + div[class*="col-"] { + flex: 1 1 percentage(1/3); + padding-left: $o-kanban-dashboard-dropdown-complex-gap; + padding-right: $o-kanban-dashboard-dropdown-complex-gap; + max-width: none; + + > .o_kanban_card_manage_title { + margin: (($font-size-base * $line-height-base) / 2) 0; + color: $headings-color; + font-size: $h5-font-size; + font-weight: 500; + line-height: $headings-line-height; + } + > div:not(.o_kanban_card_manage_title) { + @include o-kanban-dashboard-dropdown-link($link-padding-gap: $o-kanban-dashboard-dropdown-complex-gap); + } + } + + .row.o_kanban_card_manage_settings { + border-top: 1px solid gray('300'); + padding-top: $o-kanban-dashboard-dropdown-complex-gap*3; + + .oe_kanban_colorpicker { + max-width: none; + padding: 0; + } + + div[class*="col-"] + div[class*="col-"] { + border-left: 1px solid gray('300'); + } + + // Default options box + div.text-right { + text-align: left; // :/ + @include o-kanban-dashboard-dropdown-link(0); + > a { + margin-left: 40px; + padding-left: 20px; + } + } + } + } + + } + + &.o_dropdown_open { + .o_kanban_card_manage_pane { + display: block; + } + .o_kanban_manage_toggle_button { + @include o-kanban-dropdown-open; + position: absolute; + } + } + + // ------- Kanban Record Titles ------- + // Uniform design across different HTML layouts + + // Provide enough room for the dropdown-toggle + .o_primary { + padding-right: $o-kanban-dashboard-hpadding*2; + } + + // Uniform titles + .o_kanban_card_header_title .o_primary, + .o_kanban_primary_left .o_primary > span:first-child, + .oe_kanban_content > .o_title > h3 { + @include o-kanban-record-title($font-size: 16px); + display: block; + } + + // Identify subtitles without classes + .o_kanban_primary_left .o_primary > span:nth-child(2) > strong { + font-weight: 500; + font-size: $font-size-sm; + color: $text-muted; + } + + // Provide enough room to add an icon before the title + &.o_has_icon .o_primary { + padding-left: $o-kanban-record-margin*1.5; + } + + // ------- Kanban Content ------- + .o_kanban_card_content { + display: inline-block; + vertical-align: top; + min-height: 80px; + } + + .o_kanban_card_header + .container.o_kanban_card_content { + flex: 1 0 auto; + display: flex; + flex-flow: column nowrap; + justify-content: space-between; + margin-top: $o-kanban-dashboard-vpadding * 2; + padding-right: 0; + padding-left: 0; + + &::before, &::after { + content: normal; // so that space-between works + } + + a { + position: relative; + @include o-text-overflow(inline-block); + } + + .o_kanban_primary_bottom { + margin-top: $o-kanban-dashboard-vpadding; + margin-bottom: -$o-kanban-dashboard-vpadding; + + &.bottom_block { + border-top: 1px solid gray('300'); + background-color: gray('200'); + padding-top: $o-kanban-dashboard-vpadding; + padding-bottom: $o-kanban-dashboard-vpadding; + } + } + } + + .o_dashboard_graph { + overflow: hidden; + } + } + + .o_favorite, .o_kanban_manage_toggle_button { + @include o-position-absolute(0, 0); + padding: $o-kanban-record-margin; + } + + .o_favorite { + top: 3px; + left: 0; + right: auto; + } + + // Emphasize records' colors when necessary + &.o_emphasize_colors .o_kanban_record::after { + width: $o-kanban-color-border-width * 2; + } +} |
