init common and customize

This commit is contained in:
Ivan Office
2024-08-19 18:41:50 +08:00
parent 6f068e6c27
commit 7025bb9611
354 changed files with 14557 additions and 0 deletions

View File

@@ -0,0 +1,87 @@
.o_user_menu .dropdown-menu img,
.o_user_menu_mobile .dropdown-item img {
height: 20px;
margin: 2px;
}
.oe_form_configuration {
.o_settings_container {
span {
display:inline-block;
}
}
}
.o_web_client {
.breadcrumb-item + .breadcrumb-item::before {
content: '/';
}
}
// navbar在下方的特殊处理
.o_web_client.navbar_pos_bottom {
@media (max-width: 768px) {
--o-navbar-height: 80px;
}
flex-direction: column-reverse!important;
.o_navbar {
display: block;
.o_main_navbar {
@media (max-width: 768px) {
--o-navbar-height: 80px;
padding: 0 var(--o-navbar-height);
}
button.o_mobile_menu_toggle, .o_menu_systray .o_debug_manager .dropdown-toggle {
font-size: 2em;
}
// toggle处理
.dropdown .dropdown-toggle::after {
border-top: 0;
border-bottom: 4px solid;
}
}
}
//message
.o_MessagingMenu_dropdownMenu:not(.o-isDeviceSmall) {
bottom: var(--o-navbar-height) ;
top: auto;
}
.o_MessagingMenu_dropdownMenu.o-isDeviceSmall {
bottom: var(--o-navbar-height)+6!important; ;
height: calc(100% - var(--o-navbar-height));
top: 0;
}
//Activity
.o_ActivityMenuView_dropdownMenu {
bottom: var(--o-navbar-height);
top: auto;
}
//homeMenu
.o_home_menu {
.container, .o_container_small, .container-fluid, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm {
//bottom: 60px;
}
}
//userMenu
.o_burger_menu {
width: 80%;
.o_burger_menu_topbar {
height: var(--o-navbar-height);
}
&.flex-column {
flex-direction: column-reverse!important;
}
.oi:before, .fa:before, .dropdown-toggle {
font-size: 2em;
line-height: var(--o-navbar-height);
}
}
}
// Colors replace to ent
//$o-community-color: #875A7B;

View File

@@ -0,0 +1,23 @@
.modal {
.modal-content {
.modal-header.ui-draggable-handle {
cursor: move;
}
}
.modal-dialog_full_screen {
@include media-breakpoint-up(sm) {
max-width: 100%;
width: calc(100% - 50px);
}
}
.dialog_button_restore,
.dialog_button_extend {
margin-left: auto;
+ .btn-close {
margin: -8px -8px -8px 0px;
}
}
}

View File

@@ -0,0 +1,35 @@
/* Copyright 2015 Francesco OpenCode Apruzzese <cescoap@gmail.com>
Copyright 2017 Thomas Binsfeld <thomas.binsfeld@acsone.eu>
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
.test-ribbon {
width: 300px;
top: 25px;
right: -100px;
text-align: center;
padding: 10px;
line-height: 20px;
letter-spacing: 1px;
color: #f0f0f0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
z-index: 9999;
position: fixed;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
background: rgba(255, 0, 0, 0.5);
pointer-events: none;
}
.test-ribbon b {
font-size: 20px;
}
header:hover ~ .test-ribbon,
nav:hover ~ .test-ribbon {
/* Ease out ribbon when user is using the navigation in Odoo */
opacity: 0;
transition: 0.2s ease;
}