合并企业版代码(未测试,先提交到测试分支)
This commit is contained in:
160
web_enterprise/static/src/scss/bootstrap_overridden.dark.scss
vendored
Normal file
160
web_enterprise/static/src/scss/bootstrap_overridden.dark.scss
vendored
Normal file
@@ -0,0 +1,160 @@
|
||||
///
|
||||
/// This file is a copy of the bootstrap _variables.scss file where all the
|
||||
/// left-untouched variables definition have been removed.
|
||||
///
|
||||
|
||||
|
||||
// == Color system
|
||||
|
||||
|
||||
// == Characters which are escaped by the escape-svg function
|
||||
|
||||
|
||||
// == Options
|
||||
|
||||
|
||||
// == Prefix for :root CSS variables
|
||||
|
||||
|
||||
// == Gradient
|
||||
|
||||
|
||||
// == Spacing
|
||||
|
||||
|
||||
// == Position
|
||||
|
||||
|
||||
// == Body
|
||||
|
||||
|
||||
// == Links
|
||||
$link-shade-percentage: 40% !default;
|
||||
|
||||
// == Paragraphs
|
||||
|
||||
|
||||
// == Grid breakpoints
|
||||
|
||||
|
||||
// == Grid containers
|
||||
|
||||
|
||||
// == Grid columns
|
||||
|
||||
|
||||
// == Components
|
||||
$box-shadow: 0 .5rem 1rem rgba($o-white, .3) !default;
|
||||
$box-shadow-sm: 0 .125rem .25rem rgba($o-white, .15) !default;
|
||||
$box-shadow-lg: 0 1rem 3rem rgba($o-white, .3) !default;
|
||||
$box-shadow-inset: inset 0 1px 2px rgba($o-white, .15) !default;
|
||||
|
||||
$component-active-bg: $o-gray-300 !default;
|
||||
|
||||
|
||||
// == Typography
|
||||
|
||||
|
||||
// == Tables
|
||||
$table-bg: $o-view-background-color !default;
|
||||
$table-border-color: $o-gray-300 !default;
|
||||
$table-group-separator-color: $o-gray-300 !default;
|
||||
$table-bg-scale: -70% !default;
|
||||
|
||||
// == Buttons + Forms
|
||||
|
||||
|
||||
// == Buttons
|
||||
|
||||
|
||||
// == Forms
|
||||
$input-placeholder-color: $o-gray-500 !default;
|
||||
|
||||
$form-switch-color: rgba($o-black, .5) !default !default;
|
||||
|
||||
// == Form validation
|
||||
|
||||
|
||||
// == Z-index master list
|
||||
|
||||
|
||||
// == Navs
|
||||
|
||||
|
||||
// == Navbar
|
||||
|
||||
|
||||
// == Dropdowns
|
||||
$dropdown-bg: $o-gray-300 !default;
|
||||
|
||||
|
||||
// == Pagination
|
||||
|
||||
|
||||
// == Placeholders
|
||||
|
||||
|
||||
// == Cards
|
||||
$card-cap-bg: $o-view-background-color !default;
|
||||
$card-bg: $card-cap-bg !default;
|
||||
|
||||
// == Accordion
|
||||
|
||||
|
||||
// == Tooltips
|
||||
|
||||
|
||||
// == Form tooltips must come after regular tooltips
|
||||
|
||||
|
||||
// == Popovers
|
||||
$popover-bg: $o-gray-300 !default;
|
||||
|
||||
// == Toasts
|
||||
|
||||
|
||||
// == Badges
|
||||
|
||||
|
||||
// == Modals
|
||||
|
||||
|
||||
// == Alerts
|
||||
$alert-bg-scale: -75% !default;
|
||||
$alert-border-scale: 0% !default;
|
||||
$alert-color-scale: 90% !default;
|
||||
|
||||
// == Progress bars
|
||||
|
||||
|
||||
// == List group
|
||||
$list-group-bg: $o-view-background-color !default;
|
||||
|
||||
|
||||
// == Image thumbnails
|
||||
|
||||
|
||||
// == Figures
|
||||
|
||||
|
||||
// == Breadcrumbs
|
||||
|
||||
|
||||
// == Carousel
|
||||
|
||||
|
||||
// == Spinners
|
||||
|
||||
|
||||
// == Close
|
||||
|
||||
|
||||
// == Offcanvas
|
||||
|
||||
|
||||
// == Code
|
||||
|
||||
// == Keyboard Input
|
||||
$kbd-color: $o-gray-200 !default;
|
||||
$kbd-bg: $o-gray-900 !default;
|
||||
$kbd-box-shadow: 0px 1px 1px rgba($o-white, 0.2), inset 0px -1px 1px 1px rgba($o-gray-800, 0.8), inset 0px 2px 0px 0px rgba($o-black, 0.8) !default;
|
||||
144
web_enterprise/static/src/scss/bootstrap_overridden.scss
vendored
Normal file
144
web_enterprise/static/src/scss/bootstrap_overridden.scss
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
///
|
||||
/// This file is a copy of the bootstrap _variables.scss file where all the
|
||||
/// left-untouched variables definition have been removed.
|
||||
///
|
||||
|
||||
//
|
||||
// Color system
|
||||
//
|
||||
|
||||
$secondary: $o-gray-700 !default;
|
||||
$dark: $o-gray-900 !default;
|
||||
|
||||
|
||||
// Options
|
||||
|
||||
// Enable predefined decorative box-shadow styles on various components.
|
||||
// Does not affect box-shadows used for focus states.
|
||||
|
||||
$enable-shadows: true !default;
|
||||
|
||||
// Components
|
||||
//
|
||||
// Define common padding and border radius sizes and more.
|
||||
|
||||
$btn-border-radius: 0 !default;
|
||||
$btn-border-radius-sm: 0 !default;
|
||||
$btn-border-radius-lg: 0 !default;
|
||||
$input-border-radius: 0 !default;
|
||||
$input-border-radius-sm: 0 !default;
|
||||
$input-border-radius-lg: 0 !default;
|
||||
$nav-tabs-border-radius: 0 !default;
|
||||
$nav-pills-border-radius: 0 !default;
|
||||
$dropdown-border-radius: 0 !default;
|
||||
$pagination-border-radius: 0 !default;
|
||||
$pagination-border-radius-sm: 0 !default;
|
||||
$pagination-border-radius-lg: 0 !default;
|
||||
$card-border-radius: 0 !default;
|
||||
$accordion-border-radius: 0 !default;
|
||||
$tooltip-border-radius: 0 !default;
|
||||
$popover-border-radius: 0 !default;
|
||||
$toast-border-radius: 0 !default;
|
||||
$badge-border-radius: 0 !default;
|
||||
$modal-content-border-radius: 0 !default;
|
||||
$alert-border-radius: 0 !default;
|
||||
$progress-border-radius: 0 !default;
|
||||
$list-group-border-radius: 0 !default;
|
||||
$thumbnail-border-radius: 0 !default;
|
||||
$form-check-input-border-radius: 0 !default;
|
||||
|
||||
// Typography
|
||||
//
|
||||
// Font, line-height, and color for body text, headings, and more.
|
||||
|
||||
$h1-font-size: $o-font-size-base * 2.4 !default;
|
||||
$h2-font-size: $o-font-size-base * 1.5 !default;
|
||||
$h3-font-size: $o-font-size-base * 1.3 !default;
|
||||
$h4-font-size: $o-font-size-base * 1.2 !default;
|
||||
$h5-font-size: $o-font-size-base * 1.1 !default;
|
||||
|
||||
// Tables
|
||||
//
|
||||
// Customizes the `.table` component with basic values, each used across all table variations.
|
||||
|
||||
$table-striped-bg-factor: 0.01 !default;
|
||||
$table-striped-order: odd !default;
|
||||
|
||||
// Buttons
|
||||
//
|
||||
// For each of Bootstrap's buttons, define text, background, and border color.
|
||||
|
||||
$btn-transition: none !default;
|
||||
|
||||
$btn-box-shadow: 0 !default;
|
||||
$btn-active-box-shadow: 0 !default;
|
||||
|
||||
// Dropdowns
|
||||
//
|
||||
// Dropdown menu container and contents.
|
||||
|
||||
$dropdown-divider-bg: $o-gray-200 !default;
|
||||
|
||||
// Forms
|
||||
//
|
||||
|
||||
$input-bg: transparent !default;
|
||||
$input-box-shadow: 0 !default;
|
||||
|
||||
$form-switch-checked-color: $o-white !default;
|
||||
|
||||
// Will affect bootstrap default forms only (eg. popover textarea)
|
||||
$input-focus-box-shadow: 0 !default;
|
||||
$input-focus-border-color: mix($o-brand-primary, $o-gray-300) !default;
|
||||
|
||||
$form-select-focus-box-shadow: 0 !default;
|
||||
|
||||
$form-range-track-box-shadow: 0 !default;
|
||||
|
||||
$custom-checkbox-indicator-border-radius: 1px !default; // Just a slight smoothing.
|
||||
|
||||
// Z-index master list
|
||||
//
|
||||
// Change the z-index of the modal-backdrop elements to be equal to the
|
||||
// modal elements' ones. Bootstrap does not support multi-modals, and without
|
||||
// this rule all the modal-backdrops are below all the opened modals.
|
||||
// Indeed, bootstrap forces them to a lower z-index as the modal-backdrop
|
||||
// element (unique in their supported cases) might be put after the modal
|
||||
// element (if the modal is already in the DOM, hidden, then opened). This
|
||||
// cannot happen in odoo though as modals are not hidden but removed from
|
||||
// the DOM and are always put at the end of the body when opened.
|
||||
//
|
||||
// TODO the following code was disabled because it is saas-incompatible
|
||||
//
|
||||
// $zindex-modal-backdrop: $zindex-modal;
|
||||
|
||||
// Navs
|
||||
$nav-link-color: $o-main-text-color !default;
|
||||
$nav-tabs-link-active-color: $o-main-headings-color !default;
|
||||
$nav-tabs-link-active-bg: transparent !default;
|
||||
|
||||
|
||||
// Badges
|
||||
|
||||
$badge-border-radius: $o-border-radius !default;
|
||||
|
||||
// Alerts
|
||||
//
|
||||
// Define alert colors, border radius, and padding.
|
||||
|
||||
$alert-border-width: 0 !default;
|
||||
|
||||
// Progress bars
|
||||
|
||||
$progress-box-shadow: 0 !default;
|
||||
|
||||
|
||||
// Image thumbnails
|
||||
|
||||
$thumbnail-box-shadow: 0 !default;
|
||||
|
||||
|
||||
// Breadcrumbs
|
||||
|
||||
$breadcrumb-active-color: $o-main-text-color !default;
|
||||
$breadcrumb-divider-color: $o-main-color-muted !default;
|
||||
@@ -0,0 +1,14 @@
|
||||
///
|
||||
/// This file is a copy of the bootstrap _functions.scss file where all the
|
||||
/// left-untouched function definition have been removed.
|
||||
///
|
||||
|
||||
// Tint a color: mix a color with black
|
||||
@function tint-color($color, $weight) {
|
||||
@return mix(#000, $color, $weight);
|
||||
}
|
||||
|
||||
// Shade a color: mix a color with white
|
||||
@function shade-color($color, $weight) {
|
||||
@return mix(#FFF, $color, $weight);
|
||||
}
|
||||
84
web_enterprise/static/src/scss/primary_variables.dark.scss
Normal file
84
web_enterprise/static/src/scss/primary_variables.dark.scss
Normal file
@@ -0,0 +1,84 @@
|
||||
///
|
||||
/// Odoo Dark-Mode
|
||||
///
|
||||
///
|
||||
|
||||
// = Colors
|
||||
// ============================================================================
|
||||
|
||||
$o-white: #000 !default;
|
||||
$o-black: #FFF !default;
|
||||
|
||||
// Dark mode
|
||||
$o-gray-100: #191c24 !default;
|
||||
$o-gray-200: #242733 !default;
|
||||
$o-gray-300: #3f4149 !default;
|
||||
$o-gray-400: #5f6167 !default;
|
||||
$o-gray-500: #797a80 !default;
|
||||
$o-gray-600: #94959a !default;
|
||||
$o-gray-700: #b0b0b4 !default;
|
||||
$o-gray-800: #cccccf !default;
|
||||
$o-gray-900: #e9e9eb !default;
|
||||
|
||||
$o-enterprise-color: #BB86FC !default;
|
||||
$o-brand-primary: #00DAC5 !default;
|
||||
|
||||
$o-success: #28a745 !default;
|
||||
$o-info: #74dcf3 !default;
|
||||
$o-warning: #ff7b00 !default;
|
||||
$o-danger: #ff0020 !default;
|
||||
|
||||
|
||||
// = Text
|
||||
// ============================================================================
|
||||
|
||||
$o-main-text-color: $o-gray-800 !default;
|
||||
$o-main-link-color: $o-brand-primary !default;
|
||||
$o-enterprise-color: $o-brand-odoo !default;
|
||||
$o-main-favorite-color: #f3cc00 !default;
|
||||
$o-main-code-color: #ff7dd9 !default;
|
||||
|
||||
|
||||
// = Fine-tune contextual text colors.
|
||||
$o-theme-text-colors: (
|
||||
"success": #03E02A,
|
||||
"info": #00C4FD,
|
||||
"warning": #FFB100,
|
||||
"danger": #FF4842,
|
||||
"odoo": #c392ff,
|
||||
) !default;
|
||||
|
||||
// = Webclient
|
||||
// ============================================================================
|
||||
$o-webclient-color-scheme: dark !default;
|
||||
$o-webclient-background-color: $o-gray-100 !default;
|
||||
$o-view-background-color: $o-gray-200 !default;
|
||||
|
||||
// = Inputs
|
||||
$o-input-border-required: $o-black !default;
|
||||
|
||||
// = Button Secondary
|
||||
$o-btn-secondary-bg: $o-view-background-color !default;
|
||||
$o-btn-secondary-hover-bg: $o-gray-100 !default;
|
||||
$o-btn-secondary-hover-border: $o-btn-secondary-hover-bg !default;
|
||||
|
||||
|
||||
// = Button Light
|
||||
$o-btn-light-bg: $o-gray-200 !default;
|
||||
$o-btn-light-background-hover: $o-gray-300 !default;
|
||||
|
||||
|
||||
// = Components
|
||||
// ============================================================================
|
||||
|
||||
// = List-group
|
||||
$o-list-group-active-color: $o-gray-900 !default;
|
||||
$o-list-group-active-bg: rgba(saturate(adjust-hue($o-info, 15), 1.8), .5) !default;
|
||||
|
||||
// = Navbar
|
||||
$o-navbar-bg: $o-gray-200 !default;
|
||||
$-backend-entry-hover-bg: $o-gray-100 !default; // <- TO DO: use a general variable rather than a scoped one
|
||||
|
||||
// = Modal
|
||||
$modal-content-bg: $o-view-background-color !default;
|
||||
$modal-backdrop-bg: $o-white !default;
|
||||
43
web_enterprise/static/src/scss/primary_variables.scss
Normal file
43
web_enterprise/static/src/scss/primary_variables.scss
Normal file
@@ -0,0 +1,43 @@
|
||||
///
|
||||
/// This file regroups the variables that style odoo components.
|
||||
/// They are available in every asset bundle.
|
||||
///
|
||||
|
||||
// Colors
|
||||
$o-white: #FFF !default;
|
||||
$o-black: #000 !default;
|
||||
|
||||
$o-gray-100: #f6f7fa !default;
|
||||
$o-gray-200: #E0E2E6 !default;
|
||||
$o-gray-300: #C9CCD2 !default;
|
||||
$o-gray-400: #9DA1AA !default;
|
||||
$o-gray-500: #80848F !default;
|
||||
$o-gray-600: #626774 !default;
|
||||
$o-gray-700: #4A4F59 !default;
|
||||
$o-gray-800: #353840 !default;
|
||||
$o-gray-900: #212529 !default;
|
||||
|
||||
$o-enterprise-color: #714B67 !default;
|
||||
$o-enterprise-primary-color: #017e84 !default;
|
||||
$o-enterprise-primary-color-light: scale-color($o-enterprise-primary-color, $lightness: 6%) !default;
|
||||
|
||||
$o-brand-odoo: $o-enterprise-color !default;
|
||||
$o-brand-primary: $o-enterprise-primary-color !default;
|
||||
$o-brand-secondary: #8f8f8f !default;
|
||||
$o-brand-lightsecondary: $o-gray-100 !default;
|
||||
|
||||
$o-list-group-header-color: $o-gray-900 !default;
|
||||
$o-list-footer-color: $o-gray-900 !default;
|
||||
$o-list-footer-bg-color: $o-white !default;
|
||||
$o-list-footer-font-weight: 500 !default;
|
||||
|
||||
$o-dropdown-box-shadow: 0 12px 14px -10px rgba(black, 0.25) !default;
|
||||
|
||||
// o-inputs
|
||||
$o-input-padding-y: 1px !default;
|
||||
$o-input-padding-x: 0 !default;
|
||||
|
||||
$o-input-border-required: $o-gray-900 !default;
|
||||
|
||||
// Badges
|
||||
$o-badge-min-width: 2.7ch !default !default;
|
||||
26
web_enterprise/static/src/scss/secondary_variables.dark.scss
Normal file
26
web_enterprise/static/src/scss/secondary_variables.dark.scss
Normal file
@@ -0,0 +1,26 @@
|
||||
$o-colors-original: lighten(#000, 46.7%), #F06050, #F4A460, #F7CD1F, #6CC1ED, #814968,
|
||||
#EB7E7F, #2C8397, #475577, #D6145F, #30C381, #9365B8 !default;
|
||||
|
||||
$o-colors-secondary-original: #aa4b6b, #30C381, #97743a, #F7CD1F, #4285F4, #8E24AA,
|
||||
#D6145F, #173e43, #348F50, #AA3A38, #795548, #5e0231,
|
||||
#6be585, #999966, #e9d362, #b56969, #bdc3c7, #649173 !default;
|
||||
|
||||
$o-colors: ()!default;
|
||||
$o-colors-secondary: ()!default;
|
||||
$o-colors-complete-first: saturate(mix(#134E5E , $o-black, 70%), 80%) !default;
|
||||
|
||||
@each $-color in $o-colors-secondary-original {
|
||||
$-adjusted: saturate(mix($-color, $o-black, 70%), 80%);
|
||||
$o-colors: append($o-colors, $-adjusted);
|
||||
}
|
||||
|
||||
@each $-color in $o-colors-secondary-original {
|
||||
$-adjusted: saturate(mix($-color, $o-black, 70%), 80%);
|
||||
$o-colors-secondary: append($o-colors-secondary, $-adjusted);
|
||||
}
|
||||
|
||||
// = ControlPanel
|
||||
// TODO: move in 'control_panel.variables.scss' when it will exist
|
||||
// in bright-mode
|
||||
// ============================================================================
|
||||
$o-control-panel-background-color: $o-gray-200 !default;
|
||||
11
web_enterprise/static/src/scss/secondary_variables.scss
Normal file
11
web_enterprise/static/src/scss/secondary_variables.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
$o-form-lightsecondary: $o-gray-200 !default;
|
||||
|
||||
$o-tooltip-background-color: $o-view-background-color !default;
|
||||
$o-tooltip-color: $o-main-text-color !default;
|
||||
$o-tooltip-arrow-color: $o-main-text-color !default;
|
||||
|
||||
// Needed for having no spacing between sheet and mail body in mass_mailing:
|
||||
// Different required cancel paddings between web and web_enterprise
|
||||
$o-sheet-cancel-tpadding: $o-horizontal-padding !default;
|
||||
$o-sheet-cancel-bpadding: $o-horizontal-padding + $o-sheet-vpadding !default;
|
||||
Reference in New Issue
Block a user