1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-01 08:22:35 +01:00
Sonarr/UI/Content/Bootstrap/carousel.less

159 lines
2.4 KiB
Plaintext
Raw Normal View History

2013-01-17 01:39:42 +01:00
//
// Carousel
// --------------------------------------------------
.carousel {
position: relative;
margin-bottom: @baseLineHeight;
line-height: 1;
}
.carousel-inner {
overflow: hidden;
width: 100%;
position: relative;
}
.carousel-inner {
2013-01-17 01:39:42 +01:00
> .item {
2013-01-17 01:39:42 +01:00
display: none;
position: relative;
.transition(.6s ease-in-out left);
2013-02-26 03:28:23 +01:00
// Account for jankitude on images
> img,
> a > img {
display: block;
line-height: 1;
}
2013-01-17 01:39:42 +01:00
}
> .active,
> .next,
> .prev { display: block; }
2013-01-17 01:39:42 +01:00
> .active {
2013-01-17 01:39:42 +01:00
left: 0;
}
> .next,
> .prev {
2013-01-17 01:39:42 +01:00
position: absolute;
top: 0;
width: 100%;
}
> .next {
2013-01-17 01:39:42 +01:00
left: 100%;
}
> .prev {
2013-01-17 01:39:42 +01:00
left: -100%;
}
> .next.left,
> .prev.right {
2013-01-17 01:39:42 +01:00
left: 0;
}
> .active.left {
2013-01-17 01:39:42 +01:00
left: -100%;
}
> .active.right {
2013-01-17 01:39:42 +01:00
left: 100%;
}
}
// Left/right controls for nav
// ---------------------------
.carousel-control {
position: absolute;
top: 40%;
left: 15px;
width: 40px;
height: 40px;
margin-top: -20px;
font-size: 60px;
font-weight: 100;
line-height: 30px;
color: @white;
text-align: center;
background: @grayDarker;
border: 3px solid @white;
.border-radius(23px);
.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);
// Reposition the right one
&.right {
left: auto;
right: 15px;
}
2013-02-26 03:28:23 +01:00
// Hover/focus state
&:hover,
&:focus {
2013-01-17 01:39:42 +01:00
color: @white;
text-decoration: none;
.opacity(90);
}
}
2013-02-26 03:28:23 +01:00
// 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;
}
}
2013-01-17 01:39:42 +01:00
// Caption for text below images
// -----------------------------
.carousel-caption {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 15px;
background: @grayDark;
background: rgba(0,0,0,.75);
}
.carousel-caption h4,
.carousel-caption p {
color: @white;
line-height: @baseLineHeight;
}
.carousel-caption h4 {
margin: 0 0 5px;
}
.carousel-caption p {
margin-bottom: 0;
}