Prepared for SP 4-6.
[edumed.git] / catalogue / static / catalogue / css / carousel.scss
index 245b691..bc2041d 100755 (executable)
@@ -1,5 +1,8 @@
 $px: .0625em;
 
+$ciemny: #363a3e;
+
+
 #catalogue-carousel {
     float: left;
     position: relative;
@@ -20,32 +23,83 @@ $px: .0625em;
             position: absolute;
             top: 0;
             left: 0;
-            background: url(/static/test.jpg); /* set real background image */
+            height: 100%;
+            background-size: 100% 100%;
+            border-top-left-radius: 15*$px 6.38%;
+            border-bottom-left-radius: 15*$px 6.38%;
+            z-index: 100;
+            background-color: #888;
 
-            a {
+            a.catalogue-carousel-link {
                 display: block;
+                overflow: hidden;
                 width: 460*$px;
-                height: 235*$px;
-                background-image: url(/static/catalogue/img/carousel-left.png);
-                background-position: 100% 0;
-                background-repeat: no-repeat;
-                background-size: auto 235*$px;
+                height: 100%;
+                background: url(/static/catalogue/img/carousel-left.png) 100% 0 no-repeat;
+                background-size: 70*$px 100%;
+                
+                .catalogue-carousel-note {
+                    position: relative;
+                    height: 100%;
+                    color: white;
+                    margin-top: 8.5em;
+
+                    div {
+                        &:before {
+                            content: " ";
+                            display: block;
+                            position: absolute;
+                            height: 100%;
+                            width: 100%;
+                            z-index: -1;
+                            background-color: black;
+                            opacity: 0.6;
+                        }
+
+                        p {
+                            padding: .4em 3em 0 .5em;
 
-                /* left part of mask as background */
+                            strong {
+                                font-size: 1.2em;
+                                display: block;
+                            }
+
+                            .more {
+                                position: absolute;
+                                right: 4em;
+                                top: 4.5em;
+                            }
+                        }
+                    }
+                }
+            }
+            a.catalogue-carousel-link:active {
+                outline: none;
+            }
+            .attribution {
+                text-align: right;
+                font-size: .75em;
+                position: absolute;
+                right: 5em;
+                top: .1em;
+                color: white;
+                font-weight: bold;
+                text-shadow: 0 0 5px #000;
             }
+
         }
     }
     #catalogue-carousel-switcher {
         margin: 0;
-        padding: 50*$px 0 0 58*$px;
+        padding: 20*$px 0 0 58*$px;
         width: 240*$px - 58*$px;
-        height: 235*$px - 50*$px;
+        height: 235*$px - 20*$px;
         position: absolute;
         right: 0;
         top: 0;
         list-style: none;
         border-radius: 0 15*$px 15*$px 0;
-        background-color: #16a487;
+        background-color: #ed7831;
         background-image: url(/static/catalogue/img/carousel-right.png);
         background-position: 0 0;
         background-repeat: no-repeat;
@@ -54,28 +108,33 @@ $px: .0625em;
         /* right part of mask as background */
 
         li {
-            margin-bottom: .9em;
+            margin-bottom: .5em;
+            font-size: .85em;
+            line-height: 1em;
 
             a {
                 text-transform: uppercase;
-                color: #363a3e;
-                font-size: .9em;
-                font-weight: bold;
-            }
-            a.active {
-                color: white;
+                color: $ciemny;
             }
             a:before {
                 vertical-align: top;
                 margin-right: 1.5em;
             }
-            .knowledge:before {content: url(/static/img/icons/knowledge.png);}
-            .activity:before {content: url(/static/img/icons/activity.png);}
-            .lesson-plan:before {content: url(/static/img/icons/lesson-plan.png);}
-            .reference:before {content: url(/static/img/icons/reference.png);}
-            /* TODO: active sprites */
+            .knowledge:before {content: url(/static/img/icons/knowledge_dark.png);}
+            .activity:before {content: url(/static/img/icons/activity_dark.png);}
+            .lesson-plan:before {content: url(/static/img/icons/lesson-plan_dark.png);}
+            .reference:before {content: url(/static/img/icons/reference_dark.png);}
+        }
+        li.activeSlide {
+            a {
+                color: white;
+            }
+            .knowledge:before {content: url(/static/img/icons/knowledge_white.png);}
+            .activity:before {content: url(/static/img/icons/activity_white.png);}
+            .lesson-plan:before {content: url(/static/img/icons/lesson-plan_white.png);}
+            .reference:before {content: url(/static/img/icons/reference_white.png);}
         }
     }
 
 
-}
\ No newline at end of file
+}