dsa-4th-edition/src/main.css

592 lines
14 KiB
CSS

html {
font-size: 16px !important;
}
.DSA41 {
/* Change from FoundryVTT's default of 'none' to 'auto' to allow checkboxes in the nav bar */
& .tabs > [data-tab] > * {
pointer-events: auto;
}
/* Allow application content to be scrolled */
& .window-content {
overflow-y: scroll;
}
& [data-action] {
cursor: pointer;
&:not(button):hover {
transform: scale(1.05);
}
}
& .small {
font-size: 0.75em;
}
& .left {
text-align: left;
justify-content: left;
justify-self: left;
}
& .right {
text-align: right;
justify-content: right;
justify-self: right;
}
& .center {
text-align: center;
justify-content: center;
align-content: center;
align-items: center;
}
& .align-center {
align-items: center;
}
& .fit-content {
width: fit-content;
height: fit-content;
}
& .row, &.row {
display: flex;
flex-direction: row;
flex: 1;
}
& .col {
display: flex;
flex-direction: column;
flex: 1;
}
& .noflex {
flex: 0;
}
& .gap {
gap: 0.5rem;
}
& .subgrid {
display: grid;
grid-template-rows: subgrid;
grid-template-columns: subgrid;
}
& .subgrid-columns {
display: grid;
grid-template-columns: subgrid;
}
& .subgrid-rows {
display: grid;
grid-template-rows: subgrid;
}
& .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
& .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
& .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
& .grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
& .grid6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
& .grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
& .grid8 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
& .grid9 { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
& .colspan2 { grid-column: span 2; }
& .colspan3 { grid-column: span 3; }
& .colspan4 { grid-column: span 4; }
& .colspan5 { grid-column: span 5; }
& .colspan6 { grid-column: span 6; }
& .colspan7 { grid-column: span 7; }
& .colspan8 { grid-column: span 8; }
& .colspan9 { grid-column: span 9; }
& .colspan-all { grid-column: 1 / -1; }
& .rowspan2 { grid-row: span 2; }
& .rowspan3 { grid-row: span 3; }
& .rowspan4 { grid-row: span 4; }
& .rowspan5 { grid-row: span 5; }
& .rowspan6 { grid-row: span 6; }
& .rowspan7 { grid-row: span 7; }
& .rowspan8 { grid-row: span 8; }
& .rowspan9 { grid-row: span 9; }
& .rowspan-all { grid-row: 1 / -1; }
& input {
border: none;
text-align: inherit;
&[type="number"] {
text-align: center;
}
}
& .price-input {
display: grid;
grid-template-columns: minmax(min-content, 1fr) max-content;
& input {
padding: 0;
}
}
& .weight-input {
display: grid;
grid-template-columns: minmax(min-content, 1fr) max-content;
& input {
padding: 0;
}
}
& .length-input {
display: grid;
grid-template-columns: minmax(min-content, 1fr) max-content;
& input {
padding: 0;
}
}
& .placeholder {
font-size: 0.8em;
border-top: 1px solid;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
& .subtitle {
font-size: 0.8em;
border-top: 1px solid;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
& .character-image {
width: 115px;
height: 115px;
}
& .item-image {
width: 80px;
height: 80px;
margin-right: 0.5rem;
}
& img {
object-fit: contain;
}
&.chat-header {
& img {
margin-right: .75em;
width: 38px;
height: 38px;
}
& .subtitle {
color: #666;
font-size: .6875rem;
}
}
&.chat-targets {
margin-top: 0.5em;
& img {
width: 20px;
height: 20px;
}
& .target {
display: grid;
grid-template-columns: max-content minmax(0, max-content) auto max-content;
gap: 0.5em;
align-items: center;
& button {
grid-column: 4;
line-height: normal;
}
}
}
& .die {
display: inline-grid;
text-align: center;
align-items: center;
color: #fff;
width: 3.5em;
height: 3.5em;
& > * {
grid-row: 1;
grid-column: 1;
}
&.die-type {
width: 2em;
height: 2em;
}
&.die-courage { fill: #b22319; }
&.die-cleverness { fill: #8158a3; }
&.die-intuition { fill: #388834; }
&.die-charisma { fill: #d96600; }
&.die-dexterity { fill: #d4b366; }
&.die-agility { fill: #678ec3; }
&.die-constitution { fill: #a3a3a3; }
&.die-strength { fill: #d5a877; }
&.die-attacke { fill: #b22319; }
&.die-parade { fill: #388834; }
&.die-trefferpunkte { fill: #a2a0ee; }
&.die-fernkampf-attacke { fill: #388834; }
&.die-fernkampf-trefferpunkte { fill: #a2a0ee; }
}
& .bar {
--bar-percentage: 100%;
--bar-color-left: #951a84;
--bar-color-right: #cd22b6;
position: relative;
overflow: hidden;
margin: 1em;
border: 1px solid #9f9275;
border-radius: 5px;
text-align: center;
&::before {
position: absolute;
z-index: -1;
left: 0;
width: var(--bar-percentage);
height: 100%;
content: "";
background: linear-gradient(90deg, var(--bar-color-left) 0%, var(--bar-color-right) 100%);
}
& input, & span {
display: inline-block;
background: transparent;
padding: 0;
width: 4ch;
}
&.hp {
--bar-color-left: #401f25;
--bar-color-right: #861212;
}
&.ausdauer {
--bar-color-left: #114f0c;
--bar-color-right: #178010;
}
&.astralenergie {
--bar-color-left: #0e1155;
--bar-color-right: #141cb7;
}
}
& .currency {
width: min-content;
margin-left: auto;
align-items: center;
display: grid;
grid-template-columns: repeat(8, 1fr);
& input {
display: inline-block;
background: transparent;
padding: 0;
width: 7ch;
}
& svg {
width: 25px;
height: 25px;
}
}
& .Abenteuerpunkte {
width: min-content;
margin-left: auto;
align-items: center;
display: flex;
gap: 1em;
& input {
display: inline-block;
background: transparent;
padding: 0;
width: 5ch;
}
}
& .tabs {
padding: .5rem;
margin-top: .5rem;
margin-bottom: .5rem;
border-top: 1px solid;
border-bottom: 1px solid;
line-height: normal;
& > * {
align-items: center;
}
& .active {
text-decoration: underline;
}
}
& .tab.active {
display: grid;
gap: 0.5rem;
}
& .list {
display: grid;
grid-template-rows: max-content;
grid-auto-rows: max-content;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
& .item-image {
width: 40px;
height: 40px;
}
}
& .list-header {
display: grid;
grid-column: 1 / -1;
grid-template-rows: subgrid;
grid-template-columns: subgrid;
align-items: center;
padding: 0.5rem;
border-radius: 5px 5px 0px 0px;
background: linear-gradient(90deg, rgb(25, 92, 30) 0%, rgb(0, 79, 7) 40%, rgb(0, 51, 5) 100%);
}
& .list-item {
display: grid;
grid-column: 1 / -1;
grid-template-rows: subgrid;
grid-template-columns: subgrid;
align-items: center;
background: #252830;
padding: 0.25rem;
border-bottom: 1px dotted;
&:last-child {
border: none;
border-radius: 0px 0px 5px 5px;
}
}
&.Dialog > .window-content {
gap: 1rem;
& > :first-child {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.5rem;
align-items: center;
}
}
& [data-application-part="Bewaffnung"] {
& .tab {
grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
align-items: center;
}
}
& [data-application-part="Ruestung"] {
& .tab {
grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
align-items: center;
}
}
& [data-application-part="Zauber"] {
& .tab {
grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
align-items: center;
border-top: 1px solid;
margin-top: 0.5em;
padding-top: 0.5em;
& multi-select {
display: grid;
grid-template-columns: 1fr min-content;
align-items: right;
& select {
grid-column: 2;
appearance: none;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
background-image: url("/systems/dsa-4th-edition/src/Assets/plus.svg");
}
}
}
}
& [data-application-part="ActorSheet"] {
& .tab {
&[data-tab="tab1"] {
& .Eigenschaften {
display: grid;
grid-template-columns: minmax(0, max-content) repeat(3, minmax(0, 1fr));
align-items: center;
column-gap: 0.5rem;
& .list-header :not(:nth-child(1)), .list-item :not(:nth-child(1)) {
text-align: center;
}
}
& .Basiswerte {
display: grid;
grid-template-columns: minmax(0, max-content) repeat(5, minmax(0, 1fr));
align-items: center;
column-gap: 0.5rem;
& .list-header :not(:nth-child(1)), .list-item :not(:nth-child(1)) {
text-align: center;
}
}
& .Sonderfertigkeiten {
grid-template-columns: minmax(min-content, max-content) auto min-content;
}
& .Vorteile {
grid-template-columns: minmax(min-content, max-content) auto min-content;
}
& .Nachteile {
grid-template-columns: minmax(min-content, max-content) auto min-content;
}
}
&[data-tab="tab2"] {
grid-template-columns: minmax(0, max-content) repeat(2, minmax(0, 1fr)) min-content;
& > * {
grid-column: 1 / -1;
}
& .Kampftalente {
grid-template-columns: minmax(0, max-content) repeat(5, minmax(0, 1fr));
}
}
&[data-tab="tab3"] {
grid-template-columns: minmax(min-content, max-content) auto min-content minmax(min-content, max-content) min-content;
& > * {
grid-column: 1 / -1;
}
& [data-equipped="false"] {
color: #464c5f;
}
}
&[data-tab="tab4"] {
& .Bewaffnung {
grid-template-columns: minmax(0, max-content) repeat(3, minmax(0, auto));
& .die {
font-size: 12px;
}
}
& .Zauber {
grid-template-columns: minmax(0, max-content) minmax(0, auto);
}
& .Ruestung {
grid-template-columns: 2fr repeat(8, 1fr) repeat(2, 1.5fr);
text-align: center;
}
& .Sonderfertigkeiten {
grid-template-columns: minmax(min-content, max-content) auto min-content;
}
}
}
}
& .dsa41-calculation {
font-size: 18px;
padding-top: 0.5rem;
}
}
.talent_chat_message {
& .info {
display: grid;
grid-template-columns: repeat(4, minmax(min-content, 1fr));
text-wrap: nowrap;
& > * {
display: grid;
grid-column: 1 / -1;
grid-template-columns: subgrid;
& > *:not(:first-child) {
text-align: center;
}
}
}
}
#tooltip.DSA41 {
max-width: 650px;
text-align: left;
& h4 {
font-size: large;
}
}