foundry-dsa41-game/src/style/organisms/character-tabs/_advsf.scss

101 lines
1.9 KiB
SCSS

@mixin tab {
.advantages-and-specialabilities {
display: flex;
height: unset;
gap: 8px;
}
.advantages, .special-abilities, .flaws {
margin-bottom: 16px;
ul {
list-style-type: none;
padding: 0;
margin: 0;
text-indent: 0;
li {
display: inline-block;
}
.advantage, .special-ability, .flaw {
position: relative;
border: 1px solid gold;
box-shadow: 2px 2px 4px #000;
border-radius: 8px;
height: 24px;
color: gold;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
display: inline-block;
padding: 0 8px;
margin-left: 0;
margin-bottom: 4px;
background-image: url("/systems/DSA_4-1/assets/velvet_button.png");
background-repeat: repeat-y;
background-size: cover;
span {
position: relative;
z-index: 2;
line-height: 24px;
vertical-align: middle;
}
&.special-ability {
&::after {
background: rgba(128, 0, 96, 0.5);
}
}
&::after {
content: "";
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
border-radius: 8px;
background: rgba(0, 128, 0, 0.5);
}
& + .advantage, & + .special-ability {
margin-left: 8px;
}
&.flaw {
position: relative;
margin-left: 24px;
.die {
path {
fill: #6a24d8ff;
}
position: absolute;
left: -24px;
height: 24px;
width: 24px;
}
&::after {
background: rgba(106, 36, 216, 0.5);
}
}
&.disadvantage {
font-style: italic;
&::after {
background: rgba(128, 0, 0, 0.5);
}
}
}
}
}
}