foundry-sw5e/less/actors.less

682 lines
13 KiB
Text
Raw Normal View History

2020-06-24 14:19:28 -04:00
@import "./variables.less";
2020-09-11 17:11:11 -04:00
@actorNameHeight: 60px;
2020-06-24 14:19:28 -04:00
.sw5e.sheet.actor {
/* ----------------------------------------- */
/* Sheet Header */
/* ----------------------------------------- */
.sheet-header {
2020-09-11 17:11:11 -04:00
// Portrait Artwork
img.profile {
2020-06-24 14:19:28 -04:00
flex: 0 0 160px;
2020-09-11 17:11:11 -04:00
max-width: 160px;
height: 160px;
}
// Character Name
h1.charname {
flex: 1;
height: @actorNameHeight;
padding: 0;
input {
height: @actorNameHeight - 20px;
margin: 10px 0;
}
}
// Character Level
.header-exp {
flex: 0 0 150px;
margin-right: 3px;
height: @actorNameHeight;
justify-content: flex-end;
2020-06-24 14:19:28 -04:00
text-align: right;
2020-09-11 17:11:11 -04:00
}
2020-06-24 14:19:28 -04:00
2020-09-11 17:11:11 -04:00
// Character Summary
.summary {
height: 30px;
border-bottom: @borderGroove;
font-size: 18px;
input, span {
display: block;
height: 24px;
line-height: 24px;
}
}
2020-06-24 14:19:28 -04:00
2020-09-11 17:11:11 -04:00
// Primary Attributes
.attributes {
flex: 0 0 100%;
margin: 0;
2020-06-24 14:19:28 -04:00
2020-09-11 17:11:11 -04:00
.attribute {
height: 70px;
margin: 0;
border: none;
border-right: @borderGroove;
border-radius: 0;
2020-06-24 14:19:28 -04:00
2020-09-11 17:11:11 -04:00
&:last-child {
border-right: none;
2020-06-24 14:19:28 -04:00
}
2020-09-11 17:11:11 -04:00
.attribute-value {
height: 30px;
line-height: 30px;
}
2020-06-24 14:19:28 -04:00
}
// Movement Configuration
.movement, .hit-dice {
h4.attribute-name {
position: relative;
}
.config-button {
position: absolute;
display: none;
right: 0;
top: 1px;
font-size: 12px;
font-weight: normal;
}
&:hover .config-button {
display: block;
}
}
// Temporary HP
input.temphp {
width: 48%;
}
2020-06-24 14:19:28 -04:00
}
}
/* ----------------------------------------- */
/* General Styles */
/* ----------------------------------------- */
// Box Headers
h4.box-title {
2020-09-11 17:11:11 -04:00
height: 18px;
2020-06-24 14:19:28 -04:00
line-height: 16px;
margin: 4px 8px 2px;
2020-09-11 17:11:11 -04:00
.modesto();
2020-06-24 14:19:28 -04:00
font-size: 18px;
2020-09-11 17:11:11 -04:00
color: @colorOlive;
border-bottom: 1px solid @colorFaint;
white-space: nowrap;
2020-06-24 14:19:28 -04:00
}
/* ----------------------------------------- */
/* Attributes */
/* ----------------------------------------- */
2020-09-11 17:11:11 -04:00
.tab.attributes {
overflow: hidden;
}
2020-06-24 14:19:28 -04:00
ul.attributes {
2020-09-11 17:11:11 -04:00
flex: 0 0 60px;
2020-06-24 14:19:28 -04:00
list-style: none;
2020-09-11 17:11:11 -04:00
margin: 0;
2020-06-24 14:19:28 -04:00
padding: 0;
li.attribute {
2020-09-11 17:11:11 -04:00
height: 60px;
margin: 0 5px 0 0;
2020-06-24 14:19:28 -04:00
border: @borderGroove;
border-radius: 4px;
text-align: center;
2020-09-11 17:11:11 -04:00
&:last-child {
margin: 0;
2020-06-24 14:19:28 -04:00
}
.attribute-value {
2020-09-11 17:11:11 -04:00
display: flex;
justify-content: center;
align-items: center;
2020-06-24 14:19:28 -04:00
height: 28px;
line-height: 28px;
2020-09-11 17:11:11 -04:00
.modesto();
2020-06-24 14:19:28 -04:00
2020-09-11 17:11:11 -04:00
> * {
font-weight: 400;
2020-06-24 14:19:28 -04:00
font-size: 24px;
}
2020-09-11 17:11:11 -04:00
&.multiple input {
flex: 0 0 33%;
2020-06-24 14:19:28 -04:00
}
}
.attribute-footer {
flex: 0 0 18px;
margin-top: -1px;
line-height: 18px;
2020-09-11 17:11:11 -04:00
font-family: "Signika", sans-serif;
2020-06-24 14:19:28 -04:00
font-size: 12px;
2020-09-11 17:11:11 -04:00
font-weight: 400;
white-space: nowrap
2020-06-24 14:19:28 -04:00
}
}
}
/* ----------------------------------------- */
/* Ability Scores */
/* ----------------------------------------- */
.ability-scores {
2020-09-11 17:11:11 -04:00
flex: 0 0 100px;
height: 440px;
2020-06-24 14:19:28 -04:00
list-style: none;
margin: 0;
padding: 0;
2020-09-11 17:11:11 -04:00
.modesto();
border: @borderGroove;
border-radius: 3px;
2020-06-24 14:19:28 -04:00
.ability {
height: 70px;
text-align: center;
2020-09-11 17:11:11 -04:00
border-bottom: @borderGroove;
&:last-child {
border-bottom: none;
margin-bottom: -3px;
}
2020-06-24 14:19:28 -04:00
input.ability-score {
height: 30px;
2020-09-11 17:11:11 -04:00
width: 36px;
2020-06-24 14:19:28 -04:00
margin: 0 auto;
line-height: 32px;
font-size: 24px;
}
.ability-modifiers {
height: 24px;
2020-09-11 17:11:11 -04:00
margin: -8px 0 0;
2020-06-24 14:19:28 -04:00
span.ability-mod,
span.ability-save {
flex: 0 0 24px;
2020-09-11 17:11:11 -04:00
height: 22px;
line-height: 22px;
font-size: 16px;
2020-06-24 14:19:28 -04:00
border-top: @borderGroove;
}
span.ability-mod {
border-right: @borderGroove;
}
.ability-proficiency {
line-height: 30px;
}
span.ability-save {
border-left: @borderGroove;
}
}
}
}
// Proficiency Toggle Buttons
.proficiency-toggle {
color: @colorBeige;
font-size: 12px;
}
.proficient .proficiency-toggle {
color: @colorOlive;
}
.locked .proficiency-toggle {
color: @colorBeige;
text-shadow: none;
cursor: default;
}
/* ----------------------------------------- */
/* Skills */
/* ----------------------------------------- */
ul.skills-list {
2020-09-11 17:11:11 -04:00
flex: 0 0 180px;
height: 440px;
2020-06-24 14:19:28 -04:00
list-style: none;
2020-09-11 17:11:11 -04:00
margin: 0 5px 0;
padding: 3px 0 2px;
2020-06-24 14:19:28 -04:00
border: @borderGroove;
border-radius: 3px;
li.skill {
2020-09-11 17:11:11 -04:00
height: 24px;
padding: 3px 2px;
&:nth-child(even) {
background: rgba(0, 0, 0, 0.05);
}
2020-06-24 14:19:28 -04:00
h4 {
flex: 1px;
margin: 0;
font-size: 11px;
line-height: 18px;
}
.skill-proficiency {
flex: 0 0 16px;
line-height: 18px;
}
.skill-ability {
flex: 0 0 26px;
2020-09-11 17:11:11 -04:00
text-transform: capitalize;
2020-06-24 14:19:28 -04:00
}
.skill-mod {
flex: 0 0 20px;
}
.skill-passive {
flex: 0 0 26px;
text-align: center;
color: @colorTan;
}
}
}
/* ----------------------------------------- */
/* Statuses */
/* ----------------------------------------- */
.counters {
2020-09-11 17:11:11 -04:00
flex: none;
padding: 5px 0;
margin: 0;
2020-06-24 14:19:28 -04:00
border-bottom: @borderGroove;
.counter {
2020-09-11 17:11:11 -04:00
height: 20px;
line-height: 20px;
2020-06-24 14:19:28 -04:00
h4 {
flex: auto;
margin: 0;
2020-09-11 17:11:11 -04:00
font-size: 13px;
font-weight: bold;
color: @colorOlive;
2020-06-24 14:19:28 -04:00
}
.counter-value {
2020-09-11 17:11:11 -04:00
flex: none;
2020-06-24 14:19:28 -04:00
text-align: right;
> * {
display: inline;
}
}
input[type="text"],
input[type="number"] {
2020-06-24 14:19:28 -04:00
height: 20px;
max-width: 20px;
margin: 0;
padding: 0;
text-align: center;
}
input[type="checkbox"] {
position: relative;
2020-09-11 17:11:11 -04:00
width: 16px;
height: 16px;
2020-06-24 14:19:28 -04:00
margin: 0;
2020-09-11 17:11:11 -04:00
top: 4px;
2020-06-24 14:19:28 -04:00
}
span.sep {
font-size: 12px;
}
}
}
/* ----------------------------------------- */
/* Traits */
/* ----------------------------------------- */
2020-09-11 17:11:11 -04:00
.center-pane {
height: 100%;
padding: 0 5px 0 3px;
overflow-y: auto;
scrollbar-width: thin;
}
2020-06-24 14:19:28 -04:00
2020-09-11 17:11:11 -04:00
.traits {
2020-06-24 14:19:28 -04:00
.form-group, .form-group-stacked {
2020-09-11 17:11:11 -04:00
margin: 0 0 3px 0;
2020-06-24 14:19:28 -04:00
justify-content: space-between;
}
.config-button {
2020-06-24 14:19:28 -04:00
flex: 1;
}
label {
2020-09-11 17:11:11 -04:00
flex: none;
2020-06-24 14:19:28 -04:00
line-height: 20px;
font-weight: bold;
2020-09-11 17:11:11 -04:00
margin: 0 10px 0 0;
}
select {
max-width: 200px;
2020-06-24 14:19:28 -04:00
}
input {
text-align: right;
}
i.fas {
float: right;
margin-right: 3px;
text-align: right;
color: #999;
&:hover {
color: #111;
text-shadow: 0 0 10px red;
}
}
.inactive {
color: @colorTan;
}
}
/* ----------------------------------------- */
/* Inventory Lists */
/* ----------------------------------------- */
.tab.features,
.tab.inventory,
.tab.powerbook {
overflow-y: hidden;
}
/* Inventory List Filters */
.inventory-filters {
margin: 0 8px;
flex: 0 0 20px;
2020-09-11 17:11:11 -04:00
justify-content: flex-end;
2020-06-24 14:19:28 -04:00
.currency {
2020-09-11 17:11:11 -04:00
flex: 0 0 100%;
2020-06-24 14:19:28 -04:00
list-style: none;
margin: 4px 0 8px;
padding: 0;
font-size: 12px;
label {
flex: 0;
margin-left: 8px;
text-align: right;
line-height: 20px;
color: @colorTan;
}
input[type="text"] {
flex: 0 0 48px;
text-align: center;
margin-left: 8px;
border-bottom: @borderGroove;
}
}
}
// Inventory item lists
2020-06-24 14:19:28 -04:00
.inventory-list {
padding: 0 5px;
.item {
.item-name {
cursor: pointer;
&.rollable:hover .item-image {
background-image: url("../../icons/svg/d20-grey.svg") !important;
2020-06-24 14:19:28 -04:00
}
2020-09-11 17:11:11 -04:00
&.rollable .item-image:hover {
background-image: url("../../icons/svg/d20-black.svg") !important;
2020-09-11 17:11:11 -04:00
}
i.attuned { color: @colorTan; }
i.not-attuned { color: @colorCrimson; }
2020-06-24 14:19:28 -04:00
}
// Item uses
.item-uses input {
width: 24px;
text-align: center;
}
// Item Dropdown Properties
.item-properties {
margin-top: 3px;
}
// Charged
.item-recharge {
flex: 0 0 80px;
text-align: right;
font-size: 11px;
2020-09-11 17:11:11 -04:00
white-space: nowrap;
2020-06-24 14:19:28 -04:00
}
}
// Inventory Header
.inventory-header {
.item-controls a.item-create {
flex: 0 0 100%;
}
}
// Item Detail Sections
.item-detail {
flex: 0 0 70px;
font-size: 12px;
text-align: center;
border-right: 1px solid @colorFaint;
2020-09-11 17:11:11 -04:00
word-break: break-word;
white-space: nowrap;
overflow: hidden;
2020-06-24 14:19:28 -04:00
&:last-child { border-right: none; }
&.item-action {flex: 0 0 100px}
&.attunement {flex: 0 0 24px}
2020-06-24 14:19:28 -04:00
}
.item-weight {
flex: 0 0 60px;
border-left: 1px solid @colorFaint;
border-right: 1px solid @colorFaint;
}
// Item Control Buttons
.item-controls {
flex: 0 0 44px;
}
// Item Dropdown Summary
.item-summary {
flex: 0 0 100%;
font-size: 12px;
line-height: 16px;
padding: 0.25em 0.5em;
color: @colorDark;
2020-06-24 14:19:28 -04:00
border-top: 1px solid @colorFaint;
}
}
2020-09-11 17:11:11 -04:00
/* Encumbrance Bar */
.encumbrance {
flex: 0 0 12px;
background: @colorTan;
margin: 1px 15px 0 1px;
border: 1px solid @colorDark;
border-radius: 3px;
position: relative;
.encumbrance-bar {
position: absolute;
top: 1px;
left: 1px;
background: #6c8aa5;
height: 8px;
border: 1px solid #cde4ff;
border-radius: 2px;
}
.encumbrance-label {
height: 10px;
padding: 0 5px;
position: absolute;
top: 0;
right: 0;
font-size: 13px;
line-height: 12px;
text-align: right;
color: #EEE;
text-shadow: 0 0 5px #000;
}
.encumbrance-breakpoint {
display: block;
position: absolute;
&.encumbrance-33 { left: 33% }
&.encumbrance-66 { left: 66% }
}
.arrow-up {
bottom: 0;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-bottom: 4px solid #666;
}
.arrow-down {
top: 0;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #666;
}
&.encumbered {
.arrow-up { border-bottom: 4px solid #000; }
.arrow-down { border-top: 4px solid #000; }
}
}
2020-06-24 14:19:28 -04:00
/* ----------------------------------------- */
/* Powerbook */
/* ----------------------------------------- */
.powercasting-ability {
2020-09-11 17:11:11 -04:00
flex: 0 0 240px;
margin: 0;
label, span {
flex: none;
}
input {
flex: 0 0 28px;
2020-06-24 14:19:28 -04:00
text-align: center;
}
select {
margin: 0 5px;
flex: 0 0 120px;
2020-06-24 14:19:28 -04:00
}
}
.power-slots,
.power-comps {
flex: none;
padding: 0 5px;
2020-06-24 14:19:28 -04:00
font-size: 12px;
color: @colorTan;
border-right: 1px solid @colorFaint;
}
.power-slots {
2020-09-11 17:11:11 -04:00
input {
2020-06-24 14:19:28 -04:00
display: inline;
max-width: 20px;
2020-09-11 17:11:11 -04:00
}
.sep {
font-size: 13px;
font-weight: normal;
2020-06-24 14:19:28 -04:00
}
}
.powerbook .power-uses {
padding-right: 5px;
text-align: right;
color: @colorTan;
2020-06-24 14:19:28 -04:00
}
.power-school, .power-action, .power-target {
flex: 0 0 100px;
font-size: 12px;
color: @colorTan;
text-align: center;
border-right: 1px solid @colorFaint;
}
.power-component {
line-height: 14px;
&.C, &.R {
display: inline-block;
text-align: center;
padding-top: 1px;
width: 16px;
color: @colorFaint;
background: rgba(0, 0, 0, 0.4);
border: 1px solid transparent;
border-radius: 8px;
}
}
// Empty powerbook controls
.powerbook-empty .item-controls { flex: 1; }
/* ----------------------------------------- */
/* Features Tab */
/* ----------------------------------------- */
// Original class icon
.features i.original-class {
color: #4b4a44
}
2020-06-24 14:19:28 -04:00
/* ----------------------------------------- */
/* TinyMCE */
/* ----------------------------------------- */
.editor {
padding: 0 8px;
}
}
#actor-flags {
.window-content {
overflow-y: hidden;
}
form {
height: 100%;
}
.form-body {
height: calc(100% - 40px);
padding-right: 8px;
margin-bottom: 4px;
overflow-y: auto;
scrollbar-width: thin;
}
}