From 5e148eaea66e9fab6578bef4bdfb68479279767b Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Mon, 9 Oct 2023 18:06:54 +0800 Subject: [PATCH] fix: fix image path in default article css [autofix.ci] apply automated fixes --- icons/audio.png | Bin 0 -> 441 bytes icons/document.png | Bin 0 -> 567 bytes resources.qrc | 2 ++ src/stylesheets/article-style-st-classic.css | 9 ++++----- src/stylesheets/article-style.css | 13 ++++++------- 5 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 icons/audio.png create mode 100644 icons/document.png diff --git a/icons/audio.png b/icons/audio.png new file mode 100644 index 0000000000000000000000000000000000000000..3f403ae69f41ca52adf50b5c3dbae396260446fd GIT binary patch literal 441 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6SkfJR9T^xl_H+M9WCijSl0AZa z85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+ueoXe|!I#{Xiaj ziKnkC`!i-?E?&b2O4{~7p@W_-jv*T7YcFo}b}AG(`q6*A`uU3-OzkCJGQYH?iUeYe zq;Ab+5#RoeLnA4FCWD8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10mMl} zK~y-6rIR~v6G0GwzZviP!P!1v3M^qk2Q<)7BP1kbi8dAdk@RWOAbtW>8h!#P5L8Hr z!X1c?1}Tc{pg1`kKX!-0+$lD88b%uJYv!BTnO!k6{zqIf84L#B+U<4*NQ}`!2$&gW zMvSo>7mEd>(P-T7_wTI$k|fDgwd=jd%n*@M*Tu|AKX>&&RS^-+_x89vIs%}2c*te9 zTiWz`y%lH)h%q7}s48(hCZ3)GQ1_l{yS)-*V-1RXsw$N85gG>vxc&XI230`f94gg+GSI64?>!>IWHKSob1p6}m`^9Td5(O3L#I)>9#BL~ zl7v>PMVhA6Y7M3zUi0hSD`r2wTwjCPY=-w9fbr=$t+a`+d72NO(|*vW*1fwOU}iYy z5D~t9`p)~eAIZ8IFZOns-h8xdZ-86d03igNTP}w`hX9-n&rqpQue&nx`s3Qzg(tg@ zso$t`=l*RPNu9-Ffpd;dr$Y!~dkqRuGfjB*@+qpiqJ_;y!13|%Z!;ToT-o7r^T_76mkz&D| icons/add-anki-icon.svg + icons/document.png + icons/audio.png version.txt icons/arrow.png icons/prefix.png diff --git a/src/stylesheets/article-style-st-classic.css b/src/stylesheets/article-style-st-classic.css index ff1e08ab..1abc45ac 100644 --- a/src/stylesheets/article-style-st-classic.css +++ b/src/stylesheets/article-style-st-classic.css @@ -1661,7 +1661,7 @@ in the bottom-right corner of the content area */ .mwiki #bodyContent a.external[href$=".wma"], .mwiki #bodyContent a.external[href$=".WMA"], .mwiki .link-audio { - background: url("audio.png") center right no-repeat; + background: url("qrc:///icons/audio.png") center right no-repeat; padding-right: 1em; } .mwiki #bodyContent a.external[href$=".ogm"], @@ -1673,7 +1673,7 @@ in the bottom-right corner of the content area */ .mwiki #bodyContent a.external[href$=".mpg"], .mwiki #bodyContent a.external[href$=".MPG"], .mwiki .link-video { - background: url("video.png") center right no-repeat; + background: url("qrc:///icons/video.png") center right no-repeat; padding-right: 1em; } .mwiki #bodyContent a.external[href$=".pdf"], @@ -1683,7 +1683,7 @@ in the bottom-right corner of the content area */ .mwiki #bodyContent a.external[href*=".pdf?"], .mwiki #bodyContent a.external[href*=".PDF?"], .mwiki .link-document { - background: url("document.png") center right no-repeat; + background: url("qrc:///icons/document.png") center right no-repeat; padding-right: 12px; } @@ -2980,8 +2980,7 @@ table#sv-hooks, /****** Wiktionary-specific excerpts *********/ .mwiki .audiolink a { - background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Loudspeaker.svg/16px-Loudspeaker.svg.png") - center left no-repeat !important; + background: url("qrc:///icons/audio.png") center left no-repeat !important; padding-left: 20px !important; padding-right: 0 !important; } diff --git a/src/stylesheets/article-style.css b/src/stylesheets/article-style.css index f7852ada..48de2a51 100644 --- a/src/stylesheets/article-style.css +++ b/src/stylesheets/article-style.css @@ -1720,7 +1720,7 @@ in the bottom-right corner of the content area */ .mwiki #bodyContent a.external[href$=".wma"], .mwiki #bodyContent a.external[href$=".WMA"], .mwiki .link-audio { - background: url("audio.png") center right no-repeat; + background: url("qrc:///icons/audio.png") center right no-repeat; padding-right: 1em; } .mwiki #bodyContent a.external[href$=".ogm"], @@ -1732,7 +1732,7 @@ in the bottom-right corner of the content area */ .mwiki #bodyContent a.external[href$=".mpg"], .mwiki #bodyContent a.external[href$=".MPG"], .mwiki .link-video { - background: url("video.png") center right no-repeat; + background: url("qrc:///icons/video.png") center right no-repeat; padding-right: 1em; } .mwiki #bodyContent a.external[href$=".pdf"], @@ -1742,7 +1742,7 @@ in the bottom-right corner of the content area */ .mwiki #bodyContent a.external[href*=".pdf?"], .mwiki #bodyContent a.external[href*=".PDF?"], .mwiki .link-document { - background: url("document.png") center right no-repeat; + background: url("qrc:///icons/document.png") center right no-repeat; padding-right: 12px; } @@ -3039,8 +3039,7 @@ table#sv-hooks, /****** Wiktionary-specific excerpts *********/ .mwiki .audiolink a { - background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Loudspeaker.svg/16px-Loudspeaker.svg.png") - center left no-repeat !important; + background: url("qrc:///icons/audio.png") center left no-repeat !important; padding-left: 20px !important; padding-right: 0 !important; } @@ -3064,7 +3063,7 @@ table#sv-hooks, height: 16px; vertical-align: text-bottom; background-size: contain; - content: url("qrc://localhost/icons/arrow.png"); + content: url("qrc:///icons/arrow.png"); } .gdcollapseicon { @@ -3073,7 +3072,7 @@ table#sv-hooks, height: 16px; vertical-align: text-bottom; background-size: contain; - content: url("qrc://localhost/icons/downarrow.png"); + content: url("qrc:///icons/downarrow.png"); } /********** Slob dictionaries ***********/