-
-
Notifications
You must be signed in to change notification settings - Fork 869
Compression breaks CSS when valid '//' are used #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm. That location is not a standard location for user customization in DokuWiki. It might be handled by the template itself but I don't know how that would be affected by an upgrade. |
This is a feature of the vector template. (note: maybe it is cause by this change in the vector template: arsava/dokuwiki-template-vector@fede5d7 ) |
In my test wiki, i cannot reproduce it so far. Did you expire the dokuwiki caches and cleaned the browser cache after the update?
|
Vector includes currently the style files by https://github.com/arsava/dokuwiki-template-vector/blob/master/style.ini So when you are still affected after refreshing the cache, please report it the bug tracker of the Vector template. |
This issue seems caused by the url-rewriter in the DokuWiki's css-compressor. A faulty snippet is from static/3rd/vector/main-ltr.css#L999 of the vector template: div#content a.external,
div#content a[href ^="gopher://"] {
background: url(static/3rd/vector/external-link-ltr-icon.png) center right no-repeat;
padding: 0 13px 0 0;
}
div#content a[href ^="https://"],
.link-https {
background: url(static/3rd/vector/lock-icon.png) center right no-repeat;
padding: 0 13px 0 0;
}
div#content a[href ^="mailto:"],
.link-mailto {
background: url(static/3rd/vector/mail-icon.png) center right no-repeat;
padding: 0 13px 0 0;
}
div#content a[href ^="news://"] {
background: url(static/3rd/vector/news-icon.png) center right no-repeat;
padding: 0 13px 0 0;
}
div#content a[href ^="ftp://"],
.link-ftp {
background: url(static/3rd/vector/file-icon.png) center right no-repeat;
padding: 0 13px 0 0;
}
div#content a[href ^="irc://"],
div#content a.extiw[href ^="irc://"],
.link-irc {
background: url(static/3rd/vector/talk-icon.png) center right no-repeat;
padding: 0 13px 0 0;
} This is compressed to: div#content a.external,div#content a[href ^="gopher:background:url(https://github.com/wiki/lib/tpl/vector/static/3rd/vector/external-link-ltr-icon.png) center right no-repeat;padding:0 13px 0 0;}div#content a[href ^="https:.link-https{background:url(/wiki/lib/tpl/vector/static/3rd/vector/lock-icon.png) center right no-repeat;padding:0 13px 0 0;}div#content a[href ^="mailto:"],.link-mailto{background:url(/wiki/lib/tpl/vector/static/3rd/vector/mail-icon.png) center right no-repeat;padding:0 13px 0 0;}div#content a[href ^="news:background:url(https://github.com/wiki/lib/tpl/vector/static/3rd/vector/news-icon.png) center right no-repeat;padding:0 13px 0 0;}div#content a[href ^="ftp:.link-ftp{background:url(/wiki/lib/tpl/vector/static/3rd/vector/file-icon.png) center right no-repeat;padding:0 13px 0 0;}div#content a[href ^="irc:div#content a.extiw[href ^="irc:.link-irc{background:url(/wiki/lib/tpl/vector/static/3rd/vector/talk-icon.png) center right no-repeat;padding:0 13px 0 0;} The original css was valid css, isn't? |
Yeah fe5a50c seems to be the problem. I guess that function needs to check for strings as well. I will have a look. |
This avoids treating double slashes as single line comments in CSS when they are used in a filter or content string. closes #638
I did some changes in layout by using lib/tpl/vector/user/screen.css in Binky. This worked well. Today I upgraded to Ponder Stibbons. After that the configurations in lib/tpl/vector/user/screen.css are ignored. I checked, that the file is in place and unchanged. Any idea, whats wrong?
My screen.css:
The text was updated successfully, but these errors were encountered: