See https://blog.getbootstrap.com/2019/02/11/bootstrap-4-3-0/ and https://blog.getbootstrap.com/2019/02/13/bootstrap-4-3-1-and-3-4-1/ Again, some fixes were added in this version and not in a 4.2.x version so there is no clean way to backport them in 12.0 / saas-12.2. If needed, the file bootstrap_review.scss is there for that. Among the new features, two notable ones: - The '.modal-dialog-scrollable' class which does what odoo already implemented for all its modals. So we could remove our custom code in a next update. - Responsive font sizes ! Plan was to develop something similar for the website, so this comes at the right time. The behavior is opt-in, we will enable it in a next update. Part of https://github.com/odoo/odoo/pull/31401 task-1944790
44 lines
1.0 KiB
SCSS
44 lines
1.0 KiB
SCSS
// Disable animation if transitions are disabled
|
|
@if $enable-transitions {
|
|
@keyframes progress-bar-stripes {
|
|
from { background-position: $progress-height 0; }
|
|
to { background-position: 0 0; }
|
|
}
|
|
}
|
|
|
|
.progress {
|
|
display: flex;
|
|
height: $progress-height;
|
|
overflow: hidden; // force rounded corners by cropping it
|
|
@include font-size($progress-font-size);
|
|
background-color: $progress-bg;
|
|
@include border-radius($progress-border-radius);
|
|
@include box-shadow($progress-box-shadow);
|
|
}
|
|
|
|
.progress-bar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
color: $progress-bar-color;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
background-color: $progress-bar-bg;
|
|
@include transition($progress-bar-transition);
|
|
}
|
|
|
|
.progress-bar-striped {
|
|
@include gradient-striped();
|
|
background-size: $progress-height $progress-height;
|
|
}
|
|
|
|
@if $enable-transitions {
|
|
.progress-bar-animated {
|
|
animation: progress-bar-stripes $progress-bar-animation-timing;
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
animation: none;
|
|
}
|
|
}
|
|
}
|