mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 19:52:29 +00:00
770 lines
13 KiB
CSS
770 lines
13 KiB
CSS
/*! ----------------- TROIKA CSS v1.01 ------------------ */
|
|
@import url("https://fonts.googleapis.com/css?family=Averia+Libre&display=swap");
|
|
/* ------------- Colours ------------- */
|
|
.sheet-u-bg-black {
|
|
background-color: #000;
|
|
}
|
|
|
|
.sheet-u-black {
|
|
color: #000;
|
|
}
|
|
|
|
.sheet-u-bd-black {
|
|
border-color: #000;
|
|
}
|
|
|
|
.sheet-u-bg-gray-lightest {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.sheet-u-gray-lightest {
|
|
color: #f5f5f5;
|
|
}
|
|
|
|
.sheet-u-bd-gray-lightest {
|
|
border-color: #f5f5f5;
|
|
}
|
|
|
|
.sheet-u-bg-gray-light {
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.sheet-u-gray-light {
|
|
color: #f0f0f0;
|
|
}
|
|
|
|
.sheet-u-bd-gray-light {
|
|
border-color: #f0f0f0;
|
|
}
|
|
|
|
.sheet-u-bg-gray-medium {
|
|
background-color: #aaa;
|
|
}
|
|
|
|
.sheet-u-gray-medium {
|
|
color: #aaa;
|
|
}
|
|
|
|
.sheet-u-bd-gray-medium {
|
|
border-color: #aaa;
|
|
}
|
|
|
|
.sheet-u-bg-gray-dark {
|
|
background-color: #999;
|
|
}
|
|
|
|
.sheet-u-gray-dark {
|
|
color: #999;
|
|
}
|
|
|
|
.sheet-u-bd-gray-dark {
|
|
border-color: #999;
|
|
}
|
|
|
|
.sheet-u-bg-text {
|
|
background-color: #333;
|
|
}
|
|
|
|
.sheet-u-text {
|
|
color: #333;
|
|
}
|
|
|
|
.sheet-u-bd-text {
|
|
border-color: #333;
|
|
}
|
|
|
|
.sheet-u-bg-white {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.sheet-u-white {
|
|
color: #fff;
|
|
}
|
|
|
|
.sheet-u-bd-white {
|
|
border-color: #fff;
|
|
}
|
|
|
|
.sheet-u-bg-luck {
|
|
background-color: gold;
|
|
}
|
|
|
|
.sheet-u-luck {
|
|
color: gold;
|
|
}
|
|
|
|
.sheet-u-bd-luck {
|
|
border-color: gold;
|
|
}
|
|
|
|
.sheet-u-bg-sheet {
|
|
background-color: #fdfbf7;
|
|
}
|
|
|
|
.sheet-u-sheet {
|
|
color: #fdfbf7;
|
|
}
|
|
|
|
.sheet-u-bd-sheet {
|
|
border-color: #fdfbf7;
|
|
}
|
|
|
|
.sheet-u-bg-success {
|
|
background-color: lightgreen;
|
|
}
|
|
|
|
.sheet-u-success {
|
|
color: lightgreen;
|
|
}
|
|
|
|
.sheet-u-bd-success {
|
|
border-color: lightgreen;
|
|
}
|
|
|
|
.sheet-u-bg-success-dark {
|
|
background-color: darkolivegreen;
|
|
}
|
|
|
|
.sheet-u-success-dark {
|
|
color: darkolivegreen;
|
|
}
|
|
|
|
.sheet-u-bd-success-dark {
|
|
border-color: darkolivegreen;
|
|
}
|
|
|
|
.sheet-u-bg-fail {
|
|
background-color: lightpink;
|
|
}
|
|
|
|
.sheet-u-fail {
|
|
color: lightpink;
|
|
}
|
|
|
|
.sheet-u-bd-fail {
|
|
border-color: lightpink;
|
|
}
|
|
|
|
.sheet-u-bg-fail-dark {
|
|
background-color: indianred;
|
|
}
|
|
|
|
.sheet-u-fail-dark {
|
|
color: indianred;
|
|
}
|
|
|
|
.sheet-u-bd-fail-dark {
|
|
border-color: indianred;
|
|
}
|
|
|
|
/* ------------- Grids ------------- */
|
|
.sheet-grid-main {
|
|
display: grid;
|
|
grid-gap: 6px 12px;
|
|
grid-template-areas: "name name stats" "background background stats" "special special stats" "skills skills skills" "weapons weapons weapons" "inventory inventory inventory" "wearing monies provisions" ". . footer";
|
|
grid-template-columns: 50% auto 25%;
|
|
grid-template-rows: auto;
|
|
width: 100%;
|
|
min-width: 680px;
|
|
max-width: 680px;
|
|
height: auto;
|
|
color: #333;
|
|
}
|
|
|
|
.sheet-grid-stats {
|
|
display: grid;
|
|
grid-gap: 6px 0;
|
|
grid-template-areas: "skill" "stamina" "luck";
|
|
grid-template-columns: 100%;
|
|
grid-template-rows: auto;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.sheet-grid-stat {
|
|
display: grid;
|
|
grid-gap: 6px 0;
|
|
grid-template-columns: 20% 80%;
|
|
grid-template-rows: 22px auto auto;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.sheet-grid-skills {
|
|
display: grid;
|
|
grid-gap: 0 4px;
|
|
grid-template-columns: 100px auto 60px 60px 47px 47px;
|
|
grid-template-rows: auto;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.sheet-grid-weapons {
|
|
display: grid;
|
|
grid-gap: 0 4px;
|
|
grid-template-columns: 80px auto 40px 40px 40px 40px 40px 40px 40px;
|
|
grid-template-rows: auto;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.sheet-grid-provisions {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
grid-template-rows: repeat(4, 31px);
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
/* ------------- Grid Items ------------- */
|
|
.sheet-grid-stat-item-title {
|
|
grid-column-end: 2;
|
|
grid-column-start: 2;
|
|
grid-row-end: 1;
|
|
grid-row-start: 1;
|
|
line-height: 1;
|
|
}
|
|
|
|
.sheet-grid-stat-item-icon {
|
|
grid-column-end: 1;
|
|
grid-column-start: 1;
|
|
grid-row-end: 1;
|
|
grid-row-start: 1;
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.sheet-grid-stat-item-input {
|
|
grid-column-end: 2;
|
|
grid-column-start: 1;
|
|
grid-row-end: 2;
|
|
grid-row-start: 2;
|
|
}
|
|
|
|
.sheet-grid-stat-item-footer {
|
|
grid-column-end: 2;
|
|
grid-column-start: 1;
|
|
grid-row-end: 3;
|
|
grid-row-start: 3;
|
|
}
|
|
|
|
/* ------------- Section-specific CSS ------------- */
|
|
.sheet-name {
|
|
grid-area: name;
|
|
}
|
|
|
|
.sheet-background {
|
|
grid-area: background;
|
|
}
|
|
|
|
.sheet-special {
|
|
grid-area: special;
|
|
}
|
|
|
|
.sheet-stats {
|
|
grid-area: stats;
|
|
}
|
|
|
|
.sheet-skills {
|
|
grid-area: skills;
|
|
}
|
|
|
|
.sheet-weapons {
|
|
grid-area: weapons;
|
|
}
|
|
|
|
.sheet-inventory {
|
|
grid-area: inventory;
|
|
}
|
|
|
|
.sheet-wearing {
|
|
grid-area: wearing;
|
|
}
|
|
|
|
.sheet-monies {
|
|
grid-area: monies;
|
|
}
|
|
|
|
.sheet-provisions {
|
|
grid-area: provisions;
|
|
}
|
|
|
|
.sheet-footer {
|
|
grid-area: footer;
|
|
}
|
|
|
|
.sheet-skill {
|
|
grid-area: skill;
|
|
}
|
|
|
|
.sheet-stamina {
|
|
grid-area: stamina;
|
|
}
|
|
|
|
.sheet-luck {
|
|
grid-area: luck;
|
|
}
|
|
|
|
.sheet-layout--stat {
|
|
padding: 12px;
|
|
border: 2px solid #f0f0f0;
|
|
border-radius: 8px 0 8px 0;
|
|
background-color: #fdfbf7;
|
|
}
|
|
.sheet-layout--stat.sheet-skill {
|
|
border-color: lightgreen;
|
|
}
|
|
.sheet-layout--stat.sheet-stamina {
|
|
border-color: lightpink;
|
|
}
|
|
.sheet-layout--stat.sheet-luck {
|
|
border-color: gold;
|
|
}
|
|
|
|
.sheet-layout-heading {
|
|
margin-bottom: 2rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid #aaa;
|
|
}
|
|
|
|
/* ----------------- OBJECTS ------------------ */
|
|
.sheet-o-input-number,
|
|
.sheet-o-input-line,
|
|
.sheet-o-input-textarea,
|
|
.sheet-o-input-text {
|
|
width: calc(100% - 16px);
|
|
height: auto;
|
|
margin-top: 6px;
|
|
padding: 6px;
|
|
border: 2px solid #aaa;
|
|
font-family: "Averia Libre", serif;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.sheet-o-input-checkbox,
|
|
.sheet-o-input-number {
|
|
width: 40px !important;
|
|
padding: 6px 0;
|
|
text-align: center;
|
|
}
|
|
.sheet-o-input-checkbox[readonly],
|
|
.sheet-o-input-number[readonly] {
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.sheet-o-input-number--large {
|
|
width: 50px !important;
|
|
height: 56px !important;
|
|
padding: 6px 0;
|
|
font-size: 34px;
|
|
}
|
|
|
|
.sheet-o-input-line {
|
|
width: 100%;
|
|
height: auto;
|
|
padding: 6px 0;
|
|
border-top: 2px solid transparent;
|
|
border-right: 2px solid transparent;
|
|
border-bottom: 2px solid #aaa;
|
|
border-left: 2px solid transparent;
|
|
}
|
|
|
|
.sheet-o-input-modifier {
|
|
width: 30px !important;
|
|
border: 2px solid #aaa;
|
|
font-family: "Averia Libre", serif;
|
|
font-size: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ----------------- UTILITIES ------------------ */
|
|
.sheet-u-w100 {
|
|
width: 100%;
|
|
}
|
|
|
|
.sheet-u-w75 {
|
|
width: 50%;
|
|
}
|
|
|
|
.sheet-u-w50 {
|
|
width: 50%;
|
|
}
|
|
|
|
.sheet-u-w33 {
|
|
width: 33%;
|
|
}
|
|
|
|
.sheet-u-w25 {
|
|
width: 25%;
|
|
}
|
|
|
|
.sheet-u-mr-small {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.sheet-u-font-heading {
|
|
font-family: "Averia Libre", serif;
|
|
}
|
|
|
|
.sheet-u-font-icon {
|
|
font-family: "Pictos", serif;
|
|
}
|
|
|
|
.sheet-u-font-tiny {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.sheet-u-font-small {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.sheet-u-font-medium {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.sheet-u-font-large {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.sheet-u-font-xlarge {
|
|
font-size: 34px;
|
|
}
|
|
|
|
.sheet-u-ucase {
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.sheet-u-text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.sheet-u-text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.sheet-u-hide {
|
|
display: none;
|
|
}
|
|
|
|
.sheet-u-hidden {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.sheet-u-block {
|
|
display: block;
|
|
}
|
|
|
|
.sheet-u-inline-block {
|
|
display: inline-block;
|
|
}
|
|
|
|
.sheet-u-flex {
|
|
display: flex;
|
|
}
|
|
|
|
.sheet-u-flex-wrap {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.sheet-u-flex-column {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sheet-u-flex-align-center {
|
|
align-items: center;
|
|
}
|
|
|
|
.sheet-u-flex-justify-center {
|
|
justify-content: center;
|
|
}
|
|
|
|
.sheet-u-flex-justify-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.sheet-u-flex-justify-end {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.sheet-u-flexcol {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sheet-u-flexrow {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.sheet-u-flexrow-reverse {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
/* ------------- Buttons ------------- */
|
|
.sheet-button {
|
|
transition-property: background-color, border;
|
|
transition-duration: 0.2s;
|
|
transition-timing-function: ease-in-out;
|
|
border-radius: 3px;
|
|
background-image: none;
|
|
text-shadow: none;
|
|
}
|
|
|
|
.sheet-button::before {
|
|
display: none;
|
|
}
|
|
|
|
.sheet-button-title {
|
|
font-family: "Averia Libre", serif;
|
|
font-size: 14px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.sheet-button--roll {
|
|
border: 2px solid #aaa;
|
|
background-color: #aaa;
|
|
}
|
|
|
|
.sheet-button--roll-small {
|
|
padding: 0 8px !important;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.sheet-button--mod {
|
|
width: calc(100% - 18px);
|
|
height: 17px;
|
|
margin-left: -2px;
|
|
padding: 4px 0.5em;
|
|
border: 2px solid #aaa;
|
|
background-color: #f0f0f0;
|
|
font-family: "Averia Libre", serif;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.sheet-button--grid-mod {
|
|
width: 28px;
|
|
height: 29px;
|
|
padding: 0;
|
|
border: 2px solid #aaa;
|
|
background-color: #f0f0f0;
|
|
font-family: "Averia Libre", serif;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.sheet-button:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.sheet-button--roll:hover,
|
|
.sheet-button--mod:hover {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.sheet-button--mod-sub {
|
|
border-top: 0;
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
|
|
.sheet-button--mod-add {
|
|
border-bottom: 2px solid #999;
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
}
|
|
|
|
.sheet-button--mod-sub:hover {
|
|
border-color: indianred;
|
|
background-color: lightpink;
|
|
}
|
|
|
|
.sheet-button--mod-add:hover {
|
|
border-color: darkolivegreen;
|
|
background-color: lightgreen;
|
|
}
|
|
|
|
.sheet-button--inv {
|
|
height: 24px;
|
|
padding: 2px !important;
|
|
border: 2px solid #aaa;
|
|
background-color: #aaa;
|
|
color: #333;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.sheet-button--inv:hover {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.sheet-button--inv-move {
|
|
display: block;
|
|
min-width: 18px;
|
|
background-color: #f0f0f0;
|
|
color: #aaa;
|
|
}
|
|
|
|
.sheet-button--inv-move:hover {
|
|
color: #333;
|
|
}
|
|
|
|
/* ------------- Overrides ------------- */
|
|
.charsheet .repcontrol_add,
|
|
.charsheet .repcontrol_edit {
|
|
display: block;
|
|
transition-property: background-color, border;
|
|
transition-duration: 0.2s;
|
|
transition-timing-function: ease-in-out;
|
|
border: 2px solid #aaa;
|
|
border-radius: 3px;
|
|
background-image: none;
|
|
box-shadow: none;
|
|
color: #333;
|
|
font-family: "Averia Libre", serif;
|
|
text-shadow: none;
|
|
text-transform: uppercase;
|
|
}
|
|
.charsheet .repcontrol_add:hover,
|
|
.charsheet .repcontrol_edit:hover {
|
|
border-color: darkolivegreen;
|
|
background-color: lightgreen;
|
|
}
|
|
.charsheet .repcontrol_add:focus,
|
|
.charsheet .repcontrol_edit:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.charsheet .repcontrol {
|
|
padding-top: 1rem;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.charsheet .itemcontrol {
|
|
padding-top: 0.7rem;
|
|
}
|
|
|
|
input[type=number] {
|
|
-webkit-appearance: textfield;
|
|
-moz-appearance: textfield;
|
|
appearance: textfield;
|
|
}
|
|
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
/* ----------------- Inventory ------------- */
|
|
.sheet-inventory-index {
|
|
width: 12px;
|
|
height: 12px;
|
|
padding-right: 0.5em;
|
|
padding-left: 0.5em;
|
|
font-family: "Averia Libre", serif;
|
|
text-align: right;
|
|
}
|
|
|
|
/* ------------ Provisions (Checkbox) --------- */
|
|
.sheet-provision {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
border: solid 2px #aaa;
|
|
background-color: #f0f0f0;
|
|
color: #999;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input.sheet-provision-input {
|
|
display: none;
|
|
}
|
|
|
|
span.sheet-checked {
|
|
display: block;
|
|
visibility: hidden;
|
|
margin-top: 7px;
|
|
margin-left: 3px;
|
|
}
|
|
|
|
input.sheet-provision-input:checked + span.sheet-checked {
|
|
visibility: visible;
|
|
}
|
|
|
|
/* ------------- Roll Templates ------------- */
|
|
.sheet-rolltemplate-troika {
|
|
padding-top: 0.5rem;
|
|
font-family: "Averia Libre", serif;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-container {
|
|
border: 2px solid #aaa;
|
|
background-color: #f5f5f5;
|
|
box-shadow: 2px 2px 12px 0 #999;
|
|
line-height: 1.2;
|
|
text-align: center;
|
|
}
|
|
.sheet-rolltemplate-troika .sheet-template-container > div {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-header {
|
|
background-color: #aaa;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-header--luck {
|
|
background-color: gold;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-subtitle {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-modifier {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-dice {
|
|
font-family: "dicefontd6", sans-serif;
|
|
font-size: 34px;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-total {
|
|
padding: 0.5rem;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-dice-total {
|
|
display: inline-block;
|
|
transform: translateY(-5px);
|
|
font-family: "Averia Libre", serif;
|
|
font-size: 22px;
|
|
}
|
|
.sheet-rolltemplate-troika .sheet-template-dice-total > span {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-footer--fail {
|
|
background-color: lightpink;
|
|
}
|
|
.sheet-rolltemplate-troika .sheet-template-footer--fail .sheet-template-total > span {
|
|
border-color: indianred;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-footer--success {
|
|
background-color: lightgreen;
|
|
}
|
|
.sheet-rolltemplate-troika .sheet-template-footer--success .sheet-template-total > span {
|
|
border-color: darkolivegreen;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-row-head {
|
|
padding-top: 0.3em;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-equal {
|
|
display: block;
|
|
padding-top: 0.5em;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.sheet-rolltemplate-troika .sheet-template-note {
|
|
background-color: #f0f0f0;
|
|
}
|