mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-03 05:32:32 +00:00
144 lines
2.9 KiB
CSS
144 lines
2.9 KiB
CSS
.charsheet label {
|
|
display: inline-block;
|
|
width: 75px;
|
|
text-align: right;
|
|
}
|
|
|
|
.charsheet input {
|
|
display: inline-block;
|
|
width: 165px;
|
|
}
|
|
|
|
.sheet-col strong.sheet-dee {
|
|
font-size: 1.4em;
|
|
font-weight: bold;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.charsheet input.sheet-short {
|
|
width: 3.5em;
|
|
}
|
|
|
|
.charsheet {
|
|
background-color: White;
|
|
}
|
|
|
|
.charsheet table td, .charsheet table th {
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
}
|
|
|
|
select.sheet-dtype {
|
|
width: 60px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
/* Hide actual dot/checkbox */
|
|
input[type="radio"],
|
|
input[type="checkbox"]
|
|
{
|
|
opacity: 0;
|
|
position: absolute;
|
|
cursor: pointer;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Styles common to fake dot and checkbox */
|
|
input[type="radio"] + span::before,
|
|
input[type="checkbox"] + span::before
|
|
{
|
|
margin-right: 4px;
|
|
border: solid 1px #a8a8a8;
|
|
line-height: 14px;
|
|
text-align: center;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
|
|
-moz-box-shadow: 0 0 2px #ccc;
|
|
-webkit-box-shadow: 0 0 2px #ccc;
|
|
box-shadow: 0 0 2px #ccc;
|
|
|
|
background: #f6f6f6;
|
|
background: -moz-radial-gradient(#f6f6f6, #dfdfdf);
|
|
background: -webkit-radial-gradient(#f6f6f6, #dfdfdf);
|
|
background: -ms-radial-gradient(#f6f6f6, #dfdfdf);
|
|
background: -o-radial-gradient(#f6f6f6, #dfdfdf);
|
|
background: radial-gradient(#f6f6f6, #dfdfdf);
|
|
}
|
|
|
|
/* Styles unique to fake dot (checked or left of checked) */
|
|
input[type="radio"] + span::before
|
|
{
|
|
content: "•";
|
|
width: 12px;
|
|
height: 12px;
|
|
font-size: 24px;
|
|
|
|
-moz-border-radius: 50%;
|
|
-webkit-border-radius: 50%;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* Styles unique to fake checkbox (unchecked) */
|
|
input[type="checkbox"] + span::before
|
|
{
|
|
content: "";
|
|
opacity: 0.3;
|
|
width: 14px;
|
|
height: 14px;
|
|
font-size: 12px;
|
|
|
|
-moz-border-radius: 3px;
|
|
-webkit-border-radius: 3px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* Styles unique to fake checkbox (checked) */
|
|
input[type="checkbox"]:checked + span::before
|
|
{
|
|
border: solid 1px transparent;
|
|
background: transparent;
|
|
content: "✖";
|
|
color: #a00;
|
|
|
|
-moz-box-shadow: 0 0 2px transparent;
|
|
-webkit-box-shadow: 0 0 2px transparent;
|
|
box-shadow: 0 0 2px transparent;
|
|
}
|
|
|
|
input[type="checkbox"]:hover:checked + span::before
|
|
{
|
|
-moz-box-shadow: 0 0 2px #ccc;
|
|
-webkit-box-shadow: 0 0 2px #ccc;
|
|
box-shadow: 0 0 2px #ccc;
|
|
|
|
border: solid 1px #a8a8a8;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
/* Remove dot from all radios _after_ selected one */
|
|
input[type="radio"]:checked ~ input[type="radio"] + span::before
|
|
{
|
|
content: "";
|
|
}
|
|
|
|
/* Show checkbox when hovering or when it's checked */
|
|
input[type="checkbox"]:hover + span::before,
|
|
input[type="checkbox"]:checked + span::before
|
|
{
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Fade out dots when checkbox is checked */
|
|
input[type="checkbox"]:checked ~ input[type="radio"] + span
|
|
{
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Hide checked dots when checkbox is checked */
|
|
input[type="checkbox"]:checked ~ input[type="radio"] + span::before
|
|
{
|
|
content: "";
|
|
}
|