X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/3df28f25be5090756721098b91874dbd80a26428..ea300f6c03d47f6c17dd7721b8d6690489af79da:/catalogue/static/catalogue/css/carousel.scss diff --git a/catalogue/static/catalogue/css/carousel.scss b/catalogue/static/catalogue/css/carousel.scss index 9f1fceb..bc2041d 100755 --- a/catalogue/static/catalogue/css/carousel.scss +++ b/catalogue/static/catalogue/css/carousel.scss @@ -1,5 +1,8 @@ $px: .0625em; +$ciemny: #363a3e; + + #catalogue-carousel { float: left; position: relative; @@ -21,35 +24,82 @@ $px: .0625em; top: 0; left: 0; height: 100%; - background-image: url(/static/test.jpg); /* set real background image */ 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: 100%; - background-image: url(/static/catalogue/img/carousel-left.png); - background-position: 100% 0; - background-repeat: no-repeat; + 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; @@ -58,26 +108,31 @@ $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);} } }