aboutsummaryrefslogtreecommitdiffstats
path: root/alias-angular/app/css/less/carousel.less
diff options
context:
space:
mode:
authorZaran <zaran.krleza@gmail.com>2012-04-15 05:54:46 -0700
committerZaran <zaran.krleza@gmail.com>2012-04-15 05:54:46 -0700
commitfe62183cd914a7834c6d6a94d487e2e13e212251 (patch)
tree13311137fc992e1ea2cf841424756cb0b16d3405 /alias-angular/app/css/less/carousel.less
parent667f6d688bdc4818feadde68c84ee690e150255a (diff)
downloadalias-fe62183cd914a7834c6d6a94d487e2e13e212251.tar.gz
CSS improvements, first steps on angular
* disable the connect form when connected * add a disconnect button when connected * add a research field to filter the contact list (not working) Thinks I want to understand: * how to share a variable between several scopes * could StropheSrv be an attribute of the connect scope ? if yes, we can call it directly and avoid wrapping it (this is the third level of wrapping around libStrophe...)
Diffstat (limited to 'alias-angular/app/css/less/carousel.less')
-rw-r--r--alias-angular/app/css/less/carousel.less121
1 files changed, 121 insertions, 0 deletions
diff --git a/alias-angular/app/css/less/carousel.less b/alias-angular/app/css/less/carousel.less
new file mode 100644
index 0000000..8fbd303
--- /dev/null
+++ b/alias-angular/app/css/less/carousel.less
@@ -0,0 +1,121 @@
+// CAROUSEL
+// --------
+
+.carousel {
+ position: relative;
+ margin-bottom: @baseLineHeight;
+ line-height: 1;
+}
+
+.carousel-inner {
+ overflow: hidden;
+ width: 100%;
+ position: relative;
+}
+
+.carousel {
+
+ .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: 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;
+ }
+
+ // Hover state
+ &:hover {
+ color: @white;
+ text-decoration: none;
+ .opacity(90);
+ }
+}
+
+// Caption for text below images
+// -----------------------------
+
+.carousel-caption {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ padding: 10px 15px 5px;
+ background: @grayDark;
+ background: rgba(0,0,0,.75);
+}
+.carousel-caption h4,
+.carousel-caption p {
+ color: @white;
+}