Files
roll20-character-sheets/Exalted2e/exalted2e.css
T
2014-05-16 17:17:38 -05:00

373 lines
6.9 KiB
CSS

.charsheet
{
background-color: White;
}
.sheet-center,
h3.sheet-ability,
h4
{
text-align: center;
}
h4
{
font-weight: normal;
margin-left: 0px;
}
h1.sheet-separator
{
width: 100%;
text-align: center;
background-image: url('http://i.imgur.com/TwZ84rO.jpg');
background-repeat: repeat-x;
background-size: auto 10px;
background-position: left 50%;
}
h1.sheet-separator span
{
background: white;
padding: 0 5px 0 5px;
}
img.sheet-banner
{
max-height: 100px;
}
span.sheet-attribute,
span.sheet-ability
{
display: inline-block;
font-weight: bold;
font-size: 14px;
}
span.sheet-attribute + div,
span.sheet-ability + div
{
display: inline-block;
}
div.sheet-attribute div,
div.sheet-ability div
{
float: right;
}
div.sheet-attribute,
div.sheet-ability
{
clear: right;
}
.sheet-col .sheet-2colrow
{
width: 841px;
}
div[data-groupname="repeating_charms"],
h4.sheet-span2
{
width: 543px;
}
div[data-groupname="repeating_charms"] .repitem
{
display: inline-block;
}
div[data-groupname="repeating_charms"] .repitem:nth-child(even)
{
margin-left: 8px;
}
.sheet-charm
{
margin-bottom: 5px;
}
textarea.sheet-four-lines
{
height: 11ex;
}
textarea.sheet-three-lines
{
height: 8ex;
}
div.sheet-virtue
{
display: inline-block;
}
p.sheet-disclaimer
{
font-size: 80%;
font-style: italic;
text-align: center;
}
.sheet-narrow
{
width: 80px;
}
.sheet-very-narrow
{
width: 40px;
}
div[data-groupname="repeating_attack"] div:not(:first-child) div.sheet-attack
{
border-top: 1px solid #ccc;
}
/* Align labels and input boxes */
label,
div.sheet-background,
div.sheet-charm
{
display: -webkit-flex;
display: flex;
width: 100%;
}
div.sheet-background input[type="text"],
div.sheet-charm input[type="text"]:not(.sheet-very-narrow),
label input[type="text"],
label input[type="number"],
label select
{
-webkit-flex: 1 1 auto;
flex: 1 1 auto;
}
label span
{
-webkit-flex: 0 1 auto;
flex: 0 1 auto;
margin-right: 20px;
}
div.sheet-ability input[type="text"]
{
max-width: 170px;
}
div.sheet-background input[type="text"]
{
max-width: 160px;
}
div.sheet-background div.sheet-dots
{
text-align: right;
}
/* Style boxes */
label input[type="text"],
label input[type="number"],
label select,
div.sheet-ability input[type="text"],
div.sheet-background input[type="text"],
div.sheet-charm input[type="text"],
div.sheet-charm input[type="number"],
.sheet-fancy
{
border: 0px;
background: transparent;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
border-radius: 0px;
vertical-align: baseline;
border-bottom: 1px solid #000;
}
label input[type="text"]:focus,
label input[type="number"]:focus,
div.sheet-ability input[type="text"]:focus,
div.sheet-background input[type="text"]:focus,
div.sheet-charm input[type="text"]:focus,
div.sheet-charm input[type="number"]:focus,
.sheet-fancy:focus
{
box-shadow: rgba(83, 167, 235, 0.466667) 0px 0px 6px 0px;
}
label.sheet-soak
{
display: inline-block;
max-width: 70px;
}
input[type="number"]
{
text-align: center;
}
.sheet-essence label:not(.sheet-committed),
.sheet-essence input[type="number"]
{
display: inline;
padding-right: 0px;
}
/* Hide actual dot/checkbox */
input[type="radio"],
input[type="checkbox"]
{
opacity: 0;
width: 16px;
height: 16px;
position: relative;
top: 5px;
left: 6px;
margin: -10px;
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: "";
width: 14px;
height: 14px;
font-size: 12px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
div.sheet-ability input[type="checkbox"]:first-child + span::before
{
opacity: 1;
}
div.sheet-dots input[type="checkbox"]:first-child + span::before
{
opacity: 0.3;
}
/* Styles unique to fake checkbox (checked) */
div.sheet-ability input[type="checkbox"]:first-child:checked + span::before,
div.sheet-will input[type="checkbox"]:checked + span::before
{
content: "✓";
color: #bea000;
-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);
}
div.sheet-dots input[type="checkbox"]:first-child: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;
}
div.sheet-dots input[type="checkbox"]:first-child:hover:checked + span::before,
div.sheet-ability input[type="checkbox"]:first-child + 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 */
div.sheet-dots input[type="checkbox"]:first-child:hover + span::before,
div.sheet-dots input[type="checkbox"]:first-child:checked + span::before
{
opacity: 1;
}
/* Fade out dots when checkbox is checked */
div.sheet-dots input[type="checkbox"]:checked ~ input[type="radio"] + span
{
opacity: 0.5;
}
/* Hide checked dots when checkbox is checked */
div.sheet-dots input[type="checkbox"]:checked ~ input[type="radio"] + span::before
{
content: "";
}
/* Handle health boxes */
select.sheet-health-label,
select.sheet-health-value
{
width: 45px;
}
select.sheet-health-value
{
float: right;
}