This commit is contained in:
Vlyan
2020-12-11 23:38:54 +01:00
46 changed files with 791 additions and 374 deletions

View File

@@ -132,9 +132,26 @@
}
}
li {
position: relative;
p {
display: none;
z-index: 2;
position: absolute;
bottom: -100%;
background: rgba(0, 0, 0, 0.5);
color: #fff;
padding: 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 {
@@ -160,5 +177,88 @@
article {
background: $l5r5e-white;
padding: 0.5rem;
flex-wrap: wrap;
&.tab[data-tab] {
&.active {
display: flex;
}
}
.skills-wrapper,
.feats-wrapper {
flex: 50%;
> li {
display: flex;
flex-wrap: wrap;
font-size: 0.75rem;
margin: 0 0 1rem;
border: 1px solid $l5r5e-title;
--notchSize: 0.75rem;
clip-path: polygon(
0 var(--notchSize),
var(--notchSize) 0,
100% 0,
100% var(--notchSize),
100% calc(100% - var(--notchSize)),
100% 100%,
0 100%,
0 100%
);
h4 {
flex: 100%;
margin: 0;
padding: 0.5rem 0.5rem 0;
text-align: center;
background: $l5r5e-title;
color: $l5r5e-label;
--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%)
);
}
ul {
flex: 50%;
padding: 0.25rem 0.5rem 0.25rem 0;
li {
text-align: left;
line-height: 1.5rem;
margin: 0.25rem 0;
&.skill {
text-align: right;
strong {
color: $l5r5e-black;
}
&[data-skill="melee"],
&[data-skill="ranged"],
&[data-skill="unarmed"] {
strong {
float: left;
line-height: 0.75rem;
width: calc(100% - 1.75rem);
}
}
}
}
&.skill-category-ring-actions {
padding: 0.25rem 0 0.25rem 0.5rem;
border-left: 1px solid $l5r5e-title;
}
}
input {
width: 1.5rem;
height: 1.5rem;
text-align: center;
}
&:last-child {
margin: 0;
}
}
}
}
}