Console: Remove theme choice objects on /configui

so we don't get snakes with noscript
(thx drz3d)
This commit is contained in:
zzz
2019-10-28 16:07:25 +00:00
parent e5163c6ee5
commit dc29525e5c
3 changed files with 19 additions and 21 deletions

View File

@ -35,9 +35,7 @@ public class ConfigUIHelper extends HelperBase {
if (theme.equals(current)) if (theme.equals(current))
buf.append(CHECKED); buf.append(CHECKED);
buf.append("value=\"").append(theme).append("\" id=\"").append(theme).append("\">" + buf.append("value=\"").append(theme).append("\" id=\"").append(theme).append("\">" +
"<object height=\"48\" width=\"48\" data=\"/themes/console/").append(theme).append("/images/thumbnail.png\">" +
"<img height=\"48\" width=\"48\" alt=\"\" src=\"/themes/console/").append(theme).append("/images/thumbnail.png\">" + "<img height=\"48\" width=\"48\" alt=\"\" src=\"/themes/console/").append(theme).append("/images/thumbnail.png\">" +
"</object><br>" +
"<div class=\"themelabel\">").append(_t(theme)).append("</div>" + "<div class=\"themelabel\">").append(_t(theme)).append("</div>" +
"</div></label>\n"); "</div></label>\n");
} }

View File

@ -2919,16 +2919,16 @@ tr#addnew, tr#addnew:hover {
background: #000; background: #000;
} }
.themechoice object { .themechoice img {
opacity: 0.6; opacity: 0.6;
} }
.themechoice .optbox:checked + object { .themechoice .optbox:checked + img {
filter: none; filter: none;
opacity: 1; opacity: 1;
} }
.themechoice:hover object { .themechoice:hover img {
filter: drop-shadow(0 0 1px #f60); filter: drop-shadow(0 0 1px #f60);
transition: ease transform 0.05s; transition: ease transform 0.05s;
} }
@ -2944,27 +2944,27 @@ tr#addnew, tr#addnew:hover {
box-shadow: inset 0 0 0 1px #000 !important; box-shadow: inset 0 0 0 1px #000 !important;
} }
.themechoice .optbox:checked + object, .themechoice .optbox:checked + img { .themechoice .optbox:checked + img, .themechoice .optbox:checked + img {
transform: scale(0.9); transform: scale(0.9);
} }
.themechoice .optbox:hover + object ~ .themelabel { .themechoice .optbox:hover + img ~ .themelabel {
color: #f60; color: #f60;
} }
.themechoice .optbox:checked + object ~ .themelabel { .themechoice .optbox:checked + img ~ .themelabel {
background: #030 !important; background: #030 !important;
color: #ee9; color: #ee9;
font-weight: bold; font-weight: bold;
box-shadow: none !important box-shadow: none !important
} }
.themechoice .optbox:focus + object ~ .themelabel { .themechoice .optbox:focus + img ~ .themelabel {
color: #f60 !important; color: #f60 !important;
box-shadow: inset 0 0 10px 3px #000 !important; box-shadow: inset 0 0 10px 3px #000 !important;
} }
.themechoice .optbox:active + object ~ .themelabel { .themechoice .optbox:active + img ~ .themelabel {
color: #ee9 !important; color: #ee9 !important;
box-shadow: inset 0 0 0 1px #000 !important; box-shadow: inset 0 0 0 1px #000 !important;
} }
@ -2979,7 +2979,7 @@ tr#addnew, tr#addnew:hover {
position: absolute; position: absolute;
} }
.themechoice object { .themechoice img {
padding: 3px 0; padding: 3px 0;
} }

View File

@ -4769,19 +4769,19 @@ body.iframed {
transition: filter ease 0.3s 0s; transition: filter ease 0.3s 0s;
} }
.themechoice:hover > object ~ .themelabel { .themechoice:hover > img ~ .themelabel {
border-top: 1px solid #f60 !important; border-top: 1px solid #f60 !important;
background: #fff !important; background: #fff !important;
background: linear-gradient(to bottom, #fff 0%, #fff 50%, #ffe8bf 50%, #efd9b3 100%) !important; background: linear-gradient(to bottom, #fff 0%, #fff 50%, #ffe8bf 50%, #efd9b3 100%) !important;
color: #f60; color: #f60;
} }
.themechoice:active > object ~ .themelabel { .themechoice:active > img ~ .themelabel {
background: #f60 !important; background: #f60 !important;
color: #fff; color: #fff;
} }
.themechoice:hover > object { .themechoice:hover > img {
filter: drop-shadow(0 0 1px #f60); filter: drop-shadow(0 0 1px #f60);
} }
@ -4796,18 +4796,18 @@ body.iframed {
position: absolute; position: absolute;
} }
.themechoice .optbox + object { .themechoice .optbox + img {
margin-left: -1px; margin-left: -1px;
margin-top: 6px; margin-top: 6px;
padding: 2px 0 !important; padding: 2px 0 !important;
margin-bottom: 31px; margin-bottom: 31px;
} }
.themechoice img, .themechoice object { .themechoice img, .themechoice img {
margin-bottom: 31px !important; margin-bottom: 31px !important;
} }
.themechoice .optbox:checked + object, .themechoice .optbox:checked + img { .themechoice .optbox:checked + img, .themechoice .optbox:checked + img {
transform: scale(0.9); transform: scale(0.9);
animation: glow 20s 10s infinite; animation: glow 20s 10s infinite;
} }
@ -4864,26 +4864,26 @@ div.themelabel {
font-weight: bold; font-weight: bold;
} }
.themechoice .optbox:checked + object ~ .themelabel { .themechoice .optbox:checked + img ~ .themelabel {
background: #ddf !important; background: #ddf !important;
color: #338 !important; color: #338 !important;
font-weight: bold; font-weight: bold;
} }
.themechoice .optbox:focus + object ~ .themelabel { .themechoice .optbox:focus + img ~ .themelabel {
color: #f60 !important; color: #f60 !important;
box-shadow: inset 0 0 0 1px #fff; box-shadow: inset 0 0 0 1px #fff;
background: linear-gradient(to right, #eef, #fff, #eef) !important; background: linear-gradient(to right, #eef, #fff, #eef) !important;
} }
.themechoice .optbox:active + object ~ .themelabel { .themechoice .optbox:active + img ~ .themelabel {
color: #fff !important; color: #fff !important;
box-shadow: inset 0 0 0 1px #fff; box-shadow: inset 0 0 0 1px #fff;
box-shadow: inset 0 0 0 1px #fff9ef, inset 2px 2px 3px #7f3000; box-shadow: inset 0 0 0 1px #fff9ef, inset 2px 2px 3px #7f3000;
background: #f60 !important; background: #f60 !important;
} }
.themechoice .optbox:checked:active + object ~ .themelabel { .themechoice .optbox:checked:active + img ~ .themelabel {
color: #f60 !important; color: #f60 !important;
background: linear-gradient(to right, #eef, #fff, #eef) !important; background: linear-gradient(to right, #eef, #fff, #eef) !important;
box-shadow: inset 0 0 0 1px #fff !important; box-shadow: inset 0 0 0 1px #fff !important;