Files
JosephandJoseph Meehan 209c554d75 Descent into Midnight version 1.0 (#6008)
* Update .gitignore

* Removed *.js

Not sure where it came from

* Folder Creation

New PbtA game

* Renames

* Update sheet.json

* Update DescentIntoMIdnight.html

Editing the header and stat fields

* More work

Getting the top section to format

* More sections

Weee

* Creating advancement section

* Adding basic moves

Fun times for all

* Adding basic and special moves

* Building out rolls

Auto rolling ftw

* Building roll templates

* Fixed the rolls

* Setting up all the rolls

Got everyone going

* Basic Moves done

Still need to do special

* Script additions

Auto calculating corruption and conditions

* 1.0

Happy with this version

* Style fix ups

Getting ready for 1.0 by removing sheet-

* Added Version Tracker

* Rename DescentIntoMIdnight.html to DescentIntoMidnight.html

Rename didn't work in VSCode

* Added Preview

Co-authored-by: Joseph Meehan <Meehan_Joseph@bah.com>
2020-03-30 10:01:18 -07:00

388 lines
5.9 KiB
CSS

.charsheet {
width: 830px;
background: white;
}
textarea {
resize: none;
height: auto;
width: 97%;
}
textarea,
input {
outline: none;
box-shadow: none;
margin-bottom: 1px;
}
.sheet-header textarea,
.sheet-header input {
border: none;
}
input[type="number"],
input[type="text"] {
width: 100%;
}
select {
width: auto;
margin: 0;
}
input[type=number]:disabled::-webkit-inner-spin-button,
input[type=number]:disabled::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[disabled] {-moz-appearance: textfield}
.repcontainer .btn,
.repcontrol .btn {
border-radius: 0;
background-image: none;
border: none;
}
/* ===== LAYOUT ===== */
.sheet-col-left {
float: left;
width: 39%;
}
.sheet-col-right {
float: right;
width: 60%;
}
/* ===== TOGGLE ===== */
.sheet-toggle:not(:checked) ~ .sheet-hide,
.sheet-toggle:checked ~ .sheet-show {
display: none;
}
/* ===== SECTION HEADERS ===== */
.sheet-header {
background-color: #000;
color: #fff;
padding: 2px 0px;
vertical-align: middle;
line-height: 100%;
height: 32px;
line-height: 32px;
font-size: 1.1em;
margin: 3px 0px;
box-align: center;
border-radius: 4px;
padding: 2px 2px 2px 8px;
}
.sheet-header input {
height: 28px;
border: none;
vertical-align: middle;
font-weight: bold;
font-size: 18px;
line-height: 18px;
margin: 2px;
}
.sheet-header input[type="text"] {
width: 2.2em;
}
.sheet-header input[type="number"] {
width: 2.7em;
}
.sheet-header input[type="number"]:disabled {
width: 2em;
}
.sheet-header button[type="roll"] {
height: 28px;
width: 28px;
margin: 2px;
padding: 4px;
padding-top: 5px;
font-size: 20px;
text-align: center;
background: white;
border: none;
border-radius: 3px;
}
.sheet-header > * {
text-align: right;
float: right;
height: 100%;
}
.sheet-header .sheet-section-name {
margin-right: 2px;
font-weight: bold;
text-align: left;
float: left;
}
/* ===== MAIN HEADER ===== */
.sheet-topbar {
height: 50px;
padding: 4px 2% 4px 2%;
}
.sheet-topbar.sheet-header > input {
height: 100%;
width: 50%;
padding: 0;
margin: 0;
background-color: black;
color: white;
font-size: 38px;
line-height: 42px;
}
.sheet-topbar > .sheet-field-name {
float: left;
text-align: left;
}
.sheet-topbar > .sheet-field-class {
float: right;
text-align: right;
}
/* ===== STATISTICS ===== */
.sheet-statistics {
width: 100%;
margin-left: 0.5%;
}
.sheet-statistics .sheet-pronoun {
width: 30%;
}
.sheet-statistics .sheet-corruption,
.sheet-statistics .sheet-harmony {
width: 23%;
}
.sheet-statistics .sheet-maneuvers {
width: 16%
}
.sheet-statistics input[type="text"] {
width: 9em;
}
.sheet-statistics .sheet-header {
float: left;
margin-right: 0.6%;
}
.sheet-statistics input[type="checkbox"] {
width:1em;
}
.sheet-statistics input[type="number"] {
width: 2em;
}
.sheet-statistics input[type="number"]:disabled {
width: 1em;
}
.sheet-statistics .sheet-header:last-child {
margin-right: 0;
}
/* ===== ATTRIBUTES ===== */
.sheet-attributes {
margin-left: 1%;
margin-bottom: 10px;
}
.sheet-attributes .sheet-header {
height: auto;
width: 18.2%;
float: left;
margin-right: 0.5%;
padding: 4px;
padding-bottom: 6px;
position: relative;
}
.sheet-attributes .sheet-header > label {
height: 1em;
width: calc(90% - 8px);
margin: 0;
padding: 1px 2px;
margin: 0 5%;
text-transform: uppercase;
text-align: center;
font-weight: normal;
font-size: 12px;
background: white;
transform: skew(-10deg);
-webkit-transform: skew(-10deg);
position: absolute;
}
.sheet-attributes .sheet-header > label.sheet-top {
top: -5px;
}
.sheet-attributes .sheet-header > label.sheet-bottom {
bottom: -2px;
}
.sheet-attributes .sheet-header input[type="number"] {
background: white;
width: 100%;
margin: 0;
text-align: center;
z-index: 1;
}
.sheet-attributes .sheet-header button[type="roll"] {
height: auto;
width: 90%;
background-color: inherit;
color: #DDD;
box-shadow: none;
border: none;
}
.sheet-attributes .sheet-row-1 input {
width: 100%;
}
.sheet-attributes .sheet-row-2 {
width: 100%;
height: 16px;
padding: 1px;
overflow: hidden;
line-height: 14px;
font-size: 12px;
text-align: center;
text-transform: uppercase;
font-weight: bold;
}
.sheet-attributes .sheet-row-2 label {
color: #DDD;
display: inline;
}
.sheet-attributes .sheet-row-2 input {
height: 12px;
margin: 0;
}
/* ===== CHARACTER DESCRIPTION ===== */
span.sheet-description-name {
font-weight: bold;
font-size: large;
}
/* ===== BASIC AND SPECIAL MOVES ===== */
span.sheet-basicmove-name,
span.sheet-specialmove-name {
font-weight: bold;
font-size: large;
}
label.sheet-question-label {
font-size: inherit;
font-weight: inherit;
margin-bottom: inherit;
}
button.sheet-inlinebutton[type="roll"] {
background: inherit;
border: inherit;
font-size: 1.1em;
}
/* ===== Roll Template ===== */
.sheet-rolltemplate-dim .sheet-container {
background-color: skyblue;
border: 2px solid;
width: 95%;
}
.sheet-rolltemplate-dim .sheet-container .sheet-template-header {
padding: 0.5em 0;
font-weight: bold;
color: white;
font-size: 1.2em;
line-height: 20px;
font-variant: small-caps;
background-color: #012998;
padding-left: 2px;
}
.sheet-rolltemplate-dim .sheet-container .sheet-template-row {
border-top: 1px solid black;
padding: 0.5em 0 0.2em 2px;
}
.sheet-rolltemplate-dim .sheet-container div.sheet-roll,
.sheet-rolltemplate-dim .sheet-container div.sheet-hit {
background-color: #DBE5FF;
}
.sheet-rolltemplate-dim .sheet-container div.sheet-partial,
.sheet-rolltemplate-dim .sheet-container div.sheet-miss {
background-color: #A9C0FF;
}
/* ===== UTILITY ===== */
.sheet-clearfix {
clear: both;
}
.sheet-right {
float: right !important;
}
.sheet-left {
float: left !important;
}
/* ===== TWEAKS ===== */
.sheet-section-moves textarea {
resize: vertical;
}
.sheet-section-moves input[name="attr_movename"] {
width: 77%;
}
.sheet-section-moves select {
width: 18%;
}