Files
roll20-character-sheets/Exalted2e/exalted2e.css
T
Lithl dac684b2e4 Demographics and Attributes
Starting point for character/player demographics is complete (with slot
for logo!), as are attributes. Abilities section begun.
2014-04-09 01:54:27 -05:00

178 lines
7.1 KiB
CSS

table
{
table-layout: fixed;
}
table tr:first-child td:first-child
{
width: 32%;
}
label,
input[type="text"]
{
display: inline;
}
select,
input[type="text"]
{
border: solid 0px #000;
border-width: 0 0 1px 0;
background-color: transparent;
border-radius: 0px;
-webkit-flex: 1 0 auto;
flex: 1 0 auto;
height: 24px;
-moz-box-shadow: 0 0 0px #000;
-webkit-box-shadow: 0 0 0px #000;
box-shadow: 0 0 0px #000;
}
input[type="text"]:focus
{
-moz-box-shadow: 0 0 2px #999;
-webkit-box-shadow: 0 0 2px #999;
box-shadow: 0 0 2px #999;
}
th
{
text-align: left;
}
tr:first-child th,
tr:nth-child(2) th,
tr:nth-child(3) th
{
display: -webkit-flex;
-webkit-flex-direction: row;
display: flex;
flex-direction: row;
}
h1
{
text-align: center;
width: 100%;
}
.sheet-right-align
{
float: right;
}
.sheet-center-align
{
text-align: center;
}
/* 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: "";
}