* Supers! RED: sheet.json + images * Supers Revised Edition: v1.0 * Supers Revised Edition: Add Init button, improve layout, autocalc Cost, adv/disadv cost
341 lines
7.0 KiB
CSS
341 lines
7.0 KiB
CSS
|
|
|
|
.charsheet {background-color: white; background-repeat: repeat;}
|
|
|
|
h2 {
|
|
color: blue;
|
|
text-align: center;
|
|
}
|
|
|
|
.sheet-short {text-align: center; width: 10%; margin: 2px;}
|
|
|
|
.sheet-shortpow {text-align: center; width: 10%; margin: 2px;}
|
|
|
|
.sheet-shortcost {text-align: center; width: 5%; margin: 2px}
|
|
|
|
.sheet-shortcomp {text-align: center; width: 15%; margin: 2px}
|
|
|
|
.sheet-medium {width: 25%}
|
|
|
|
.sheet-mediumadv {width: 98%; margin: 2px;}
|
|
|
|
.sheet-mediumdis {width: 100%; margin: 2px;}
|
|
|
|
.sheet-mediumpow {width: 17%}
|
|
|
|
.sheet-long {width: 39%}
|
|
|
|
.sheet-longres {width: 37%}
|
|
|
|
.sheet-longap {width: 52%}
|
|
|
|
.sheet-longpow {width: 67%}
|
|
|
|
.sheet-superlong {width: 200%;}
|
|
|
|
button {border-top: 1px;}
|
|
|
|
select {width: 25%;}
|
|
|
|
label {display: inline;}
|
|
|
|
span.sheet-resistance {background-color: white;color: black;}
|
|
|
|
img.sheet-center {display: block; margin-right: auto; margin-left: auto; width: 100%; max-height: 100px}
|
|
|
|
label.sheet-aptitude {display: inline;}
|
|
|
|
label.sheet-cost {display: inline-block; font-size: 9pt}
|
|
|
|
label.sheet-comp {display: inline; font-size: 18pt; color: blue;}
|
|
|
|
|
|
/*------------------------------------------------*\
|
|
#GENERAL
|
|
\*------------------------------------------------*/
|
|
|
|
|
|
/* --------- Text ------------- */
|
|
|
|
.sheet-bold{
|
|
font-weight: 800;
|
|
font-size: medium;
|
|
}
|
|
|
|
input[type="number"].sheet-bold{
|
|
font-weight: 900;
|
|
font-size: 1.5em;
|
|
width: 40px;
|
|
}
|
|
|
|
label {
|
|
margin: 5px 0px 5px 0px;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
|
|
/* --------- Inputs ------------- */
|
|
|
|
input[type="text"],
|
|
input[type="number"]{
|
|
background-color: transparent;
|
|
border-style: none none solid none;
|
|
border-color: black;
|
|
border-radius: 0px;
|
|
}
|
|
|
|
input[type="number"]{
|
|
text-align: center;
|
|
}
|
|
|
|
textarea {
|
|
background-color: transparent;
|
|
width: 89%;
|
|
height: 70%;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
input[type="checkbox"].sheet-checkbox {
|
|
border-style: solid black;
|
|
border-radius: 0px;
|
|
}
|
|
|
|
textarea:focus,
|
|
input[type="text"]:focus,
|
|
input[type="number"]:focus{
|
|
background-color: #F6CED8;
|
|
}
|
|
|
|
/* -----Hides up/down buttons on numberfields that don't need them ---*/
|
|
|
|
input[type=number].sheet-ref::-webkit-inner-spin-button,
|
|
input[type=number].sheet-ref::-webkit-outer-spin-button,
|
|
input[type=number].sheet-txtfield::-webkit-inner-spin-button,
|
|
input[type=number].sheet-txtfield::-webkit-outer-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
input[type=number].sheet-ref,
|
|
input[type=number].sheet-txtfield {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
/* ------- Buttons ---------- */
|
|
|
|
.charsheet button[type=roll].sheet-d6::before { /*new die changes die roller to d6*/
|
|
font-family: 'dicefontd6';
|
|
content: 'F ';
|
|
}
|
|
|
|
/*-----------------------------------------------------------------*\
|
|
#SECTIONS
|
|
\*-----------------------------------------------------------------*/
|
|
|
|
|
|
/* --------- General Section Styling ------------- */
|
|
.sheet-flex-center {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.sheet-flex-middle {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sheet-flex-down {
|
|
flex-flow: column nowrap;
|
|
}
|
|
|
|
.sheet-flex-row {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
}
|
|
|
|
.sheet-section {
|
|
padding: 5px;
|
|
min-height: 90%;
|
|
}
|
|
|
|
.sheet-border{
|
|
border: solid 4px black;
|
|
}
|
|
|
|
/* ----- Character Sheet Structure -------
|
|
|
|
'.sheet-main' defines the sheet's general structure and dimensions using CSS Grid.
|
|
|
|
It uses 'Grid template areas' to name each sheet section,
|
|
so that they can be positioned in the grid easily,
|
|
while also providing a human-readable overview. */
|
|
div.sheet-main {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-rows: 2fr 3fr 2fr 3fr 2fr 1fr;
|
|
grid-template-areas:"name logo "
|
|
"resistances aptitudes "
|
|
"advantages disadvantages "
|
|
"powers powers "
|
|
"tracker comp-dice "
|
|
"cost cost ";
|
|
grid-gap: 4px;
|
|
width: 750px; /* Defines the width and height of the sheet */
|
|
height: 1000px;
|
|
}
|
|
|
|
|
|
/* NAME SECTION */
|
|
|
|
div.sheet-name{
|
|
grid-area: name;
|
|
padding: 30px 0px 0px 50px;
|
|
}
|
|
|
|
div.sheet-name input[type="text"]{
|
|
width: 230px;
|
|
}
|
|
div.sheet-name h6{
|
|
padding-left: 10px;
|
|
}
|
|
|
|
/* LOGO SECTION */
|
|
|
|
div.sheet-logo{
|
|
grid-area: logo;
|
|
background-image: url(https://raw.githubusercontent.com/Anduh/roll20-character-sheets/Supers-RED-v1-00/Supers-Revised-Edition/images/logo.png);
|
|
background-size: 285px 125px;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: flex-end;
|
|
|
|
}
|
|
|
|
div.sheet-resistances{
|
|
grid-area:resistances;
|
|
}
|
|
|
|
div.sheet-resistances h2{
|
|
width: 200px;
|
|
padding-left: 50px;
|
|
}
|
|
|
|
div.sheet-resistances .sheet-res-grid{
|
|
display: grid;
|
|
grid-template-columns: 3fr 2fr 2fr 1fr 6fr;
|
|
grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
|
|
width: 320px;
|
|
}
|
|
|
|
div.sheet-resistances input[type="text"].sheet-notes{
|
|
width: 120px;
|
|
}
|
|
div.sheet-resistances input[type="number"]{
|
|
border-style: solid;
|
|
}
|
|
|
|
|
|
div.sheet-aptitudes{
|
|
grid-area: aptitudes;
|
|
}
|
|
|
|
div.sheet-aptitudes input[type="text"].sheet-bold,
|
|
div.sheet-powers input[type="text"].sheet-bold{
|
|
font-size: 1.4em;
|
|
width: 110px;
|
|
}
|
|
|
|
div.sheet-aptitudes input[type="text"].sheet-longap{
|
|
width: 150px;
|
|
}
|
|
|
|
div.sheet-advantages{
|
|
grid-area: advantages;
|
|
}
|
|
|
|
div.sheet-advantages input[type="number"],
|
|
div.sheet-disadvantages input[type="number"]{
|
|
width: 30px;
|
|
}
|
|
|
|
div.sheet-advantages input[type="text"].sheet-notes,
|
|
div.sheet-disadvantages input[type="text"].sheet-notes{
|
|
width: 285px;
|
|
}
|
|
|
|
div.sheet-disadvantages{
|
|
grid-area: disadvantages;
|
|
}
|
|
div.sheet-powers{
|
|
grid-area: powers;
|
|
}
|
|
|
|
/* COMP DICE */
|
|
div.sheet-comp-dice{
|
|
grid-area: comp-dice;
|
|
display: flex;
|
|
}
|
|
|
|
|
|
div.sheet-temp-comp-dice{
|
|
grid-area: temp-comp-dice;
|
|
}
|
|
|
|
div.sheet-cost{
|
|
grid-area: cost;
|
|
}
|
|
|
|
/* TRACKER SECTION */
|
|
|
|
div.sheet-tracker{
|
|
grid-area: tracker;
|
|
background-image: url(https://raw.githubusercontent.com/Anduh/roll20-character-sheets/Supers-RED-v1-00/Supers-Revised-Edition/images/Original-Tracker.png);
|
|
background-size: 360px 140px;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
/* ALT TRACKER SECTION */
|
|
|
|
div.sheet-alt-tracker{
|
|
grid-area: alt-tracker;
|
|
background-image: url(https://raw.githubusercontent.com/Anduh/roll20-character-sheets/Supers-RED-v1-00/Supers-Revised-Edition/images/alternate-tracker.png);
|
|
background-size: 295px 180px;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
|
|
/*-----------------------------------------------------------------*\
|
|
#SROLL TEMPLATE
|
|
\*-----------------------------------------------------------------*/
|
|
|
|
/* ----------- BLACK -----------*/
|
|
.sheet-rolltemplate-black div {
|
|
width:100%;
|
|
background-color:white;
|
|
border:1px solid rgba(0, 0, 0,1);
|
|
}
|
|
.sheet-rolltemplate-black caption {
|
|
background-color:rgba(0, 0, 0,1);
|
|
color:white;
|
|
font-family:"Helvetica Neue",Helvetica,sans-serif;
|
|
font-weight:600;
|
|
text-align:center;
|
|
font-size:1.1em;
|
|
padding:5px;
|
|
}
|
|
.sheet-rolltemplate-black td {
|
|
padding:5px;
|
|
line-height:1.4em;
|
|
vertical-align:top;
|
|
}
|
|
.sheet-rolltemplate-black td:first-child {
|
|
font-weight:bold;
|
|
text-align:right;
|
|
min-width:50px;
|
|
padding-right:10px;
|
|
}
|
|
.sheet-rolltemplate-black tr:nth-child(even) {
|
|
background-color:#eee;
|
|
}
|