[autofix.ci] apply automated fixes (attempt 2/3)

[autofix.ci] apply automated fixes
This commit is contained in:
autofix-ci[bot] 2023-07-15 05:28:52 +00:00 committed by xiaoyifang
parent bfba6e1f67
commit 534d8c2e96
15 changed files with 3563 additions and 3353 deletions

View file

@ -1,130 +1,124 @@
// seperate from cpp code.
var gdAudioLinks = {
"first": null,
"current": null
first: null,
current: null,
};
//store dictionary audio link.
var gdAudioMap= new Map();
var gdAudioMap = new Map();
function gdMakeArticleActive(newId,noEvent) {
var gdCurrentArticle = $_$(".gdactivearticle").attr("id")
if (gdCurrentArticle !== 'gdfrom-' + newId) {
$_$(".gdactivearticle").removeClass("gdactivearticle")
var newFormId = 'gdfrom-' + newId
$_$("#" + newFormId).addClass("gdactivearticle")
gdCurrentArticle = 'gdfrom-' + newId
gdAudioLinks.current = newId
if(!noEvent)
articleview.onJsActiveArticleChanged('gdfrom-' + newId);
}
function gdMakeArticleActive(newId, noEvent) {
var gdCurrentArticle = $_$(".gdactivearticle").attr("id");
if (gdCurrentArticle !== "gdfrom-" + newId) {
$_$(".gdactivearticle").removeClass("gdactivearticle");
var newFormId = "gdfrom-" + newId;
$_$("#" + newFormId).addClass("gdactivearticle");
gdCurrentArticle = "gdfrom-" + newId;
gdAudioLinks.current = newId;
if (!noEvent) articleview.onJsActiveArticleChanged("gdfrom-" + newId);
}
}
var overIframeId = null;
function gdSelectArticle(id) {
var selection = window.getSelection()
var range = document.createRange()
range.selectNodeContents(document.getElementById('gdfrom-' + id))
selection.removeAllRanges()
selection.addRange(range)
var selection = window.getSelection();
var range = document.createRange();
range.selectNodeContents(document.getElementById("gdfrom-" + id));
selection.removeAllRanges();
selection.addRange(range);
}
function processIframeMouseOut() {
overIframeId = null
top.focus()
overIframeId = null;
top.focus();
}
function processIframeMouseOver(newId) {
overIframeId = newId
overIframeId = newId;
}
function processIframeClick() {
if (overIframeId != null) {
overIframeId = overIframeId.replace('gdexpandframe-', '')
gdMakeArticleActive(overIframeId)
}
if (overIframeId != null) {
overIframeId = overIframeId.replace("gdexpandframe-", "");
gdMakeArticleActive(overIframeId);
}
}
function init() {
window.addEventListener('blur', processIframeClick, false)
window.addEventListener("blur", processIframeClick, false);
}
window.addEventListener('load', init, false)
window.addEventListener("load", init, false);
function gdExpandOptPart(expanderId, optionalId) {
var d1 = document.getElementById(expanderId)
var i = 0
if (d1.alt == '[+]') {
d1.alt = '[-]'
d1.src = 'qrc:///icons/collapse_opt.png'
for (i = 0; i < 1000; i++) {
var d2 = document.getElementById(optionalId + i)
if (!d2)
break
d2.style.display = 'inline'
}
} else {
d1.alt = '[+]'
d1.src = 'qrc:///icons/expand_opt.png'
for (i = 0; i < 1000; i++) {
var d2 = document.getElementById(optionalId + i)
if (!d2)
break
d2.style.display = 'none'
}
var d1 = document.getElementById(expanderId);
var i = 0;
if (d1.alt == "[+]") {
d1.alt = "[-]";
d1.src = "qrc:///icons/collapse_opt.png";
for (i = 0; i < 1000; i++) {
var d2 = document.getElementById(optionalId + i);
if (!d2) break;
d2.style.display = "inline";
}
} else {
d1.alt = "[+]";
d1.src = "qrc:///icons/expand_opt.png";
for (i = 0; i < 1000; i++) {
var d2 = document.getElementById(optionalId + i);
if (!d2) break;
d2.style.display = "none";
}
}
}
function emitClickedEvent(link) {
try {
if ('string' != typeof(link)) {
return;
}
articleview.linkClickedInHtml(link)
} catch (error) {
console.error(error)
try {
if ("string" != typeof link) {
return;
}
articleview.linkClickedInHtml(link);
} catch (error) {
console.error(error);
}
}
function gdExpandArticle(id) {
emitClickedEvent()
elem = document.getElementById('gdarticlefrom-' + id)
ico = document.getElementById('expandicon-' + id)
art = document.getElementById('gdfrom-' + id)
ev = window.event
t = null
if (ev)
t = ev.target || ev.srcElement
if (elem.style.display == 'inline') {
elem.style.display = 'none'
ico.className = 'gdexpandicon'
art.className = art.className + ' gdcollapsedarticle'
nm = document.getElementById('gddictname-' + id)
nm.style.cursor = 'pointer'
if (ev)
ev.stopPropagation()
ico.title = tr("Expand article")
nm.title = ''
articleview.collapseInHtml(id,true);
} else if (elem.style.display == 'none') {
elem.style.display = 'inline'
ico.className = 'gdcollapseicon'
art.className = art.className.replace(' gdcollapsedarticle', '')
nm = document.getElementById('gddictname-' + id)
nm.style.cursor = 'default'
nm.title = ''
ico.title = tr("Collapse article")
articleview.collapseInHtml(id,false);
}
emitClickedEvent();
elem = document.getElementById("gdarticlefrom-" + id);
ico = document.getElementById("expandicon-" + id);
art = document.getElementById("gdfrom-" + id);
ev = window.event;
t = null;
if (ev) t = ev.target || ev.srcElement;
if (elem.style.display == "inline") {
elem.style.display = "none";
ico.className = "gdexpandicon";
art.className = art.className + " gdcollapsedarticle";
nm = document.getElementById("gddictname-" + id);
nm.style.cursor = "pointer";
if (ev) ev.stopPropagation();
ico.title = tr("Expand article");
nm.title = "";
articleview.collapseInHtml(id, true);
} else if (elem.style.display == "none") {
elem.style.display = "inline";
ico.className = "gdcollapseicon";
art.className = art.className.replace(" gdcollapsedarticle", "");
nm = document.getElementById("gddictname-" + id);
nm.style.cursor = "default";
nm.title = "";
ico.title = tr("Collapse article");
articleview.collapseInHtml(id, false);
}
}
function gdCheckArticlesNumber() {
elems = document.getElementsByClassName('gddictname')
if (elems.length == 1) {
el = elems.item(0)
s = el.id.replace('gddictname-', '')
el = document.getElementById('gdfrom-' + s)
if (el && el.className.search('gdcollapsedarticle') > 0)
gdExpandArticle(s)
}
elems = document.getElementsByClassName("gddictname");
if (elems.length == 1) {
el = elems.item(0);
s = el.id.replace("gddictname-", "");
el = document.getElementById("gdfrom-" + s);
if (el && el.className.search("gdcollapsedarticle") > 0) gdExpandArticle(s);
}
}

View file

@ -1,63 +1,68 @@
//document ready
(function ($) {
$(function () {
$(document).on("click", "a", function (event) {
var link = $(this).attr("href");
if ('string' != typeof (link)) {
return;
}
$(function () {
$(document).on("click", "a", function (event) {
var link = $(this).attr("href");
if ("string" != typeof link) {
return;
}
if (link.indexOf("javascript:") >= 0) {
return;
}
if (link.indexOf("javascript:") >= 0) {
return;
}
//return if the link is like gdlookup:// or other valid url.
if (link.indexOf(":") >= 0) {
emitClickedEvent(link);
return false;
}
emitClickedEvent("");
//return if the link is like gdlookup:// or other valid url.
if (link.indexOf(":") >= 0) {
emitClickedEvent(link);
return false;
}
emitClickedEvent("");
var newLink;
var href = window.location.href;
var index = -1;
if (link.startsWith("#")) {
//the href may contain # fragment already.remove them before append the new #fragment
index = href.indexOf("#");
if (index > -1) {
newLink = href.substring(0, index) + link;
}
else {
newLink = href + link;
}
}
//if hashtag # is not in the start position,it must greater than 0
else if (link.indexOf("#")>0) {
index = link.indexOf("#");
newLink = "gdlookup://localhost/"+link.substring(0,index)+"?gdanchor="+link.substring(index+1);
}
else {
index = href.indexOf("?");
var newLink;
var href = window.location.href;
var index = -1;
if (link.startsWith("#")) {
//the href may contain # fragment already.remove them before append the new #fragment
index = href.indexOf("#");
if (index > -1) {
newLink = href.substring(0, index) + link;
} else {
newLink = href + link;
}
}
//if hashtag # is not in the start position,it must greater than 0
else if (link.indexOf("#") > 0) {
index = link.indexOf("#");
newLink =
"gdlookup://localhost/" +
link.substring(0, index) +
"?gdanchor=" +
link.substring(index + 1);
} else {
index = href.indexOf("?");
if (link.indexOf("?gdanchor") > -1) {
newLink = "gdlookup://localhost/" + link;
}
else {
if (index > -1) {
newLink = href.substring(0, index) + "?word=" + link;
}
else {
newLink = href + "?word=" + link;
}
}
}
$(this).attr("href", newLink);
});
//monitor iframe height.
$('iframe').iFrameResize({ checkOrigin:false,maxHeight :800,scrolling:true,warningTimeout:0,minHeight :250,log:true,autoResize:false});
if (link.indexOf("?gdanchor") > -1) {
newLink = "gdlookup://localhost/" + link;
} else {
if (index > -1) {
newLink = href.substring(0, index) + "?word=" + link;
} else {
newLink = href + "?word=" + link;
}
}
}
$(this).attr("href", newLink);
});
//monitor iframe height.
$("iframe").iFrameResize({
checkOrigin: false,
maxHeight: 800,
scrolling: true,
warningTimeout: 0,
minHeight: 250,
log: true,
autoResize: false,
});
});
})($_$);

View file

@ -1,4 +1,4 @@
div.gdactivearticle .gddictname {
color:initial;
background: rgb(0, 102, 184);
color: initial;
background: rgb(0, 102, 184);
}

View file

@ -1,13 +1,13 @@
/* This stylesheet is used for printing only, overriding article-style.css */
html, body, .gdarticle
{
html,
body,
.gdarticle {
background: white;
}
/* Hide audio icons */
.dsl_s_wav
{
.dsl_s_wav {
display: none;
}

View file

@ -1,99 +1,101 @@
html
{
html {
background-color: white;
}
body
{
background: white;
body {
background: white;
}
.gdarticle
{
.gdarticle {
background: white;
}
h3 {
font-size: 1em;
font-size: 1em;
}
::selection
{
background: #4492E8;
color: white;
::selection {
background: #4492e8;
color: white;
}
/* Dictionary's name heading */
.gddictname
{
font-weight: normal;
font-size: 11px;
border: none;
border-top-left-radius: 8px;
border-top-right-radius: 0px;
background: #F0EDED;
padding-top: 5px;
padding-bottom: 5px;
.gddictname {
font-weight: normal;
font-size: 11px;
border: none;
border-top-left-radius: 8px;
border-top-right-radius: 0px;
background: #f0eded;
padding-top: 5px;
padding-bottom: 5px;
}
.gddicticon
{
display: inline;
padding-right: 5px;
.gddicticon {
display: inline;
padding-right: 5px;
}
.gddicticon img
{
border: 0;
height: 16px;
vertical-align: text-top;
.gddicticon img {
border: 0;
height: 16px;
vertical-align: text-top;
}
/* The 'From ' string which precedes dictionary name in the heading */
.gdfromprefix
{
display: none;
.gdfromprefix {
display: none;
}
/* Move the collapse/expand buttons to the right */
.collapse_expand_area
{
.collapse_expand_area {
float: right;
margin-right: 2px;
}
.gdexpandicon, .gdexpandicon:hover, .gdcollapseicon, .gdcollapseicon:hover
{
width:15px;
background-position: center;
background-repeat:no-repeat;
vertical-align: text-bottom;
padding-left: -5px;
margin-left: 0px;
.gdexpandicon,
.gdexpandicon:hover,
.gdcollapseicon,
.gdcollapseicon:hover {
width: 15px;
background-position: center;
background-repeat: no-repeat;
vertical-align: text-bottom;
padding-left: -5px;
margin-left: 0px;
}
.gdexpandicon {
content:url('qrc:///icons/expand_article.png');
content: url("qrc:///icons/expand_article.png");
}
.gdexpandicon:hover {
content:url('qrc:///icons/expand_article_hovered.png');
content: url("qrc:///icons/expand_article_hovered.png");
}
.gdcollapseicon {
content:url('qrc:///icons/collapse_article.png');
content: url("qrc:///icons/collapse_article.png");
}
.gdcollapseicon:hover {
content: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; }
.bgltrn { color: #808080; font-size: 12px; display: inline; }
a, .mwiki a
{
color: #0066CC;
.bglpos {
color: black;
font-weight: bold;
font-size: 11px;
background: #f0eded;
display: inline;
}
.bgltrn {
color: #808080;
font-size: 12px;
display: inline;
}
a,
.mwiki a {
color: #0066cc;
}

File diff suppressed because it is too large Load diff

View file

@ -1,94 +1,99 @@
body {
background: #EAF0F8;
margin: 0.3em;
font-family: "Arial Unicode MS", "Lucida Sans Unicode", Tahoma, Verdana, "Palatino Linotype", sans-serif;
line-height: 120%;
background: #eaf0f8;
margin: 0.3em;
font-family: "Arial Unicode MS", "Lucida Sans Unicode", Tahoma, Verdana,
"Palatino Linotype", sans-serif;
line-height: 120%;
}
a {
text-decoration: none;
color: darkblue;
text-decoration: none;
color: darkblue;
}
a:hover {
text-decoration: underline;
text-decoration: underline;
}
.gdarticle {
background: #FFFEF2;
margin-top: 0.1em;
margin-bottom: 0.35em;
padding: 5px;
padding-top: -10px;
border: 1px solid #C7D4DC;
border-radius: 8px;
background: #fffef2;
margin-top: 0.1em;
margin-bottom: 0.35em;
padding: 5px;
padding-top: -10px;
border: 1px solid #c7d4dc;
border-radius: 8px;
}
.gdactivearticle {
background: #FFFEF2;
border: 1px solid #92B0DD;
background: #fffef2;
border: 1px solid #92b0dd;
}
.gdarticleseparator + script + .gdactivearticle .gddictname {
border-top: 1px solid #92B0DD;
border-right: 1px solid #92B0DD;
border-top: 1px solid #92b0dd;
border-right: 1px solid #92b0dd;
}
.gddictname {
display: flex; /* needed to be able to reorder elements, e.g. icon, dictionary name, collapse icon */
font-size: 12px;
font-weight: normal;
float: right;
border: 0px;
border-top: 1px solid #C7D4DC;
border-right: 1px solid #C7D4DC;
border-top-right-radius: 8px;
border-bottom-left-radius: 6px;
margin: -6px;
margin-bottom: 5px;
margin-left: 2px;
padding-right: 0.4em;
color: #34517D;
background: #DDE6F5;
user-select: none;
cursor: default;
display: flex; /* needed to be able to reorder elements, e.g. icon, dictionary name, collapse icon */
font-size: 12px;
font-weight: normal;
float: right;
border: 0px;
border-top: 1px solid #c7d4dc;
border-right: 1px solid #c7d4dc;
border-top-right-radius: 8px;
border-bottom-left-radius: 6px;
margin: -6px;
margin-bottom: 5px;
margin-left: 2px;
padding-right: 0.4em;
color: #34517d;
background: #dde6f5;
user-select: none;
cursor: default;
}
/* Actual text with the dictionary title */
.gddicttitle
{
display:block;
.gddicttitle {
display: block;
order: 1;
}
.gdactivearticle .gddictname {
border-top: 1px solid #92B0DD;
border-right: 1px solid #92B0DD;
color: darkblue;
background: #CFDDF0;
border-top: 1px solid #92b0dd;
border-right: 1px solid #92b0dd;
color: darkblue;
background: #cfddf0;
}
.gdcollapsedarticle .gddictname
{
.gdcollapsedarticle .gddictname {
opacity: 0.7;
}
/* Nice diagonal pattern for the collapsed article */
.gdcollapsedarticle
{
background-image: -webkit-linear-gradient(left top, #ccc 0%, #ccc 25%, #bbb 25%, #bbb 50%, #ccc 50%, #ccc 75%, #bbb 75%);
background-size: 50px 50px;
.gdcollapsedarticle {
background-image: -webkit-linear-gradient(
left top,
#ccc 0%,
#ccc 25%,
#bbb 25%,
#bbb 50%,
#ccc 50%,
#ccc 75%,
#bbb 75%
);
background-size: 50px 50px;
}
/* Move the collapse/expand buttons to the last, 3rd position */
.collapse_expand_area
{
.collapse_expand_area {
display: block;
order: 3;
}
.gddicticon
{
.gddicticon {
display: block;
vertical-align: text-bottom;
padding-right: -1em;
@ -96,270 +101,293 @@ a:hover {
order: 2;
}
.gdexpandicon, .gdexpandicon:hover, .gdcollapseicon, .gdcollapseicon:hover
{
width:15px;
background-position: center 25%;
background-repeat:no-repeat;
vertical-align: top;
padding-left: -5px;
margin-left: 0px;
.gdexpandicon,
.gdexpandicon:hover,
.gdcollapseicon,
.gdcollapseicon:hover {
width: 15px;
background-position: center 25%;
background-repeat: no-repeat;
vertical-align: top;
padding-left: -5px;
margin-left: 0px;
}
.gdexpandicon {
content:url('qrc:///icons/expand_article.png');
content: url("qrc:///icons/expand_article.png");
}
.gdexpandicon:hover {
content:url('qrc:///icons/expand_article_hovered.png');
content: url("qrc:///icons/expand_article_hovered.png");
}
.gdcollapseicon {
content:url('qrc:///icons/collapse_article.png');
content: url("qrc:///icons/collapse_article.png");
}
.gdcollapseicon:hover {
content:url('qrc:///icons/collapse_article_hovered.png');
content: url("qrc:///icons/collapse_article_hovered.png");
}
.gdarticleseparator {
display: none;
clear:both;
display: none;
clear: both;
}
/* The 'From ' string which preceeds dictionary name in the heading */
.gdfromprefix {
display: none;
display: none;
}
/* Headers */
h3 {
color: inherit;
font-family: Arial;
color: inherit;
font-family: Arial;
}
/* The first headword in a (possibly) multi-headword DSL article */
.gdarticlebody > div:first-child .dsl_headwords,
{
margin-top: -3px;
display: inline-block;
.gdarticlebody > div:first-child .dsl_headwords {
margin-top: -3px;
display: inline-block;
}
.mwiki .toc, .mwiki .metadata mbox-small plainlinks {
display:none
.mwiki .toc,
.mwiki .metadata mbox-small plainlinks {
display: none;
}
.gddicticon img {
border: 0;
height: 15px;
vertical-align: text-top;
border: 0;
height: 15px;
vertical-align: text-top;
}
/* Text selection */
::selection {
background: #839EC7;
color:#fff;
background: #839ec7;
color: #fff;
}
code::selection {
background: #839EC7;
background: #839ec7;
}
/******** DSL Dictionaries ****************/
/* DSL headwords */
.dsl_headwords {
color: inherit;
font-family: Arial;
color: inherit;
font-family: Arial;
}
/* Formatting */
.dsl_b {
font-family: Arial;
font-family: Arial;
}
.dsl_ex, .dsl_ex .dsl_opt
{
color: slategray;
.dsl_ex,
.dsl_ex .dsl_opt {
color: slategray;
}
.dsl_ref {
color: #0000DD;
color: #0000dd;
}
.dsl_url {
color: #0000DD;
.dsl_url {
color: #0000dd;
}
/* Stress settings */
.dsl_stress_without_accent,
.dsl_opt .dsl_ex .dsl_stress_without_accent {
display: none;
color: green;
display: none;
color: green;
}
.dsl_stress_with_accent,
.dsl_opt .dsl_ex .dsl_stress_with_accent {
display: inline;
color: #DD0000;
display: inline;
color: #dd0000;
}
.dsl_stress,
.dsl_opt .dsl_ex .dsl_stress {
display: inline;
color: blue;
display: inline;
color: blue;
}
/* Sound icon */
.dsl_s_wav img {
display: none;
display: none;
}
.dsl_s_wav a {
text-decoration: none;
user-select: none;
display: inline-block;
width: 18px;
height: 18px;
-webkit-border-radius: 100px;
text-align: center;
vertical-align: text-bottom;
color: #FFF;
border: 1px solid #798415;
-webkit-box-shadow: 1px 1px #CCC, inset -1px -1px #4E7500;
text-decoration: none;
user-select: none;
display: inline-block;
width: 18px;
height: 18px;
-webkit-border-radius: 100px;
text-align: center;
vertical-align: text-bottom;
color: #fff;
border: 1px solid #798415;
-webkit-box-shadow:
1px 1px #ccc,
inset -1px -1px #4e7500;
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(191,210,85,1)), color-stop(50%,rgba(142,185,42,1)), color-stop(51%,rgba(114,170,0,1)), color-stop(100%,rgba(158,203,45,1)));
background: -webkit-gradient(
linear,
left top,
right bottom,
color-stop(0%, rgba(191, 210, 85, 1)),
color-stop(50%, rgba(142, 185, 42, 1)),
color-stop(51%, rgba(114, 170, 0, 1)),
color-stop(100%, rgba(158, 203, 45, 1))
);
}
.dsl_s_wav a:hover {
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#e6f0a3), color-stop(50%,#d2e638), color-stop(51%,#c3d825), color-stop(100%,#dbf043));
background: -webkit-gradient(
linear,
left top,
right bottom,
color-stop(0%, #e6f0a3),
color-stop(50%, #d2e638),
color-stop(51%, #c3d825),
color-stop(100%, #dbf043)
);
border: 1px solid #A2B01C;
-webkit-box-shadow: 1px 1px #CCC, inset -1px -1px #8A991A;
border: 1px solid #a2b01c;
-webkit-box-shadow:
1px 1px #ccc,
inset -1px -1px #8a991a;
}
.dsl_s_wav a:active {
-webkit-box-shadow: 1px 1px #CCC, inset 1px 1px #B1C421;
-webkit-box-shadow:
1px 1px #ccc,
inset 1px 1px #b1c421;
}
.dsl_s_wav a:after {
display: inline-block;
font-family: "Webdings";
content:"X";
width: 18px;
height: 18px;
font-size: 16px;
text-align: center;
vertical-align: center;
-webkit-background-clip: text;
color: #E6EF8F;
-webkit-text-stroke: 1px #51580E;
display: inline-block;
font-family: "Webdings";
content: "X";
width: 18px;
height: 18px;
font-size: 16px;
text-align: center;
vertical-align: center;
-webkit-background-clip: text;
color: #e6ef8f;
-webkit-text-stroke: 1px #51580e;
}
.dsl_s_wav a:hover:after {
-webkit-text-stroke: 1px #656E11;
-webkit-text-stroke: 1px #656e11;
}
/******** Verbix Dictionaries ****************/
.sdct_h .normal {
font-family: Arial;
font-size: 10pt;
color:#000000;
font-weight: normal;
text-decoration:none;
font-family: Arial;
font-size: 10pt;
color: #000000;
font-weight: normal;
text-decoration: none;
}
.sdct_h .irregular {
font-family: Arial;
font-size: 10pt;
color:#FF0000;
font-weight: bold;
text-decoration:none;
font-family: Arial;
font-size: 10pt;
color: #ff0000;
font-weight: bold;
text-decoration: none;
}
.sdct_h .orto {
font-family: Arial;
font-size: 10pt;
color:#0000FF;
font-weight: normal;
text-decoration:none;
font-family: Arial;
font-size: 10pt;
color: #0000ff;
font-weight: normal;
text-decoration: none;
}
.sdct_h .archaic {
font-family: Arial;
font-size: 10pt;
color:#800080;
font-weight: normal;
text-decoration:none;
font-family: Arial;
font-size: 10pt;
color: #800080;
font-weight: normal;
text-decoration: none;
}
.sdct_h .notused {
font-family: Arial;
font-size: 10pt;
color:#808080;
font-weight: normal;
text-decoration:none;
font-family: Arial;
font-size: 10pt;
color: #808080;
font-weight: normal;
text-decoration: none;
}
.sdct_h .pronoun {
font-family: Arial;
font-size: 10pt;
color:#008000;
font-weight: normal;
text-decoration:none;
font-family: Arial;
font-size: 10pt;
color: #008000;
font-weight: normal;
text-decoration: none;
}
.sdct_h > table {
border: 1px solid #444444;
border-collapse: collapse;
border: 1px solid #444444;
border-collapse: collapse;
}
.sdct_h td.verbtable {
border: 1px solid #444444;
border: 1px solid #444444;
}
.sdct_h th {
background-color: #A6C9EF;
font-weight: bold;
background-color: #a6c9ef;
font-weight: bold;
}
.sdct_h .mini {
font-size: 8pt; font-weight: normal; color: #808080;
font-size: 8pt;
font-weight: normal;
color: #808080;
}
.sdct_h div.spacerline {
clear: both;
margin-left: 8px;
width:100%;
border-top: 1px solid #ccc;
clear: both;
margin-left: 8px;
width: 100%;
border-top: 1px solid #ccc;
}
.sdct_h div.spacer {
clear: both;
clear: both;
}
.sdct_h div.float {
margin-left: 8px;
float: left;
margin-left: 8px;
float: left;
}
.sdct_h div.float400 {
margin-left: 8px;
float: left;
width: 400px;
margin-left: 8px;
float: left;
width: 400px;
}
.sdct_h div.float250color {
margin-left: 8px;
float: left;
width: 250px;
border-style: dashed;
border-color:#0033CC;
border-collapse:collapse;
border-width:1px;
background-color:#eeeeee;
padding: 8px 8px 8px 8px;
}
margin-left: 8px;
float: left;
width: 250px;
border-style: dashed;
border-color: #0033cc;
border-collapse: collapse;
border-width: 1px;
background-color: #eeeeee;
padding: 8px 8px 8px 8px;
}

View file

@ -1,56 +1,47 @@
a
{
a {
color: #2233bb;
text-decoration: none;
}
a:hover
{
a:hover {
color: #6677ff;
}
::selection
{
::selection {
background: #3399ff;
color: white;
}
body
{
body {
background: #fffef2;
color: black;
font-family: Tahoma, Verdana, SimSun, SimSun-ExtB, sans-serif;
margin: 5px;
}
.gdarticle
{
.gdarticle {
background: #fffef2;
margin-top: -8px;
position: relative;
}
.gddicticon
{
.gddicticon {
display: inline;
margin-left: -3px;
padding-right: 5px;
}
.gddicticon img
{
.gddicticon img {
border: 0px;
height: 16px;
vertical-align: text-top;
}
.gdfromprefix
{
.gdfromprefix {
display: none;
}
.gddictname
{
.gddictname {
display: inline-block;
/* border: 1px solid #92b0dd; */
padding: 0.2em;
@ -64,37 +55,36 @@ body
font-size: 12px;
}
.collapse_expand_area
{
.collapse_expand_area {
position: absolute;
right: 0px;
}
.gdexpandicon, .gdexpandicon:hover, .gdcollapseicon, .gdcollapseicon:hover
{
.gdexpandicon,
.gdexpandicon:hover,
.gdcollapseicon,
.gdcollapseicon:hover {
background-position: center 35%;
background-repeat:no-repeat;
background-repeat: no-repeat;
}
.gdexpandicon {
content:url('qrc:///icons/expand_article.png');
content: url("qrc:///icons/expand_article.png");
}
.gdexpandicon:hover {
content:url('qrc:///icons/expand_article_hovered.png');
content: url("qrc:///icons/expand_article_hovered.png");
}
.gdcollapseicon {
content:url('qrc:///icons/collapse_article.png');
content: url("qrc:///icons/collapse_article.png");
}
.gdcollapseicon:hover {
content:url('qrc:///icons/collapse_article_hovered.png');
content: url("qrc:///icons/collapse_article_hovered.png");
}
.gddictnamebodyseparator
{
.gddictnamebodyseparator {
clear: both;
border-top: 1px solid #92b0dd;
margin-bottom: 1em;

View file

@ -1,40 +1,34 @@
html
{
html {
background-color: white;
}
body
{
body {
background: white;
}
a
{
a {
text-decoration: none;
color: darkblue;
}
a:hover
{
a:hover {
text-decoration: underline;
}
.gdarticle
{
.gdarticle {
background: white;
}
/* The 'From ' string which preceeds dictionary name in the heading */
.gdfromprefix
{
.gdfromprefix {
display: none;
}
/* Dictionary's name heading */
.gddictname
{
padding: 0.2em; padding-left: 0.5em;
margin-bottom: 0.1em;
.gddictname {
padding: 0.2em;
padding-left: 0.5em;
margin-bottom: 0.1em;
font-size: 14px;
font-weight: normal;
float: right;
@ -44,16 +38,14 @@ a:hover
background: white;
}
.gdarticleseparator + script + .gdarticle .gddictname
{
.gdarticleseparator + script + .gdarticle .gddictname {
border-top: 1px solid #ccc;
/* margin-top: 11px;*/
/* margin-top: 11px;*/
}
.gdactivearticle .gddictname
{
.gdactivearticle .gddictname {
font-weight: normal;
float: right;
border: 1px solid #b3d7f7;
margin-top: 7px;
@ -61,14 +53,12 @@ a:hover
background: #deecf8;
}
.gdarticleseparator + script + .gdactivearticle .gddictname
{
.gdarticleseparator + script + .gdactivearticle .gddictname {
border-top: 1px solid #b3d7f7;
/* margin-top: 11px;*/
/* margin-top: 11px;*/
}
.gdarticleseparator
{
.gdarticleseparator {
margin-top: 10px;
border-bottom: 1px solid #cccccc;
margin-bottom: 0px;
@ -77,17 +67,16 @@ a:hover
clear: both;
}
.gddictname + h3, .gddictname + .dsl_article > .dsl_headwords
{
.gddictname + h3,
.gddictname + .dsl_article > .dsl_headwords {
margin-top: 10px;
}
.dsl_ex, .dsl_ex .dsl_opt
{
.dsl_ex,
.dsl_ex .dsl_opt {
color: inherit;
}
.dsl_com
{
.dsl_com {
color: black;
}

View file

@ -1,27 +1,22 @@
html
{
html {
background-color: white;
}
body
{
body {
margin: 0;
background: white;
}
a
{
a {
text-decoration: none;
color: darkblue;
}
a:hover
{
a:hover {
text-decoration: underline;
}
.gdarticle
{
.gdarticle {
margin-top: 0.1em;
margin-bottom: 0.4em;
padding: 5px;
@ -32,30 +27,25 @@ a:hover
padding-right: 2em;
}
.gdactivearticle
{
border: 1px solid #3399FF;
.gdactivearticle {
border: 1px solid #3399ff;
}
.gdarticleseparator + script + .gdactivearticle .gddictname
{
border-top: 1px solid #3399FF;
.gdarticleseparator + script + .gdactivearticle .gddictname {
border-top: 1px solid #3399ff;
}
.gdarticleseparator
{
.gdarticleseparator {
display: none;
clear: both;
}
/* Hide the 'From ' string which precedes dictionary name in the heading */
.gdfromprefix
{
.gdfromprefix {
display: none;
}
.gddictname
{
.gddictname {
display: flex;
font-size: 12px;
font-weight: normal;
@ -68,52 +58,55 @@ a:hover
margin-left: 2px;
padding-right: 0.3em;
color: #4480f8;
background: #E0E8F0;
background: #e0e8f0;
user-select: none;
cursor: default;
}
/* Actual text with the dictionary title */
.gddicttitle
{
display:block;
.gddicttitle {
display: block;
order: 1;
}
.gdactivearticle .gddictname
{
.gdactivearticle .gddictname {
font-weight: normal;
margin: -6px;
margin-bottom: 5px;
margin-left: 2px;
float: right;
border: 1px solid #3399FF;
border: 1px solid #3399ff;
color: #0066cc;
background: #deecf8;
}
.gdcollapsedarticle .gddictname
{
.gdcollapsedarticle .gddictname {
opacity: 0.7;
}
/* Nice diagonal pattern for the collapsed article */
.gdcollapsedarticle
{
background-image: -webkit-linear-gradient(left top, #ccc 0%, #ccc 25%, #bbb 25%, #bbb 50%, #ccc 50%, #ccc 75%, #bbb 75%);
background-size: 50px 50px;
.gdcollapsedarticle {
background-image: -webkit-linear-gradient(
left top,
#ccc 0%,
#ccc 25%,
#bbb 25%,
#bbb 50%,
#ccc 50%,
#ccc 75%,
#bbb 75%
);
background-size: 50px 50px;
}
/* Move the collapse/expand buttons to the last, 3rd position */
.collapse_expand_area
{
.collapse_expand_area {
display: block;
order: 3;
}
.gddicticon
{
.gddicticon {
display: block;
vertical-align: text-bottom;
padding-right: -1em;
@ -122,60 +115,60 @@ a:hover
}
.gddicticon img {
height: 1.3em;
height: 1.3em;
}
.gdexpandicon, .gdexpandicon:hover, .gdcollapseicon, .gdcollapseicon:hover
{
width:15px;
background-position: center 35%;
background-repeat:no-repeat;
vertical-align: text-bottom;
padding-left: -5px;
margin-left: 0px;
.gdexpandicon,
.gdexpandicon:hover,
.gdcollapseicon,
.gdcollapseicon:hover {
width: 15px;
background-position: center 35%;
background-repeat: no-repeat;
vertical-align: text-bottom;
padding-left: -5px;
margin-left: 0px;
}
.gdexpandicon {
content:url('qrc:///icons/expand_article.png');
content: url("qrc:///icons/expand_article.png");
}
.gdexpandicon:hover {
content:url('qrc:///icons/expand_article_hovered.png');
content: url("qrc:///icons/expand_article_hovered.png");
}
.gdcollapseicon {
content:url('qrc:///icons/collapse_article.png');
content: url("qrc:///icons/collapse_article.png");
}
.gdcollapseicon:hover {
content:url('qrc:///icons/collapse_article_hovered.png');
content: url("qrc:///icons/collapse_article_hovered.png");
}
.gdarticlebody{
.gdarticlebody {
position: relative;
}
/* The first headword in a (possibly) multi-headword DSL article */
.gdarticlebody > div:first-child .dsl_headwords,
{
.gdarticlebody > div:first-child .dsl_headwords {
margin-top: -3px;
display: inline-block;
}
.gdspellsuggestion
{
.gdspellsuggestion {
/* Add some vertical space before the article */
margin-top: 1.5em;
}
.dsl_ex, .dsl_ex .dsl_opt
{
.dsl_ex,
.dsl_ex .dsl_opt {
color: steelblue;
}
::selection {
background:#cc0000;
color:#fff;
background: #cc0000;
color: #fff;
}
code::selection {

File diff suppressed because it is too large Load diff

View file

@ -14,14 +14,13 @@
}
QTabBar::close-button {
image: url(:/icons/closetab.svg)
image: url(:/icons/closetab.svg);
}
QTabBar::close-button:hover {
image: url(:/icons/closetab-hover.png)
image: url(:/icons/closetab-hover.png);
}
MainStatusBar #text
{
MainStatusBar #text {
border-top-right-radius: 3px;
border-top: 1px solid palette(dark);
border-right: 1px solid palette(dark);
@ -29,8 +28,7 @@ MainStatusBar #text
padding: 2px;
}
MainStatusBar #icon
{
MainStatusBar #icon {
border-top: 1px solid palette(dark);
background: palette(window);
padding: 2px;
@ -38,8 +36,7 @@ MainStatusBar #icon
padding-right: 0px;
}
ScanPopup #translateLine
{
ScanPopup #translateLine {
margin: 0px;
padding: 1px 3px 1px 3px;
border: 1px solid gray;
@ -48,8 +45,7 @@ ScanPopup #translateLine
border-bottom-left-radius: 0px;
}
ScanPopup GroupComboBox
{
ScanPopup GroupComboBox {
margin: 0px 0px 0px 1px;
padding: 1px 4px 1px 4px;
border: 1px solid gray;
@ -64,35 +60,31 @@ ScanPopup GroupComboBox:on {
}
ScanPopup GroupComboBox::drop-down {
subcontrol-origin: padding;
subcontrol-position: top right;
width: 15px;
border-left: 1px solid darkgray;
border-right: 1px transparent;
subcontrol-origin: padding;
subcontrol-position: top right;
width: 15px;
border-left: 1px solid darkgray;
border-right: 1px transparent;
}
ScanPopup GroupComboBox::down-arrow {
image: url(:/icons/1downarrow.svg);
image: url(:/icons/1downarrow.svg);
max-height: 100%;
}
.ScanPopup #outerFrame
{
.ScanPopup #outerFrame {
border: 1px solid palette(dark);
}
.ScanPopup MainStatusBar #text
{
.ScanPopup MainStatusBar #text {
border-bottom: 1px solid palette(dark);
}
.ScanPopup MainStatusBar[hasImage="false"] #text
{
.ScanPopup MainStatusBar[hasImage="false"] #text {
border-left: 1px solid palette(dark);
}
.ScanPopup MainStatusBar #icon
{
.ScanPopup MainStatusBar #icon {
border-left: 1px solid palette(dark);
border-bottom: 1px solid palette(dark);
}

View file

@ -1,5 +1,5 @@
MainWindow {
background-color: #CFDDF0;
background-color: #cfddf0;
}
#wordList,
@ -9,71 +9,81 @@ MainWindow {
#historyList,
#favoritesPane,
#favoritesTree {
background: #EAF0F8;
color: darkblue;
background: #eaf0f8;
color: darkblue;
}
MainWindow #menubar {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop:0 #F0F6FF, stop:0.5 #D2E0F5, stop:0.9 #DCEBFF, stop:1 #F0F6FF);
background-color: qlineargradient(
x1: 0,
y1: 0,
x2: 0,
y2: 1,
stop: 0 #f0f6ff,
stop: 0.5 #d2e0f5,
stop: 0.9 #dcebff,
stop: 1 #f0f6ff
);
}
MainWindow #menubar::item {
padding: 2px 8px;
background: transparent;
padding: 2px 8px;
background: transparent;
}
MainWindow #menubar::item:selected { /* when selected using mouse or keyboard */
background: #839EC7;
MainWindow #menubar::item:selected {
/* when selected using mouse or keyboard */
background: #839ec7;
}
MainWindow #menubar::item:pressed {
background: #728AAD;
background: #728aad;
}
MainWindow #centralWidget QTabBar::tab {
border: 1px solid #667B9B;
border-bottom-color: #667B9B;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
padding: 1px 3px;
margin-left: 1px;
margin-top: 2px;
margin-bottom: 2px;
background-color: #CFDDF0;
color: darkslategray;
border: 1px solid #667b9b;
border-bottom-color: #667b9b;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
padding: 1px 3px;
margin-left: 1px;
margin-top: 2px;
margin-bottom: 2px;
background-color: #cfddf0;
color: darkslategray;
}
MainWindow #centralWidget QTabBar::tab:selected {
background-color: #839EC7;
color: #fff;
border-bottom-style: none;
background-color: #839ec7;
color: #fff;
border-bottom-style: none;
}
ArticleView #searchFrame QMenu {background-color: none}
ArticleView QMenu {background-color: none}
ArticleView #searchFrame QMenu {
background-color: none;
}
ArticleView QMenu {
background-color: none;
}
QMainWindow::separator {
width: 1px; /* when vertical */
height: 1px; /* when horizontal */
}
width: 1px; /* when vertical */
height: 1px; /* when horizontal */
}
#dictsPaneTitleBar {
margin: 2px;
}
}
/* Colored header for the History Pane */
#historyPaneTitleBar {
margin: 2px;
}
ScanPopup #outerFrame
{
background-color: #CEDDEF;
}
ScanPopup #dictionaryBar
{
background: #CEDDEF;
ScanPopup #outerFrame {
background-color: #ceddef;
}
ScanPopup #dictionaryBar {
background: #ceddef;
}

View file

@ -4,21 +4,34 @@
}
/* Another way to hide specific separators */
#navToolbar #beforeOptionsSeparator, #navToolbar #beforeScanPopupSeparator, #navToolbar #afterScanPopupSeparator, #navToolbar #separatorBeforeZoom, #navToolbar #separatorBeforeSave {
background: rgba(0,0,0,0%);
#navToolbar #beforeOptionsSeparator,
#navToolbar #beforeScanPopupSeparator,
#navToolbar #afterScanPopupSeparator,
#navToolbar #separatorBeforeZoom,
#navToolbar #separatorBeforeSave {
background: rgba(0, 0, 0, 0%);
width: 0px;
margin: -3px;
}
/* Hide various buttons in the toolbar: */
#navToolbar #menuButtonXX, #navToolbar #soundButtonXX, #navToolbar #backButtonXX, #navToolbar #forwardButtonXX, #navToolbar #zoomInButtonXX, #navToolbar #zoomOutButtonXX, #navToolbar #zoomBaseButtonXX, #navToolbar #saveArticleButton, #navToolbar #printButton {
width: 0px;
height: 0px;
margin: -3px;
#navToolbar #menuButtonXX,
#navToolbar #soundButtonXX,
#navToolbar #backButtonXX,
#navToolbar #forwardButtonXX,
#navToolbar #zoomInButtonXX,
#navToolbar #zoomOutButtonXX,
#navToolbar #zoomBaseButtonXX,
#navToolbar #saveArticleButton,
#navToolbar #printButton {
width: 0px;
height: 0px;
margin: -3px;
}
/* remove the main toolbar handle */
#navToolbar::handle, #dictionaryBar::handle {
#navToolbar::handle,
#dictionaryBar::handle {
image: none;
}
@ -38,8 +51,8 @@
/* Thin separators between the main UI and sidebars */
QMainWindow::separator {
width: 1px; /* when vertical */
height: 1px; /* when horizontal */
width: 1px; /* when vertical */
height: 1px; /* when horizontal */
}
ScanPopup #goBackButtonAA,
@ -49,8 +62,7 @@ ScanPopup #wordListButtonXX,
ScanPopup #pronounceButtonAA,
ScanPopup #sendWordButtonXX
/* ScanPopup #showDictionaryBar, */
/* ScanPopup #pinButton */
{
/* ScanPopup #pinButton */ {
width: 0px;
height: 0px;
margin: -4px;

View file

@ -1,6 +1,6 @@
QTabBar::close-button {
image: url(:/icons/closetab.svg)
image: url(:/icons/closetab.svg);
}
QTabBar::close-button:hover {
image: url(:/icons/closetab-hover.png)
}
image: url(:/icons/closetab-hover.png);
}