vbox highlighting
This commit is contained in:
parent
05a0113ab5
commit
03a35109dc
@ -33,8 +33,12 @@
|
|||||||
## NOW
|
## NOW
|
||||||
|
|
||||||
*CLIENT*
|
*CLIENT*
|
||||||
|
|
||||||
targeting arrows back?
|
targeting arrows back?
|
||||||
|
highlight on touch until buy
|
||||||
|
reconnect based on time delta
|
||||||
|
dont' nav to list on connect
|
||||||
|
menu footer
|
||||||
|
|
||||||
|
|
||||||
*SERVER*
|
*SERVER*
|
||||||
* std game mode
|
* std game mode
|
||||||
@ -92,6 +96,7 @@ targeting arrows back?
|
|||||||
$$$
|
$$$
|
||||||
* Items
|
* Items
|
||||||
* Colour scheme
|
* Colour scheme
|
||||||
|
* targeting highlight colour
|
||||||
* number of constructs
|
* number of constructs
|
||||||
* Highlight (dota) colour
|
* Highlight (dota) colour
|
||||||
* fx colours + styles
|
* fx colours + styles
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
.team {
|
.team {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
grid-auto-columns: minmax(0, 1fr);
|
|
||||||
|
|
||||||
/* stops overflow */
|
/* stops overflow */
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
@ -39,12 +38,12 @@
|
|||||||
.opponent .game-construct {
|
.opponent .game-construct {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
grid-template-rows: min-content min-content min-content minmax(min-content, 2fr);
|
grid-template-rows: min-content min-content min-content minmax(min-content, 2fr);
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"stats ."
|
"stats "
|
||||||
"name ."
|
"name "
|
||||||
"effects ."
|
"effects "
|
||||||
"avatar target";
|
"avatar ";
|
||||||
}
|
}
|
||||||
|
|
||||||
.opponent .game-construct .name {
|
.opponent .game-construct .name {
|
||||||
@ -59,14 +58,14 @@
|
|||||||
justify-items: start;
|
justify-items: start;
|
||||||
/*align-items: flex-end;*/
|
/*align-items: flex-end;*/
|
||||||
|
|
||||||
grid-template-rows: min-content minmax(min-content, 2fr) min-content min-content min-content;
|
grid-template-rows: min-content minmax(min-content, 1fr) min-content min-content min-content;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"skills ."
|
"skills "
|
||||||
"avatar target"
|
"avatar "
|
||||||
"effects ."
|
"effects "
|
||||||
"name ."
|
"name "
|
||||||
"stats .";
|
"stats ";
|
||||||
|
|
||||||
transition-property: all;
|
transition-property: all;
|
||||||
transition-duration: 0.25s;
|
transition-duration: 0.25s;
|
||||||
@ -98,15 +97,14 @@
|
|||||||
.game-construct .stats {
|
.game-construct .stats {
|
||||||
grid-area: stats;
|
grid-area: stats;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-construct .stats div {
|
.game-construct .stats div {
|
||||||
padding: 0 0.5em;
|
padding: 0 0.5em;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
flex: 1;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@ -203,7 +201,6 @@
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
CONSTRUCT DAMAGE
|
|
||||||
|
|
||||||
.game-construct.active-skill {
|
.game-construct.active-skill {
|
||||||
filter: drop-shadow(0 0 0.2em silver);
|
filter: drop-shadow(0 0 0.2em silver);
|
||||||
@ -299,8 +296,15 @@ CONSTRUCT DAMAGE
|
|||||||
|
|
||||||
.game .avatar {
|
.game .avatar {
|
||||||
grid-area: avatar;
|
grid-area: avatar;
|
||||||
background: forestgreen;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
grid-area: avatar;
|
||||||
|
object-fit: contain;
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@keyframes rotate {
|
/*@keyframes rotate {
|
||||||
@ -409,6 +413,10 @@ CONSTRUCT DAMAGE
|
|||||||
height: 1em;
|
height: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.game .stats div {
|
||||||
|
margin: 0 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
.game .effects {
|
.game .effects {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -150,10 +150,15 @@
|
|||||||
transition-property: color, background, border;
|
transition-property: color, background, border;
|
||||||
transition-duration: 0.5s;
|
transition-duration: 0.5s;
|
||||||
transition-delay: 0;
|
transition-delay: 0;
|
||||||
transition-timing-function: ease;
|
transition-timing-function: linear;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vbox-table td:active {
|
||||||
|
background: whitesmoke;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
/* CONSTRUCT LIST */
|
/* CONSTRUCT LIST */
|
||||||
|
|
||||||
.construct-list {
|
.construct-list {
|
||||||
@ -224,20 +229,6 @@
|
|||||||
border-width: 0px;
|
border-width: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*button.action {
|
|
||||||
animation: action 1s infinite ease-in-out alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes action {
|
|
||||||
0% {
|
|
||||||
box-shadow: inset 0 0 0 0 whitesmoke;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
box-shadow: inset 0.5em 0 0 0 whitesmoke;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
.construct-list .specs {
|
.construct-list .specs {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
grid-area: specs;
|
grid-area: specs;
|
||||||
|
|||||||
@ -100,9 +100,8 @@ function GameConstruct(props) {
|
|||||||
className={`game-construct ${ko} ${classes}`} >
|
className={`game-construct ${ko} ${classes}`} >
|
||||||
<h3 className="name"> {construct.name} </h3>
|
<h3 className="name"> {construct.name} </h3>
|
||||||
{crypSkills}
|
{crypSkills}
|
||||||
<div className="avatar"></div>
|
|
||||||
<div className="targeting"> {targeting} </div>
|
|
||||||
<div className="stats"> {stats} </div>
|
<div className="stats"> {stats} </div>
|
||||||
|
<ConstructAvatar name={construct.name} id={construct.id} />
|
||||||
<div className="effects"> {effects} </div>
|
<div className="effects"> {effects} </div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -82,11 +82,10 @@ function clearAnimation(id) {
|
|||||||
class ConstructAvatar extends Component {
|
class ConstructAvatar extends Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<img
|
<div
|
||||||
|
className="avatar"
|
||||||
id={this.props.id}
|
id={this.props.id}
|
||||||
src={`/molecules/${genAvatar(this.props.name)}.svg`}
|
style={{'background-image': `url(/molecules/${genAvatar(this.props.name)}.svg)`}}
|
||||||
height="500"
|
|
||||||
onError={event => event.target.setAttribute('src', '/molecules/726.svg')}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user