/// /// This file regroups the CSS rules made to fix/extend bootstrap in all places /// where it is used in Odoo (backend / frontend / reports / ...) /// .alert { // Alerts are block elements with relative positioning. // They would go over floating elements, which is never what we want. clear: both; } .accordion { .collapsing, .collapse.show { > .card-body:first-child { // Above background color would overflow on the card-header border // without this margin-top: $card-border-width; } } } .toast-header { background-clip: border-box; } // Modify modals so that their scrollable element is the modal-body (except in // mobile). // TODO: should be replaced by .modal-dialog-scrollable class @include media-breakpoint-up(sm) { :not(.s_popup) > .modal { .modal-dialog { height: 100%; padding: $modal-dialog-margin-y-sm-up 0; margin: 0 auto; } .modal-content { max-height: 100%; } .modal-header, .modal-footer { flex: 0 0 auto; } .modal-body { overflow: auto; min-height: 0; } } } // Do not display the backdrop element added by bootstrap in the body and add a // background on the modal to keep the same effect. The bootstrap backdrop was // probably useful for compatibility with a, .badge, .fa { &, &:hover, &:focus { text-decoration: none; } } } // Disable markers when using Carousel's indicators on list .carousel-indicators { list-style: none; } // Progress Bar // Solve a BS 5.3 issue causing progress bar's animation to flicker when // the component's height is modified using CSS variables. @keyframes progress-bar-stripes { 0% { background-position-x: var(--progress-height, #{$progress-height}); } }