Files
roll20-character-sheets/DeusVault/DeusVault.css
T

705 lines
13 KiB
CSS

@import url("https://fonts.googleapis.com/css?family=Material+Icons&display=swap");
.sheet-material-icons,
.material-icons {
font-family: Material Icons;
}
.sheet-body {
--background-image-url: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/DeusVault/images/background.jpg);
--option-image-url: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/DeusVault/images/options.png);
--light-grey: #d8d4d3;
--text-color: #3e3431;
--succeeded-color: #00ff00;
--font: "Lucida Calligraphy";
}
.sheet-body {
position: relative;
left: 0;
right: 0;
}
.sheet-body,
.sheet-options,
.sheet-fiche {
width: 100%;
min-width: 910px;
box-sizing: border-box;
}
.sheet-body,
input,
select,
textarea {
font-family: var(--font), "Comic Sans MS", "Comic Sans", cursive;
color: var(--text-color);
}
input:read-only {
cursor: default !important;
}
textarea {
box-sizing: border-box;
}
.sheet-body input,
.sheet-body select,
.sheet-body textarea {
background-color: rgba(255, 255, 255, 0.5);
}
.sheet-general-informations input {
border: 0;
padding: 0;
}
.sheet-input-field {
display: flex;
flex-direction: row;
align-items: center;
}
.sheet-text-center {
text-align: center;
}
.sheet-option-btn {
width: 20px !important;
height: 20px !important;
position: absolute;
opacity: 0;
z-index: 2;
}
.sheet-option-btn + span {
height: 20px;
width: 20px;
position: absolute;
z-index: 1;
content: var(--option-image-url);
}
.sheet-option-btn:hover + span {
background-color: rgba(0, 0, 0, 0.1);
}
.sheet-extend-btn,
.sheet-extend-btn + span {
left: calc(100% - 20px);
}
/* selected rules */
input[name="attr_selected_rules"][value="v1"] ~ * [class*="sheet-selected-rules-v"]:not(.sheet-selected-rules-v1),
input[name="attr_selected_rules"][value="v2"] ~ * [class*="sheet-selected-rules-v"]:not(.sheet-selected-rules-v2) {
display: none !important;
}
/* sections */
input[type="hidden"][name="attr_fiche_type"][value="pj"] ~ * .sheet-toggled-type-pnj:not(.sheet-toggled-type-pj),
input[type="hidden"][name="attr_fiche_type"][value="pnj"] ~ * .sheet-toggled-type-pj:not(.sheet-toggled-type-pnj) {
display: none;
}
input[type="hidden"][name="attr_section"][value="1"]
~ *
[class*="sheet-toggled-section-"]:not(.sheet-toggled-section-1),
:not(input[type="hidden"][name="attr_fiche_type"][value="pnj"])
~ input[type="hidden"][name="attr_section"][value="2"]
~ *
[class*="sheet-toggled-section-"]:not(.sheet-toggled-section-2) {
display: none;
}
/* Options */
[name="options_shown"]:not(:checked) ~ .sheet-options {
display: none;
}
.sheet-options {
padding: 20px 10px 10px 10px;
background-color: rgb(245, 245, 265);
border: 1px solid black;
}
.sheet-options > * {
margin-bottom: 10px;
}
.sheet-options select,
.sheet-options * > label {
margin-bottom: 0;
}
input[name="attr_show_advanced_roll"]:not(:checked) ~ * .sheet-button-roll-more {
display: none;
}
/* fiche */
.sheet-fiche {
background: #fcf8f2 var(--background-image-url) no-repeat center top;
border: 1px solid var(--light-grey);
background-size: cover;
position: absolute;
padding: 15px;
}
.sheet-character-avatar {
width: 150px;
height: 150px;
}
.sheet-fiche > .sheet-character-status {
margin-top: 20px;
}
/* fiche > general informations */
.sheet-general-informations {
display: flex;
flex-direction: row;
column-gap: 25px;
}
.sheet-general-informations > * {
margin-top: auto;
margin-bottom: auto;
}
.sheet-character-informations {
display: flex;
flex-direction: column;
justify-content: space-around;
height: 150px;
}
.sheet-character-informations > div {
width: 300px;
display: flex;
flex-direction: row;
column-gap: 10px;
}
.sheet-character-informations > div .sheet-input-field > span {
font-weight: bold;
margin-right: 5px;
}
.sheet-character-informations > div .sheet-input-field > input {
border-bottom: 1px solid var(--light-grey);
width: 100%;
}
.sheet-input-field-race {
width: 70%;
}
.sheet-input-field-age {
width: 30%;
}
/* fiche > characteristics */
.sheet-characteristics {
margin: auto;
}
.sheet-characteristics > div {
display: flex;
flex-direction: row;
column-gap: 10px;
}
.sheet-characteristics > div > div:first-child {
flex-grow: 1;
}
.sheet-characteristics > div > div:last-child {
margin: auto;
}
.sheet-characteristics .sheet-button-roll {
font-size: 20px;
font-size: 1.3em;
}
.sheet-characteristics input {
width: 30px;
border: 2px solid var(--light-grey);
text-align: center;
}
/* fiche > character status (bubbles) */
.sheet-character-status {
display: flex;
flex-direction: row;
justify-content: space-around;
}
.sheet-character-status > div {
display: flex;
flex-direction: column;
margin: auto auto 0 auto;
text-align: center;
}
.sheet-character-status > div > div input {
border: 2px solid var(--light-grey);
border-radius: 100%;
text-align: center;
}
.sheet-character-status > div > div > input {
font-size: 25px;
}
.sheet-character-status > div > div {
position: relative;
}
.sheet-character-status > div > div.sheet-s-50 > input {
height: 50px;
width: 50px;
}
.sheet-character-status > div > div.sheet-s-65 > input {
height: 65px;
width: 65px;
}
.sheet-character-status > div > div.sheet-s-80 > input {
height: 80px;
width: 80px;
}
.sheet-character-status > div > div > div {
position: absolute;
width: max-content;
}
.sheet-character-status .sheet-s-top {
top: 0;
}
.sheet-character-status .sheet-s-bottom {
bottom: 0;
}
.sheet-character-status > div > div.sheet-s-65 > div > input {
height: 30px !important;
width: 30px !important;
}
.sheet-character-status > div > div.sheet-s-65 > div {
left: 87%;
}
.sheet-character-status > div > div.sheet-s-80 > div:not(:first-child) > input {
height: 35px !important;
width: 35px !important;
}
.sheet-character-status > div > div.sheet-s-80 > div {
left: 79%;
}
.sheet-character-status > div > span {
text-transform: uppercase;
}
/* section button */
.sheet-section-buttons {
display: flex;
flex-direction: row;
justify-content: space-around;
}
.sheet-section-buttons > label {
width: 240px;
border: 2px solid var(--light-grey);
border-radius: 30px;
cursor: pointer;
color: var(--text-color) !important;
text-align: center;
padding: 5px 5px;
}
.sheet-section-buttons > label:hover {
background-color: rgba(0, 0, 0, 0.1);
}
input[type="hidden"][name="attr_section"][value="1"] ~ * label[for="section-1"],
input[type="hidden"][name="attr_section"][value="2"] ~ * label[for="section-2"] {
background-color: rgba(0, 0, 0, 0.2);
}
/* hr */
.sheet-horizontal-delimiter {
box-shadow: 0px 2px 2px var(--text-color);
border-width: 1px;
width: 95%;
margin: 20px auto;
}
.sheet-vertical-delimiter {
height: auto;
width: 1px;
box-shadow: 2px 0px 2px var(--text-color);
border-width: 1px;
margin: 0;
}
/* skills section */
.sheet-skills-section {
display: flex;
flex-direction: row;
column-gap: 20px;
}
.sheet-skills-section > div {
width: 100%;
}
.sheet-skills-section input {
width: 180px;
}
.sheet-skill {
display: flex;
flex-direction: row;
column-gap: 5px;
justify-content: space-around;
align-items: center;
margin-top: 5px;
}
.sheet-talent-other {
display: flex;
flex-direction: column;
row-gap: 5px;
}
.sheet-skill-expendable-btn {
height: 20px !important;
width: 20px !important;
padding: 0 !important;
margin: 0 !important;
position: absolute;
left: 100%;
background-image: var(--option-image-url);
background-size: cover;
opacity: 0;
cursor: pointer;
user-select: none;
}
.sheet-option-btn-container:hover .sheet-skill-expendable-btn,
.sheet-skill-expendable-btn:hover {
opacity: 1;
}
.sheet-skill-expendable-btn > input {
display: none !important;
}
input.sheet-mastery-value {
width: 40px;
text-align: center;
background: transparent;
}
/* masteries */
.sheet-mastery {
display: flex;
flex-direction: column;
row-gap: 5px;
}
.sheet-mastery .sheet-skill > .sheet-skill-expendable-btn {
position: initial;
}
/* attackcs */
.sheet-attack .sheet-skill {
justify-content: center;
}
.sheet-attack .sheet-skill > .sheet-skill-expendable-btn {
position: initial;
}
.sheet-attack input[name*="attr_attack"] {
height: 60px !important;
width: 70px !important;
border: 2px solid var(--light-grey);
background-color: rgba(255, 255, 255, 0.5);
border-radius: 100%;
text-align: center;
}
.sheet-input-field.sheet-description-field {
flex-direction: column;
align-items: start;
}
.sheet-description-field > span {
font-weight: bold;
}
.sheet-attack-values {
display: flex;
flex-direction: row;
column-gap: 10px;
font-weight: bold;
}
.sheet-attack-values input {
width: 42px;
}
/* sheet section */
.sheet-section {
display: flex;
flex-direction: column;
}
.sheet-section > .sheet-section-container {
display: flex;
flex-direction: column;
}
.sheet-section-title {
display: flex;
flex-direction: row;
column-gap: 10px;
align-items: baseline;
width: 100%;
min-width: max-content;
}
.sheet-section-title > label {
user-select: none;
}
/* sheet link & xp */
.sheet-link {
display: flex;
flex-direction: row;
align-items: center;
font-weight: bold;
}
.sheet-link select {
width: 62px;
padding: 0;
margin-bottom: 0;
}
.sheet-link select > option {
text-transform: uppercase;
}
input.sheet-spell-slot {
text-align: center;
width: 42px;
}
.sheet-tier-selector {
width: 42px;
padding: 0;
margin-bottom: 0;
}
.sheet-skill-xp {
display: flex;
flex-direction: row;
align-items: baseline;
font-weight: bold;
margin-left: 5px;
margin-right: 5px;
}
.sheet-skill-xp > input {
width: 50px;
}
/* inventory */
.sheet-inventory-sections-container textarea {
box-sizing: border-box;
height: 250px;
}
.sheet-inventory-container {
display: flex;
flex-direction: row;
column-gap: 5px;
}
.sheet-inventory-container > div {
flex-grow: 1;
height: 100%;
}
.sheet-money-section {
flex-grow: 0 !important;
margin-top: 30px;
display: flex;
flex-direction: column;
}
.sheet-currency-input {
background-color: rgba(255, 255, 255, 0.5);
border: 2px solid var(--light-grey);
height: 60px !important;
width: 60px !important;
border-radius: 100%;
padding: 0 !important;
text-align: center !important;
position: relative;
margin: 0 !important;
}
.sheet-currency-input > span {
position: absolute;
bottom: 0;
left: 0;
right: 0;
}
.sheet-currency-input input {
background: transparent;
border: none;
font-size: 20px;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
}
/* repcontrol */
.sheet-display-repcontrol .repcontrol {
visibility: hidden;
margin-top: 5px;
}
.editmode ~ .repcontrol,
.sheet-display-repcontrol:hover .repcontrol {
visibility: unset;
}
/* expendable */
input.sheet-expendable-btn:not(:checked) ~ .sheet-expendable {
display: none;
}
.sheet-expend-icon,
.sheet-retract-icon {
vertical-align: bottom;
}
input.sheet-expendable-btn:not(:checked) ~ .sheet-section-title .sheet-retract-icon {
display: none;
}
input.sheet-expendable-btn:checked ~ .sheet-section-title .sheet-expend-icon {
display: none;
}
/* roll button */
.sheet-button-roll,
.sheet-button-roll-more {
margin: 0px;
padding: 2px;
background: transparent;
border: transparent;
font-size: 28px;
box-shadow: none;
line-height: 25px;
z-index: 999;
color: var(--text-color);
text-shadow: 0 0.5px 0px var(--text-color);
}
.sheet-button-roll::before {
font-family: "dicefontd20" !important;
content: "t";
text-shadow: none;
vertical-align: bottom;
font-size: 25px;
}
.sheet-button-roll-more::before {
content: "+";
text-shadow: none;
vertical-align: bottom;
font-size: 25px;
font-weight: bold;
}
.sheet-button-roll:hover,
.sheet-button-roll-more:hover {
background-color: rgba(0, 0, 0, 0.1);
border-radius: 5px;
}
/*
ROLLTEMPLATES
*/
.sheet-rolltemplate-rt1 {
--succeeded-color: green;
}
.sheet-rolltemplate-rt1 .sheet-rt1-success {
margin-top: 5px;
display: flex;
flex-direction: row;
justify-content: space-around;
}
.sheet-rolltemplate-rt1 .sheet-rt1-success > div {
display: none;
}
.sheet-rolltemplate-rt1 .sheet-rt1-success > .sheet-rt1-success-level {
padding: 2px;
}
.sheet-rolltemplate-rt1 .sheet-rt1-success > div + .sheet-rt1-success-level,
.sheet-rolltemplate-rt1 .sheet-success-level {
border: 1px solid #3e3431;
border-radius: 5px;
}
.sheet-rolltemplate-rt1 .sheet-rt1-roll > div {
width: max-content;
font-size: 24px;
margin: 20px auto 10px auto;
}
.sheet-rolltemplate-rt1 .sheet-rt1-roll .inlinerollresult {
background: transparent;
border: none;
}
.sheet-rolltemplate-rt1 .sheet-rt1-rollvalue > span {
font-weight: bold;
}
.sheet-rolltemplate-rt1 .sheet-attack-succeeded {
font-weight: bold;
color: var(--succeeded-color);
}