Files
2021-01-31 15:55:34 -05:00

848 lines
17 KiB
CSS

@import url("https://fonts.googleapis.com/css?family=Girassol&display=swap");
hr {
display: block;
height: 4px;
border: 0;
border-top: 1px solid #000;
margin: 1em 0;
padding: 0;
}
textarea {
resize: vertical;
width: 96%;
}
h1 {
font-size: 2.4rem;
font-family: "Girassol", serif;
color: black;
margin-bottom: 10px;
margin-top: 10px;
line-height: 40px;
background-image: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Old%20School%20Essentials%20-%20AAC/images/banner.png");
background-size: 100%;
background-repeat: no-repeat;
text-align: center;
text-shadow: 1px 0 0 rgba(255, 255, 255, 0.8),
0 1px 0 rgba(255, 255, 255, 0.8), 0 -1px 0 rgba(255, 255, 255, 0.8),
-1px 0 0 rgba(255, 255, 255, 0.8);
}
h2 {
font-size: 2rem;
font-family: "Girassol", serif;
color: black;
border-bottom: 1px solid #333;
margin: 8px 0px;
line-height: 1.5em;
text-align: center;
}
label {
font-weight: normal;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
cursor: pointer;
display: inline-flex;
padding-right: 0;
}
p {
font-weight: normal;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
display: inline-block;
}
span,
p span,
label span {
background-color: #333;
color: white;
display: inline-block;
vertical-align: middle;
text-align: center;
line-height: 3.5em;
width: 3.5em;
}
span.sheet-double,
p span.sheet-double,
label span.sheet-double {
width: 7em;
}
img {
vertical-align: middle;
display: inline-block;
}
input[type="text"],
input[type="number"] {
width: 210px;
}
.sheet-half-input {
width: 105px;
}
.sheet-roll button[type="roll"]:hover,
.sheet-roll button[type="action"]:hover {
color: #ff6600;
border-color: #ff6600;
border: 1px 1px 1px 1px;
}
.sheet-roll button[type="roll"]::before,
.sheet-roll button[type="action"]::before {
content: "";
font-size: 10px;
}
.sheet-roll button[type="roll"],
.sheet-roll button[type="action"] {
text-decoration: none;
background: #333;
color: white;
border: none;
border-radius: 0;
box-shadow: none;
box-sizing: border-box;
font-size: 14px;
padding: 5px 3px;
margin: 0;
height: 49px;
width: 49px;
vertical-align: middle;
text-shadow: none;
white-space: normal;
}
.sheet-roll button[type="roll"].sheet-double,
.sheet-roll button[type="action"].sheet-double {
width: 7em;
}
.charsheet label span,
.charsheet input[type="number"],
.charsheet input[type="text"] {
box-sizing: border-box;
min-height: 4.9rem;
}
.charsheet input[type="text"],
.charsheet input[type="number"] {
border-radius: 0;
}
.charsheet input[type="text"].sheet-input-as-number,
.charsheet input[type="number"] {
text-align: center;
width: 3.5em;
}
.charsheet input[type="text"].sheet-double {
width: 7em;
}
/* Remove input number arrows*/
/* Firefox */
.charsheet input[type="number"] {
-moz-appearance: textfield;
}
/* Chrome */
.charsheet input::-webkit-inner-spin-button,
.charsheet input::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Opéra*/
.charsheet input::-o-inner-spin-button,
.charsheet input::-o-outer-spin-button {
-o-appearance: none;
margin: 0;
}
/* Flex */
div.sheet-flex {
display: flex;
}
div.sheet-flex > * {
margin-right: 10px;
}
div.sheet-flex > *:last-child {
margin-right: 0;
}
div.sheet-flex > .sheet-shrink {
flex-shrink: 2;
}
/* Inline Flex */
.sheet-inline-flex {
display: inline-flex;
}
.sheet-inline-flex > * {
flex-grow: 1;
}
.sheet-inline-flex > button:first-of-type,
.sheet-inline-flex > span:first-of-type,
.sheet-inline-flex > *:first-child {
flex-grow: 0;
margin: 0;
}
.sheet-inline-flex-wide-label > * {
flex-grow: 0;
}
.charsheet .sheet-inline-flex-wide-label > *:first-child,
.charsheet .sheet-inline-flex-wide-label > span:first-child,
.charsheet .sheet-inline-flex-wide-label > button:first-child {
flex-grow: 3;
}
/* Info Grid / Header */
div.sheet-info-grid {
display: grid;
grid-template-columns: 3fr 7fr;
grid-gap: 15px;
}
div.sheet-info-grid span {
width: 3.5em;
display: inline-block;
}
div.sheet-info-grid select {
min-height: 4.9rem;
margin: 0;
}
/* Combat */
.sheet-combat {
display: grid;
grid-template-columns: 3fr 1fr 0.5fr;
grid-gap: 10px;
}
.sheet-combat .sheet-armor {
display: none;
}
.sheet-combat input[name="attr_armorClassType"][value="aac"] ~ .sheet-armor-aac,
.sheet-combat input[name="attr_armorClassType"][value="AAC"] ~ .sheet-armor-aac,
.sheet-combat input[name="attr_armorClassType"][value="dac"] ~ .sheet-armor-dac,
.sheet-combat
input[name="attr_armorClassType"][value="DAC"]
~ .sheet-armor-dac {
display: flex;
}
input[name="attr_armorClassType"][value="aac"] ~ .sheet-matrix {
display: none;
}
/* Movement */
.sheet-movement table {
width: 100%;
}
.sheet-movement caption,
.sheet-movement th {
background: #333;
color: white;
font-weight: normal;
text-align: center;
}
.sheet-movement th {
font-size: 80%;
height: 25px;
}
.sheet-movement td {
box-sizing: border-box;
}
.sheet-movement input[type="number"] {
width: 100%;
}
/* Initiative */
.sheet-initiative button {
display: none;
}
.sheet-initiative
input[name="attr_individualInitiative"][value="disabled"]
~ button[name="attr_rollInit"],
.sheet-initiative
input[name="attr_individualInitiative"][value="enabled"]
~ button[name="attr_rollInitIndividual"] {
display: block;
flex-grow: 0;
}
/* Roll Templates */
.sheet-rolltemplate-skill span.sheet-rolldescr {
height: auto;
color: black;
line-height: 18px;
text-align: left;
border-top: 1px solid black;
background: white;
padding: 4px;
}
.sheet-rolltemplate-skill .inlinerollresult.fullcrit,
.sheet-rolltemplate-skill .inlinerollresult.fullfail {
border: 0 none;
}
.sheet-rolltemplate-simple h3,
.sheet-rolltemplate-greater h3,
.sheet-rolltemplate-less h3,
.sheet-rolltemplate-skill h3 {
color: white;
background-color: #333;
line-height: 2.2rem;
padding: 0.75rem;
text-align: center;
}
.sheet-rolltemplate-simple span,
.sheet-rolltemplate-greater span,
.sheet-rolltemplate-less span,
.sheet-rolltemplate-skill span {
background: white;
color: black;
display: inline-block;
vertical-align: middle;
text-align: center;
line-height: 3em;
height: 3em;
width: 100%;
border-bottom: 1px solid black;
border-left: 1px solid black;
border-right: 1px solid black;
}
.sheet-rolltemplate-simple h3,
.sheet-rolltemplate-greater h3,
.sheet-rolltemplate-less h3,
.sheet-rolltemplate-skill h3 {
font-family: "Girassol", serif;
font-size: 1.6rem;
}
.sheet-rolltemplate-simple .inlinerollresult.fullfail,
.sheet-rolltemplate-simple .inlinerollresult.fullcrit {
border: 0 none;
}
.sheet-rolltemplate-simple .inlinerollresult,
.sheet-rolltemplate-greater .inlinerollresult,
.sheet-rolltemplate-less .inlinerollresult,
.sheet-rolltemplate-skill .inlinerollresult {
background-color: transparent;
border: none;
color: black;
display: block;
height: 100%;
box-sizing: border-box;
line-height: inherit;
font-size: 1.6rem;
}
.sheet-rolltemplate-simple .fullfail,
.sheet-rolltemplate-simple .sheet-fullfail,
.sheet-rolltemplate-greater .sheet-rollfail,
.sheet-rolltemplate-less .sheet-rollfail,
.sheet-rolltemplate-skill .sheet-rollfail {
color: #990000;
font-weight: bold;
}
.sheet-rolltemplate-simple .fullcrit,
.sheet-rolltemplate-simple .sheet-fullcrit,
.sheet-rolltemplate-greater .sheet-rollsuccess,
.sheet-rolltemplate-less .sheet-rollsuccess,
.sheet-rolltemplate-skill .sheet-rollsuccess {
color: #009900;
font-weight: bold;
}
.sheet-rolltemplate-simple .sheet-template-result-only .inlinerollresult {
text-align: center;
}
.sheet-rolltemplate-simple .sheet-template-row {
background: white;
display: grid;
grid-template-columns: 3fr 2fr;
}
.sheet-rolltemplate-simple .sheet-template-result-only,
.sheet-rolltemplate-simple .sheet-template-row > span {
background: white;
border: 1px solid black;
border-top: none;
box-sizing: border-box;
}
.sheet-rolltemplate-simple .sheet-template-row span.sheet-template-term {
text-align: right;
padding-right: 5px;
border-right: none;
color: #666;
}
.sheet-rolltemplate-simple .sheet-template-row span.sheet-template-result {
border-left: none;
text-align: left;
padding-left: 3px;
}
.sheet-rolltemplate-simple .sheet-template-row span.sheet-template-result span {
text-align: left;
}
.sheet-rolltemplate-skill .sheet-template-description,
.sheet-rolltemplate-simple .sheet-template-description {
border: 1px solid #000;
border-width: 0px 1px 1px 1px;
box-sizing: border-box;
background: white;
color: black;
padding: 10px;
}
.sheet-rolltemplate-simple .sheet-template-description p {
margin: 0;
text-align: center;
}
/* Attack Matrix in Roll Template */
.sheet-rolltemplate-simple .sheet-template-grid {
border-width: 0;
}
.sheet-rolltemplate-simple .sheet-template-grid > div {
display: grid;
grid-template-columns: repeat(10, 1fr);
width: calc(100%-2px);
}
.sheet-rolltemplate-simple .sheet-template-grid span {
height: auto;
border: 0 none;
box-sizing: border-box;
}
.sheet-rolltemplate-simple .sheet-grid-headers span {
background: #333;
color: white;
font-weight: bold;
}
.sheet-rolltemplate-simple .sheet-grid-values {
border-style: solid;
border-color: #333;
border-width: 0 1px 1px;
}
.sheet-rolltemplate-simple .sheet-grid-values span {
border-style: solid;
border-color: #333;
border-width: 0 1px 0 0;
}
.sheet-rolltemplate-simple .sheet-grid-values span:last-of-type {
border-right-width: 0;
}
/* Repeating Sections */
.sheet-repeat .repitem button,
.sheet-repeat .repitem input[type="text"],
.sheet-repeat .repitem input[type="number"],
.sheet-repeat .repitem select {
height: 3rem;
min-height: auto;
margin: 0;
box-sizing: border-box;
}
.sheet-abilities .repitem > *:last-child {
flex-grow: 6;
width: 100%;
}
.sheet-weapons-grid,
.sheet-abilities-grid,
.sheet-items-grid,
.sheet-armor-grid,
.sheet-spells-grid {
grid-gap: 5px;
display: grid;
margin-bottom: 5px;
}
.sheet-spells-grid {
grid-template-columns: 35px 35px 1.25fr 35px 1fr 1fr 3fr 1fr;
}
.sheet-monster .sheet-spells-grid {
grid-template-columns: 35px 1.25fr 1fr 1fr 3fr 1fr;
}
.sheet-weapons-grid {
grid-template-columns: 35px 2.5fr 1fr 1fr 1fr 1fr 1fr;
}
.sheet-abilities-grid {
grid-template-columns: 35px 2fr 1fr 1fr 1fr 4fr;
}
.sheet-items-grid {
grid-template-columns: 1fr 3fr 3fr 1fr;
}
.sheet-armor-grid {
grid-template-columns: 8fr 2fr 2fr 1fr;
}
.sheet-abilities-grid span,
.sheet-weapons-grid span,
.sheet-items-grid span,
.sheet-armor-grid span,
.sheet-spells-grid span {
width: 100%;
line-height: 2.5em;
box-sizing: border-box;
}
.sheet-armor-grid .sheet-checkbox {
display: flex;
align-items: center;
justify-content: center;
}
.sheet-abilities-grid input[type="text"],
.sheet-abilities-grid input[type="number"],
.sheet-abilities-grid select,
.sheet-weapons-grid input[type="text"],
.sheet-weapons-grid input[type="number"],
.sheet-weapons-grid select,
.sheet-items-grid input[type="text"],
.sheet-items-grid input[type="number"],
.sheet-items-grid select,
.sheet-armor-grid input[type="text"],
.sheet-armor-grid input[type="number"],
.sheet-armor-grid select,
.sheet-spells-grid input[type="text"],
.sheet-spells-grid input[type="number"],
.sheet-spells-grid select {
width: 100%;
}
button[type="roll"].sheet-roll-describe::before {
font-family: "Pictos Custom";
content: "y";
}
input[name="attr_spellRollType"] ~ button.sheet-roll,
input[name="attr_spellRollType"] ~ button.sheet-roll-describe {
display: none;
}
input[name="attr_spellRollType"][value="roll"] ~ button.sheet-roll,
input[name="attr_spellRollType"][value="describe"]
~ button.sheet-roll-describe {
display: inline-block;
width: 100%;
}
/* Grid-Like Spacing */
.sheet-grid-spacing span,
.sheet-grid-spacing input[type="number"] {
line-height: 3.5rem;
height: 3.5rem;
margin: 0;
min-height: 1rem;
width: 3.5rem;
}
/* Ability Scores */
.sheet-scores input[type="number"] {
max-width: 3.5rem;
}
/* Spells per Level */
.sheet-split-value > input[type="number"]:first-of-type,
.sheet-spells-per-level > label > input[type="number"]:first-of-type {
border-right: 0 none;
}
.sheet-split-value > input[type="number"]:last-of-type,
.sheet-spells-per-level > label > input[type="number"]:last-of-type {
border-left: 0 none;
}
.sheet-split-value .sheet-divider,
.sheet-spells-per-level .sheet-divider {
align-items: center;
background: white;
border-color: #ccc;
border-style: solid;
border-width: 1px 0;
box-sizing: border-box;
color: #aaa;
cursor: text;
display: inline-flex;
justify-content: center;
line-height: 3.5rem;
margin: 0;
width: auto;
}
.sheet-spells-per-level .sheet-divider {
height: 3.5rem;
}
.sheet-memorized::after {
content: "e";
font-family: pictos;
font-size: 14px;
text-align: center;
z-index: 3;
}
/* Weapons */
.sheet-weapons-grid .sheet-attack-roll {
display: none;
}
input[name="attr_armorClassType"][value="aac"]
~ div.repcontainer
.sheet-attack-roll-aac,
input[name="attr_armorClassType"][value="dac"]
~ div.repcontainer
.sheet-attack-roll-dac {
display: block;
width: 100%;
}
input.sheet-weapon-description {
width: 100%;
display: none;
}
input.sheet-expand:checked ~ input.sheet-weapon-description {
display: block;
margin-bottom: 5px;
}
/* Tabs */
.sheet-character,
/* .charsheet is needed since .sheet-spells is used elsewhere */
.charsheet .sheet-spells,
.sheet-retainers,
.sheet-monster,
.sheet-notes,
.sheet-settings {
display: none;
}
input[name="attr_sheetTab"][value="character"] ~ div.sheet-character,
input[name="attr_sheetTab"][value="spells"] ~ div.sheet-spells,
input[name="attr_sheetTab"][value="retainers"] ~ div.sheet-retainers,
input[name="attr_sheetTab"][value="monster"] ~ div.sheet-monster,
input[name="attr_sheetTab"][value="notes"] ~ div.sheet-notes,
input[name="attr_sheetTab"][value="settings"] ~ div.sheet-settings {
display: block;
}
.sheet-button-select {
border-bottom: 1px solid #333;
margin-bottom: 10px;
}
.sheet-button-select button {
background: #333;
color: white;
margin-left: 10px;
box-sizing: border-box;
border: 1px solid #333;
line-height: 3.5em;
padding: 0 15px;
margin-bottom: -1px;
}
input[name="attr_sheetTab"][value="character"]
~ .sheet-button-select
button[name="act_character"],
input[name="attr_sheetTab"][value="spells"]
~ .sheet-button-select
button[name="act_spells"],
input[name="attr_sheetTab"][value="retainers"]
~ .sheet-button-select
button[name="act_retainers"],
input[name="attr_sheetTab"][value="monster"]
~ .sheet-button-select
button[name="act_monster"],
input[name="attr_sheetTab"][value="notes"]
~ .sheet-button-select
button[name="act_notes"],
input[name="attr_sheetTab"][value="settings"]
~ .sheet-button-select
button[name="act_settings"] {
background: white;
color: black;
border: 1px solid black;
border-bottom: 1px solid white;
}
/* Monster */
.charsheet input[name="attr_monsterName"],
.charsheet input[name="attr_alignment"] {
width: auto;
}
.sheet-monster select[name="attr_class"] {
min-height: 4.9rem;
margin: 0;
}
.sheet-monster-combat {
display: grid;
grid-template-columns: 3fr 1fr;
grid-gap: 10px;
}
.sheet-monster .sheet-weapons-grid {
grid-template-columns: 35px 35px 3fr 1fr 4fr;
}
.sheet-monster .sheet-abilities-grid {
grid-template-columns: 35px 1fr 4fr;
}
.sheet-notes-section textarea {
box-sizing: border-box;
width: 100%;
height: 15em;
}
.sheet-show-aac,
.sheet-show-dac {
display: none;
}
input[name="attr_armorClassType"][value="aac"] ~ .sheet-show-aac,
input[name="attr_armorClassType"][value="AAC"] ~ .sheet-show-aac,
input[name="attr_armorClassType"][value="dac"] ~ .sheet-show-dac,
input[name="attr_armorClassType"][value="DAC"] ~ .sheet-show-dac {
display: inherit;
}
input[name="attr_savesAs"][value="character"] + input[name="attr_level"] {
display: block;
}
input[name="attr_savesAs"][value="monster"] + input[name="attr_level"] {
display: none;
}
/* Notes */
.sheet-notes .sheet-notes-section textarea {
height: 30em;
}
/* Settings */
.sheet-settings span {
background-color: transparent;
color: black;
line-height: inherit;
width: auto;
text-align: right;
min-height: inherit;
font-weight: bold;
}
.sheet-settings select {
margin: 0;
width: 100%;
}
.sheet-setting {
display: grid;
grid-template-columns: 1fr 3fr;
grid-gap: 5px;
align-items: center;
}
/* Expand */
.charsheet input.sheet-expand,
input.sheet-expand + span {
top: -5px;
right: -6px;
width: 18px;
height: 14px;
position: absolute;
}
.charsheet input.sheet-expand {
z-index: 6;
opacity: 0;
}
input.sheet-expand + span {
background: none;
display: inline-block;
line-height: initial;
width: initial;
position: absolute;
}
input.sheet-expand + span::after {
color: #333;
content: "y";
cursor: pointer;
font-family: pictos;
font-size: 14px;
opacity: 0.4;
text-align: center;
z-index: 3;
}
input.sheet-expand:hover + span::after {
opacity: 1;
}