Files
l5rx-chiaroscuro/system/styles/scss/sheets.scss

636 lines
19 KiB
SCSS

/** Sheets **/
&.sheet {
min-width: 600px;
label {
&:hover {
text-shadow: 0 0 2px $red;
}
}
&.actor {
.sheet-header {
height: 27rem;
}
.sheet-body {
height: calc(100% - 27rem);
}
.techniques-wrapper {
fieldset {
&:last-child {
margin: 0 0 0 0.5rem;
}
}
}
.initiative {
&-wrapper {
display: block;
flex: 100%;
text-align: center;
}
button {
width: 22%;
margin: 0 0.25rem 0.25rem;
padding: 0 0.5rem;
color: #5a6e5a;
background: rgba(255, 255, 255, 0.5);
border: 1px solid #5a6e5a;
border-radius: 1rem;
}
button:focus {
box-shadow: none;
}
}
.advancements-tabs {
height: 2rem;
line-height: 2rem;
font-size: 1rem;
}
}
&.item,
.technique,
.weapon,
.armor,
.advantages,
.disadvantages {
.sheet-header {
height: 10rem;
}
.sheet-body {
height: calc(100% - 10rem);
}
}
form {
display: flex;
flex-wrap: wrap;
}
.sheet-body {
flex: 0 0 100%;
align-items: flex-start;
}
.sheet-header {
flex: 0 0 100%;
align-items: flex-start;
input {
flex: 0 0 3rem;
font-size: 1.5rem;
height: 2rem;
}
h1 {
flex: auto;
margin: 0 0 0.25rem 1rem;
input {
flex: 0 0 100%;
font-size: 3rem;
height: 5rem;
margin: 0;
width: 100%;
text-align: right;
color: $l5r5e-red;
text-shadow: 0 0 1px $l5r5e-red;
background: transparent;
border: 0 none;
border-radius: 0;
border-bottom: 1px solid $l5r5e-label-light;
}
&:before {
content: "";
position: absolute;
background: url("../assets/imgs/brush.webp") no-repeat 0 0;
background-size: contain;
height: 225px;
width: 100%;
z-index: -1;
top: -1rem;
left: -0.25rem;
}
}
img {
flex: 0 0 150px;
height: 150px;
width: 150px;
margin-right: 0;
object-fit: contain;
background: $l5r5e-white;
border: 1px solid $l5r5e-title;
--notchSize: 0.5rem;
clip-path: polygon(
0% var(--notchSize),
var(--notchSize) 0%,
calc(100% - var(--notchSize)) 0%,
100% var(--notchSize),
100% calc(100% - var(--notchSize)),
calc(100% - var(--notchSize)) 100%,
var(--notchSize) 100%,
0% calc(100% - var(--notchSize))
);
}
.header-fields {
position: relative;
flex: 0 0 100%;
h2 {
font-family: $font-secondary;
font-size: 1rem;
float: left;
width: 30%;
padding: 0.25rem 0.25rem 0;
margin: 1rem 20% 0 0;
text-align: center;
color: $l5r5e-black-light;
text-shadow: 0 0 1px $l5r5e-label-light;
border-bottom: 0 none;
background: $l5r5e-title;
--notchSize: 0.5rem;
clip-path: polygon(
0% var(--notchSize),
var(--notchSize) 0%,
calc(100%) 0%,
100% var(--notchSize),
100% calc(100% - var(--notchSize)),
calc(100% - var(--notchSize)) 100%,
var(--notchSize) 100%,
0% calc(100%)
);
&.right {
margin: 1rem 0 0 20%;
clip-path: polygon(
0% 0,
var(--notchSize) 0%,
calc(100% - var(--notchSize)) 0%,
100% var(--notchSize),
100% 100%,
100% 100%,
var(--notchSize) 100%,
0% calc(100% - var(--notchSize))
);
}
&:before {
content: "";
position: absolute;
height: 1px;
width: 100%;
}
}
}
.identity-wrapper {
display: flex;
position: initial;
flex-wrap: wrap;
flex: 0 0 calc(100% - 150px);
label {
display: flex;
color: $l5r5e-label;
text-transform: uppercase;
font-size: 0.75rem;
line-height: 2rem;
input {
flex: 1;
font-size: 1.25rem;
height: 1.75rem;
margin: 0 1rem 0 0.5rem;
padding: 0 0.25rem 0.25rem;
}
}
.identity-content {
flex: 0 0 100%;
display: flex;
flex-wrap: wrap;
margin: 0;
padding-top: 0.25rem;
padding-left: 0.5rem;
li {
flex: 33%;
&:nth-child(1),
&:nth-child(2) {
flex: calc(50% - 3rem);
margin: 0 0 0.25rem;
}
&:nth-child(3) {
flex: auto;
input {
width: 1rem;
padding: 0;
margin-right: 0;
}
}
&:nth-child(4),
&:nth-child(5) {
flex: 60%;
input {
font-size: 1rem;
}
}
&:nth-child(5) {
flex: 40%;
input {
margin-right: 0;
}
}
}
}
}
.rings {
float: left;
width: 40%;
padding: 0;
position: relative;
top: -2.5rem;
}
.social-content,
.attributes-wrapper {
flex: none;
float: left;
width: 30%;
flex-direction: column;
display: flex;
padding: 0.5rem 0 0 0.25rem;
border-left: 2px solid $l5r5e-title;
li {
position: relative;
&:before {
content: "";
position: absolute;
background: linear-gradient($l5r5e-title, rgba(186, 187, 177, 0));
height: 2px;
width: 97%;
top: -0.25rem;
left: -0.25rem;
}
&:nth-child(2) {
&:before {
width: 90%;
}
}
&:nth-child(3) {
&:before {
width: 80%;
}
}
&:nth-child(4) {
&:before {
width: 90%;
}
}
}
label {
display: flex;
color: $l5r5e-label;
text-transform: uppercase;
font-size: 0.75rem;
height: 2.5rem;
margin: 0.25rem 0;
flex-direction: row-reverse;
strong {
flex: 0 0 calc(100% - 3.5rem);
}
input {
flex: 0 0 3rem;
margin: 0 0.25rem;
height: 2rem;
&[disabled] {
flex: 0 0 3rem;
background: $l5r5e-white-light;
}
}
}
}
.attributes-wrapper {
padding: 0.5rem 0.25rem 0 0;
border-left: 0 none;
border-right: 2px solid $l5r5e-title;
li {
&:before {
left: auto;
right: -0.25rem;
}
&.void-content {
&:before {
width: 0;
}
}
}
label {
flex-direction: row;
strong {
text-align: right;
}
&:nth-child(2) {
position: relative;
flex: 50%;
right: 1.5rem;
strong {
position: absolute;
top: 0;
left: 0;
font-size: 0.65rem;
width: 3rem;
color: $l5r5e-black;
}
input {
border-top: 0 none;
font-size: 1.25rem;
padding-top: 0.75rem;
}
}
}
.endurance-content,
.composure-content {
input {
&[disabled] {
flex: 0 0 5rem;
padding-right: 3rem;
}
}
}
.void-content {
display: flex;
position: absolute;
bottom: 0.25rem;
right: 35%;
width: 10rem;
label {
margin: 0;
strong {
flex: 1 0 calc(100% - 5rem);
padding: 0 0.25rem;
&:after {
content: "/";
position: absolute;
right: 2.9rem;
font-size: 1rem;
bottom: 0.6rem;
color: $l5r5e-bold;
}
}
input {
&:nth-child(2) {
flex: 3rem;
padding-right: 1.25rem;
}
&:last-child {
flex: 1;
border: 0 none;
font-size: 1rem;
text-align: right;
padding-left: 0.25rem;
padding-top: 0.75rem;
position: relative;
right: 2rem;
}
}
}
}
li {
display: flex;
p {
display: none;
z-index: 2;
position: absolute;
background: $l5r5e-black;
color: $white;
line-height: 1.5rem;
text-align: center;
width: 100%;
padding: 0.25rem;
bottom: -2.25rem;
right: -0.25rem;
--notchSize: 0.5rem;
clip-path: polygon(
0% 0,
0 0%,
100% 0%,
100% var(--notchSize),
100% calc(100% - var(--notchSize)),
calc(100% - var(--notchSize)) 100%,
var(--notchSize) 100%,
0% calc(100% - var(--notchSize))
);
}
&:hover {
p {
display: block;
height: auto;
}
}
}
}
}
article {
background: $l5r5e-white;
padding: 0.5rem;
flex-wrap: wrap;
min-height: calc(100% - 3.25rem);
&.tab[data-tab] {
&.active {
display: flex;
}
}
.narrative-content,
.narrative-note {
flex: 0 0 calc(50% - 0.5rem);
}
.techniques-wrapper {
.checklist {
display: flex;
flex-wrap: wrap;
font-size: 0.85rem;
margin: 0 0 0.25rem 0.5rem;
padding: 0.5rem;
background: $l5r5e-title;
--notchSize: 0.25rem;
clip-path: polygon(
0% 0,
var(--notchSize) 0%,
calc(100% - var(--notchSize)) 0%,
100% var(--notchSize),
100% 100%,
100% 100%,
var(--notchSize) 100%,
0% calc(100% - var(--notchSize))
);
i {
color: $l5r5e-black;
margin-right: 0.5rem;
}
label {
flex: 0 0 auto;
margin: 0 0.25rem 0.25rem;
padding: 0 0.5rem;
color: $l5r5e-label;
background: $l5r5e-white;
border: 1px solid $l5r5e-label;
border-radius: 1rem;
}
input {
margin: 0.25rem 0 0 0;
height: 0.65rem;
width: 0.65rem;
}
}
}
.stances-content {
flex: 0 0 100%;
.item-list {
position: relative;
padding-top: 2rem;
margin: 0;
}
.stance-content {
padding: 0;
margin: 0;
label {
display: block;
position: absolute;
top: 0;
left: 0;
width: 20%;
line-height: 1.5rem;
padding: 0.25rem;
color: $white;
&.earth {
background: $l5r5e-earth;
}
&.air {
background: $l5r5e-air;
left: 20%;
}
&.water {
background: $l5r5e-water;
left: 40%;
}
&.fire {
background: $l5r5e-fire;
left: 60%;
}
&.void {
background: $l5r5e-void;
left: 80%;
}
input {
float: right;
position: relative;
top: 0.3rem;
right: 0.25rem;
}
}
}
}
.weapons-content,
.armors-content {
flex: 0 0 calc(50% - 0.5rem);
}
}
.xp,
.money-wrapper {
flex: 0 0 5rem;
flex-direction: column;
color: $black-light;
label {
padding: 0.25rem;
font-size: 0.85rem;
}
}
table {
font-size: 0.85rem;
color: $black-light;
thead {
th {
&:first-child {
flex: 0 0 2rem;
}
&:nth-child(2) {
flex: calc(100% - 16rem);
padding-left: 0.5rem;
text-align: left;
}
&:nth-child(3),
&:nth-child(4) {
flex: 0 0 4rem;
}
}
}
tbody {
.curriculum {
flex: 0 0 2rem;
}
.name {
flex: calc(100% - 13rem);
padding-left: 0.5rem;
text-align: left;
}
.xp,
.rank {
flex: 0 0 4rem;
}
.actions {
flex: 0 0 3rem;
font-size: 0.75rem;
ul {
display: flex;
flex-direction: row;
li {
flex: 0 0 1rem;
&:hover {
color: $red-light;
}
}
}
}
img {
width: 16px;
height: 16px;
border: none;
}
}
}
&.actor,
&.npc {
.limited {
h1 {
margin: 0.5rem 0;
}
img {
&.full {
flex: 0 0 content;
height: auto;
width: auto;
border: 0 none;
}
}
.sheet-header {
flex: none;
height: auto;
}
ul {
display: flex;
flex-wrap: wrap;
li {
flex: 50%;
padding: 0.25rem 0;
input {
width: 75%;
float: right;
}
&:nth-child(1),
&:nth-child(2) {
flex: calc(50% - 5rem);
margin-right: 1rem;
}
&:nth-child(3) {
flex: auto;
input {
width: 2rem;
}
}
&:nth-child(4),
&:nth-child(5) {
flex: calc(50% - 1rem);
margin-right: 1rem;
input {
font-size: 1rem;
}
}
}
}
}
}
}