Lois Rilo
6 years ago
10 changed files with 211 additions and 162 deletions
-
4base_tier_validation/models/tier_definition.py
-
7base_tier_validation/models/tier_validation.py
-
52base_tier_validation/static/src/js/systray.js
-
113base_tier_validation/static/src/less/systray.less
-
0base_tier_validation/static/src/scss/review.scss
-
141base_tier_validation/static/src/scss/systray.scss
-
42base_tier_validation/static/src/xml/systray.xml
-
2base_tier_validation/static/src/xml/tier_review_template.xml
-
4base_tier_validation/views/assets_backend.xml
@ -1,113 +0,0 @@ |
|||
// Navbar icon and dropdown |
|||
.o_tier_navbar_item { |
|||
> a { |
|||
opacity: 1; |
|||
> i { |
|||
font-size: larger; |
|||
} |
|||
} |
|||
&.o_no_notification > a { |
|||
opacity: 0.5; |
|||
> i { |
|||
.o-transform(translateY(0px)); |
|||
} |
|||
.o_notification_counter { |
|||
display: none; |
|||
} |
|||
} |
|||
&.open .o_tier_navbar_dropdown { |
|||
.o-flex-display(); |
|||
.o-flex-flow(column, nowrap); |
|||
} |
|||
.o_notification_counter { |
|||
.o-position-absolute(@top: 20%, @right: 1px); |
|||
background: @odoo-brand-optional; |
|||
color: white; |
|||
padding: 0em 0.3em; |
|||
font-size: 0.7em; |
|||
} |
|||
.o_tier_navbar_dropdown { |
|||
width: 350px; |
|||
padding: 0; |
|||
|
|||
.o_spinner { |
|||
.o-flex-display(); |
|||
.o-align-items(center); |
|||
.o-justify-content(center); |
|||
color: @odoo-main-text-color; |
|||
height: 50px; |
|||
} |
|||
|
|||
.o_tier_navbar_dropdown_channels { |
|||
.o-flex(0, 1, auto); |
|||
max-height: 400px; |
|||
min-height: 50px; |
|||
overflow-y: auto; |
|||
|
|||
@media (min-width: @screen-sm-min) { |
|||
.o_tier_channel_preview { |
|||
height: 50px; |
|||
padding: 5px; |
|||
.o_tier_channel_image { |
|||
width: 40px; |
|||
} |
|||
.o_channel_info { |
|||
margin-left: 10px; |
|||
.o_channel_title { |
|||
.o_last_message_date { |
|||
padding-top: 2px; |
|||
font-size: x-small; |
|||
margin-left: 10px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
.o_no_review { |
|||
cursor: initial; |
|||
.o-align-items(center); |
|||
color: grey; |
|||
opacity: 0.5; |
|||
padding: 3px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.o_no_chat_window .o_tier_navbar_dropdown .o_new_message { |
|||
display: none; // hide 'new message' button if chat windows are disabled |
|||
} |
|||
|
|||
// Mobile rules |
|||
// Goal: mock the design of Discuss in mobile |
|||
@media (max-width: @screen-xs-max) { |
|||
.o_tier_navbar_item { |
|||
.o_notification_counter { |
|||
top: 10%; |
|||
} |
|||
.o_tier_navbar_dropdown { |
|||
position: relative; |
|||
.o_tier_navbar_dropdown_top { |
|||
padding: 5px; |
|||
} |
|||
.o_tier_navbar_mobile_header { |
|||
padding: 5px; |
|||
height: 44px; |
|||
border-bottom: 1px solid #ebebeb; |
|||
box-shadow: 0 0 2px @gray-lighter-darker; |
|||
} |
|||
.o_tier_navbar_dropdown_channels { |
|||
max-height: none; |
|||
padding-bottom: 52px; // leave space for tabs |
|||
} |
|||
.o_tier_mobile_tabs { |
|||
position: fixed; |
|||
bottom: 0px; |
|||
left: 0px; |
|||
right: 0px; |
|||
background-color: white; |
|||
color: @odoo-main-text-color; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,141 @@ |
|||
// Navbar icon and dropdown |
|||
.o_tier_navbar_item { |
|||
> a { |
|||
opacity: 1; |
|||
> i { |
|||
font-size: larger; |
|||
} |
|||
} |
|||
&.o_no_notification > a { |
|||
opacity: 0.5; |
|||
> i { |
|||
transform: translateY(0px); |
|||
} |
|||
.o_notification_counter { |
|||
display: none; |
|||
} |
|||
} |
|||
&.show .o_tier_systray_dropdown { |
|||
display: flex; |
|||
flex-flow: column nowrap; |
|||
} |
|||
.o_notification_counter { |
|||
margin-top: -0.8rem; |
|||
margin-right: 0; |
|||
margin-left: -0.6rem; |
|||
background: #00A09D; |
|||
color: white; |
|||
vertical-align: super; |
|||
font-size: 0.7em; |
|||
} |
|||
.o_tier_systray_dropdown { |
|||
direction: ltr; |
|||
width: 350px; |
|||
padding: 0; |
|||
|
|||
.o_spinner { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
color: $o-main-text-color; |
|||
height: 50px; |
|||
} |
|||
|
|||
.o_tier_systray_dropdown_top { |
|||
display: flex; |
|||
flex: 0 0 auto; |
|||
justify-content: space-between; |
|||
border-bottom: 1px solid gray('400'); |
|||
box-shadow: 0 0 2px gray('400'); |
|||
.o_filter_button, .o_new_message { |
|||
padding: 5px; |
|||
} |
|||
.o_filter_button { |
|||
color: $o-main-color-muted; |
|||
&:hover, &.active { |
|||
color: $o-brand-primary; |
|||
} |
|||
&.active { |
|||
cursor: default; |
|||
font-weight: bold; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.o_tier_systray_dropdown_items { |
|||
flex: 0 1 auto; |
|||
max-height: 400px; |
|||
min-height: 50px; |
|||
overflow-y: auto; |
|||
|
|||
@include media-breakpoint-up(md) { |
|||
.o_tier_preview { |
|||
min-height: 50px; |
|||
padding: 5px; |
|||
.o_tier_preview_image { |
|||
width: 40px; |
|||
height: 40px; |
|||
} |
|||
.o_preview_info { |
|||
margin-left: 10px; |
|||
.o_preview_title { |
|||
.o_last_message_date { |
|||
padding-top: 2px; |
|||
font-size: x-small; |
|||
margin-left: 10px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
.o_activity_filter_button { |
|||
padding: 2px; |
|||
} |
|||
.o_no_activity { |
|||
cursor: initial; |
|||
align-items: center; |
|||
color: grey; |
|||
opacity: 0.5; |
|||
padding: 3px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.o_no_thread_window .o_tier_systray_dropdown .o_new_message { |
|||
display: none; // hide 'new message' button if chat windows are disabled |
|||
} |
|||
|
|||
// Mobile rules |
|||
// Goal: mock the design of Discuss in mobile |
|||
@include media-breakpoint-down(sm) { |
|||
.o_tier_systray_item { |
|||
.o_notification_counter { |
|||
top: 10%; |
|||
} |
|||
.o_tier_systray_dropdown { |
|||
position: relative; |
|||
.o_tier_systray_dropdown_top { |
|||
padding: 5px; |
|||
} |
|||
.o_tier_systray_mobile_header { |
|||
padding: 5px; |
|||
height: 44px; |
|||
border-bottom: 1px solid #ebebeb; |
|||
box-shadow: 0 0 2px gray('400'); |
|||
} |
|||
.o_tier_systray_dropdown_items { |
|||
max-height: none; |
|||
padding-bottom: 52px; // leave space for tabs |
|||
} |
|||
.o_tier_mobile_tabs { |
|||
position: fixed; |
|||
bottom: 0px; |
|||
left: 0px; |
|||
right: 0px; |
|||
background-color: white; |
|||
color: $o-main-text-color; |
|||
} |
|||
} |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue