summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss
diff options
context:
space:
mode:
authorMathieu Duckerts-Antoine <dam@odoo.com>2018-07-06 17:08:52 +0200
committerMathieu Duckerts-Antoine <dam@odoo.com>2018-08-14 12:30:51 +0200
commit333ac27cd5c23e3e1a4f7d78828f28a2c844f8f4 (patch)
tree763baedd55af4c60c73eb112940ae660bca37241 /addons/web/static/src/scss
parent3523694b6cdce621585893100c7cfbe9495c9eff (diff)
[IMP] web: new TimeRangeMenu widget in search view
This commit introduces a new widget 'TimeRangeMenu' used in the search view. It allows a user to easily: - search data with a given date or datetime field value in a specified period of time - compare the data of interest with data of the previous period or the previous year. The time range menu is available in the search view when one of the four following view types is instantiated: graph, pivot, cohort, or dashboard. Task Id: 1835644
Diffstat (limited to 'addons/web/static/src/scss')
-rw-r--r--addons/web/static/src/scss/dropdown_menu.scss1
-rw-r--r--addons/web/static/src/scss/search_view.scss15
2 files changed, 12 insertions, 4 deletions
diff --git a/addons/web/static/src/scss/dropdown_menu.scss b/addons/web/static/src/scss/dropdown_menu.scss
index 8f11ba7c0a1..0ff7fd7f561 100644
--- a/addons/web/static/src/scss/dropdown_menu.scss
+++ b/addons/web/static/src/scss/dropdown_menu.scss
@@ -3,6 +3,7 @@
display: none;
}
+ min-width: 150px;
max-height: calc(100vh - 125px); // FIXME
overflow: auto;
diff --git a/addons/web/static/src/scss/search_view.scss b/addons/web/static/src/scss/search_view.scss
index fc1d84d8247..d5149134304 100644
--- a/addons/web/static/src/scss/search_view.scss
+++ b/addons/web/static/src/scss/search_view.scss
@@ -142,11 +142,13 @@
}
}
-// Filters
-.o_filters_menu {
+.o_filters_menu, .o_group_by_menu, .o_time_range_menu {
max-height: calc(100vh - 125px);
overflow: auto;
+}
+// Filters
+.o_filters_menu {
.o_filter_condition {
@include o-search-options-dropdown-custom-item;
margin-bottom: 8px;
@@ -182,8 +184,6 @@
}
}
-
-
// Favorites
.o_favorites_menu {
max-height: 75vh;
@@ -211,3 +211,10 @@
@include o-search-options-dropdown-custom-item;
}
}
+
+// Time Ranges
+.o_time_range_menu {
+ .dropdown-item-text > label, .custom-control-label {
+ font-weight: bold;
+ }
+}