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/account/static/src/scss | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/account/static/src/scss')
7 files changed, 578 insertions, 0 deletions
diff --git a/addons/account/static/src/scss/account_activity.scss b/addons/account/static/src/scss/account_activity.scss new file mode 100644 index 00000000..b4514086 --- /dev/null +++ b/addons/account/static/src/scss/account_activity.scss @@ -0,0 +1,8 @@ +.o_journal_activity_kanban { + display: block; + .align_activity_center { + width: 100%; + align-items: center; + margin-bottom: 5px; + } +}
\ No newline at end of file diff --git a/addons/account/static/src/scss/account_dashboard.scss b/addons/account/static/src/scss/account_dashboard.scss new file mode 100644 index 00000000..b93e2d35 --- /dev/null +++ b/addons/account/static/src/scss/account_dashboard.scss @@ -0,0 +1,61 @@ +.o_kanban_view.o_kanban_dashboard.o_account_kanban { + + &.o_kanban_ungrouped .o_account_dashboard_header { + margin: (0 - $o-kanban-record-margin) ($o-kanban-record-margin - $o-horizontal-padding) $o-kanban-record-margin; + } + + .o_account_dashboard_header { + flex: 1 0 100%; + flex-flow: column nowrap; + align-self: flex-start; + width: 100%; + height: auto; // cancel o_form_view height 100%, which hides the help tip message at the bottom of the screen + min-height: 0%; // cancel o_form_view min-height 100%, which hides the help tip message at the bottom of the screen + background-color: $o-view-background-color; + + .o_form_statusbar { + padding-right: $o-horizontal-padding; + } + + h4 { + font-size: $font-size-base; + font-weight: 500; + } + + .fa-gift { + color: #eeeeee; + &:hover { + color: #555555; + } + } + + .o_arrow_button.btn-secondary { + color: $text-muted; + text-transform: none; + font-weight: 500; + + .o_account_dashboard_index { + color: gray('900'); + } + + &.o_action_done { + color: gray('900'); + background-color: gray('200'); + + &:after { + border-left-color: gray('200'); + } + + .fa-check { + color: theme-color('success'); + } + } + + &:last-of-type { + margin-left: $o-horizontal-padding; + padding-left: $o-horizontal-padding*.5; + border-left: 1px solid gray('300'); + } + } + } +} diff --git a/addons/account/static/src/scss/account_journal_dashboard.scss b/addons/account/static/src/scss/account_journal_dashboard.scss new file mode 100644 index 00000000..6c36e61a --- /dev/null +++ b/addons/account/static/src/scss/account_journal_dashboard.scss @@ -0,0 +1,68 @@ +.o_kanban_view.o_kanban_dashboard.o_account_kanban { + .o_kanban_record { + + @include media-breakpoint-up(sm) { + .oe_kanban_action_button { + display: block; + margin-bottom: 5px; + } + } + + .o_kanban_card_settings { + padding-top: $o-horizontal-padding/2; + padding-bottom: $o-horizontal-padding/2; + + border-top: 1px solid; + border-color: $o-brand-lightsecondary; + } + .o_dashboard_star { + font-size: 12px; + + &.fa-star-o { + color: $o-main-color-muted; + &:hover { + color: gold; + } + } + &.fa-star { + color: gold; + } + } + + .o_dashboard_graph { + margin-bottom: -$o-horizontal-padding/2; + } + } + + &.o_kanban_ungrouped { + .o_kanban_record { + width: 450px; + } + } + + .o_kanban_group { + &:not(.o_column_folded) { + width: 450px + 2*$o-kanban-group-padding; + + @include media-breakpoint-down(sm) { + width: 100%; + } + } + } +} + +// Style for the widget "dashboard_graph" +.o_dashboard_graph { + position: relative; + margin: 16px -16px; + + canvas { + height: 75px; + } + +} + +.o_sample_data .o_dashboard_graph.o_graph_linechart > svg g.nv-linesWrap g.nv-group.nv-series-0 { + fill: gray !important; + opacity: 0.1; +} diff --git a/addons/account/static/src/scss/account_reconciliation.scss b/addons/account/static/src/scss/account_reconciliation.scss new file mode 100644 index 00000000..d745f825 --- /dev/null +++ b/addons/account/static/src/scss/account_reconciliation.scss @@ -0,0 +1,367 @@ +.progress-reconciliation { + .progress-bar { + font-size: 1.08333333rem; + height: 14px; + background-color: $o-enterprise-color; + span { + display: contents; + } + } +} + +.o_reconciliation { + + .o_filter_input_wrapper { + position: relative; + width: 150px; + margin: 0.5rem !important; + .searchIcon { + position: absolute; + right: 10px; + } + .o_filter_input { + border: none; + border-bottom: 1px black solid; + } + } + + .import_to_suspense { + margin: 0.5rem !important; + } + + .notification_area { + clear: both; + } + + .o_view_noreconciliation { + max-width: none; + padding: 0 10%; + color: $o-main-color-muted; + font-size: 125%; + } + + .accounting_view { + width: 100%; + + .cell_left { + border-right: 1px solid #333; + padding-right: 5px; + } + .edit_amount { + margin-left: 20px; + color: #bbb; + } + .cell:hover .edit_amount { + color: #00A09D; + } + .strike_amount { + text-decoration: line-through; + } + tbody tr:hover .cell_account_code::before { + content: "\f068"; + font-family: FontAwesome; + position: relative; + margin-left: -17px; + left: -4px; + line-height: 0; + padding: 3px 2px 5px 5px; + } + + } + + .o_multi_currency { + margin-right: 5px; + &.o_multi_currency_color_0 { + color: #dd6666; + } + &.o_multi_currency_color_1 { + color: #aaaaaa; + } + &.o_multi_currency_color_2 { + color: #66dd66; + } + &.o_multi_currency_color_3 { + color: #6666dd; + } + &.o_multi_currency_color_4 { + color: #dddd66; + } + &.o_multi_currency_color_5 { + color: #dd66dd; + } + &.o_multi_currency_color_6 { + color: #66dddd; + } + &.o_multi_currency_color_7 { + color: #aaa333; + } + } + + .o_reconciliation_line { + margin-bottom: 30px; + table { + width: 100%; + vertical-align: top; + } + tbody tr { + cursor: pointer; + } + tr.already_reconciled { + color: $o-account-info-color; + } + tr.invalid { + text-decoration: line-through; + } + td { + padding: 1px 2px; + } + thead td { + border-top: $o-account-light-border; + padding-top: 4px; + padding-bottom: 5px; + background-color: $o-account-initial-line-background; + } + tfoot td { + color: #bbb; + } + + /* columns */ + + .cell_action { + width: 15px; + color: gray('700'); + background: #fff; + border: 0; + text-align: center; + .fa-add-remove:before { + content: ""; + } + } + tr:hover .cell_action .fa-add-remove:before { + content: "\f068"; + } + .is_tax .cell_action .fa-add-remove:before { + position: relative; + top: -18px; + } + .cell_account_code { + width: 80px; + padding-left: 5px; + } + .cell_due_date { + width: 100px; + } + .cell_label { + width: auto; + } + .cell_left { + padding-right: 5px; + } + .cell_right, .cell_left { + text-align: right; + width: 120px; + } + .cell_info_popover { + text-align: right; + width: 15px; + color: #ccc; + + &:empty { + padding: 0; + width: 0; + } + } + + table.accounting_view { + .cell_right, .cell_left, .cell_label, .cell_due_date, .cell_account_code,.cell_info_popover { + box-shadow: 0 1px 0 #EAEAEA; + } + } + /* info popover */ + .popover { + max-width: none; + } + + table.details { + vertical-align: top; + td:first-child { + vertical-align: top; + padding-right: 10px; + font-weight: bold; + } + } + + tr.one_line_info { + td { + padding-top: 10px; + text-align: center; + color: $o-account-info-color; + } + } + + /* Icons */ + + .toggle_match, .toggle_create { + transform: rotate(0deg); + transition: transform 300ms ease 0s; + } + .visible_toggle, &[data-mode="match"] .toggle_match, &[data-mode="create"] .toggle_create { + visibility: visible !important; + transform: rotate(90deg); + } + .toggle_create { + font-size: 10px; + } + + /* Match view & Create view */ + > .o_notebook { + display: none; + + > .o_notebook_headers { + margin-right: 0; + margin-left: 0; + } + } + + > .o_notebook > .tab-content > div { + border: 1px solid #ddd; + border-top: 0; + } + + > .o_notebook .match table tr:hover { + background-color: #eee; + } + + &:not([data-mode="inactive"]) > .o_notebook { + display: block; + } + + &:not(:focus-within) .o_web_accesskey_overlay { + display: none; + } + &:focus caption .o_buttons button { + outline: none; + box-shadow: 4px 4px 4px 0px $o-enterprise-color; + } + &:focus{ + outline: none; + box-shadow: 0 0 0 0; + } + } + + .o_reconcile_models .btn-primary { + margin: 0 2px 3px 0; + } + + /* Match view */ + + .match { + .cell_action .fa-add-remove:before { + content: ""; + } + tr:hover .cell_action .fa-add-remove:before { + content: "\f067"; + } + .match_controls { + padding: 5px 0 5px ($o-account-action-col-width+$o-account-main-table-borders-padding); + + .filter { + width: 240px; + display: inline-block; + } + + .fa-chevron-left, .fa-chevron-right { + display: inline-block; + cursor: pointer; + } + + .fa-chevron-left { + margin-right: 10px; + } + + .fa-chevron-left.disabled, .fa-chevron-right.disabled { + color: #ddd; + cursor: default; + } + } + .show_more { + display: inline-block; + margin-left: ($o-account-action-col-width+$o-account-main-table-borders-padding); + margin-top: 5px; + } + } + + /* Create view */ + .create { + > div > div.quick_add > .o_reconcile_models { + max-width: 100%; + max-height: 70px; + flex-wrap: wrap; + overflow: auto; + + & > * { + flex-grow: 0; + } + } + .quick_add { + margin-bottom: 7px; + padding: 0 8px; + } + .o_group table.o_group_col_6 { + width: 49%; + margin: 0; + vertical-align: top; + } + .o_group table.o_group_col_6:first-child { + margin-left: 8px; + } + .btn { + padding-top: 0; + padding-bottom: 0; + } + .add_line_container { + text-align: center; + clear: both; + color: $o-enterprise-primary-color; + cursor: pointer; + } + } + + .o_notebook .tab-content > .tab-pane { + padding: 5px 0; + } +} + +/*Manual Reconciliation*/ +.o_manual_statement { + .accounting_view { + td[colspan="3"] span:first-child { + width: 100%; + display: inline-block; + } + td[colspan="2"] { + border-bottom: 1px solid #333; + text-align: center; + width: 240px; + } + .do_partial_reconcile_true { + display: none; + } + } +} + +// This is rtl language specific fix +// It will flip the fa-fa play icon in left direction +.o_rtl { + .o_reconciliation { + .o_reconciliation_line { + .toggle_match, .toggle_create { + transform: rotate(180deg); + transition: transform 300ms; + } + .visible_toggle, &[data-mode="match"] .toggle_match, &[data-mode="create"] .toggle_create { + transform: rotate(270deg); + } + } + } +} diff --git a/addons/account/static/src/scss/account_searchpanel.scss b/addons/account/static/src/scss/account_searchpanel.scss new file mode 100644 index 00000000..621a283a --- /dev/null +++ b/addons/account/static/src/scss/account_searchpanel.scss @@ -0,0 +1,26 @@ +.o_search_panel.account_root { + flex: 0 0 50px; + padding: 6px; + scrollbar-width: thin; + .o_search_panel_section_header { + display: none; + } + .list-group-item span.o_search_panel_label_title { + display: contents; + } + .o_search_panel_category_value { + header { + margin-left: 0; + padding-left: 0; + } + .o_search_panel_category_value .o_toggle_fold { + width: 0.3rem; + } + } + &::-webkit-scrollbar { + width: 4px; + } + &::-webkit-scrollbar-thumb { + background: lightgray; + } +} diff --git a/addons/account/static/src/scss/section_and_note_backend.scss b/addons/account/static/src/scss/section_and_note_backend.scss new file mode 100644 index 00000000..93ce4dfd --- /dev/null +++ b/addons/account/static/src/scss/section_and_note_backend.scss @@ -0,0 +1,29 @@ + +// The goal of this file is to contain CSS hacks related to allowing +// section and note on sale order and invoice. + +table.o_section_and_note_list_view tr.o_data_row.o_is_line_note, +table.o_section_and_note_list_view tr.o_data_row.o_is_line_note textarea[name="name"], +div.oe_kanban_card.o_is_line_note { + font-style: italic; +} +table.o_section_and_note_list_view tr.o_data_row.o_is_line_section, +div.oe_kanban_card.o_is_line_section { + font-weight: bold; + background-color: #DDDDDD; +} +table.o_section_and_note_list_view tr.o_data_row.o_is_line_section { + border-top: 1px solid #BBB; + border-bottom: 1px solid #BBB; +} + +table.o_section_and_note_list_view tr.o_data_row { + &.o_is_line_note, + &.o_is_line_section { + td { + // There is an undeterministic CSS behaviour in Chrome related to + // the combination of the row's and its children's borders. + border: none !important; + } + } +} diff --git a/addons/account/static/src/scss/variables.scss b/addons/account/static/src/scss/variables.scss new file mode 100644 index 00000000..3e79231c --- /dev/null +++ b/addons/account/static/src/scss/variables.scss @@ -0,0 +1,19 @@ +$o-account-action-col-width: 15px; +$o-account-main-table-borders-padding: 3px; +$o-account-light-border: 1px solid #bbb; +$o-account-initial-line-background: #f0f0f0; +$o-account-info-color: #44c; + + +@keyframes animate-red { + 0% { + color: red; + } + 100% { + color: inherit; + } +} + +.animate { + animation: animate-red 1s ease; +} |
