MediaWiki:Gadget-highlightTable.css: Difference between revisions
Jump to navigation
Jump to search
Created page with "→Use with [[Template:Checklist]]: →=========================== lighttable checklists ===========================: /* checklist will otherwise render anythin..." |
mNo edit summary |
||
| Line 11: | Line 11: | ||
} | } | ||
/* mobile skin and {{ | /* mobile skin and {{Mission details}} */ | ||
body.skin-minerva .lighttable.checklist, | body.skin-minerva .lighttable.checklist, | ||
. | .missiondetails .lighttable.checklist { | ||
max-width: 100%; | max-width: 100%; | ||
} | } | ||
| Line 41: | Line 41: | ||
top: .3rem; | top: .3rem; | ||
left: 0; | left: 0; | ||
background-image: url(' | background-image: url('https://wiki.geministation.com/images/d/de/Checkbox-unchecked.png'); | ||
background-size: 1rem; | background-size: 1rem; | ||
} | } | ||
| Line 67: | Line 67: | ||
.lighttable.checklist .checked::before { | .lighttable.checklist .checked::before { | ||
background-image: url(' | background-image: url('https://wiki.geministation.com/images/9/9d/Checkbox-checked.png'); | ||
} | } | ||
Latest revision as of 17:44, 17 June 2020
/* Use with [[Template:Checklist]] */
/* ===========================
lighttable checklists
=========================== */
/* checklist will otherwise render anything floated to the right unclickable
due to overlap; 300px is the width of infoboxes and default thumbnail size */
.lighttable.checklist {
max-width: calc(100% - 350px);
}
/* mobile skin and {{Mission details}} */
body.skin-minerva .lighttable.checklist,
.missiondetails .lighttable.checklist {
max-width: 100%;
}
/* kill excessive margin if nested */
.lighttable.checklist ul ul {
margin-left: .5em;
}
.lighttable.checklist li {
padding-left: 1.75em;
margin-bottom: .3em;
position: relative;
list-style: none;
cursor: pointer;
}
/* ---------------------------
unchecked state
--------------------------- */
.lighttable.checklist li::before {
content: '';
position: absolute;
height: 1rem;
width: 1rem;
top: .3rem;
left: 0;
background-image: url('https://wiki.geministation.com/images/d/de/Checkbox-unchecked.png');
background-size: 1rem;
}
/* unchecked hover state */
.lighttable.checklist li:not(.checked):hover::before {
background-color: #e4eaee;
border-radius: .2rem;
}
body.wgl-darkmode .lighttable.checklist li:not(.checked):hover::before {
background-color: #313e59;
}
/* ---------------------------
checked state
--------------------------- */
/* only fade the text content, not the checkbox; exclude nested checklists and
bold/italics, otherwise the fading gets applied twice */
.lighttable.checklist .checked > *:not(ul):not(i):not(b) {
opacity: 0.5;
}
.lighttable.checklist .checked::before {
background-image: url('https://wiki.geministation.com/images/9/9d/Checkbox-checked.png');
}
.lighttable.checklist .checked {
color: rgba(54, 65, 79, 0.5); /* #36414f in rgba */
}
body.wgl-darkmode .lighttable.checklist .checked {
color: rgba(204, 217, 244, 0.5); /* #ccd9f4 in rgba */
}