178 lines
3.3 KiB
SCSS
178 lines
3.3 KiB
SCSS
@use 'sass:color';
|
|
@use 'sass:map';
|
|
@use "_colours" as colour;
|
|
@use "_numbers" as numbers;
|
|
|
|
|
|
$rollable_colours: (
|
|
"nachteil": colour.$nachteil-color,
|
|
"talent": colour.$talent-color,
|
|
"kampftalent": colour.$kampftalent-color,
|
|
"liturgie": colour.$liturgie-color,
|
|
"zauber": colour.$zauber-color,
|
|
);
|
|
.dsa41.sheet.actor.character {
|
|
|
|
.block.rollable {
|
|
display: block;
|
|
height: 32px;
|
|
width: 420px;
|
|
position: relative;
|
|
margin: 4px;
|
|
z-index: 2;
|
|
|
|
.die {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: inline-block;
|
|
position: relative;
|
|
|
|
.border {
|
|
fill: #0000;
|
|
}
|
|
|
|
.value {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 32px;
|
|
line-height: 30px;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
display: inline-block;
|
|
font-size: 10pt;
|
|
font-weight: bold;
|
|
|
|
img {
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
left: 6px;
|
|
top: 6px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.container {
|
|
position: absolute;
|
|
right: 0;
|
|
left: 16px;
|
|
top: 0;
|
|
height: 32px;
|
|
z-index: -1;
|
|
padding-left: 24px;
|
|
|
|
span.name {
|
|
line-height: 32px;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
.werte {
|
|
position: absolute;
|
|
right: 0;
|
|
height: 32px;
|
|
|
|
.eigenschaft {
|
|
display: inline-block;
|
|
height: 32px;
|
|
width: 32px;
|
|
position: relative;
|
|
top: -32px;
|
|
|
|
span.name {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
width: 32px;
|
|
line-height: 14px;
|
|
text-align: center;
|
|
font-size: smaller;
|
|
color: #333;
|
|
}
|
|
|
|
span.value {
|
|
border-left: 1px solid black;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
width: 32px;
|
|
line-height: 24px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// interactivity
|
|
.block.rollable {
|
|
&:hover {
|
|
|
|
.die svg {
|
|
filter: drop-shadow(0px 0px 10px rgb(255 0 0));
|
|
}
|
|
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
.die {
|
|
width: 28px;
|
|
height: 28px;
|
|
left: 2px;
|
|
top: 2px;
|
|
|
|
.value {
|
|
width: 28px;
|
|
height: 28px;
|
|
left: 0;
|
|
top: -2px;
|
|
scale: 0.8;
|
|
|
|
img {
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
left: 4px;
|
|
top: 7px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin coloring($name) {
|
|
$color: map.get($rollable_colours, $name);
|
|
.#{$name}.rollable {
|
|
.die {
|
|
.center {
|
|
fill: $color;
|
|
}
|
|
|
|
.topleft, .bottomleft {
|
|
|
|
fill: color.adjust($color, $lightness: numbers.$lighter_factor);
|
|
}
|
|
|
|
.topright, .bottomright, .bottom {
|
|
fill: color.adjust($color, $lightness: numbers.$darken_factor);
|
|
}
|
|
}
|
|
|
|
.container {
|
|
background-image: linear-gradient(to right, rgba($color, numbers.$start_gradient), rgba($color, numbers.$end_gradient));
|
|
border-top-right-radius: 8px;
|
|
border-bottom-right-radius: 8px;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include coloring("nachteil");
|
|
@include coloring("liturgie");
|
|
@include coloring("zauber");
|
|
@include coloring("talent");
|
|
@include coloring("kampftalent"); |