mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
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:
parent
3f3ba6eee1
commit
1a3bae3329
BIN
icons/blank.png
BIN
icons/blank.png
Binary file not shown.
Before Width: | Height: | Size: 293 B |
|
@ -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>
|
||||
|
|
|
@ -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;")" : "",
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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 ***********/
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 ***********/
|
||||
|
|
Loading…
Reference in a new issue