Commit c02501e1 authored by Mark Otto's avatar Mark Otto

move carousel to separate stylesheet, update popovers to fix ie7 bug, fix pagination, fix alerts

parent 3d9298b0
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Designed and built with all the love in the world @twitter by @mdo and @fat. * Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sun Jan 15 13:11:42 PST 2012 * Date: Sun Jan 15 16:27:00 PST 2012
*/ */
html, body { html, body {
margin: 0; margin: 0;
...@@ -2084,8 +2084,6 @@ i { ...@@ -2084,8 +2084,6 @@ i {
*zoom: 1; *zoom: 1;
margin-left: 0; margin-left: 0;
margin-bottom: 0; margin-bottom: 0;
border: 1px solid #ddd;
border: 1px solid rgba(0, 0, 0, 0.15);
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
...@@ -2101,8 +2099,8 @@ i { ...@@ -2101,8 +2099,8 @@ i {
padding: 0 14px; padding: 0 14px;
line-height: 34px; line-height: 34px;
text-decoration: none; text-decoration: none;
border-right: 1px solid #ddd; border: 1px solid #ddd;
border-right: 1px solid rgba(0, 0, 0, 0.15); border-left-width: 0;
} }
.pagination a:hover, .pagination .active a { .pagination a:hover, .pagination .active a {
background-color: #f5f5f5; background-color: #f5f5f5;
...@@ -2115,8 +2113,16 @@ i { ...@@ -2115,8 +2113,16 @@ i {
background-color: transparent; background-color: transparent;
cursor: default; cursor: default;
} }
.pagination li:first-child a {
border-left-width: 1px;
-webkit-border-radius: 3px 0 0 3px;
-moz-border-radius: 3px 0 0 3px;
border-radius: 3px 0 0 3px;
}
.pagination li:last-child a { .pagination li:last-child a {
border: 0; -webkit-border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0;
border-radius: 0 3px 3px 0;
} }
.pagination-centered { .pagination-centered {
text-align: center; text-align: center;
...@@ -2383,8 +2389,8 @@ i { ...@@ -2383,8 +2389,8 @@ i {
padding: 3px; padding: 3px;
width: 280px; width: 280px;
overflow: hidden; overflow: hidden;
background-color: #000000; background: #000000;
background-color: rgba(0, 0, 0, 0.8); background: rgba(0, 0, 0, 0.8);
-webkit-border-radius: 6px; -webkit-border-radius: 6px;
-moz-border-radius: 6px; -moz-border-radius: 6px;
border-radius: 6px; border-radius: 6px;
...@@ -2667,7 +2673,6 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { ...@@ -2667,7 +2673,6 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
opacity: 0.75; opacity: 0.75;
} }
.alert { .alert {
position: relative;
padding: 8px 35px 8px 14px; padding: 8px 35px 8px 14px;
margin-bottom: 18px; margin-bottom: 18px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
...@@ -2680,11 +2685,12 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { ...@@ -2680,11 +2685,12 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
.alert, .alert-heading { .alert, .alert-heading {
color: #c09853; color: #c09853;
} }
.alert > .close { .alert .close {
*margin-top: 3px; *margin-top: 3px;
/* IE7 spacing */ /* IE7 spacing */
margin-right: -21px; position: relative;
right: -21px;
} }
.alert-success { .alert-success {
background-color: #dff0d8; background-color: #dff0d8;
...@@ -2722,7 +2728,6 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { ...@@ -2722,7 +2728,6 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
} }
.thumbnails { .thumbnails {
margin-left: -20px; margin-left: -20px;
margin-bottom: 0;
list-style: none; list-style: none;
zoom: 1; zoom: 1;
} }
...@@ -2764,74 +2769,6 @@ a.thumbnail:hover { ...@@ -2764,74 +2769,6 @@ a.thumbnail:hover {
.thumbnail .caption { .thumbnail .caption {
padding: 9px; padding: 9px;
} }
.carousel {
position: relative;
}
.carousel .carousel-inner {
overflow: hidden;
width: 100%;
position: relative;
}
.carousel .item {
display: none;
position: relative;
-webkit-transition: 0.6s ease-in-out left;
-moz-transition: 0.6s ease-in-out left;
-ms-transition: 0.6s ease-in-out left;
-o-transition: 0.6s ease-in-out left;
transition: 0.6s ease-in-out left;
}
.carousel .active, .carousel .next, .carousel .prev {
display: block;
}
.carousel .active {
left: 0;
}
.carousel .next, .carousel .prev {
position: absolute;
top: 0;
width: 100%;
}
.carousel .next {
left: 100%;
}
.carousel .prev {
left: -100%;
}
.carousel .next.left, .carousel .prev.right {
left: 0%;
}
.carousel .active.left {
left: -100%;
}
.carousel .active.right {
left: 100%;
}
.carousel .nav {
width: auto;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
height: 50px;
position: absolute;
top: 50%;
margin: -25px 0 0;
cursor: pointer;
background: rgba(0, 0, 0, 0.7);
color: white;
font-size: 42px;
left: 5px;
font-weight: 100;
padding: 0 15px;
}
.carousel .nav.right {
right: 5px;
left: auto;
}
.carousel .nav:hover {
text-decoration: none;
background: rgba(0, 0, 0, 0.8);
}
.label { .label {
padding: 1px 3px 2px; padding: 1px 3px 2px;
font-size: 9.75px; font-size: 9.75px;
...@@ -2999,6 +2936,74 @@ a.thumbnail:hover { ...@@ -2999,6 +2936,74 @@ a.thumbnail:hover {
background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
} }
.carousel {
position: relative;
}
.carousel .carousel-inner {
overflow: hidden;
width: 100%;
position: relative;
}
.carousel .item {
display: none;
position: relative;
-webkit-transition: 0.6s ease-in-out left;
-moz-transition: 0.6s ease-in-out left;
-ms-transition: 0.6s ease-in-out left;
-o-transition: 0.6s ease-in-out left;
transition: 0.6s ease-in-out left;
}
.carousel .active, .carousel .next, .carousel .prev {
display: block;
}
.carousel .active {
left: 0;
}
.carousel .next, .carousel .prev {
position: absolute;
top: 0;
width: 100%;
}
.carousel .next {
left: 100%;
}
.carousel .prev {
left: -100%;
}
.carousel .next.left, .carousel .prev.right {
left: 0%;
}
.carousel .active.left {
left: -100%;
}
.carousel .active.right {
left: 100%;
}
.carousel .nav {
width: auto;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
height: 50px;
position: absolute;
top: 50%;
margin: -25px 0 0;
cursor: pointer;
background: rgba(0, 0, 0, 0.7);
color: white;
font-size: 42px;
left: 5px;
font-weight: 100;
padding: 0 15px;
}
.carousel .nav.right {
right: 5px;
left: auto;
}
.carousel .nav:hover {
text-decoration: none;
background: rgba(0, 0, 0, 0.8);
}
.pull-right { .pull-right {
float: right; float: right;
} }
......
This diff is collapsed.
...@@ -908,7 +908,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) { ...@@ -908,7 +908,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
<p>The alerts plugin works on regular alert messages, and block messages.</p> <p>The alerts plugin works on regular alert messages, and block messages.</p>
<div class="alert fade in"> <div class="alert fade in">
<a class="close" data-dismiss="alert" href="#">&times;</a> <a class="close" data-dismiss="alert" href="#">&times;</a>
<p><strong>Holy guacamole!</strong> Best check yo self, you’re not looking too good.</p> <strong>Holy guacamole!</strong> Best check yo self, you’re not looking too good.
</div> </div>
<div class="alert alert-block alert-error fade in"> <div class="alert alert-block alert-error fade in">
<a class="close" data-dismiss="alert" href="#">&times;</a> <a class="close" data-dismiss="alert" href="#">&times;</a>
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// Base alert styles // Base alert styles
.alert { .alert {
position: relative;
padding: 8px 35px 8px 14px; padding: 8px 35px 8px 14px;
margin-bottom: @baseLineHeight; margin-bottom: @baseLineHeight;
text-shadow: 0 1px 0 rgba(255,255,255,.5); text-shadow: 0 1px 0 rgba(255,255,255,.5);
...@@ -17,9 +16,10 @@ ...@@ -17,9 +16,10 @@
} }
// Adjust close link position // Adjust close link position
.alert > .close { .alert .close {
*margin-top: 3px; /* IE7 spacing */ *margin-top: 3px; /* IE7 spacing */
margin-right: -21px; position: relative;
right: -21px;
} }
// Alternate styles // Alternate styles
...@@ -66,4 +66,4 @@ ...@@ -66,4 +66,4 @@
} }
.alert-block p + p { .alert-block p + p {
margin-top: 5px; margin-top: 5px;
} }
\ No newline at end of file
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
@import "thumbnails.less"; @import "thumbnails.less";
@import "labels.less"; @import "labels.less";
@import "progress-bars.less"; @import "progress-bars.less";
@import "carousel.less";
// Utility classes // Utility classes
@import "utilities.less"; // Has to be last to override when necessary @import "utilities.less"; // Has to be last to override when necessary
......
// CAROUSEL
// --------
.carousel {
position: relative;
.carousel-inner {
overflow: hidden;
width: 100%;
position: relative;
}
.item {
display: none;
position: relative;
.transition(.6s ease-in-out left);
}
.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% }
.nav {
width: auto;
.border-radius(0);
height: 50px;
position: absolute;
top: 50%;
margin: -25px 0 0;
cursor: pointer;
background: rgba(0, 0, 0, 0.7);
color: white;
font-size: 42px;
left: 5px;
font-weight: 100;
padding: 0 15px;
&.right { right: 5px; left: auto; }
&:hover { text-decoration: none; background: rgba(0, 0, 0, 0.8); }
}
}
\ No newline at end of file
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
.ie7-inline-block(); .ie7-inline-block();
margin-left: 0; margin-left: 0;
margin-bottom: 0; margin-bottom: 0;
border: 1px solid #ddd;
border: 1px solid rgba(0,0,0,.15);
.border-radius(3px); .border-radius(3px);
.box-shadow(0 1px 2px rgba(0,0,0,.05)); .box-shadow(0 1px 2px rgba(0,0,0,.05));
} }
...@@ -23,8 +21,8 @@ ...@@ -23,8 +21,8 @@
padding: 0 14px; padding: 0 14px;
line-height: (@baseLineHeight * 2) - 2; line-height: (@baseLineHeight * 2) - 2;
text-decoration: none; text-decoration: none;
border-right: 1px solid #ddd; border: 1px solid #ddd;
border-right: 1px solid rgba(0,0,0,.15); border-left-width: 0;
} }
.pagination a:hover, .pagination a:hover,
.pagination .active a { .pagination .active a {
...@@ -39,8 +37,12 @@ ...@@ -39,8 +37,12 @@
background-color: transparent; background-color: transparent;
cursor: default; cursor: default;
} }
.pagination li:first-child a {
border-left-width: 1px;
.border-radius(3px 0 0 3px);
}
.pagination li:last-child a { .pagination li:last-child a {
border: 0; .border-radius(0 3px 3px 0);
} }
// Centered // Centered
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
padding: 3px; padding: 3px;
width: 280px; width: 280px;
overflow: hidden; overflow: hidden;
background-color: @black; background: @black; // has to be full background declaration for IE fallback
background-color: rgba(0,0,0,.8); background: rgba(0,0,0,.8);
.border-radius(6px); .border-radius(6px);
.box-shadow(0 3px 7px rgba(0,0,0,0.3)); .box-shadow(0 3px 7px rgba(0,0,0,0.3));
} }
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
.thumbnails { .thumbnails {
margin-left: -20px; margin-left: -20px;
margin-bottom: 0;
list-style: none; list-style: none;
.clearfix(); .clearfix();
} }
...@@ -32,55 +31,3 @@ a.thumbnail:hover { ...@@ -32,55 +31,3 @@ a.thumbnail:hover {
.thumbnail .caption { .thumbnail .caption {
padding: 9px; padding: 9px;
} }
.carousel {
position: relative;
.carousel-inner {
overflow: hidden;
width: 100%;
position: relative;
}
.item {
display: none;
position: relative;
.transition(.6s ease-in-out left);
}
.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% }
.nav {
width: auto;
.border-radius(0);
height: 50px;
position: absolute;
top: 50%;
margin: -25px 0 0;
cursor: pointer;
background: rgba(0, 0, 0, 0.7);
color: white;
font-size: 42px;
left: 5px;
font-weight: 100;
padding: 0 15px;
&.right { right: 5px; left: auto; }
&:hover { text-decoration: none; background: rgba(0, 0, 0, 0.8); }
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment