2885facd45545e6a19204cacf965ae599098fe2d
[edumed.git] / catalogue / static / catalogue / css / carousel.scss
1 $px: .0625em;
2
3 $ciemny: #363a3e;
4
5
6 #catalogue-carousel {
7     float: left;
8     position: relative;
9     width: 700*$px;
10     height: 235*$px;
11     overflow: hidden;
12     border-radius: 15*$px;
13
14     #catalogue-carousel-links {
15         width: 460*$px;
16         height: 235*$px;
17         list-style: none;
18         margin: 0;
19         padding: 0;
20
21         li {
22             display: block;
23             position: absolute;
24             top: 0;
25             left: 0;
26             height: 100%;
27             background-size: 100% 100%;
28             border-top-left-radius: 15*$px 6.38%;
29             border-bottom-left-radius: 15*$px 6.38%;
30
31             a {
32                 display: block;
33                 overflow: hidden;
34                 width: 460*$px;
35                 height: 100%;
36                 background: url(/static/catalogue/img/carousel-left.png) 100% 0 no-repeat;
37                 background-size: 70*$px 100%;
38                 
39                 .catalogue-carousel-note {
40                     position: relative;
41                     height: 100%;
42                     color: white;
43                     margin-top: 12em;
44
45                     p:before {
46                         content: " ";
47                         display: block;
48                         position: absolute;
49                         height: 100%;
50                         width: 100%;
51                         z-index: -1;
52                         background-color: black;
53                         opacity: 0.6;
54                     }
55
56                     p {
57                         margin: 0;
58                         em {
59                             margin: 0 .2em 0 .5em;
60                             font-style: normal;
61                             font-size: 1.5em;
62                         }
63                         strong {
64                             margin-left: .5em;
65                             font-size: 2em;
66                         }
67                         
68                     }
69                 }
70             }
71         }
72     }
73     #catalogue-carousel-switcher {
74         margin: 0;
75         padding: 50*$px 0 0 58*$px;
76         width: 240*$px - 58*$px;
77         height: 235*$px - 50*$px;
78         position: absolute;
79         right: 0;
80         top: 0;
81         list-style: none;
82         border-radius: 0 15*$px 15*$px 0;
83         background-color: #ed7831;
84         background-image: url(/static/catalogue/img/carousel-right.png);
85         background-position: 0 0;
86         background-repeat: no-repeat;
87         background-size: auto 235*$px;
88         
89         /* right part of mask as background */
90
91         li {
92             margin-bottom: .9em;
93
94             a {
95                 text-transform: uppercase;
96                 color: $ciemny;
97                 font-size: .9em;
98                 font-weight: bold;
99             }
100             a:before {
101                 vertical-align: top;
102                 margin-right: 1.5em;
103             }
104             .knowledge:before {content: url(/static/img/icons/knowledge_dark.png);}
105             .activity:before {content: url(/static/img/icons/activity_dark.png);}
106             .lesson-plan:before {content: url(/static/img/icons/lesson-plan_dark.png);}
107             .reference:before {content: url(/static/img/icons/reference_dark.png);}
108         }
109         li.activeSlide {
110             a {
111                 color: white;
112             }
113             .knowledge:before {content: url(/static/img/icons/knowledge_white.png);}
114             .activity:before {content: url(/static/img/icons/activity_white.png);}
115             .lesson-plan:before {content: url(/static/img/icons/lesson-plan_white.png);}
116             .reference:before {content: url(/static/img/icons/reference_white.png);}
117         }
118     }
119
120
121 }