-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
- <symbol viewBox="0 0 17 17" id="interface-close">
- <path id="p1" class="fill-c-menu-text" d="M0.01472 2.13604L2.13604 0.014720000000000066L16.98528 14.86396L14.863959999999999 16.98528Z" fill-opacity="1" transform="matrix(1,0,0,1,0,0)"></path>
- <path id="p2" class="fill-c-menu-text" d="M2.13604 16.98528L0.014720000000000066 14.863959999999999L14.86396 0.014719999999998734L16.98528 2.1360399999999986Z" fill-opacity="1" transform="matrix(1,0,0,1,0,0)"></path>
+<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
+
+ <symbol id="interface-close" viewBox="0 0 512 512">
+ <path d="m0 68l68-68 476 476-68 68z m68 476l-68-68 476-476 68 68z"/>
</symbol>
-</svg>
\ No newline at end of file
+
+</svg>
z.show();
var s = (zoomWidth / box.width);
- $(".zoomPopupClose").css('opacity', 0).transform({scale: 1 / s, origin: ['100%', '0', 0]});
+ $(".zoomPopupClose").css('opacity', 0).transform({scale: (0.5 * this.fluidbook.resize.interfaceScale) / s, origin: ['100%', '0', 0]});
setTimeout(function () {
z.css({
boxShadow: '0 0 100px rgba(0,0,0,0.3)',
}, 50);
setTimeout(function () {
- $(".zoomPopupClose").css('opacity', '');
+ $(".zoomPopupClose").css('opacity', '1');
}, 500);
z.data('scale', zoomScale);
default:
break;
}
-
-
+
var captionHeight = m.find('.caption').outerHeight();
css = {};
ccss = {};
this.orientation = '';
this.textScale = 2;
this.bookScale = 1;
+ this.interfaceScale = 1;
this.ww = $(window).width();
this.hh = $(window).height();
this.init();
interfaceScale = Math.min(1, this.ww / refWidth, this.hh / this.referenceHeight);
}
+ this.interfaceScale = interfaceScale;
var navScale = interfaceScale * parseInt(this.fluidbook.datas.mobileNavScale) / 100;
var cssInterfaceScale = [interfaceScale, interfaceScale];
if (attrs.viewBox == null) {
attrs.viewBox = $('svg symbol#' + icon).get(0).attributes.viewBox.value;
}
+ if (attrs.class == null) {
+ attrs.class = icon;
+ } else {
+ attrs.class += ' ' + icon;
+ }
$.each(attrs, function (k, v) {
a.push(k + '="' + v + '"');
});
#search input {
padding: 5px;
- border-radius: 5px;
+ border-radius: 1px;
border: 0;
height: 22px;
width: 150px;
height: 0;
padding: 0;
.back {
- opacity: 0;
- transition: opacity 300ms;
+ width: 30px;
+ height: 30px;
+ padding: 10px;
+ font-size: 7px;
+ line-height: 10px;
}
}
- &:hover {
- .caption {
- .back {
- opacity: 1;
- }
- }
- }
}
&[data-menu="webvideo"] {
z-index: 103;
padding: 22px;
background-color: @menu-button-background;
- opacity: 0;
+ color: @menu-text;
+ opacity: 1;
transition: opacity 250ms;
}
}
}
}
+/* SVG Sprite */
+[class^="interface-"], [class*=" interface-"] {
+ display: inline-block;
+ fill: currentColor;
+}
+
/* Webfonts*/
@font-face {