-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New carousel indicators: dots, vertical, thumbs (#1101)
- Loading branch information
Showing
8 changed files
with
154 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
.carousel { | ||
|
||
} | ||
|
||
.carousel-indicators-vertical { | ||
left: auto; | ||
top: 0; | ||
margin: 0 1rem 0 0; | ||
flex-direction: column; | ||
|
||
[data-bs-target] { | ||
margin: $carousel-indicator-spacer 0 $carousel-indicator-spacer; | ||
width: $carousel-indicator-height; | ||
height: $carousel-indicator-width; | ||
border: 0; | ||
border-left: $carousel-indicator-hit-area-height solid transparent; | ||
border-right: $carousel-indicator-hit-area-height solid transparent; | ||
} | ||
} | ||
|
||
.carousel-indicators-dot { | ||
[data-bs-target] { | ||
width: $carousel-indicator-dot-width; | ||
height: $carousel-indicator-dot-width; | ||
border-radius: $border-radius-pill; | ||
border: $carousel-indicator-hit-area-height solid transparent; | ||
margin: 0; | ||
} | ||
} | ||
|
||
.carousel-indicators-thumb { | ||
[data-bs-target] { | ||
width: $carousel-indicator-thumb-width * .5; | ||
height: auto; | ||
background: no-repeat center/cover; | ||
border: 0; | ||
border-radius: $border-radius; | ||
box-shadow: $shadow; | ||
margin: 0 $carousel-indicator-spacer; | ||
opacity: $carousel-indicator-thumb-opacity; | ||
|
||
@include media-breakpoint-up(lg) { | ||
width: $carousel-indicator-thumb-width; | ||
} | ||
|
||
&:before { | ||
content: ''; | ||
padding-top: var(--#{$variable-prefix}aspect-ratio, 100%); | ||
display: block; | ||
} | ||
} | ||
|
||
&.carousel-indicators-vertical { | ||
[data-bs-target] { | ||
margin: $carousel-indicator-spacer 0; | ||
} | ||
} | ||
} | ||
|
||
.carousel-caption-background { | ||
background: red; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
height: 90%; | ||
background: linear-gradient(0deg, rgba($dark, .9), rgba($dark, 0)); | ||
} |
278fe7b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: