cleanup(css): remove 1x1 pixel <img> hack

When the code was written, there is no way to specify img's src, so
the 1x1 blank.png is a dummy img to be replaced.
This commit is contained in:
shenleban tongying 2023-04-20 05:49:05 -04:00 committed by xiaoyifang
parent 3f3ba6eee1
commit 1a3bae3329
9 changed files with 21 additions and 22 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 293 B

View file

@ -31,7 +31,6 @@
<file>icons/icon32_lingoes.png</file>
<file>icons/mdict.png</file>
<file>icons/downarrow.png</file>
<file>icons/blank.png</file>
<file>icons/expand_article_hovered.png</file>
<file>icons/expand_article.png</file>
<file>icons/collapse_article_hovered.png</file>

View file

@ -667,7 +667,7 @@ void ArticleRequest::bodyFinished()
<span class="gddicticon"><img src="gico://%1/dicticon.png"></span>
<span class="gdfromprefix">%4</span>
<span class="gddicttitle">%5</span>
<span class="collapse_expand_area"><img src="qrc:///icons/blank.png" class="%6" id="expandicon-%1" title="%7" ></span>
<span class="collapse_expand_area"><img class="%6" id="expandicon-%1" title="%7" ></span>
</div>)" )
.arg( dictId.c_str(),
collapse ? R"(style="cursor:pointer;")" : "",

View file

@ -73,19 +73,19 @@ h3 {
}
.gdexpandicon {
background-image: url('qrc:///icons/expand_article.png');
content:url('qrc:///icons/expand_article.png');
}
.gdexpandicon:hover {
background-image: url('qrc:///icons/expand_article_hovered.png');
content:url('qrc:///icons/expand_article_hovered.png');
}
.gdcollapseicon {
background-image: url('qrc:///icons/collapse_article.png');
content:url('qrc:///icons/collapse_article.png');
}
.gdcollapseicon:hover {
background-image: url('qrc:///icons/collapse_article_hovered.png');
content:url('qrc:///icons/collapse_article_hovered.png');
}
.bglpos { color: black; font-weight: bold; font-size: 11px; background: #F0EDED; display: inline; }

View file

@ -2909,7 +2909,7 @@ in bg url to hide it from iemac */
width:16px;
height:16px;
vertical-align: text-bottom;
background-image:url('qrc:///icons/old-arrow.png');
content:url('qrc:///icons/old-arrow.png');
}
.gdcollapseicon {
@ -2917,7 +2917,7 @@ in bg url to hide it from iemac */
width:16px;
height:16px;
vertical-align: text-bottom;
background-image:url('qrc:///icons/old-downarrow.png');
content:url('qrc:///icons/old-downarrow.png');
}
/********** Slob dictionaries ***********/

View file

@ -107,19 +107,19 @@ a:hover {
}
.gdexpandicon {
background-image: url('qrc:///icons/expand_article.png');
content:url('qrc:///icons/expand_article.png');
}
.gdexpandicon:hover {
background-image: url('qrc:///icons/expand_article_hovered.png');
content:url('qrc:///icons/expand_article_hovered.png');
}
.gdcollapseicon {
background-image: url('qrc:///icons/collapse_article.png');
content:url('qrc:///icons/collapse_article.png');
}
.gdcollapseicon:hover {
background-image: url('qrc:///icons/collapse_article_hovered.png');
content:url('qrc:///icons/collapse_article_hovered.png');
}
.gdarticleseparator {

View file

@ -78,19 +78,19 @@ body
.gdexpandicon {
background-image: url('qrc:///icons/expand_article.png');
content:url('qrc:///icons/expand_article.png');
}
.gdexpandicon:hover {
background-image: url('qrc:///icons/expand_article_hovered.png');
content:url('qrc:///icons/expand_article_hovered.png');
}
.gdcollapseicon {
background-image: url('qrc:///icons/collapse_article.png');
content:url('qrc:///icons/collapse_article.png');
}
.gdcollapseicon:hover {
background-image: url('qrc:///icons/collapse_article_hovered.png');
content:url('qrc:///icons/collapse_article_hovered.png');
}
.gddictnamebodyseparator

View file

@ -137,19 +137,19 @@ a:hover
}
.gdexpandicon {
background-image: url('qrc:///icons/expand_article.png');
content:url('qrc:///icons/expand_article.png');
}
.gdexpandicon:hover {
background-image: url('qrc:///icons/expand_article_hovered.png');
content:url('qrc:///icons/expand_article_hovered.png');
}
.gdcollapseicon {
background-image: url('qrc:///icons/collapse_article.png');
content:url('qrc:///icons/collapse_article.png');
}
.gdcollapseicon:hover {
background-image: url('qrc:///icons/collapse_article_hovered.png');
content:url('qrc:///icons/collapse_article_hovered.png');
}
/* The first headword in a (possibly) multi-headword DSL article */

View file

@ -2935,7 +2935,7 @@ in bg url to hide it from iemac */
height:16px;
vertical-align: text-bottom;
background-size: contain;
background-image:url('qrc://localhost/icons/arrow.png');
content:url('qrc://localhost/icons/arrow.png');
}
.gdcollapseicon {
@ -2944,7 +2944,7 @@ in bg url to hide it from iemac */
height:16px;
vertical-align: text-bottom;
background-size: contain;
background-image:url('qrc://localhost/icons/downarrow.png');
content:url('qrc://localhost/icons/downarrow.png');
}
/********** Slob dictionaries ***********/