_carousel.scss 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .carousel {
  2. }
  3. .carousel-indicators-vertical {
  4. left: auto;
  5. top: 0;
  6. margin: 0 1rem 0 0;
  7. flex-direction: column;
  8. [data-bs-target] {
  9. margin: $carousel-indicator-spacer 0 $carousel-indicator-spacer;
  10. width: $carousel-indicator-height;
  11. height: $carousel-indicator-width;
  12. border: 0;
  13. border-left: $carousel-indicator-hit-area-height var(--#{$prefix}border-style) transparent;
  14. border-right: $carousel-indicator-hit-area-height var(--#{$prefix}border-style) transparent;
  15. }
  16. }
  17. .carousel-indicators-dot {
  18. [data-bs-target] {
  19. width: $carousel-indicator-dot-width;
  20. height: $carousel-indicator-dot-width;
  21. border-radius: $border-radius-pill;
  22. border: $carousel-indicator-hit-area-height var(--#{$prefix}border-style) transparent;
  23. margin: 0;
  24. }
  25. }
  26. .carousel-indicators-thumb {
  27. [data-bs-target] {
  28. width: $carousel-indicator-thumb-width * .5;
  29. height: auto;
  30. background: no-repeat center/cover;
  31. border: 0;
  32. border-radius: var(--#{$prefix}border-radius);
  33. box-shadow: $box-shadow;
  34. margin: 0 $carousel-indicator-spacer;
  35. opacity: $carousel-indicator-thumb-opacity;
  36. @include media-breakpoint-up(lg) {
  37. width: $carousel-indicator-thumb-width;
  38. }
  39. &:before {
  40. content: "";
  41. padding-top: var(--#{$prefix}aspect-ratio, 100%);
  42. display: block;
  43. }
  44. }
  45. &.carousel-indicators-vertical {
  46. [data-bs-target] {
  47. margin: $carousel-indicator-spacer 0;
  48. }
  49. }
  50. }
  51. .carousel-caption-background {
  52. background: red;
  53. position: absolute;
  54. left: 0;
  55. right: 0;
  56. bottom: 0;
  57. height: 90%;
  58. background: linear-gradient(0deg, rgba($dark, .9), rgba($dark, 0));
  59. }