Browse Source

publish muk_web_theme - 12.0

pull/35/head
MuK IT GmbH 6 years ago
parent
commit
b9e78f58ed
  1. 2
      muk_web_theme/__manifest__.py
  2. 61
      muk_web_theme/static/libs/jquery-bootstrap-scrolling-tabs/jquery-bootstrap-scrolling-tabs.css
  3. 1963
      muk_web_theme/static/libs/jquery-bootstrap-scrolling-tabs/jquery-bootstrap-scrolling-tabs.js
  4. 4
      muk_web_theme/static/src/js/views/form_renderer.js
  5. 260
      muk_web_theme/static/src/scss/form_view.scss
  6. 2
      muk_web_theme/template/assets.xml

2
muk_web_theme/__manifest__.py

@ -20,7 +20,7 @@
{
"name": "MuK Backend Theme",
"summary": "Odoo 12.0 community backend theme",
"version": "12.0.1.1.2",
"version": "12.0.1.1.3",
"category": "Themes/Backend",
"license": "AGPL-3",
"author": "MuK IT",

61
muk_web_theme/static/libs/jquery-bootstrap-scrolling-tabs/jquery-bootstrap-scrolling-tabs.css

@ -1,61 +0,0 @@
/**
* jquery-bootstrap-scrolling-tabs
* @version v2.4.0
* @link https://github.com/mikejacobson/jquery-bootstrap-scrolling-tabs
* @author Mike Jacobson <michaeljjacobson1@gmail.com>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
.scrtabs-tab-container * {
box-sizing: border-box; }
.scrtabs-tab-container {
height: 42px; }
.scrtabs-tab-container .tab-content {
clear: left; }
.scrtabs-tab-container.scrtabs-bootstrap4 .scrtabs-tabs-movable-container > .navbar-nav {
-ms-flex-direction: row;
flex-direction: row; }
.scrtabs-tabs-fixed-container {
float: left;
height: 42px;
overflow: hidden;
width: 100%; }
.scrtabs-tabs-movable-container {
position: relative; }
.scrtabs-tabs-movable-container .tab-content {
display: none; }
.scrtabs-tab-container.scrtabs-rtl .scrtabs-tabs-movable-container > ul.nav-tabs {
padding-right: 0; }
.scrtabs-tab-scroll-arrow {
border: 1px solid #dddddd;
color: #428bca;
display: none;
float: left;
font-size: 12px;
padding: 0.55rem 0.5rem;
width: 20px; }
.scrtabs-tab-scroll-arrow:hover {
background-color: #eeeeee; }
.scrtabs-tab-scroll-arrow,
.scrtabs-tab-scroll-arrow .scrtabs-click-target {
cursor: pointer; }
.scrtabs-tab-scroll-arrow.scrtabs-with-click-target {
cursor: default; }
.scrtabs-tab-scroll-arrow.scrtabs-disable,
.scrtabs-tab-scroll-arrow.scrtabs-disable .scrtabs-click-target {
color: #ddd;
cursor: default; }
.scrtabs-tab-scroll-arrow.scrtabs-disable:hover {
background-color: initial; }
.scrtabs-tabs-fixed-container ul.nav-tabs > li {
white-space: nowrap; }

1963
muk_web_theme/static/libs/jquery-bootstrap-scrolling-tabs/jquery-bootstrap-scrolling-tabs.js
File diff suppressed because it is too large
View File

4
muk_web_theme/static/src/js/views/form_renderer.js

@ -40,10 +40,6 @@ FormRenderer.include({
}
return $buttons;
},
_updateView: function () {
this._super.apply(this, arguments);
this.$('.nav-tabs').scrollingTabs();
},
});
});

260
muk_web_theme/static/src/scss/form_view.scss

@ -1,123 +1,139 @@
/**********************************************************************************
*
* Copyright (C) 2017 MuK IT GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
**********************************************************************************/
.o_form_view {
.o_form_sheet_bg {
background: $o-webclient-background-color;
border-bottom: 1px solid gray('300');
> .o_form_sheet {
background-color: $o-view-background-color;
border: 1px solid gray('400');
box-shadow: 0 5px 20px -15px black;
max-width: calc(100% - #{$o-horizontal-padding*2});
}
.oe_button_box {
.btn.oe_stat_button > .o_button_icon {
color: $o-brand-odoo;
}
}
.o_notebook {
.table-responsive {
overflow-x: inherit;
}
}
}
@include media-breakpoint-down(sm) {
.o_form_sheet, .oe_chatter {
min-width: 100% !important;
max-width: 100% !important;
}
.o_group_col_6 {
width: 100%;
}
.o_statusbar_buttons_dropdown {
border: {
bottom: 0;
radius: 0;
top: 0;
}
height: 100%;
}
.o_statusbar_buttons > .btn {
border-radius: 0;
border: 0;
width: 100%;
margin-bottom: 0.2rem;
&:last-child {
margin-bottom: 0;
}
}
.o_statusbar_status {
.o_arrow_button:first-child::before {
content: none;
display: none;
}
}
.app_settings_block {
.row {
margin: 0;
}
}
}
@include media-breakpoint-down(xs) {
.oe_button_box {
float: none;
display: block;
text-align: right;
margin-top: -17px;
margin-bottom: $o-sheet-vpadding;
margin-left: -$o-horizontal-padding;
width: calc(100% + #{$o-horizontal-padding*2});
> .btn.oe_stat_button {
flex: 0 0 auto !important;
width: percentage(1/3) !important;
}
> .btn.o_button_more, > .o_dropdown_more {
flex: 0 0 auto !important;
width: calc(#{percentage(1/3)} + 3px) !important;
}
&, & + .oe_avatar {
+ .oe_title {
width: 100%;
}
}
}
}
}
.mk_chatter_position_sided {
@include media-breakpoint-up(xl) {
.o_form_view:not(.o_form_nosheet) {
display: flex;
flex-flow: row nowrap;
height: 100%;
.o_form_sheet_bg {
flex: 1 1 65%;
overflow: auto;
}
.o_chatter {
border-left: 1px solid gray('400');
flex: 1 1 35%;
max-width: 40%;
min-width: 30%;
overflow: auto;
}
}
}
/**********************************************************************************
*
* Copyright (C) 2017 MuK IT GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
**********************************************************************************/
.o_form_view {
.o_form_sheet_bg {
background: $o-webclient-background-color;
border-bottom: 1px solid gray('300');
> .o_form_sheet {
background-color: $o-view-background-color;
border: 1px solid gray('400');
box-shadow: 0 5px 20px -15px black;
max-width: calc(100% - #{$o-horizontal-padding*2});
}
.oe_button_box {
.btn.oe_stat_button > .o_button_icon {
color: $o-brand-odoo;
}
.btn.oe_stat_button > .o_stat_info {
padding-right: 3px;
}
}
.o_notebook {
.nav-tabs {
overflow-x : auto;
overflow-y: hidden;
flex-flow: nowrap;
.nav-item {
white-space: nowrap;
}
}
.table-responsive {
overflow-x: inherit;
}
}
}
@include media-breakpoint-down(sm) {
.o_form_sheet, .oe_chatter {
min-width: 100% !important;
max-width: 100% !important;
}
.o_group_col_6 {
width: 100%;
}
.o_statusbar_buttons_dropdown {
border: {
bottom: 0;
radius: 0;
top: 0;
}
height: 100%;
}
.o_statusbar_buttons > .btn {
border-radius: 0;
border: 0;
width: 100%;
margin-bottom: 0.2rem;
&:last-child {
margin-bottom: 0;
}
}
.o_statusbar_status {
.o_arrow_button:first-child::before {
content: none;
display: none;
}
}
.app_settings_block {
.row {
margin: 0;
}
}
.o_notebook .nav-tabs {
&::-webkit-scrollbar {
display: none;
}
}
}
@include media-breakpoint-down(xs) {
.oe_button_box {
float: none;
display: block;
text-align: right;
margin-top: -17px;
margin-bottom: $o-sheet-vpadding;
margin-left: -$o-horizontal-padding;
width: calc(100% + #{$o-horizontal-padding*2});
> .btn.oe_stat_button {
flex: 0 0 auto !important;
width: percentage(1/3) !important;
}
> .btn.o_button_more, > .o_dropdown_more {
flex: 0 0 auto !important;
width: calc(#{percentage(1/3)} + 3px) !important;
}
&, & + .oe_avatar {
+ .oe_title {
width: 100%;
}
}
}
}
}
.mk_chatter_position_sided {
@include media-breakpoint-up(xl) {
.o_form_view:not(.o_form_nosheet) {
display: flex;
flex-flow: row nowrap;
height: 100%;
.o_form_sheet_bg {
flex: 1 1 65%;
overflow: auto;
}
.o_chatter {
border-left: 1px solid gray('400');
flex: 1 1 35%;
max-width: 40%;
min-width: 30%;
overflow: auto;
}
}
}
}

2
muk_web_theme/template/assets.xml

@ -49,11 +49,9 @@
<template id="assets_backend" name="Backend Assets" inherit_id="web.assets_backend">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/libs/simplebar/simplebar.css" />
<link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/libs/jquery-bootstrap-scrolling-tabs/jquery-bootstrap-scrolling-tabs.css" />
</xpath>
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/muk_web_theme/static/libs/simplebar/simplebar.js" />
<script type="text/javascript" src="/muk_web_theme/static/libs/jquery-bootstrap-scrolling-tabs/jquery-bootstrap-scrolling-tabs.js" />
</xpath>
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/mixins.scss"/>

Loading…
Cancel
Save