Tracker made in React for keeping track of HP and MP and so on.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
fabula-ultima-react/src/CharacterStatus.css

181 lines
3.2 KiB

.characterStatus {
height: 150px;
width: 500px;
position: relative;
background-color: #454;
}
.characterHeader {
position: absolute;
left: 160px;
bottom: 60px;
z-index: 4;
}
.characterLevel {
display: inline;
color: white;
-webkit-text-stroke: 1px rgba(0, 0, 0, 0.2);
text-shadow: 0 0 2px black;
margin-right: 0.25em;
}
.characterLevelLabel {
font-size: smaller;
font-variant: small-caps;
}
.characterName {
display: inline;
color: white;
font-family: sans-serif;
font-weight: bold;
font-size: 30px;
text-align: left;
-webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.characterHpBar, .characterMpBar, .characterIpBar {
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
border: 2px solid black;
transform: skewX(-30deg) translateX(15px);
border-radius: 5px;
position: absolute;
width: calc(100% - 30px);
margin: 2px 2px 8px 5px;
bottom: 0;
}
.characterHpValue, .characterMpValue, .characterIpValue {
color: white;
font-family: sans-serif;
font-weight: bold;
font-style: italic;
font-size: 60px;
text-align: right;
-webkit-text-stroke: 1px black;
text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
position: absolute;
bottom: 5px;
}
.characterHp {
position: absolute;
height: 60px;
left: 112px;
right: 0;
bottom: 28px;
overflow: visible;
z-index: 1;
}
.characterHpBar {
height: 25px;
}
.characterHpValue {
font-size: 60px;
right: 5px;
}
.characterMp, .characterIp {
position: absolute;
bottom: 0;
height: 40px;
}
.characterMp {
left: 95px;
right: 155px;
z-index: 3;
}
.characterIp {
width: 150px;
right: 20px;
z-index: 2;
}
.characterMpBar, .characterIpBar {
height: 20px;
}
.characterMpValue, .characterIpValue {
font-size: 40px;
right: 10px;
}
.characterMpBar {
height: 20px;
}
.characterMpValue {
font-size: 40px;
}
.characterPortrait {
position: absolute;
top: 10px;
bottom: 15px;
left: 50px;
width: 125px;
background: no-repeat center / cover;
z-index: 0;
}
.characterTurns {
position: absolute;
top: 5px;
left: 5px;
width: 40px;
height: 40px;
font-size: 40px;
font-weight: bold;
-webkit-text-stroke: 2px black;
text-shadow: 2px 2px 2px black ;
line-height: 40px;
text-align: center;
box-sizing: border-box;
border: 2px solid black;
border-radius: 9px 0;
color: white;
background-color: deepskyblue;
}
.characterTurnsDone {
background-color: darkblue;
}
.characterSp {
position: absolute;
color: white;
line-height: 40px;
-webkit-text-stroke: 2px black;
text-shadow: 2px 2px 2px black ;
font-size: 30px;
letter-spacing: -3px;
text-align: center;
font-weight: bold;
bottom: 5px;
left: 5px;
width: 40px;
height: 40px;
}
.characterSpFabula {
background: url("fabula-points.svg");
}
.characterSpUltima {
background: url("ultima-points.svg");
}
.characterSp {
opacity: 50%;
transition: opacity 0.3s ease-out;
}
.characterSp:hover {
opacity: 100%;
}