mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-13 01:08:58 +01:00
72f13e2870
Conflicts: Makefile README.md component.json docs/assets/css/bootstrap-responsive.css docs/assets/css/bootstrap.css docs/assets/js/bootstrap-affix.js docs/assets/js/bootstrap-alert.js docs/assets/js/bootstrap-button.js docs/assets/js/bootstrap-carousel.js docs/assets/js/bootstrap-collapse.js docs/assets/js/bootstrap-dropdown.js docs/assets/js/bootstrap-modal.js docs/assets/js/bootstrap-popover.js docs/assets/js/bootstrap-scrollspy.js docs/assets/js/bootstrap-tab.js docs/assets/js/bootstrap-tooltip.js docs/assets/js/bootstrap-transition.js docs/assets/js/bootstrap-typeahead.js docs/assets/js/bootstrap.js docs/assets/js/bootstrap.min.js docs/index.html docs/templates/pages/base-css.mustache docs/templates/pages/index.mustache docs/templates/pages/javascript.mustache js/bootstrap-affix.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-tooltip.js js/bootstrap-transition.js js/bootstrap-typeahead.js less/bootstrap.less less/responsive.less less/type.less package.json
173 lines
2.7 KiB
Plaintext
173 lines
2.7 KiB
Plaintext
//
|
|
// Carousel
|
|
// --------------------------------------------------
|
|
|
|
|
|
.carousel {
|
|
position: relative;
|
|
margin-bottom: @line-height-base;
|
|
line-height: 1;
|
|
}
|
|
|
|
.carousel-inner {
|
|
position: relative;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
}
|
|
|
|
.carousel-inner {
|
|
|
|
> .item {
|
|
display: none;
|
|
position: relative;
|
|
.transition(.6s ease-in-out left);
|
|
}
|
|
|
|
// Account for jankitude on images
|
|
> .item > img {
|
|
display: block;
|
|
line-height: 1;
|
|
}
|
|
|
|
> .active,
|
|
> .next,
|
|
> .prev { display: block; }
|
|
|
|
> .active {
|
|
left: 0;
|
|
}
|
|
|
|
> .next,
|
|
> .prev {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
> .next {
|
|
left: 100%;
|
|
}
|
|
> .prev {
|
|
left: -100%;
|
|
}
|
|
> .next.left,
|
|
> .prev.right {
|
|
left: 0;
|
|
}
|
|
|
|
> .active.left {
|
|
left: -100%;
|
|
}
|
|
> .active.right {
|
|
left: 100%;
|
|
}
|
|
|
|
}
|
|
|
|
// Left/right controls for nav
|
|
// ---------------------------
|
|
|
|
.carousel-control {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 120px;
|
|
.opacity(50);
|
|
|
|
// we can't have this transition here
|
|
// because webkit cancels the carousel
|
|
// animation if you trip this while
|
|
// in the middle of another animation
|
|
// ;_;
|
|
// .transition(opacity .2s linear);
|
|
|
|
// Set gradients for backgrounds
|
|
&.left {
|
|
#gradient > .horizontal(rgba(0,0,0,.75), rgba(0,0,0,.001));
|
|
background-color: transparent;
|
|
}
|
|
&.right {
|
|
left: auto;
|
|
right: 0;
|
|
#gradient > .horizontal(rgba(0,0,0,.001), rgba(0,0,0,.75));
|
|
background-color: transparent;
|
|
}
|
|
|
|
// Hover state
|
|
&:hover {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
.opacity(90);
|
|
}
|
|
|
|
// Toggles
|
|
.control {
|
|
position: absolute;
|
|
top: 50%;
|
|
z-index: 5;
|
|
display: block;
|
|
margin-top: -35px;
|
|
margin-left: 30px;
|
|
font-size: 80px;
|
|
font-weight: 100;
|
|
color: #fff;
|
|
text-shadow: 0 1px 2px rgba(0,0,0,.6);
|
|
}
|
|
&.right .control {
|
|
margin-left: 70px;
|
|
}
|
|
}
|
|
|
|
// Carousel indicator pips
|
|
// -----------------------------
|
|
.carousel-indicators {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 15px;
|
|
z-index: 5;
|
|
margin: 0;
|
|
list-style: none;
|
|
|
|
li {
|
|
display: block;
|
|
float: left;
|
|
width: 10px;
|
|
height: 10px;
|
|
margin-left: 5px;
|
|
text-indent: -999px;
|
|
background-color: #ccc;
|
|
background-color: rgba(255,255,255,.25);
|
|
border-radius: 5px;
|
|
}
|
|
.active {
|
|
background-color: #fff;
|
|
}
|
|
}
|
|
|
|
|
|
// Caption for text below images
|
|
// -----------------------------
|
|
|
|
.carousel-caption {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 10;
|
|
padding: 40px;
|
|
text-shadow: 0 1px 2px rgba(0,0,0,.6);
|
|
max-width: 60%;
|
|
}
|
|
.carousel-caption h3,
|
|
.carousel-caption p {
|
|
color: #fff;
|
|
line-height: @line-height-base;
|
|
}
|
|
.carousel-caption h3 {
|
|
margin: 0 0 5px;
|
|
}
|
|
.carousel-caption p {
|
|
margin-bottom: 0;
|
|
}
|