459 lines
8.9 KiB
CSS
459 lines
8.9 KiB
CSS
@import url('https://fonts.googleapis.com/css?family=Parisienne&display=swap');
|
|
|
|
/* Set the min-width so that when the window is resized the look will stay consistent */
|
|
|
|
.charsheet {
|
|
min-width: 850px;
|
|
background: white;
|
|
}
|
|
|
|
/* Universal styling applied to all elements of these types */
|
|
|
|
h2 {
|
|
font-size: 2em;
|
|
margin-bottom: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
summary {
|
|
font-weight: 600;
|
|
font-size: 2em;
|
|
margin-bottom: 10px;
|
|
text-align: left;
|
|
}
|
|
|
|
details summary:after {
|
|
content: "+";
|
|
color: black;
|
|
position: absolute;
|
|
font-size: 2rem;
|
|
line-height: 0;
|
|
margin-top: 0.75rem;
|
|
right: 80;
|
|
font-weight: 200;
|
|
transform-origin: center;
|
|
transition: 200ms linear;
|
|
}
|
|
|
|
details[open] summary:after {
|
|
transform: rotate(45deg);
|
|
font-size: 2rem;
|
|
}
|
|
|
|
label {
|
|
display: inline-block;
|
|
}
|
|
|
|
input {
|
|
display: inline-block;
|
|
width: 30%;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
max-width: 92%;
|
|
}
|
|
|
|
/* Targetted styling that only effects elements with these classes */
|
|
|
|
img.sheet-shield {
|
|
height: auto;
|
|
max-height: 600px;
|
|
text-align: center;
|
|
width: 500px;
|
|
}
|
|
|
|
img.sheet-logo {
|
|
width: 300px;
|
|
text-align: right;
|
|
}
|
|
|
|
img.sheet-portrait {
|
|
height: 350px;
|
|
text-align: center;
|
|
width: auto;
|
|
min-width: 300px;
|
|
border: 1px solid silver;
|
|
background-color: #ffffcc;
|
|
}
|
|
|
|
label.sheet-gearcheck {
|
|
display: inline;
|
|
white-space: pre;
|
|
}
|
|
|
|
label.sheet-conditionlabel {
|
|
display: inline-block;
|
|
white-space: pre;
|
|
font-size: 1em;
|
|
font-weight: 550;
|
|
width: 13ch;
|
|
}
|
|
|
|
label.sheet-skilllabel {
|
|
display: inline-block;
|
|
white-space: pre;
|
|
font-size: 1em;
|
|
font-weight: 550;
|
|
width: 14ch;
|
|
}
|
|
|
|
input.sheet-skilllabel {
|
|
display: inline-block;
|
|
white-space: pre;
|
|
font-size: 1em;
|
|
font-weight: 550;
|
|
width: 16ch;
|
|
}
|
|
|
|
input.sheet-short {
|
|
width: 15%;
|
|
}
|
|
|
|
input.sheet-shorter {
|
|
width: 9%;
|
|
}
|
|
|
|
input.sheet-number {
|
|
width: 5%;
|
|
}
|
|
|
|
input.sheet-skill {
|
|
display: inline-block;
|
|
width: 2.5em;
|
|
text-align: right;
|
|
}
|
|
|
|
input.sheet-npcskill {
|
|
display: inline-block;
|
|
width: 2.0em;
|
|
text-align: center;
|
|
}
|
|
|
|
button[type=roll].sheet-blank-roll-button::before {
|
|
content: '';
|
|
}
|
|
|
|
/* - - - - - Remove Number Spinner - - - - - */
|
|
input[type="number"].sheet-skill::-webkit-outer-spin-button,
|
|
input[type="number"].sheet-skill::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
input[type="number"].sheet-skill {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
select.sheet-short {
|
|
width: 10%;
|
|
}
|
|
|
|
select.sheet-shorter {
|
|
width: 9%;
|
|
}
|
|
|
|
.charsheet button[type="action"].sheet-skillroll {
|
|
width: 15ch;
|
|
border: none;
|
|
background-color: white;
|
|
text-align: left;
|
|
font-weight: 550;
|
|
}
|
|
|
|
.charsheet button[type="action"].sheet-skillroll:hover {
|
|
background-color: purple;
|
|
color: white;
|
|
}
|
|
|
|
.charsheet button[type="action"].sheet-cbtroll {
|
|
width: 12ch;
|
|
}
|
|
|
|
.charsheet button[type="action"].sheet-npcroll {
|
|
width: 6ch;
|
|
}
|
|
|
|
.charsheet button[type="action"].sheet-cbtroll,
|
|
.charsheet button[type="action"].sheet-npcroll {
|
|
border: 1px solid black;
|
|
background-color: silver;
|
|
background-image: linear-gradient(to top, silver, white);
|
|
text-align: center;
|
|
font-weight: 550;
|
|
}
|
|
|
|
.charsheet button[type="action"].sheet-cbtroll:hover,
|
|
.charsheet button[type="action"].sheet-npcroll:hover {
|
|
background-color: purple;
|
|
background-image: linear-gradient(to top, purple, white);
|
|
color: white;
|
|
}
|
|
|
|
.charsheet button[type="roll"].sheet-blank-button::before {
|
|
content: ' ';
|
|
}
|
|
|
|
input.sheet-gearcheck:checked {
|
|
background: purple;
|
|
}
|
|
|
|
/* Targetted styling that only effects elements contained within the stated class */
|
|
|
|
.sheet-mugshot {
|
|
text-align: center;
|
|
}
|
|
|
|
.sheet-coverfluff {
|
|
width:425px;
|
|
font-size: 1.5em;
|
|
border: none;
|
|
border-bottom: 2px dotted black;
|
|
}
|
|
|
|
.sheet-fluff {
|
|
width:98%;
|
|
font-size: 1.2em;
|
|
border: none;
|
|
border-bottom: 2px dotted black;
|
|
}
|
|
|
|
.sheet-cover {
|
|
text-align: center;
|
|
}
|
|
|
|
/*Configure the tabs*/
|
|
.charsheet div.sheet-cover, .charsheet div.sheet-character, .charsheet div.sheet-skills, .charsheet div.sheet-gear, .charsheet div.sheet-journal, .charsheet div.sheet-combat, .charsheet div.sheet-npc {
|
|
display: none;
|
|
background-color: #f9f9eb;
|
|
}
|
|
|
|
.charsheet input[type=radio] {
|
|
display: none;
|
|
float: left;
|
|
}
|
|
|
|
.charsheet input[type=radio] + label{
|
|
content: '';
|
|
border: none;
|
|
background-image: radial-gradient(#f9f9eb,#f5f5dc,#eeeec3);
|
|
color: black;
|
|
font-size: 0.8em;
|
|
font-weight: bold;
|
|
width: 14%;
|
|
text-align: center;
|
|
padding: 0%;
|
|
float: left;
|
|
clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 100%, 0% 100%);
|
|
}
|
|
|
|
.charsheet input[type=radio]:hover + label{
|
|
color: purple;
|
|
}
|
|
|
|
.charsheet input[type=radio]:checked + label{
|
|
background: purple;
|
|
color: white;
|
|
}
|
|
|
|
/* show the selected tab */
|
|
|
|
|
|
.charsheet input.sheet-page1:checked ~ div.sheet-cover,
|
|
.charsheet input.sheet-page2:checked ~ div.sheet-character,
|
|
.charsheet input.sheet-page3:checked ~ div.sheet-skills,
|
|
.charsheet input.sheet-page4:checked ~ div.sheet-gear,
|
|
.charsheet input.sheet-page5:checked ~ div.sheet-journal,
|
|
.charsheet input.sheet-page6:checked ~ div.sheet-combat,
|
|
.charsheet input.sheet-page7:checked ~ div.sheet-npc{
|
|
display: block;
|
|
}
|
|
|
|
|
|
/*Hide attack buttons by default*/
|
|
.sheet-meleebuttons,
|
|
.sheet-rangedbuttons {
|
|
display: none;
|
|
}
|
|
|
|
/* show the relevant combat skill buttons */
|
|
.sheet-revealbuttons[value="1"]:checked ~ div.sheet-meleebuttons,
|
|
.sheet-revealbuttons[value="2"]:checked ~ div.sheet-rangedbuttons {
|
|
display: inline-block;
|
|
}
|
|
|
|
/* show the relevant combat skill buttons */
|
|
.sheet-revealbuttons[value="2"]:checked ~ div.sheet-meleebuttons,
|
|
.sheet-revealbuttons[value="1"]:checked ~ div.sheet-rangedbuttons {
|
|
display: none;
|
|
}
|
|
|
|
/* styling the CRP roll templates to look like the default*/
|
|
.sheet-rolltemplate-init table {
|
|
width:100%;
|
|
background-color:white;
|
|
border:1px solid rgba(112,32,130,1);
|
|
}
|
|
.sheet-rolltemplate-init caption {
|
|
background-color:rgba(112,32,130,1);
|
|
color:white;
|
|
font-family:"Helvetica Neue",Helvetica,sans-serif;
|
|
font-weight:300;
|
|
font-size:1.1em;
|
|
padding:5px;
|
|
}
|
|
.sheet-rolltemplate-init td {
|
|
padding:5px;
|
|
line-height:1.4em;
|
|
vertical-align:top;
|
|
}
|
|
.sheet-rolltemplate-init td:first-child {
|
|
font-weight:bold;
|
|
text-align:left;
|
|
min-width:50px;
|
|
padding-right:10px;
|
|
}
|
|
.sheet-rolltemplate-init tr:nth-child(even) {
|
|
background-color:#eee;
|
|
}
|
|
|
|
.sheet-rolltemplate-atk table {
|
|
width:100%;
|
|
background-color:white;
|
|
border:1px solid rgba(112,32,130,1);
|
|
}
|
|
.sheet-rolltemplate-atk caption {
|
|
background-color:rgba(112,32,130,1);
|
|
color:white;
|
|
font-family:"Helvetica Neue",Helvetica,sans-serif;
|
|
font-weight:300;
|
|
font-size:1.1em;
|
|
padding:5px;
|
|
}
|
|
.sheet-rolltemplate-atk td {
|
|
padding:5px;
|
|
line-height:1.4em;
|
|
vertical-align:top;
|
|
}
|
|
.sheet-rolltemplate-atk td:first-child {
|
|
font-weight:bold;
|
|
text-align:left;
|
|
min-width:50px;
|
|
padding-right:10px;
|
|
}
|
|
.sheet-rolltemplate-atk tr:nth-child(even) {
|
|
background-color:#eee;
|
|
}
|
|
|
|
.sheet-rolltemplate-whp table {
|
|
width:100%;
|
|
background-color:white;
|
|
border:1px solid rgba(112,32,130,1);
|
|
}
|
|
.sheet-rolltemplate-whp caption {
|
|
background-color:rgba(112,32,130,1);
|
|
color:white;
|
|
font-family:"Helvetica Neue",Helvetica,sans-serif;
|
|
font-weight:300;
|
|
font-size:1.1em;
|
|
padding:5px;
|
|
}
|
|
.sheet-rolltemplate-whp td {
|
|
padding:5px;
|
|
line-height:1.4em;
|
|
vertical-align:top;
|
|
}
|
|
.sheet-rolltemplate-whp td:first-child {
|
|
font-weight:bold;
|
|
text-align:left;
|
|
min-width:50px;
|
|
padding-right:10px;
|
|
}
|
|
.sheet-rolltemplate-whp tr:nth-child(even) {
|
|
background-color:#eee;
|
|
}
|
|
|
|
.sheet-rolltemplate-soakrecover table {
|
|
width:100%;
|
|
background-color:white;
|
|
border:1px solid rgba(112,32,130,1);
|
|
}
|
|
.sheet-rolltemplate-soakrecover caption {
|
|
background-color:rgba(112,32,130,1);
|
|
color:white;
|
|
font-family:"Helvetica Neue",Helvetica,sans-serif;
|
|
font-weight:300;
|
|
font-size:1.1em;
|
|
padding:5px;
|
|
}
|
|
.sheet-rolltemplate-soakrecover td {
|
|
padding:5px;
|
|
line-height:1.4em;
|
|
vertical-align:top;
|
|
}
|
|
.sheet-rolltemplate-soakrecover td:first-child {
|
|
font-weight:bold;
|
|
text-align:left;
|
|
min-width:50px;
|
|
padding-right:10px;
|
|
}
|
|
.sheet-rolltemplate-soakrecover tr:nth-child(even) {
|
|
background-color:#eee;
|
|
}
|
|
|
|
.sheet-rolltemplate-std table {
|
|
width:100%;
|
|
background-color:white;
|
|
border:1px solid rgba(112,32,130,1);
|
|
}
|
|
.sheet-rolltemplate-std caption {
|
|
background-color:rgba(112,32,130,1);
|
|
color:white;
|
|
font-family:"Helvetica Neue",Helvetica,sans-serif;
|
|
font-weight:300;
|
|
font-size:1.1em;
|
|
padding:5px;
|
|
}
|
|
.sheet-rolltemplate-std td {
|
|
padding:5px;
|
|
line-height:1.4em;
|
|
vertical-align:top;
|
|
}
|
|
.sheet-rolltemplate-std td:first-child {
|
|
font-weight:bold;
|
|
text-align:left;
|
|
min-width:50px;
|
|
padding-right:10px;
|
|
}
|
|
.sheet-rolltemplate-std tr:nth-child(even) {
|
|
background-color:#eee;
|
|
}
|
|
|
|
.sheet-rolltemplate-def table {
|
|
width:100%;
|
|
background-color:white;
|
|
border:1px solid rgba(112,32,130,1);
|
|
}
|
|
.sheet-rolltemplate-def caption {
|
|
background-color:rgba(112,32,130,1);
|
|
color:white;
|
|
font-family:"Helvetica Neue",Helvetica,sans-serif;
|
|
font-weight:300;
|
|
font-size:1.1em;
|
|
padding:5px;
|
|
}
|
|
.sheet-rolltemplate-def td {
|
|
padding:5px;
|
|
line-height:1.4em;
|
|
vertical-align:top;
|
|
}
|
|
.sheet-rolltemplate-def td:first-child {
|
|
font-weight:bold;
|
|
text-align:left;
|
|
min-width:50px;
|
|
padding-right:10px;
|
|
}
|
|
.sheet-rolltemplate-def tr:nth-child(even) {
|
|
background-color:#eee;
|
|
}
|