Files
fvtt-ecryme/styles/sheet.less

190 lines
3.4 KiB
Plaintext

// ============================================================
// Sheet styles (actor + item, AppV1 + AppV2)
// ============================================================
// Sheet header background
.window-app.sheet .window-content .sheet-header,
.application.sheet .window-content .sheet-header {
color: @color-text-dark;
background: @background-image;
}
// Input / select base (light background)
input[type="text"],
input[type="number"],
select[type="text"] {
background: @color-input-bg;
color: @color-input-text;
}
select {
background: @color-input-bg;
color: @color-input-text;
}
// Sheet content inputs & selects — dark text
.window-app.sheet .window-content,
.application.sheet .window-content {
.sheet-header,
.sheet-body {
select[type="text"],
input[type="text"],
input[type="number"] {
color: @color-text-dark;
}
input[type="password"],
input[type="date"],
input[type="time"] {
color: @color-text-dark;
background: @background-image;
border: 1 none;
margin-bottom: 0.25rem;
margin-left: 2px;
}
select {
color: @color-text-dark;
background: #fff;
border: 1 none;
margin-bottom: 0.25rem;
margin-left: 2px;
}
}
}
// Sheet body + window-content background
.window-app .window-content,
.window-app.sheet .window-content .sheet-body,
.application .window-content,
.application.sheet .window-content .sheet-body {
font-size: 0.8rem;
background: @background-image;
color: @color-text-dark;
}
section.sheet-body {
padding: 0.25rem 0.5rem;
&:after {
content: "";
display: block;
clear: both;
}
}
.sheet {
header.sheet-header {
.profile-img {
object-fit: cover;
object-position: 50% 0;
margin: 0.5rem 0 0.5rem 0.5rem;
padding: 0;
}
.flex-compteurs {
text-align: right;
}
.resource-content {
width: 2rem;
}
}
nav.sheet-tabs {
font-size: 1.2rem;
font-weight: bold;
height: 3rem;
flex: 0 0 3rem;
margin: 0;
padding: 0 0 0 0.25rem;
text-align: center;
line-height: 1.5rem;
border-top: 0 none;
border-bottom: 0 none;
background-color: @color-nav-bg;
color: @color-nav-text;
}
.tab[data-tab] {
padding: 0;
}
li {
margin: 0.010rem;
padding: 0.25rem;
}
}
nav.sheet-tabs {
a,
.item {
position: relative;
padding: 0 0.25rem;
color: @color-nav-text;
&:after {
content: "";
position: absolute;
top: 0;
right: 0;
height: 2rem;
width: 1px;
border-right: 1px dashed rgba(52, 52, 52, 0.25);
}
}
}
// Tooltip
.window-app.sheet .window-content {
.tooltip:hover .tooltiptext {
top: 2rem;
left: 2rem;
margin: 0;
padding: 0.25rem;
}
.carac-value,
.competence-xp {
margin: 0.05rem;
flex-basis: 3rem;
text-align: center;
}
}
// Tooltip widget
.tooltip {
position: relative;
display: inline-block;
.tooltiptext {
text-align: left;
background: rgba(231, 229, 226, 0.9);
width: 150px;
padding: 3px 0;
font-size: 0.9rem;
top: 1px;
position: absolute;
z-index: 1;
visibility: hidden;
opacity: 0;
transition: opacity 0.3s;
}
&:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
}
.tooltip-nobottom {
border-bottom: unset;
}
// Select diff helper
.select-diff {
display: inline-block;
text-align: left;
width: 50px;
}