Files
roll20-character-sheets/Supers-Revised-Edition/supers-revised.css
T
G-G-G 17c97afcd0 SUPERS Revised: fix images
The images were using the wrong address.
2020-07-05 23:06:51 +01:00

348 lines
6.9 KiB
CSS

/*------------------------------------------------*\
#GENERAL
\*------------------------------------------------*/
.charsheet {background-color: white; background-repeat: repeat;}
.sheet-medium {width: 25%}
select {width: 25%;}
/* --------- Text ------------- */
label {display: inline;}
h2 {
color: blue;
text-align: center;
}
.sheet-bold{
font-weight: 600;
font-size: medium;
}
input[type="number"].sheet-bold{
font-weight: 600;
font-size: 1.4em;
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 ---------- */
button {border-top: 1px;}
.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 {
display: flex;
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 3.25fr 3fr 3.75fr 2fr 1fr;
grid-template-areas:"name logo "
"resistances aptitudes "
"advantages disadvantages "
"powers powers "
"tracker comp-dice "
"cost cost ";
grid-gap: 4px;
width: 1000px; /* Defines the width and height of the sheet */
height: 1600px;
}
/* NAME SECTION */
div.sheet-name{
grid-area: name;
padding: 30px 0px 0px 50px;
}
div.sheet-name input[type="text"]{
width: 460px;
}
div.sheet-name h6{
padding-left: 10px;
}
/* LOGO SECTION */
div.sheet-logo{
grid-area: logo;
background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Supers-Revised-Edition/images/logo.png);
background-size: 344px 150px;
background-repeat: no-repeat;
background-position: center;
display: flex;
justify-content: flex-end;
align-items: flex-end;
}
/* RESISTANCES */
div.sheet-resistances{
grid-area:resistances;
}
span.sheet-resistance {background-color: white;color: black;}
div.sheet-resistances h2{
width: 200px;
padding-left: 150px;
}
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: 240px;
}
div.sheet-resistances input[type="number"]{
border-style: solid;
}
.sheet-initiative {margin-left: 225px;
}
/* Aptitudes */
div.sheet-aptitudes{
grid-area: aptitudes;
}
div.sheet-aptitudes input[type="text"].sheet-bold{
font-size: 1.3em;
width: 158px;
}
div.sheet-powers input[type="text"].sheet-bold{
font-size: 1.3em;
width: 200px;
}
div.sheet-aptitudes input[type="text"].sheet-longap{
width: 225px;
}
/* Advantages & Disadvantages */
div.sheet-advantages{
grid-area: advantages;
}
div.sheet-disadvantages{
grid-area: disadvantages;
}
div.sheet-advantages input[type="number"],
div.sheet-disadvantages input[type="number"]{
width: 30px;
}
div.sheet-advantages input[type="text"].sheet-notes{
width: 240px;
}
div.sheet-disadvantages input[type="text"].sheet-notes{
width: 210px;
}
.sheet-mediumadv {width: 188px; margin: 2px;}
.sheet-mediumdis {width: 43%; margin: 2px;}
/* Powers */
div.sheet-powers{
grid-area: powers;
}
.sheet-mediumpow {width: 17%}
/* TRACKER SECTION */
div.sheet-tracker{
grid-area: tracker;
}
div.sheet-def-tracker{
background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Supers-Revised-Edition/images/Original-Tracker.png);
background-size: 490px 180px;
background-repeat: no-repeat;
height: 180px;
width: 490px;
}
div.sheet-alt-tracker{
background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Supers-Revised-Edition/images/alternate-tracker.png);
background-size: 490px 180px;
background-repeat: no-repeat;
height: 180px;
width: 490px;
}
div.sheet-def-tracker,
input.sheet-tracker-switch:checked ~ .sheet-alt-tracker{
display: block;
}
div.sheet-alt-tracker,
input.sheet-tracker-switch:checked ~ .sheet-def-tracker{
display: none;
}
/* COMP DICE */
div.sheet-comp-dice{
grid-area: comp-dice;
display: flex;
}
div.sheet-temp-comp-dice{
grid-area: temp-comp-dice;
}
/* Cost */
div.sheet-cost{
grid-area: cost;
justify-content: space-around;
}
div.sheet-cost span{
padding: 3px 0px 0px 10px;
}
/*-----------------------------------------------------------------*\
#ROLL 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;
}