Files
2021-06-08 22:21:48 +01:00

808 lines
17 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Almendra&display=swap');
.charsheet * {
font-family: 'Almendra', serif;
padding: 0;
margin: 0;
border-collapse: collapse;
font-size: 1em;
font-weight: 200;
color: #444444;
grid-gap: 1rem;
box-sizing: border-box;
}
/* Layout */
sheet-template-container,
.charsheet {
background-image: url(https://raw.githubusercontent.com/tapiochre/roll20-character-sheets/master/CortexPrime-Tales-of-Xadia-Playtest/assets/parchment.jpg);
background-size: cover;
background-color: #fffbeb;
}
.sheet-wrapper {
min-width: 750px;
padding: 25px;
display: grid;
grid-template-columns: repeat(1, 1fr );
align-items: start;
}
/* Trait Blocks */
.sheet-cols6 {
display: grid;
grid-template-columns: repeat(6, 1fr );
align-items: start;
}
.sheet-cols5 {
display: grid;
grid-template-columns: repeat(5, 1fr );
align-items: start;
}
.sheet-cols4 {
display: grid;
grid-template-columns: repeat(4, 1fr );
align-items: start;
}
.sheet-cols3 {
display: grid;
grid-template-columns: repeat(3, 1fr );
align-items: start;
}
.sheet-cols2 {
display: grid;
grid-template-columns: repeat(2, 1fr );
align-items: start;
}
.sheet-cols1 {
display: grid;
grid-template-columns: repeat(1, 1fr );
align-items: start;
}
/* Trait Types */
.sheet-info {
background-color: rgba(255, 255, 255, 0.3);
border: 1px solid rgba(55, 55, 55, 0.3);
padding: 12.5px;
}
.sheet-Catalyst,
.sheet-Agility,
.sheet-Awareness,
.sheet-Intellect,
.sheet-Influence,
.sheet-Strength,
.sheet-Spirit,
.sheet-action {
background-color: rgba(255, 255, 255, 0.3);
border: 1px solid rgba(55, 55, 55, 0.3);
padding: 5px;
}
.sheet-values {
text-align: left;
min-height: 92px;
background-color: rgba(255, 255, 255, 0.3);
border: 1px solid rgba(55, 55, 55, 0.3);
padding: 5px;
}
.sheet-specialties {
display: none;
text-align: left;
background-color: rgba(255, 255, 255, 0.3);
border: 1px solid rgba(55, 55, 55, 0.3);
padding: 5px;
}
.sheet-distinction {
background-color: rgba(255, 255, 255, 0.3);
border: 1px solid rgba(55, 55, 55, 0.3);
padding: 5px;
margin-bottom:5px;
}
.sheet-distinction ul {
margin-left: 20px !important;
}
.sheet-trigger {
padding: 10px 5px 5px 5px;
}
.sheet-trigger strong {
text-transform: uppercase;
}
.sheet-stress {
border: 1px dashed #bb3030;
border: 1px solid #bb3030;
padding: 5px;
display: none;
}
.sheet-trauma {
border: 1px dashed #bb3030;
border: 1px solid #bb3030;
padding: 5px;
text-align: left;
background-color: rgba(255, 0, 0, 0.25);
display: none;
}
.sheet-stress, .sheet-trauma {
min-height: 45px;
}
.sheet-hide {
visibility: hidden;
display: none;
}
/* copy */
.charsheet h1 {
font-size: 1.6em;
color: #444444;
text-shadow: .2em .2em .2em rgba(255, 255, 255, 0.3)
}
.charsheet h2 {
font-size: 1.4em;
line-height: 25px;
color: #444444;
text-shadow: .2em .2em .1em rgba(255, 255, 255, 0.2)
}
.charsheet h2 img {
padding-right: 9px;
height: 25px !important;
width: auto;
}
.charsheet h3 {
font-size: 1.2em;
line-height: 1.3em;
color: #444444;
text-shadow: .1em .2em .2em rgba(255, 255, 255, 0.2)
}
.charsheet h4 {
font-size: 1.1em;
color: #444444;
font-style: italic;
text-shadow: .1em .1em .2em rgba(255, 255, 255, 0.1)
}
input[name="attr_Portrait"] + div img.sheet-portrait {
display: none;
}
.sheet-legal,
.sheet-legal a {
font-size: 0.8em;
color: #444444;
}
/* Portraits */
img[alt="Tales of Xadia"],
img[alt="PC1"],
img[alt="PC2"],
img[alt="PC3"],
img[alt="PC4"],
img[alt="PC5"],
img[alt="PC6"],
img[alt="PC7"],
img[alt="PC8"],
img[alt="PC9"],
img[alt="PC10"],
img[alt="PC11"],
img[alt="PC12"],
img[alt="Cat1"],
img[alt="Cat2"] {
visibility: hidden;
display: none;
}
input[name="attr_Portrait"][value="PC0"] + div img[alt="Tales of Xadia"] {
visibility: visible;
display: block;
width: 250px;
height: auto;
position: absolute;
top: 70px;
left: 70px;
}
input[name="attr_Portrait"][value="PC1"] + div img[alt="PC1"],
input[name="attr_Portrait"][value="PC2"] + div img[alt="PC2"],
input[name="attr_Portrait"][value="PC3"] + div img[alt="PC3"],
input[name="attr_Portrait"][value="PC4"] + div img[alt="PC4"],
input[name="attr_Portrait"][value="PC5"] + div img[alt="PC5"],
input[name="attr_Portrait"][value="PC6"] + div img[alt="PC6"],
input[name="attr_Portrait"][value="PC7"] + div img[alt="PC7"],
input[name="attr_Portrait"][value="PC8"] + div img[alt="PC8"],
input[name="attr_Portrait"][value="PC9"] + div img[alt="PC9"],
input[name="attr_Portrait"][value="PC10"] + div img[alt="PC10"],
input[name="attr_Portrait"][value="PC11"] + div img[alt="PC11"],
input[name="attr_Portrait"][value="PC12"] + div img[alt="PC12"],
input[name="attr_Portrait"][value="Cat1"] + div img[alt="Cat1"],
input[name="attr_Portrait"][value="Cat2"] + div img[alt="Cat2"] {
visibility: visible;
display: block;
width: 250px;
height: auto;
}
input[name="attr_Portrait"][value="PC0"] + img[alt="Tales of Xadia"] {
position: absolute;
width: auto !important;
height: 200px !important;
padding-left: 60px;
padding-bottom: 12px;
}
/* Dice */
img[alt="d0"],
img[alt="d4"],
img[alt="d6"],
img[alt="d8"],
img[alt="d10"],
img[alt="d12"],
img[alt="stressed"] {
display: none;
}
.sheet-stress .sheet-locked + span,
.sheet-trauma .sheet-locked + span,
.sheet-action .sheet-locked + span {
display: block;
float: left;
}
.sheet-training .sheet-locked + span {
display: inline-block;
}
.sheet-relationship .sheet-locked + span {
display: inline-block;
float: left;
}
.sheet-locked[value="4"] + .sheet-specialties,
.sheet-locked[value="6"] + .sheet-specialties,
.sheet-locked[value="8"] + .sheet-specialties,
.sheet-locked[value="10"] + .sheet-specialties,
.sheet-locked[value="12"] + .sheet-specialties,
input[type="checkbox"]:checked + div .sheet-specialties,
.sheet-locked[value="6"] + .sheet-stress,
.sheet-locked[value="8"] + .sheet-stress,
.sheet-locked[value="10"] + .sheet-stress,
.sheet-locked[value="12"] + .sheet-stress,
.sheet-locked[value="14"] + .sheet-stress,
input[type="checkbox"]:checked + div .sheet-stress,
.sheet-locked[value="6"] + .sheet-trauma,
.sheet-locked[value="8"] + .sheet-trauma,
.sheet-locked[value="10"] + .sheet-trauma,
.sheet-locked[value="12"] + .sheet-trauma,
input[type="checkbox"]:checked + div .sheet-trauma,
.sheet-locked[value="0"] + span img[alt="d0"],
.sheet-locked[value="4"] + span img[alt="d4"],
.sheet-locked[value="6"] + span img[alt="d6"],
.sheet-locked[value="8"] + span img[alt="d8"],
.sheet-locked[value="10"] + span img[alt="d10"],
.sheet-locked[value="12"] + span img[alt="d12"],
.sheet-locked[value="14"] + span img[alt="stressed"] {
display: block !important;
}
.charsheet button[type="roll"].sheet-blank-roll-button::before {
content: '';
}
.charsheet button[type="roll"].sheet-blank-roll-button + span {
visibility: hidden;
display: none;
}
.charsheet button[type="roll"].sheet-blank-roll-button {
color: #444444 !important;
border: 2px solid #444444 !important;
background-color: rgba(255, 255, 255, 0.6) !important;
width: 215px;
background-image: none !important;
padding: 8px 8px 8px 8px;
}
/* halo layout */
input[name="attr_Portrait"][value="PC0"] {
border: 1px solid #cccc00;
text-align: center;
background-color: rgba(255, 128, 0, 0.05);
}
input[type="checkbox"]:checked + div h1.sheet-hide,
input[name="attr_Portrait"][value="PC0"] + h1.sheet-hide {
visibility: visible !important;
display: block;
}
input[type="checkbox"]:not(:checked) + div input[name="attr_Portrait"][value^="Cat"] ~ .sheet-Catalyst {
position: absolute;
top: 210px;
left: 285px;
line-height: 25px;
z-index: 10;
background-color: rgba(255, 255, 255, 0) !important;
}
input[type="checkbox"]:not(:checked) + div input[name="attr_Portrait"]:not([value="PC0"]) ~ .sheet-Agility {
position: absolute;
top: 150px;
left: 255px;
line-height: 25px;
z-index: 10;
background-color: rgba(255, 255, 255, 0) !important;
}
input[type="checkbox"]:not(:checked) + div input[name="attr_Portrait"]:not([value="PC0"]) ~ .sheet-Awareness {
position: absolute;
top: 175px;
left: 270px;
line-height: 25px;
z-index: 10;
background-color: rgba(255, 255, 255, 0) !important;
}
input[type="checkbox"]:not(:checked) + div input[name="attr_Portrait"]:not([value="PC0"]) ~ .sheet-Influence {
position: absolute;
top: 200px;
left: 280px;
line-height: 25px;
z-index: 10;
background-color: rgba(255, 255, 255, 0) !important;
}
input[type="checkbox"]:not(:checked) + div input[name="attr_Portrait"]:not([value="PC0"]) ~ .sheet-Intellect {
position: absolute;
top: 225px;
left: 280px;
line-height: 25px;
z-index: 10;
background-color: rgba(255, 255, 255, 0) !important;
}
input[type="checkbox"]:not(:checked) + div input[name="attr_Portrait"]:not([value="PC0"]) ~ .sheet-Spirit {
position: absolute;
top: 250px;
left: 270px;
line-height: 25px;
z-index: 10;
background-color: rgba(255, 255, 255, 0) !important;
}
input[type="checkbox"]:not(:checked) + div input[name="attr_Portrait"]:not([value="PC0"]) ~ .sheet-Strength {
position: absolute;
top: 275px;
left: 260px;
line-height: 25px;
z-index: 10;
background-color: rgba(255, 255, 255, 0) !important;
}
input[type="checkbox"]:not(:checked) + div input[name="attr_Portrait"]:not([value="PC0"]) + .sheet-action {
border: none;
border-top: none;
padding: 0;
}
input[name="attr_Portrait"][value^="Cat"] ~ .sheet-Agility,
input[name="attr_Portrait"][value^="Cat"] ~ .sheet-Awareness,
input[name="attr_Portrait"][value^="Cat"] ~ .sheet-Influence,
input[name="attr_Portrait"][value^="Cat"] ~ .sheet-Intellect,
input[name="attr_Portrait"][value^="Cat"] ~ .sheet-Spirit,
input[name="attr_Portrait"][value^="Cat"] ~ .sheet-Strength,
input[name="attr_Portrait"]:not([value^="Cat"]) ~ .sheet-Catalyst {
visibility: hidden !important;
display: none !important;
color: red;
}
/* Pre-coded Distinctions */
.sheet-PC0 {
display: none;
visibility: hidden;
}
input[name="attr_Portrait"][value^="Cat"] ~ div .sheet-PC0,
input[name="attr_Portrait"][value^="PC0"] ~ div .sheet-PC0 {
display: block;
visibility: visible;
}
input[name="attr_Portrait"]:not([value="PC1"]) ~ div .sheet-PC1,
input[name="attr_Portrait"]:not([value="PC2"]) ~ div .sheet-PC2,
input[name="attr_Portrait"]:not([value="PC3"]) ~ div .sheet-PC3,
input[name="attr_Portrait"]:not([value="PC4"]) ~ div .sheet-PC4,
input[name="attr_Portrait"]:not([value="PC5"]) ~ div .sheet-PC5,
input[name="attr_Portrait"]:not([value="PC6"]) ~ div .sheet-PC6,
input[name="attr_Portrait"]:not([value="PC7"]) ~ div .sheet-PC7,
input[name="attr_Portrait"]:not([value="PC8"]) ~ div .sheet-PC8,
input[name="attr_Portrait"]:not([value="PC9"]) ~ div .sheet-PC9 ,
input[name="attr_Portrait"]:not([value^="PC10"]) ~ div .sheet-PC10,
input[name="attr_Portrait"]:not([value^="PC11"]) ~ div .sheet-PC11,
input[name="attr_Portrait"]:not([value^="PC12"]) ~ div .sheet-PC12 {
display: none;
visibility: hidden;
}
/* Field style */
input[type="text"][name^="attr"] {
border: 1px dashed rgba(0, 0, 0, 0);
background-color: rgba(255, 255, 255, 0) !important;
padding: 0 5px;
color: #444444 !important;
font-size: 1em;
line-height: 1.2em;
}
textarea[name^="attr"] {
border: 1px dashed rgba(0, 0, 0, 0.06);
background-color: rgba(255, 255, 255, 0) !important;
padding: 0 5px;
color: #444444 !important;
font-size: 1em;
line-height: 1.2em;
width: 95%;
height: 4em;
}
textarea.sfx {
width: 80%;
margin-left: 15px;
}
/* Tool Tip */
/* Tooltip container */
.sheet-tooltip {
position: relative;
display: inline-block;
width: 100%;
}
/* Tooltip text */
.sheet-tooltip .sheet-tooltiptext {
visibility: hidden;
width: 22ch;
background-color: rgba(255, 255, 255, 0.86);
color: #000;
text-align: left;
padding: 5px 5px;
border: 1px dashed black;
min-height: 60px;
max-height: 70px;
width: 100%;
line-height: 0.9em;
font-size: 0.8em;
/* Position the tooltip text - see examples below! */
position: absolute;
left: 0px;
top: -64px;
z-index: 3;
}
.sheet-tooltiptext {
font-size: 0.7em;
}
/* Show the tooltip text when you mouse over the tooltip container */
input.sheet-tooltipSwitch[value="off"] {
}
input[name="attr_tooltipSwitch"][value="on"] ~ div h3.sheet-tooltip:hover .sheet-tooltiptext {
visibility: visible;
}
/* Edit Stress */
.charsheet label {
all: unset;
position: absolute;
font-size: 4px;
padding: 0.75ch;
color: rgba(61, 161, 106, 0.02);
border: 2px solid rgba(61, 161, 106, 0.32);
background-color: rgba(61, 161, 106, 0.02);
z-index: 15;
min-width: 50px;
}
.charsheet label:hover {
font-size: 11px;
color: #ffffff;
background-color: rgba(61, 161, 106, 0.62);
border: 1px solid #3da069;
}
.sheet-wrapper select {
all: unset;
width: auto;
}
.sheet-editStress {
display: none;
}
input[name="attr_editStress"]:checked + div .sheet-editStress {
display: block;
}
/* Edit */
input[type="checkbox"]:not(:checked) + div input,
input[type="checkbox"]:not(:checked) + div select,
input[type="checkbox"]:not(:checked) + div textarea {
display: none;
}
.sheet-wrapper select[name="attr_Portrait"]:before {
content: 'Portrait: ' !important;
display: inline;
}
input[type="checkbox"]:checked + div span {
display: none;
}
input[name="attr_edit"] {
all: unset;
width: 7px;
display: block;
position: fixed;
top: 70px;
right: 90px;
}
input[name="attr_edit"]:after {
content: 'Edit';
background-color: rgba(0, 130, 18, 0.37);
border-top: 1px solid rgba(55, 55, 55, 0.1);
padding: 3px;
}
.sheet-editPane * {
color: #444444 !important;
font-size: 0.95em;
}
.sheet-editPane {
border: 1px dashed #cccccc;
background-color: rgba(255, 255, 255, 0.925);
width: 670px;
z-index: 45;
position: absolute;
top: 25px;
left: 4ch;
padding: 14px;
display: none;
}
.sheet-editPane .sheet-cols2 h3 select {
float: right;
}
input[name="attr_Edit"]:checked + div .sheet-editPane {
display: block !important;
}
.sheet-editDice {
width: 60px;
color: #444444 !important;
background-color: #d6d6d6;
}
/* Preloader */
.sheet-preload img {
width: 40px;
display: none;
}
/* Roll Template */
.sheet-rolltemplate-Cortex * {
font-family: monospace;
font-size: 1em;
font-weight: 600;
color: #ffffff;
}
.sheet-rolltemplate-Cortex {
background-color: #2a364e;
padding: 0 !important;
margin: 0 -30px;
}
.sheet-rolltemplate-container {
display: grid;
grid-template-columns: 35px 1fr;
align-items: start;
grid-gap: 1rem;
padding: 2ch;
}
.sheet-rolltemplate-container div {
border-bottom: 1px solid #b6b473;
height: 45px;
}
.sheet-rolltemplate-dice {
display: grid;
grid-template-columns: repeat(7, 35px);
align-items: start;
grid-gap: 1rem;
padding: 2ch;
}
.sheet-rolltemplate-name {
}
.sheet-rolltemplate-result {
background-clip: padding-box;
background-size: contain;
background-repeat: no-repeat;
height: 2em;
font-size: 1.2em;
place-self: center;
}
.sheet-rolltemplate-Cortex .inlinerollresult {
display: inline-block;
min-width: 1.5em;
text-align: center;
border: none !important;
background-color: transparent !important;
color: #ffffff !important;
padding-top: 7px;
place-self: center;
}
.sheet-rolltemplate-Cortex .inlinerollresult.fullcrit {
}
.sheet-rolltemplate-Cortex .inlinerollresult.fullfail {
}
.sheet-rolltemplate-Cortex .inlinerollresult.importantroll {
}
@media only screen and (max-width: 480px) {
.sheet-wrapper {
min-width: 320px;
}
.sheet-cols6 {
display: grid;
grid-template-columns: repeat(2, 1fr );
align-items: start;
}
.sheet-cols5 {
display: grid;
grid-template-columns: repeat(1, 1fr );
align-items: start;
}
.sheet-cols4 {
display: grid;
grid-template-columns: repeat(2, 1fr );
align-items: start;
}
.sheet-cols3 {
display: grid;
grid-template-columns: repeat(1, 1fr );
align-items: start;
}
.sheet-cols2 {
display: grid;
grid-template-columns: repeat(1, 1fr );
align-items: start;
}
.sheet-cols2 .sheet-cols2 {
display: grid;
grid-template-columns: repeat(2, 1fr );
align-items: start;
}
.sheet-cols1 {
display: grid;
grid-template-columns: repeat(1, 1fr );
align-items: start;
}
/* halo layout */
.sheet-editPane {
width: 80%;
}
input[name="attr_Portrait"][value="PC0"] {
border: 1px solid #cccc00;
text-align: center;
background-color: rgba(255, 128, 0, 0.05);
}
h1.sheet-hide {
visibility: visible !important;
display: block;
}
.sheet-Agility,
.sheet-Awareness,
.sheet-Intellect,
.sheet-Influence,
.sheet-Spirit,
.sheet-Strength
{
position: static !important;
background-color: rgba(255, 255, 255, 0.3) !important;
border: 1px solid rgba(55, 55, 55, 0.3) !important;
padding: 5px !important;
}
input[name="attr_Portrait"]:not([value="PC0"]) + .sheet-action {
display: block;
visibility: visible;
}
.charsheet button[type="roll"].sheet-blank-roll-button + span {
display: block !important;
visibility: visible !important;
}
img[alt="Tales of Xadia"] {
display: none !important;
}
}