mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
remove deprecated prefixes
This commit is contained in:
parent
b8aa8dec0b
commit
5ef5030435
@ -1,5 +1,7 @@
|
|||||||
Developing v0.10
|
Developing v0.10
|
||||||
|
|
||||||
|
* Add a logo
|
||||||
|
* Remove Opera prefix (-o-)
|
||||||
* Background image optimization
|
* Background image optimization
|
||||||
* Support output background image in JPEG (--bg-format jpg)
|
* Support output background image in JPEG (--bg-format jpg)
|
||||||
* [Experimental] Support output background image in SVG (--bg-format svg)
|
* [Experimental] Support output background image in SVG (--bg-format svg)
|
||||||
|
@ -31,6 +31,22 @@
|
|||||||
right:0;
|
right:0;
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
}
|
}
|
||||||
|
#loading-indicator {
|
||||||
|
position:absolute;
|
||||||
|
width:64px;
|
||||||
|
height:64px;
|
||||||
|
top:50%;
|
||||||
|
left:50%;
|
||||||
|
margin-top:-32px;
|
||||||
|
margin-left:-32px;
|
||||||
|
}
|
||||||
|
#loading-indicator img {
|
||||||
|
position:absolute;
|
||||||
|
top:0;
|
||||||
|
left:0;
|
||||||
|
bottom:0;
|
||||||
|
right:0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
@page { margin:0; }
|
@page { margin:0; }
|
||||||
@ -82,9 +98,7 @@
|
|||||||
/* set transform-origin for scaling */
|
/* set transform-origin for scaling */
|
||||||
transform-origin:0% 0%;
|
transform-origin:0% 0%;
|
||||||
-ms-transform-origin:0% 0%;
|
-ms-transform-origin:0% 0%;
|
||||||
-moz-transform-origin:0% 0%;
|
|
||||||
-webkit-transform-origin:0% 0%;
|
-webkit-transform-origin:0% 0%;
|
||||||
-o-transform-origin:0% 0%;
|
|
||||||
}
|
}
|
||||||
.@CSS_PAGE_CONTENT_BOX_CN@.opened { /* used by pdf2htmlEX.js, to show/hide pages */
|
.@CSS_PAGE_CONTENT_BOX_CN@.opened { /* used by pdf2htmlEX.js, to show/hide pages */
|
||||||
display:block;
|
display:block;
|
||||||
@ -142,9 +156,7 @@
|
|||||||
font-size:1px;
|
font-size:1px;
|
||||||
transform-origin:0% 100%;
|
transform-origin:0% 100%;
|
||||||
-ms-transform-origin:0% 100%;
|
-ms-transform-origin:0% 100%;
|
||||||
-moz-transform-origin:0% 100%;
|
|
||||||
-webkit-transform-origin:0% 100%;
|
-webkit-transform-origin:0% 100%;
|
||||||
-o-transform-origin:0% 100%;
|
|
||||||
unicode-bidi:bidi-override;/* For rtl lanauges, e.g. Hebrew, we don't want the default Unicode behaviour */
|
unicode-bidi:bidi-override;/* For rtl lanauges, e.g. Hebrew, we don't want the default Unicode behaviour */
|
||||||
-moz-font-feature-settings:"liga" 0;/* We don't want Firefox to recognize ligatures */
|
-moz-font-feature-settings:"liga" 0;/* We don't want Firefox to recognize ligatures */
|
||||||
}
|
}
|
||||||
@ -176,8 +188,6 @@ span { /* text blocks within a line */
|
|||||||
position:absolute;
|
position:absolute;
|
||||||
transform-origin:0% 100%;
|
transform-origin:0% 100%;
|
||||||
-ms-transform-origin:0% 100%;
|
-ms-transform-origin:0% 100%;
|
||||||
-moz-transform-origin:0% 100%;
|
|
||||||
-webkit-transform-origin:0% 100%;
|
-webkit-transform-origin:0% 100%;
|
||||||
-o-transform-origin:0% 100%;
|
|
||||||
}
|
}
|
||||||
/* Base CSS END */
|
/* Base CSS END */
|
||||||
|
@ -42,9 +42,7 @@
|
|||||||
background-color:#9e9e9e;
|
background-color:#9e9e9e;
|
||||||
/* http://philbit.com/svgpatterns/#thinstripes */
|
/* http://philbit.com/svgpatterns/#thinstripes */
|
||||||
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjOWU5ZTllIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiM4ODgiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=");
|
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjOWU5ZTllIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiM4ODgiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=");
|
||||||
-moz-transition:left 500ms;
|
|
||||||
-webkit-transition:left 500ms;
|
-webkit-transition:left 500ms;
|
||||||
-o-transition:left 500ms;
|
|
||||||
transition:left 500ms;
|
transition:left 500ms;
|
||||||
}
|
}
|
||||||
.@CSS_PAGE_DECORATION_CN@ {
|
.@CSS_PAGE_DECORATION_CN@ {
|
||||||
@ -52,13 +50,9 @@
|
|||||||
box-shadow: 1px 1px 3px 1px #333;
|
box-shadow: 1px 1px 3px 1px #333;
|
||||||
}
|
}
|
||||||
@keyframes fadein { from { opacity:0;} to { opacity:1;} }
|
@keyframes fadein { from { opacity:0;} to { opacity:1;} }
|
||||||
@-moz-keyframes fadein { from { opacity:0;} to { opacity:1;} }
|
|
||||||
@-webkit-keyframes fadein { from { opacity:0;} to { opacity:1;} }
|
@-webkit-keyframes fadein { from { opacity:0;} to { opacity:1;} }
|
||||||
@-o-keyframes fadein { from { opacity:0;} to { opacity: 1;} }
|
|
||||||
.@CSS_PAGE_CONTENT_BOX_CN@.opened { /* used by pdf2htmlEX.js, to show/hide pages */
|
.@CSS_PAGE_CONTENT_BOX_CN@.opened { /* used by pdf2htmlEX.js, to show/hide pages */
|
||||||
-moz-animation: fadein 100ms;
|
|
||||||
-webkit-animation: fadein 100ms;
|
-webkit-animation: fadein 100ms;
|
||||||
-o-animation: fadein 100ms;
|
|
||||||
animation: fadein 100ms;
|
animation: fadein 100ms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,7 @@ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({
|
|||||||
container_id : 'page-container',
|
container_id : 'page-container',
|
||||||
sidebar_id : 'sidebar',
|
sidebar_id : 'sidebar',
|
||||||
outline_id : 'outline',
|
outline_id : 'outline',
|
||||||
|
indicator_id : 'loading-indicator',
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
"""
|
"""
|
||||||
@ -77,6 +78,15 @@ $pages
|
|||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# shown when loading a page via ajax
|
||||||
|
"""
|
||||||
|
<div id="loading-indicator">
|
||||||
|
"""
|
||||||
|
@pdf2htmlEX-64x64.png
|
||||||
|
"""
|
||||||
|
</div>
|
||||||
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -206,7 +206,7 @@ LinearGradient::LinearGradient (GfxAxialShading * shading,
|
|||||||
|
|
||||||
void LinearGradient::dumpto (ostream & out)
|
void LinearGradient::dumpto (ostream & out)
|
||||||
{
|
{
|
||||||
auto prefixes = {"", "-ms-", "-moz-", "-webkit-", "-o-"};
|
auto prefixes = {"", "-ms-", "-webkit-"};
|
||||||
for(auto iter = prefixes.begin(); iter != prefixes.end(); ++iter)
|
for(auto iter = prefixes.begin(); iter != prefixes.end(); ++iter)
|
||||||
{
|
{
|
||||||
out << "background-image:" << (*iter) << "linear-gradient(" << round(angle) << "rad";
|
out << "background-image:" << (*iter) << "linear-gradient(" << round(angle) << "rad";
|
||||||
|
@ -304,15 +304,14 @@ public:
|
|||||||
// we have already shifted the origin
|
// we have already shifted the origin
|
||||||
// TODO: recognize common matices
|
// TODO: recognize common matices
|
||||||
const auto & m = matrix.m;
|
const auto & m = matrix.m;
|
||||||
|
auto prefixes = {"", "-ms-", "-webkit-"};
|
||||||
if(tm_equal(m, ID_MATRIX, 4))
|
if(tm_equal(m, ID_MATRIX, 4))
|
||||||
{
|
{
|
||||||
auto prefixes = {"", "-ms-", "-moz-", "-webkit-", "-o-"};
|
|
||||||
for(auto iter = prefixes.begin(); iter != prefixes.end(); ++iter)
|
for(auto iter = prefixes.begin(); iter != prefixes.end(); ++iter)
|
||||||
out << *iter << "transform:none;";
|
out << *iter << "transform:none;";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto prefixes = {"", "-ms-", "-moz-", "-webkit-", "-o-"};
|
|
||||||
for(auto iter = prefixes.begin(); iter != prefixes.end(); ++iter)
|
for(auto iter = prefixes.begin(); iter != prefixes.end(); ++iter)
|
||||||
{
|
{
|
||||||
// PDF use a different coordinate system from Web
|
// PDF use a different coordinate system from Web
|
||||||
|
Loading…
Reference in New Issue
Block a user