diff --git a/addons/account/static/src/scss/account_dashboard.scss b/addons/account/static/src/scss/account_dashboard.scss index de562759e11..938bc058af2 100644 --- a/addons/account/static/src/scss/account_dashboard.scss +++ b/addons/account/static/src/scss/account_dashboard.scss @@ -1,7 +1,7 @@ .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 - $odoo-horizontal-padding) $o-kanban-record-margin; + margin: (0 - $o-kanban-record-margin) ($o-kanban-record-margin - $o-horizontal-padding) $o-kanban-record-margin; } .o_account_dashboard_header { @@ -11,10 +11,10 @@ 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: $odoo-view-background-color; + background-color: $o-view-background-color; .o_form_statusbar { - padding-right: $odoo-horizontal-padding; + padding-right: $o-horizontal-padding; } h4 { @@ -52,8 +52,8 @@ } &:last-of-type { - margin-left: $odoo-horizontal-padding; - padding-left: $odoo-horizontal-padding*.5; + margin-left: $o-horizontal-padding; + padding-left: $o-horizontal-padding*.5; border-left: 1px solid $gray-lighter-dark; } } diff --git a/addons/account/static/src/scss/account_journal_dashboard.scss b/addons/account/static/src/scss/account_journal_dashboard.scss index e068040784d..1b87a6363a6 100644 --- a/addons/account/static/src/scss/account_journal_dashboard.scss +++ b/addons/account/static/src/scss/account_journal_dashboard.scss @@ -6,17 +6,17 @@ } .o_kanban_card_settings { - padding-top: $odoo-horizontal-padding/2; - padding-bottom: $odoo-horizontal-padding/2; + padding-top: $o-horizontal-padding/2; + padding-bottom: $o-horizontal-padding/2; border-top: 1px solid; - border-color: $odoo-brand-lightsecondary; + border-color: $o-brand-lightsecondary; } .o_dashboard_star { font-size: 12px; &.fa-star-o { - color: $odoo-main-color-muted; + color: $o-main-color-muted; &:hover { color: gold; } @@ -27,7 +27,7 @@ } .o_dashboard_graph { - margin-bottom: -$odoo-horizontal-padding/2; + margin-bottom: -$o-horizontal-padding/2; } } @@ -58,7 +58,7 @@ } g.tick.major { // Don't know why, but leads to strange bold text - // stroke: $odoo-brand-primary; + // stroke: $o-brand-primary; line { display: none; @@ -72,13 +72,13 @@ g.nv-linesWrap { g.nv-group.nv-series-0 { fill-opacity: 0.3 !important; - fill: $odoo-brand-primary !important; - stroke: $odoo-brand-primary !important; + fill: $o-brand-primary !important; + stroke: $o-brand-primary !important; .nv-point { visibility: hidden; r: 3; - stroke: $odoo-brand-primary !important; + stroke: $o-brand-primary !important; fill: white; stroke-width: 2; } @@ -99,11 +99,11 @@ g.nv-group.nv-series-0 { g.past { opacity: 0.5; - fill: $odoo-brand-primary !important; + fill: $o-brand-primary !important; } g.future { opacity: 0.5; - fill: $odoo-brand-optional !important; + fill: $o-brand-optional !important; } } } diff --git a/addons/account/static/src/scss/account_reconciliation.scss b/addons/account/static/src/scss/account_reconciliation.scss index 5d3e8ec3810..204337c5808 100644 --- a/addons/account/static/src/scss/account_reconciliation.scss +++ b/addons/account/static/src/scss/account_reconciliation.scss @@ -1,11 +1,3 @@ -$actionColWidth: 15px; -$mainTableBordersPadding: 3px; -$lightBorder: 1px solid #bbb; -$accountingBorder: 1px solid #000; -$initialLineBackground: #f0f0f0; -$infoColor: #44c; - - .o_reconciliation { h1 { width: 48%; @@ -18,7 +10,7 @@ $infoColor: #44c; &.statement_name { @include o-text-overflow; &.editable:hover { - outline: 1px dashed $odoo-brand-optional; + outline: 1px dashed $o-brand-optional; outline-offset: -1px; cursor: pointer; } @@ -51,7 +43,7 @@ $infoColor: #44c; .o_view_noreconciliation { max-width: none; padding: 0 10%; - color: $odoo-main-color-muted; + color: $o-main-color-muted; font-size: 125%; } @@ -110,16 +102,16 @@ $infoColor: #44c; cursor: pointer; } tr.already_reconciled { - color: $infoColor; + color: $o-account-info-color; } tr.invalid { text-decoration: line-through; } thead td { - border-top: $lightBorder; + border-top: $o-account-light-border; padding-top: 4px; padding-bottom: 5px; - background-color: $initialLineBackground; + background-color: $o-account-initial-line-background; } tfoot td { color: #bbb; @@ -182,7 +174,7 @@ $infoColor: #44c; td { padding-top: 10px; text-align: center; - color: $infoColor; + color: $o-account-info-color; } } @@ -231,7 +223,7 @@ $infoColor: #44c; content: "\f067"; } .match_controls { - padding: 0 0 5px ($actionColWidth+$mainTableBordersPadding); + padding: 0 0 5px ($o-account-action-col-width+$o-account-main-table-borders-padding); .filter { width: 240px; @@ -254,7 +246,7 @@ $infoColor: #44c; } .show_more { display: inline-block; - margin-left: ($actionColWidth+$mainTableBordersPadding); + margin-left: ($o-account-action-col-width+$o-account-main-table-borders-padding); margin-top: 5px; } } @@ -262,7 +254,7 @@ $infoColor: #44c; /* Create view */ .create { > div { - margin: 0 $actionColWidth; + margin: 0 $o-account-action-col-width; padding: 10px; overflow: auto; border: 1px solid #ddd; @@ -294,7 +286,7 @@ $infoColor: #44c; .add_line_container { text-align: center; clear: both; - color: $infoColor; + color: $o-account-info-color; cursor: pointer; } } diff --git a/addons/account/static/src/scss/variables.scss b/addons/account/static/src/scss/variables.scss new file mode 100644 index 00000000000..b83890b01a1 --- /dev/null +++ b/addons/account/static/src/scss/variables.scss @@ -0,0 +1,5 @@ +$o-account-action-col-width: 15px !default; +$o-account-main-table-borders-padding: 3px !default; +$o-account-light-border: 1px solid #bbb !default; +$o-account-initial-line-background: #f0f0f0 !default; +$o-account-info-color: #44c !default; diff --git a/addons/account/views/account.xml b/addons/account/views/account.xml index 45ca15f14bd..d8153c82871 100644 --- a/addons/account/views/account.xml +++ b/addons/account/views/account.xml @@ -1,5 +1,11 @@ + +