registerLoader(loadCarrousel);
function loadCarrousel() {
- $(window).on('cubeitresize', function () {
- var s = $(".slideshow,.slideshowcontinuous");
- var ww = $(window).width();
- var m = (ww - 1600) / 2;
- $(s).find(".imgholder").css({marginLeft: m});
- $(s).find(".arrows").css({left: 960 + ((ww - 960) / 2) - 77 - 10 - 30});
- });
+ $(window).on('cubeitresize', function () {
+ var s = $(".slideshow,.slideshowcontinuous");
+ var ww = $(window).width();
+ var cw = Math.min(960, ww - 70);
+ var m = (ww - 1600) / 2;
+ $(s).find(".imgholder").css({marginLeft: m});
+ $(s).find(".arrows").css({left: cw + ((ww - cw) / 2) - 77 - 10 - 30});
+
+ if (ww < 1024) {
+ var ratio = 1024 / 650;
+ var h = ww / ratio;
+ try {
+ $(".slideshowcontinuous").data('slideshowContinuous').setHeight(h);
+ } catch (err) {
+
+ }
+ }
+ });
}
-#adminBar{
- background:#84AE1E;
- padding:3px 0 3px;
+@import "mixins";
+#adminBar {
+ @media @small{
+ display: none;
+ }
+
+ background: #84AE1E;
+ padding: 3px 0 3px;
- .bar{
- color:#fff;
- font-size:11px;
+ .bar {
+ color: #fff;
+ font-size: 11px;
line-height: 8px;
font-weight: 400;
- height:auto;
- #adminBar a{
- color:#fff;
- margin:0 5px;
+ height: auto;
+ #adminBar a {
+ color: #fff;
+ margin: 0 5px;
}
- &.right{
- .right{
- float:right;
+ &.right {
+ .right {
+ float: right;
}
}
}
}
-
#tags_secondaires-element select,
#technologies-element select {
height: 200px;
+@small : ~"screen and (max-width: 1024px)";\r
+\r
/*\r
\r
REMOVED FOR NOW - too much refactoring required to apply this neatly...\r
// PLAN B:\r
\r
.media {\r
- overflow: hidden;\r
+ overflow: hidden;\r
}\r
\r
.media--item {\r
- float: left;\r
- margin-right: 25px;\r
+ float: left;\r
+ margin-right: 25px;\r
}\r
\r
.media--body {\r
- overflow: hidden;\r
+ overflow: hidden;\r
}
\ No newline at end of file