247 lines
3.8 KiB
CSS
247 lines
3.8 KiB
CSS
/* GAME */
|
|
|
|
.game {
|
|
display: grid;
|
|
grid-template-rows: 1.5em 1.5em 1fr 1.5fr;
|
|
grid-template-areas:
|
|
"ready"
|
|
"timer"
|
|
"opponent"
|
|
"player";
|
|
}
|
|
|
|
.team {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-auto-columns: minmax(0, 1fr);
|
|
|
|
/* stops overflow */
|
|
min-height: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.player {
|
|
grid-area: player;
|
|
}
|
|
|
|
.opponent {
|
|
grid-area: opponent;
|
|
}
|
|
|
|
.targeting-arrows {
|
|
grid-area: middle;
|
|
}
|
|
|
|
.opponent .combat-text {
|
|
left: 40%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
|
|
.targeting-arrows path {
|
|
stroke: whitesmoke;
|
|
stroke-width: 4px;
|
|
}
|
|
|
|
.opponent .game-cryp {
|
|
grid-template-rows: auto auto minmax(0, 1fr) auto;
|
|
grid-template-areas:
|
|
"stats"
|
|
"effects"
|
|
"avatar"
|
|
"skills";
|
|
}
|
|
|
|
.game-cryp {
|
|
display: grid;
|
|
|
|
justify-items: center;
|
|
|
|
grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto minmax(0, 1fr);
|
|
grid-template-areas:
|
|
"skills"
|
|
"avatar"
|
|
"effects"
|
|
"stats";
|
|
|
|
transition-property: all;
|
|
transition-duration: 0.5s;
|
|
transition-delay: 0;
|
|
transition-timing-function: ease;
|
|
}
|
|
|
|
.game-cryp .avatar {
|
|
grid-area: avatar;
|
|
/*max-height: 50%;*/
|
|
height: auto;
|
|
}
|
|
|
|
.game-cryp .stats {
|
|
grid-area: stats;
|
|
display: flex;
|
|
flex-flow: row;
|
|
}
|
|
|
|
.game-cryp .skills {
|
|
grid-area: skills;
|
|
display: flex;
|
|
flex-flow: column-reverse;
|
|
}
|
|
|
|
/*@media (max-width: 1000px) {
|
|
.game-cryp .skills {
|
|
flex-flow: column;
|
|
}
|
|
}
|
|
*/
|
|
.game-cryp .effects {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.game-btn {
|
|
flex: 0 0 25%;
|
|
}
|
|
|
|
.game-btn:first-child {
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
.game-cryp button {
|
|
color: #888;
|
|
flex: 1 1 100%;
|
|
font-size: 16pt;
|
|
padding: 0;
|
|
margin: 0 0.5em;
|
|
border-width: 0px;
|
|
}
|
|
|
|
.game-cryp button.active {
|
|
color: whitesmoke;
|
|
}
|
|
|
|
.game-cryp button[disabled], .game-cryp button[disabled]:hover {
|
|
color: #333333;
|
|
font-size: 14pt;
|
|
/*text-decoration: line-through*/
|
|
}
|
|
|
|
.game-cryp button:hover {
|
|
color: whitesmoke;
|
|
}
|
|
|
|
.game-cryp.ko {
|
|
animation: none;
|
|
opacity: 0.5;
|
|
/*opacity: 0.35;*/
|
|
filter: grayscale(100%);
|
|
}
|
|
|
|
.game-cryp.ko button:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.game-cryp.unfocus {
|
|
/*opacity: 0.65;*/
|
|
filter: blur(5px);
|
|
}
|
|
|
|
.combat-text {
|
|
fill: whitesmoke;
|
|
font-size: 2em;
|
|
font-family: 'Jura';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
text-align: center;
|
|
}
|
|
|
|
/*
|
|
CRYP DAMAGE
|
|
*/
|
|
.game-cryp.active-skill {
|
|
filter: drop-shadow(0 0 0.2em silver);
|
|
/*border-color: silver;*/
|
|
}
|
|
|
|
.game-cryp.red-damage {
|
|
filter: drop-shadow(0 0 0.2em red);
|
|
color: red;
|
|
/*border-color: red;*/
|
|
}
|
|
|
|
.red-damage button {
|
|
/*border: 1px solid red;*/
|
|
color: red;
|
|
}
|
|
|
|
.red-damage text {
|
|
fill: red;
|
|
}
|
|
|
|
.red-damage .stats {
|
|
/*border-top: 1px solid red;*/
|
|
}
|
|
|
|
.game-cryp.blue-damage {
|
|
filter: drop-shadow(0 0 0.2em blue);
|
|
color: blue;
|
|
/*border-color: blue;*/
|
|
}
|
|
|
|
.blue-damage button {
|
|
/*border: 1px solid blue;*/
|
|
color: blue;
|
|
}
|
|
|
|
.blue-damage text {
|
|
fill: blue;
|
|
}
|
|
|
|
.blue-damage .stats {
|
|
/*border-top: 1px solid blue;*/
|
|
}
|
|
|
|
.game-cryp.green-damage {
|
|
filter: drop-shadow(0 0 0.2em green);
|
|
color: green;
|
|
/*border-color: green;*/
|
|
}
|
|
|
|
.green-damage button {
|
|
/*border: 1px solid green;*/
|
|
color: green;
|
|
}
|
|
|
|
.green-damage text {
|
|
fill: green;
|
|
}
|
|
|
|
.green-damage .stats {
|
|
/*border-top: 1px solid green;*/
|
|
}
|
|
|
|
.game-cryp.purple-damage {
|
|
filter: drop-shadow(0 0 0.2em purple);
|
|
color: purple;
|
|
border-color: purple;
|
|
}
|
|
|
|
.purple-damage button {
|
|
border: 1px solid purple;
|
|
color: purple;
|
|
}
|
|
|
|
.purple-damage text {
|
|
fill: purple;
|
|
}
|
|
|
|
.purple-damage .stats {
|
|
border-top: 1px solid purple;
|
|
}
|
|
|
|
.img {
|
|
position: relative;
|
|
/* stops them being resized to zero because of redraws*/
|
|
height: 100%;
|
|
}
|