Beginning of global styling; Full Sidebar restyle

This commit is contained in:
Nathanael Phillips 2020-11-02 12:23:55 -07:00
parent a8c2881a7b
commit f7d7580b3a
53 changed files with 6671 additions and 1811 deletions

741
less/original/actors.less Normal file
View file

@ -0,0 +1,741 @@
@import "./variables.less";
@actorNameHeight: 60px;
.sw5e.sheet.actor {
/* ----------------------------------------- */
/* Sheet Header */
/* ----------------------------------------- */
.sheet-header {
// Portrait Artwork
img.profile {
flex: 0 0 160px;
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;
text-align: right;
}
// Character Summary
.summary {
height: 30px;
border-bottom: @borderGroove;
font-size: 18px;
input, span {
display: block;
height: 24px;
line-height: 24px;
}
}
// Primary Attributes
.attributes {
flex: 0 0 100%;
margin: 0;
.attribute {
height: 70px;
margin: 0;
border: none;
border-right: @borderGroove;
border-radius: 0;
&:last-child {
border-right: none;
}
.attribute-value {
height: 30px;
line-height: 30px;
}
}
}
}
.attributes {
input.temphp {
width: 48%;
}
}
/* ----------------------------------------- */
/* General Styles */
/* ----------------------------------------- */
// Box Headers
h4.box-title {
height: 18px;
line-height: 16px;
margin: 4px 8px 2px;
.russoOne(14px);
color: @colorOlive;
border-bottom: 1px solid @colorFaint;
}
/* ----------------------------------------- */
/* Attributes */
/* ----------------------------------------- */
.tab.attributes {
overflow: hidden;
}
ul.attributes {
flex: 0 0 60px;
list-style: none;
margin: 0;
padding: 0;
li.attribute {
height: 60px;
margin: 0 5px 0 0;
border: @borderGroove;
border-radius: 4px;
text-align: center;
&:last-child {
margin: 0;
}
.attribute-value {
display: flex;
justify-content: center;
align-items: center;
height: 28px;
line-height: 28px;
.russoOne();
> * {
font-weight: 400;
font-size: 24px;
}
&.multiple input {
flex: 0 0 33%;
}
}
.attribute-footer {
flex: 0 0 18px;
margin-top: -1px;
line-height: 18px;
font-family: "Signika", sans-serif;
font-size: 12px;
font-weight: 400;
}
}
}
/* ----------------------------------------- */
/* Ability Scores */
/* ----------------------------------------- */
.ability-scores {
flex: 0 0 100px;
height: 440px;
list-style: none;
margin: 0;
padding: 0;
.russoOne();
border: @borderGroove;
border-radius: 3px;
.ability {
height: 70px;
text-align: center;
border-bottom: @borderGroove;
&:last-child {
border-bottom: none;
margin-bottom: -3px;
}
input.ability-score {
height: 30px;
width: 36px;
margin: 0 auto;
line-height: 32px;
font-size: 24px;
}
.ability-modifiers {
height: 24px;
margin: -8px 0 0;
span.ability-mod,
span.ability-save {
flex: 0 0 24px;
height: 22px;
line-height: 22px;
font-size: 16px;
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 {
flex: 0 0 180px;
height: 440px;
list-style: none;
margin: 0 5px 0;
padding: 3px 0 2px;
border: @borderGroove;
border-radius: 3px;
li.skill {
height: 24px;
padding: 3px 2px;
&:nth-child(even) {
background: rgba(0, 0, 0, 0.05);
}
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;
text-transform: capitalize;
}
.skill-mod {
flex: 0 0 20px;
}
.skill-passive {
flex: 0 0 26px;
text-align: center;
color: @colorTan;
}
}
}
/* ----------------------------------------- */
/* Statuses */
/* ----------------------------------------- */
.counters {
flex: none;
padding: 5px 0;
margin: 0;
border-bottom: @borderGroove;
.counter {
height: 20px;
line-height: 20px;
h4 {
flex: auto;
margin: 0;
font-size: 13px;
font-weight: bold;
color: @colorOlive;
}
.counter-value {
flex: none;
text-align: right;
> * {
display: inline;
}
}
input[type="text"],
input[type="number"] {
height: 20px;
max-width: 20px;
margin: 0;
padding: 0;
text-align: center;
}
input[type="checkbox"] {
position: relative;
width: 16px;
height: 16px;
margin: 0;
top: 4px;
}
span.sep {
font-size: 12px;
}
}
}
/* ----------------------------------------- */
/* Traits */
/* ----------------------------------------- */
.center-pane {
height: 100%;
padding: 0 5px 0 3px;
overflow-y: auto;
scrollbar-width: thin;
}
.traits {
.form-group, .form-group-stacked {
margin: 0 0 3px 0;
justify-content: space-between;
}
.configure-flags {
flex: 1;
}
label {
flex: none;
line-height: 20px;
font-weight: bold;
margin: 0 10px 0 0;
}
select {
max-width: 200px;
}
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;
justify-content: flex-end;
.currency {
flex: 0 0 100%;
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-list {
list-style: none;
margin: 0;
padding: 0 5px;
overflow-y: auto;
scrollbar-width: thin;
color: @colorTan;
// Inventory Item
.item {
line-height: 30px;
padding: 0 2px; // to align with the header border
border-bottom: 1px solid @colorFaint;
&:last-child { border-bottom: none; }
// Item Header Name
.item-name {
cursor: pointer;
max-height: 30px;
overflow: hidden;
.item-image {
flex: 0 0 30px;
background-size: 30px;
margin-right: 5px;
}
h4 {
margin: 0;
white-space: nowrap;
overflow-x: hidden;
}
&.rollable:hover .item-image {
background-image: url("../../icons/svg/d20-grey.svg") !important;
}
&.rollable .item-image:hover {
background-image: url("../../icons/svg/d20-black.svg") !important;
}
i.attuned {
color: @colorTan;
}
}
// 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;
color: @colorTan;
white-space: nowrap;
}
}
// Inventory Header
.inventory-header {
margin: 2px 0;
padding: 0;
align-items: center;
background: rgba(0, 0, 0, 0.05);
border: @borderGroove;
font-weight: bold;
line-height: 24px;
h3 {
margin: 0 -5px 0 0;
padding-left: 5px;
.russoOne();
font-size: 16px;
}
.item-controls a.item-create {
flex: 0 0 100%;
}
}
// Item names
.item-name {
color: @colorDark;
}
// Item Detail Sections
.item-detail {
flex: 0 0 70px;
font-size: 12px;
color: @colorTan;
text-align: center;
border-right: 1px solid @colorFaint;
word-break: break-word;
white-space: nowrap;
overflow: hidden;
&:last-child { border-right: none; }
&.item-action {flex: 0 0 100px}
}
.item-weight {
flex: 0 0 60px;
border-left: 1px solid @colorFaint;
border-right: 1px solid @colorFaint;
}
.item-list {
list-style: none;
margin: 0;
padding: 0;
}
// Item Control Buttons
.item-controls {
flex: 0 0 44px;
.flexrow();
justify-content: flex-end;
a {
flex: 0 0 22px;
font-size: 12px;
text-align: center;
color: @colorTan;
}
}
// Item Dropdown Summary
.item-summary {
flex: 0 0 100%;
font-size: 12px;
line-height: 16px;
padding: 0.25em 0.5em;
border-top: 1px solid @colorFaint;
}
}
/* 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; }
}
}
/* ----------------------------------------- */
/* Powerbook */
/* ----------------------------------------- */
.powercasting-ability {
flex: 0 0 240px;
margin: 0;
input, span {
flex: 0 0 32px;
text-align: center;
}
select {
margin: 0 5px;
flex: 0 0 150px;
}
h3.power-dc {
flex: 1;
text-align: right;
}
}
.power-slots,
.power-comps {
flex: 0 0 75px;
padding-right: 5px;
text-align: right;
font-size: 12px;
color: @colorTan;
border-right: 1px solid @colorFaint;
}
.power-slots {
input {
display: inline;
max-width: 20px;
}
.sep {
font-size: 13px;
font-weight: normal;
}
}
.power-uses {
padding-right: 8px;
text-align: right !important;
}
.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; }
/* ----------------------------------------- */
/* Active Effects */
/* ----------------------------------------- */
.effects {
.effect-name{
flex: 2;
align-items: center;
color: @colorDark;
h4 { margin: 0; }
}
.effect-icon {
flex: 0 0 30px;
height: 30px;
margin-right: 5px;
border: none;
}
.effect-source,
.effect-duration {
text-align: center;
border-left: 1px solid @colorFaint;
border-right: 1px solid @colorFaint;
}
.effect-controls {
flex: 0 0 60px;
text-align: right;
}
.effect {
align-items: center;
border-bottom: 1px solid @colorFaint;
&:last-child { border-bottom: none; }
}
}
/* ----------------------------------------- */
/* TinyMCE */
/* ----------------------------------------- */
.editor {
padding: 0 8px;
}
}

383
less/original/apps.less Normal file
View file

@ -0,0 +1,383 @@
@import "./variables.less";
@navHeight: 30px;
@headerHeight: 100px;
@detailsHeight: 40px;
/* ----------------------------------------- */
/* All DnD5e Apps */
/* ----------------------------------------- */
.sw5e {
.window-content {
background: @sheetBackground;
font-size: 13px;
color: @colorDark;
}
/* ----------------------------------------- */
/* Element Styles */
/* ----------------------------------------- */
// Item Sheet form fields
input[type="text"],
input[type="number"],
select {
height: calc(100% - 2px);
border: 1px solid @colorTan;
background: rgba(0, 0, 0, 0.05);
color: @colorDark;
}
// Hovered Fields
input[type="text"],
input[type="number"] {
&:hover,
&:focus {
border: 1px solid #111;
box-shadow: 0 0 8px red;
}
}
// Disabled Fields
input:disabled,
select:disabled,
textarea:disabled {
color: @colorOlive;
&:hover,
&:focus {
box-shadow: none !important;
border: 1px solid transparent !important;
outline: none !important;
}
}
// Buttons
button {
background: rgba(0, 0, 0, 0.10);
border: @borderGroove;
}
// Checkbox Labels
// TODO: THIS CAN BE MOSTLY REMOVED NOW THAT IT IS IN CORE, see core forms.less
label.checkbox {
flex: auto;
padding: 0;
margin: 0;
height: 22px;
line-height: 22px;
font-size: 11px;
> input[type="checkbox"] {
width: 16px;
height: 16px;
margin: 0 2px 0 0;
position: relative;
top: 4px;
}
&.right > input[type="checkbox"] {
margin: 0 0 0 2px;
}
}
/* Form Groups */
.form-group {
label {
flex: 2;
color: @colorOlive;
font-weight: bold;
}
.form-fields {
.flexrow();
> * {
margin: 0 3px 0 0;
&:last-child { margin-right: 0; }
}
}
}
// Stacked Groups
.form-group.stacked {
label {
flex: 0 0 100%;
margin: 0;
}
label.checkbox {
flex: auto;
text-align: left;
}
}
// Form Headers
.form-header {
margin: 0 0 0.25em 0;
padding: 2px 0;
border-top: @borderGroove;
border-bottom: @borderGroove;
.russoOne();
}
/* Tags */
.tag {
display: inline-block;
margin: 0 2px 0 0;
padding: 0 3px;
font-size: 10px;
line-height: 16px;
border: 1px solid #999;
border-radius: 3px;
background: rgba(0, 0, 0, 0.05);
}
}
/* ----------------------------------------- */
/* Entity Sheets Specifically */
/* ----------------------------------------- */
.sw5e.sheet {
.window-content {
overflow-y: hidden;
padding: 5px;
background: @sheetBackground;
font-size: 13px;
color: @colorDark;
form {
height: 100%;
overflow: hidden;
}
.tab {
height: 100%;
overflow-y: auto;
align-content: flex-start;
}
}
/* ----------------------------------------- */
/* Element Styles */
/* ----------------------------------------- */
// Input Fields
input[type="text"],
input[type="number"] {
background: none;
border: 1px solid transparent;
&:hover,
&:focus {
border: 1px solid #111;
}
}
// Select Fields
select {
flex: 1;
font-size: 12px;
height: 22px;
background: transparent;
}
// Rollable Links
.editable .rollable:hover {
color: #000;
text-shadow: 0 0 10px red;
cursor: pointer;
}
// Separators
span.sep {
flex: none;
margin: 0 1px;
display: inline;
position: relative;
color: @colorTan;
font-weight: normal;
}
/* ----------------------------------------- */
/* TinyMCE */
/* ----------------------------------------- */
.editor {
height: 100%;
.tox-toolbar-overlord,
.tox-toolbar__primary {
background: none;
}
}
/* ----------------------------------------- */
/* Sheet Header */
/* ----------------------------------------- */
.sheet-header {
flex: 0 0 @headerHeight;
border-bottom: @borderGroove;
.header-details {
.russoOne();
}
/* Character Name */
h1 {
flex: 1;
border-bottom: none;
height: 60px;
margin: 0;
padding: 5px;
input {
display: block;
height: 50px;
font-size: 32px;
margin: 0;
}
}
/* Profile Image */
img.profile {
flex: 0 0 @headerHeight;
max-width: @headerHeight;
height: @headerHeight;
object-fit: contain;
border: none;
border-right: @borderGroove;
}
/* Header Summary Details */
.summary {
flex: 0 0 100%;
height: @detailsHeight;
margin: 0;
padding: 0;
list-style: none;
border-top: @borderGroove;
border-bottom: none;
li {
height: calc(100% - 6px);
float: left;
margin: 2px 0;
padding: 0;
border-right: @borderGroove;
line-height: 34px;
color: @colorOlive;
&:last-child {
border-right: none;
}
}
}
}
/* ----------------------------------------- */
/* Sheet Navigation */
/* ----------------------------------------- */
.sheet-navigation {
flex: 0 0 @navHeight;
margin-bottom: 5px;
.russoOne(14px);
.item {
height: 30px;
line-height: 32px;
margin: 0 24px;
border-bottom: 3px solid @colorBeige;
&.active {
border-bottom: 3px solid @colorCrimson;
}
}
}
/* ----------------------------------------- */
/* Sheet Body */
/* ----------------------------------------- */
.sheet-body {
flex: 1;
overflow: hidden;
}
/* ----------------------------------------- */
/* List Filters */
/* ----------------------------------------- */
.filter-list {
list-style: none;
margin: 0;
padding: 0;
line-height: 16px;
max-width: 70%;
.filter-icon {
flex: none;
font-size: 14px;
color: @colorTan;
}
.filter-item {
text-align: center;
font-size: 12px;
margin: 0 6px 0 0;
border-bottom: 3px solid @colorBeige;
white-space: nowrap;
&:last-child {
margin: 0;
}
&:hover {
text-shadow: 0 0 4px red;
border-bottom: 3px solid @colorTan;
}
&.active {
border-bottom: 3px solid @colorCrimson;
}
}
}
/* ----------------------------------------- */
/* Trait Lists */
/* ----------------------------------------- */
.traits {
margin: 5px 0 0;
.trait-selector {
flex: 0 0 16px;
padding: 2px 0;
color: #999;
font-size: 10px;
}
.traits-list {
flex: 0 0 100%;
line-height: 20px;
list-style: none;
margin: 0;
padding: 0;
}
}
}
/* ----------------------------------------- */
/* Trait Selector
/* ----------------------------------------- */
#trait-selector {
.trait-list {
list-style: none;
margin: 0;
padding: 0;
}
input[type="text"] {
height: 24px;
margin: 2px;
}
}

View file

@ -0,0 +1,179 @@
@import "./variables.less";
/* ----------------------------------------- */
/* Basic Structure */
/* ----------------------------------------- */
.sw5e.sheet.actor.character {
min-width: 720px;
min-height: 680px;
/* ----------------------------------------- */
/* Sheet Header */
/* ----------------------------------------- */
.sheet-header {
// Character Profile image (larger)
img.profile {
flex: 0 0 160px;
max-width: 160px;
height: 160px;
}
// Character Level
.charlevel {
flex: 0 0 20px;
height: 20px;
font-size: 18px;
color: @colorTan;
white-space: nowrap;
}
// Experience Tracking
.experience {
flex: 0 0 32px;
margin-bottom: -5px;
align-items: center;
font-size: 18px;
span.max {
color: @colorTan;
flex: none;
margin-left: 3px;
}
}
.xpbar {
flex: 0 0 8px;
width: 100%;
margin-bottom: 5px;
background: @colorTan;
border: 1px solid #000;
border-radius: 3px;
.bar {
height: 4px;
margin: 1px;
display: block;
background: #afebff;
border: 1px solid #000;
border-radius: 2px;
}
}
// Header Attributes
.attributes {
a.rest {
border: 1px solid @colorBeige;
border-radius: 2px;
background: rgba(0, 0, 0, 0.05);
padding: 0 3px;
margin: 0 3px;
}
.hit-dice {
font-size: 24px;
}
.initiative .attribute-footer input {
width: 32px;
}
}
.summary .proficiency {
text-align: right;
padding-right: 5px;
}
}
/* ----------------------------------------- */
/* Sheet Body */
/* ----------------------------------------- */
// Custom Resources
.resource .attribute-value {
input {
flex: 0 0 25%;
}
label.recharge {
height: 32px;
position: relative;
font-family: "Signika", sans-serif;
font-size: 11px;
text-align: center;
color: @colorOlive;
input[type="checkbox"] {
height: 14px;
width: 14px;
margin: 0;
top: -6px;
}
}
}
ul.skills-list {
flex: 0 0 212px;
li.skill {
padding: 3px;
h4 {
flex: 1px;
margin: 0;
font-size: 13px;
}
}
}
.item-detail.player-class {
flex: 0 0 180px;
text-align: right;
padding-right: 10px;
}
/* ----------------------------------------- */
/* Item Controls */
/* ----------------------------------------- */
.inventory,
.powerbook {
.item-controls {
flex: 0 0 68px;
.item-toggle {
color: @colorBeige;
&.active {
color: @colorOlive;
}
&.fixed {
color: @colorCrimson;
&:hover {
text-shadow: none;
}
}
}
}
}
/* ----------------------------------------- */
/* Biography */
/* ----------------------------------------- */
.characteristics {
flex: 0 0 180px;
height: 100%;
padding: 0 3px 3px;
label {
flex: 0 0 20px;
.bungeeInline();
font-size: 16px;
font-weight: normal;
line-height: 20px;
text-align: center;
}
textarea {
.openSans();
border: 1px solid @colorFaint;
resize: none;
}
}
.biography {
max-width: calc(100% - 180px);
}
}

103
less/original/chat.less Normal file
View file

@ -0,0 +1,103 @@
@import "variables.less";
/* ----------------------------------------- */
/* Chat Cards
/* ----------------------------------------- */
.sw5e.chat-card {
font-style: normal;
font-size: 12px;
.card-header {
padding: 3px 0;
border-top: 2px groove #FFF;
border-bottom: 2px groove #FFF;
img {
flex: 0 0 36px;
margin-right: 5px;
}
h3 {
flex: 1;
margin: 0;
line-height: 36px;
.bungeeInline();
color: @colorOlive;
&:hover {
color: #111;
text-shadow: 0 0 10px red;
}
}
}
.card-content {
margin: 5px 0;
h3 {
font-size: 12px;
margin: 0;
font-weight: bold;
}
> * {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
}
.card-buttons {
margin: 5px 0;
span {
display: block;
line-height: 28px;
text-align: center;
border: 1px solid @borderLight;
}
button {
font-size: 12px;
height: 24px;
line-height: 20px;
margin: 2px 0;
}
}
.card-footer {
padding: 3px 0 0;
border-top: 2px groove #FFF;
span {
border-right: 2px groove #FFF;
padding: 0 5px 0 0;
font-size: 10px;
&:last-child {
border-right: none;
padding-right: 0;
}
}
}
}
.dice-roll .dice-total {
&.success {
color: inherit;
background: #c7d0c0;
border: 1px solid #006c00;
}
&.failure {
color: inherit;
background: #ffdddd;
border: 1px solid #6e0000;
}
&.critical {
color: green;
}
&.fumble {
color: red;
}
}

232
less/original/items.less Normal file
View file

@ -0,0 +1,232 @@
@import "./variables.less";
.sw5e.sheet.item {
min-height: 420px;
/* ----------------------------------------- */
/* Sheet Header */
/* ----------------------------------------- */
.sheet-header {
img.profile {
border: 2px solid #000;
}
.item-subtitle {
flex: 0 0 80px;
height: 60px;
margin: 0;
padding: 5px;
text-align: right;
color: @colorTan;
.item-type {
font-size: 24px;
line-height: 26px;
margin: 0;
}
.item-status {
font-size: 16px;
line-height: 24px;
}
}
}
.sheet-navigation {
margin-bottom: 5px;
.item {
font-size: 18px;
}
}
.sheet-body {
overflow: hidden;
.tab {
padding: 0 5px;
overflow: hidden auto;
}
.item-properties {
flex: 0 0 120px;
margin: 5px 5px 5px 0;
padding-right: 5px;
border-right: @borderGroove;
.form-group {
margin: 0;
label {
line-height: 20px;
}
input {
text-align: right;
}
}
.properties-list {
list-style: none;
margin: 0;
padding: 0;
li {
margin: 3px 0;
padding: 0 2px;
background: rgba(0, 0, 0, 0.05);
border: @borderGroove;
text-align: center;
font-size: 12px;
line-height: 18px;
}
}
}
}
/* ----------------------------------------- */
/* Item Details Form */
/* ----------------------------------------- */
.details {
// Item Sheet form fields
input[type="text"],
input[type="number"],
select {
height: 24px;
border: 1px solid @colorTan;
background: rgba(0, 0, 0, 0.05);
}
.form-group {
span {
text-align: center;
line-height: 24px;
}
}
.form-group.input-select {
select {
flex: 1.8;
}
}
.form-group.input-select-select {
select {
flex: 1.5;
}
}
.form-group.uses-per {
input {
flex: 1;
}
span {
flex: 0 0 16px;
}
select {
flex: 3;
}
}
span.sep {
flex: 0 0 8px;
}
.prepared {
flex: 1.3 !important;
text-align: right;
padding-right: 10px;
}
// Power Materials
.power-materials {
flex: 0 0 100%;
margin: 0.25em 0;
justify-content: flex-end;
label {
flex: 0 0 64px;
text-align: right;
margin-right: 5px;
font-size: 12px;
line-height: 24px;
}
input[type="text"] {
flex: 0 0 48px;
margin-right: 10px;
}
}
}
/* ----------------------------------------- */
/* Item Actions */
/* ----------------------------------------- */
h4.damage-header {
margin: 0;
padding: 0;
font-weight: bold;
line-height: 24px;
color: @colorOlive;
}
.damage-parts {
list-style: none;
margin: 0;
padding: 0;
.damage-part {
flex: 0 0 100%;
padding: 0;
input {
flex: 3;
}
select {
margin-left: 5px;
flex: 1;
}
}
}
.damage-control {
width: 18px;
flex: 0 0 18px;
line-height: 24px;
float: right;
text-align: right;
color: @colorTan;
}
.recharge.form-group {
span {
text-align: right;
padding-right: 3px;
}
input[type="text"] {
flex: 0 0 32px;
text-align: center;
}
label.checkbox {
flex: none;
input {
width: 16px;
height: 16px;
top: 4px;
}
}
}
/* ----------------------------------------- */
/* Item Actions */
/* ----------------------------------------- */
.weapon-properties label.checkbox {
flex: 0 0 98px;
}
/* ----------------------------------------- */
/* Loot Sheet (No Tabs) */
/* ----------------------------------------- */
.loot-header {
margin-bottom: 10px;
}
}

41
less/original/npc.less Normal file
View file

@ -0,0 +1,41 @@
@import "./variables.less";
/* ----------------------------------------- */
/* Basic Structure */
/* ----------------------------------------- */
.sw5e.sheet.actor.npc {
min-width: 600px;
min-height: 680px;
.header-exp {
flex: 0 0 80px;
justify-content: center;
.cr {
flex: 0 0 32px;
line-height: 28px;
margin-bottom: -5px;
font-size: 24px;
input {
width: 32px;
padding: 0;
text-align: center;
}
}
.experience {
flex: 0 0 18px;
color: @colorTan;
font-size: 16px;
}
}
.summary {
font-size: 18px;
}
.powercasting-ability {
label {
flex: none;
}
}
}

38
less/original/sw5e.less Normal file
View file

@ -0,0 +1,38 @@
@import "variables.less";
@import "apps.less";
@import "actors.less";
@import "items.less";
@import "chat.less";
@import "character.less";
@import "npc.less";
@import "vehicle.less";
// TODO: Remove number styling after 0.7.x
input[type="number"] {
width: calc(100% - 2px);
min-width: 20px;
height: 26px;
background: rgba(0, 0, 0, 0.05);
padding: 1px 3px;
margin: 0;
color: #191813;
font-family: inherit;
font-size: inherit;
text-align: inherit;
line-height: inherit;
border: 1px solid #7a7971;
border-radius: 3px;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
-moz-appearance: textfield;
&:focus {
box-shadow: 0 0 5px red;
}
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
}

View file

@ -0,0 +1,109 @@
/* Deprecated vars */
@borderLight: #CCC;
@borderDark: #666;
/* ----------------------------------------- */
/* Fonts */
/* ----------------------------------------- */
/* russo-one-regular - latin */
@font-face {
font-family: 'Russo One';
font-style: normal;
font-weight: 400;
src: url('./fonts/RussoOne.ttf');
}
.russoOne(@font-size: 20px) {
font-family: 'Russo One';
font-size: @font-size;
font-weight: 400;
}
/* bungee-inline-regular - latin */
@font-face {
font-family: 'Bungee Inline';
font-style: normal;
font-weight: 400;
src: url('./fonts/BungeeInline.ttf');
}
.bungeeInline {
font-family: 'Bungee Inline';
font-size: 20px;
font-weight: 400;
}
/* open-sans-regular - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: url('./fonts/OpenSans-Regular.ttf');
}
.openSans {
font-family: 'Open Sans';
font-size: 20px;
font-weight: 400;
}
/* ----------------------------------------- */
/* Sheet Styles */
/* ----------------------------------------- */
@colorDark: #191813;
@colorFaint: #c9c7b8;
@colorBeige: #b5b3a4;
@colorTan: #7a7971;
@colorOlive: #4b4a44;
@colorCrimson: #44191A;
@borderGroove: 2px groove #eeede0;
//@sheetBackground: url("ui/parchment.jpg") repeat;
//SW5e Colors
@colorBlack: #1C1C1C;
@colorDarkGray: #363636;
@colorGray: #4f4f4f;
@colorLightGray: #828282;
@colorPaleGray: #D6D6D6;
@colorRed: #c40f0f;
@colorPaleRed: #FBF4F4;
@colorLightRed: #F6E1E1;
@colorBlue: #0d99cc;
@colorLightBlue: #7ed6f7;
@colorPaleBlue: #afc6d6;
@sheetBackground: linear-gradient(90deg, @colorPaleBlue 0%, @colorPaleGray 30%, @colorPaleGray 70%, @colorPaleBlue); //url("ui/parchment.webp") repeat;
/* ----------------------------------------- */
/* Flexbox */
/* ----------------------------------------- */
.flexrow {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
> * {
flex: 1;
}
.flex1 { flex: 1; }
.flex2 { flex: 2; }
.flex3 { flex: 3; }
.flex4 { flex: 4; }
}
.flexcol {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
> * {
flex: 1;
}
.flex1 { flex: 1; }
.flex2 { flex: 2; }
.flex3 { flex: 3; }
.flex4 { flex: 4; }
}

View file

@ -0,0 +1,32 @@
.sw5e.sheet.actor.vehicle {
.features {
.item-controls {
flex: 0 0 68px;
.item-toggle {
color: #b5b3a4;
&.active {
color: #4b4a44;
}
}
}
}
.counters {
.counter.creature-cap {
.counter-value {
flex: 1;
}
input {
max-width: none;
text-align: right;
}
}
.counter.cargo-cap {
input {
max-width: 40px;
text-align: right;
}
}
}
}