Files
fvtt-ecryme/styles/ui.less

360 lines
7.6 KiB
Plaintext

// ============================================================
// Generic UI utilities and layout helpers
// ============================================================
h1, h2, h3, h4 {
font-weight: bold;
}
ul, ol {
margin: 0;
padding: 0;
}
ul, li {
list-style-type: none;
}
.header-fields li {
margin: 0;
padding: 0;
}
// Alternate list rows
.alterne-list {
> .list-item:hover {
background: rgba(100, 100, 50, 0.25);
}
> .list-item:nth-child(even) {
background: rgba(80, 60, 0, 0.10);
}
> .list-item:nth-child(odd) {
background: rgb(160, 130, 100, 0.05);
}
}
.specialisation-label {
font-size: 0.8rem;
}
.carac-label,
.attr-label {
font-weight: bold;
}
.list-item {
flex: 1 1 5rem;
display: flex !important;
color: @color-text-dark;
}
.list-item-shadow {
background: rgba(87, 60, 32, 0.35);
flex-grow: 0;
flex-wrap: nowrap;
justify-content: flex-start;
}
.list-item-shadow2 {
background: rgba(87, 60, 32, 0.25);
flex-grow: 0;
flex-wrap: nowrap;
justify-content: flex-start;
}
.item-display-show { display: block; }
.item-display-hide { display: none; }
.item-quantite {
margin-left: 0.5rem;
}
.list-item-margin1 { margin-left: 1rem; }
.list-item-margin2 { margin-left: 2rem; }
.list-item-margin3 { margin-left: 3rem; }
.list-item-margin4 { margin-left: 4rem; }
.sheet-competence-img {
width: 24px;
max-width: 24px;
height: 24px;
max-height: 24px;
flex-grow: 0;
margin-right: 0.25rem;
}
.competence-column {
flex-direction: column;
align-content: flex-start;
justify-content: flex-start;
flex-grow: 0;
flex-basis: 1;
}
.competence-header {
align-content: flex-start;
justify-content: flex-start;
font-weight: bold;
flex-grow: 0;
}
.description-label {
flex-grow: 2;
margin-left: 4px;
}
.status-header-label { margin-left: 2px; }
.roll-dialog-label { margin: 4px 0; min-width: 96px; }
// Select[multiple] in roll dialogs needs explicit height so options are visible
.skill-roll-dialog,
.confrontation-roll-dialog,
.confrontation-start-dialog {
select[multiple] {
min-height: 60px;
height: auto;
flex: 1;
}
}
.short-label { flex-grow: 1; }
.keyword-label { font-size: 0.85rem; }
.item-sheet-label { flex-grow: 1; }
.item-text-long-line { flex-grow: 3; }
.score-label {
flex-grow: 2;
align-content: center;
}
.attribut-value,
.carac-value {
flex-grow: 0;
flex-basis: 64px;
margin-right: 4px;
margin-left: 4px;
}
.sante-value,
.competence-value {
flex-grow: 0;
flex-basis: 2rem;
margin-right: 0.25rem;
margin-left: 0.25rem;
}
.description-value {
flex-grow: 0;
flex-basis: 4rem;
margin-right: 0.25rem;
margin-left: 0.25rem;
}
.small-label { margin-top: 5px; }
.padd-right { margin-right: 8px; }
.padd-left { margin-left: 8px; }
.stack-left {
align-items: center;
flex-shrink: 1;
flex-grow: 0;
}
.packed-left {
white-space: nowrap;
flex-grow: 0;
}
.input-numeric-short {
width: 40px;
max-width: 40px;
flex-grow: 0;
flex-shrink: 0;
flex-basis: 40px;
margin-right: 0.25rem;
margin-left: 0.25rem;
}
.abilities-table {
align-content: flex-start;
}
// Image helpers
.button-img {
vertical-align: baseline;
width: 8%;
height: 8%;
max-height: 48px;
border-width: 0px;
border: 1px solid rgba(0, 0, 0, 0);
&:hover {
color: rgba(255, 255, 128, 0.7);
border: 1px solid rgba(255, 128, 0, 0.8);
cursor: pointer;
}
}
.button-effect-img {
vertical-align: baseline;
width: 16px;
max-height: 16px;
height: 16;
border-width: 0;
}
.small-button-container {
height: 16px;
width: 16px;
border: 0;
vertical-align: bottom;
}
.item-checkbox {
height: 25px;
border: 1px solid rgba(115, 105, 83, 0.65098);
border-left: none;
font-weight: 500;
font-size: 1rem;
color: black;
padding-top: 5px;
margin-right: 0px;
width: 45px;
position: relative;
left: 0px;
text-align: center;
}
.skill-label { font-size: 0.7rem; }
.skill-good-checkbox { max-height: 10px; max-width: 10px; }
.flex-actions-bar { flex-grow: 2; }
// Item name / field labels
.item-sheet-img {
width: 64px;
height: auto;
border: 0;
}
.item-name-img { flex-grow: 1; max-width: 2rem; min-width: 2rem; }
.item-name-label-header { flex-grow: 2; max-width: 12rem; min-width: 12rem; }
.item-name-label-header-long { flex-grow: 2; max-width: 14rem; min-width: 14rem; }
.item-name-label-header-long2 { flex-grow: 2; max-width: 24rem; min-width: 24rem; }
.item-name-label { flex-grow: 2; max-width: 10rem; min-width: 10rem; }
.item-name-label-long { margin-top: 4px; flex-grow: 2; max-width: 12rem; min-width: 12rem; }
.item-name-label-short { margin-top: 4px; flex-grow: 1; max-width: 4rem; min-width: 4rem; }
.item-name-label-medium { margin-top: 4px; flex-grow: 2; max-width: 6rem; min-width: 6rem; }
.item-name-label-medium2 { margin-top: 4px; flex-grow: 0; max-width: 10rem; min-width: 10rem; }
.item-name-label-free { margin-top: 4px; align-self: flex-start; }
.item-name-label-long2 { margin-top: 4px; flex-grow: 2; max-width: 22rem; min-width: 22rem; }
.item-name-label-level2 { flex-grow: 2; max-width: 9rem; min-width: 9rem; }
.item-field-label-short { margin-top: 4px; flex-grow: 1; max-width: 4rem; min-width: 4rem; }
.item-field-label-short-header { margin-top: 4px; flex-grow: 1; max-width: 2.2rem; min-width: 2.2rem; }
.item-field-label-medium { flex-grow: 1; max-width: 6rem; min-width: 6rem; }
.item-field-skill { flex-grow: 1; max-width: 6.8rem; min-width: 6.8rem; }
.item-field-label-long { flex-grow: 1; max-width: 10rem; min-width: 10rem; }
.item-control-end { align-self: flex-end; }
.alternate-list { margin-top: 4px; flex-wrap: nowrap; }
.item-filler { flex-grow: 6; flex-shrink: 7; }
.item-controls-fixed { min-width: 2rem; max-width: 2rem; }
.item-controls-fixed-full { min-width: 3rem; max-width: 3rem; }
.attribute-label { font-weight: bold; }
.flexrow-no-expand { flex-grow: 0; }
.flexrow-start { justify-content: flex-start; align-content: flex-start; align-self: flex-start; }
.item-input-small { max-width: 16px; max-height: 12px; }
.character-summary-rollable { text-decoration: underline; }
.ul-level1 { padding-left: 2rem; }
// Impact / confrontation
.impact-box {
border-width: 2px;
border-color: #000000;
border-radius: 6px;
border: 2px ridge #443307;
margin: 4px;
padding: 4px;
}
.impact-title {
font-size: bold;
display: flex;
align-items: center;
justify-content: center;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.items-title-bg {
margin-top: 6px;
color: @color-text-dark;
}
.items-title-text {
text-align: center;
font-family: @font-primary;
margin-left: 4px;
}
.lock-icon { width: 16px; height: 16px; }
.img-no-border { max-width: 48px; max-height: 48px; border: 0px; }
.no-grow { flex-grow: 1; max-width: 32px; }
.status-col-name { max-width: 72px; }
.status-small-label { font-size: 0.65rem; }
.confront-bonus-container {
position: relative;
flex-grow: 1;
text-align: center;
color: black;
}
.confront-bonus-centered {
position: absolute;
top: 50%;
left: 50%;
font-size: 1.6rem;
color: darkgreen;
font-family: @font-primary;
transform: translate(-50%, -55%);
}
.dice-spec { max-width: 64px; }
.bonus-spec { max-width: 48px; }
.confront-dice-container {
position: relative;
flex-grow: 1;
text-align: center;
color: black;
}
.confront-dice-centered {
position: absolute;
top: 50%;
left: 50%;
font-size: 2rem;
color: darkgreen;
font-family: @font-primary;
transform: translate(-50%, -55%);
}
.confront-area {
margin: 2px;
padding: 4px;
min-height: 64px;
border-width: 2px;
border-color: #000000;
border-radius: 6px;
border: 2px ridge #443307;
align-items: center;
justify-content: center;
}
.pool-list {
align-items: center;
justify-content: center;
}