mnml/html-client/cryps.css

315 lines
4.7 KiB
CSS

/*
GLOBAL
*/
body {
background-color: #000000;
font-family: 'Jura';
color: whitesmoke;
font-size: 16pt;
padding: 0 2em;
/*overflow: hidden;*/
user-select: none;
}
button, input {
font-family: 'Jura';
height: auto;
color: whitesmoke;
border-width: 2px;
border-color: whitesmoke;
border-radius: 0;
letter-spacing: 0.25em;
box-sizing: border-box;
/*the transitions */
transition-property: all;
transition-duration: 0.5s;
transition-delay: 0;
transition-timing-function: ease;
}
button:hover, button:focus {
/*colour necesary to bash skellington*/
color: whitesmoke;
border-color: whitesmoke;
}
button.right[disabled]:hover, button.left[disabled]:hover {
box-shadow: none;
}
button.right:hover, button.right:focus {
box-shadow: inset -0.5em 0 0 0 whitesmoke;
}
button.left:hover, button.left:focus {
box-shadow: inset 0.5em 0 0 0 whitesmoke;
}
/*
MENU
*/
.header {
margin-bottom: 1em;
}
.menu-cryps {
display: flex;
flex-flow: row wrap;
align-items: stretch;
justify-content: flex-end;
}
.menu-cryp-ctr {
flex: 0 1 33%;
text-align: center;
}
.menu-cryp {
height: 100%;
margin: 0.5em;
box-sizing: border-box;
border: 1px solid black;
transition-property: border;
transition-duration: 0.5s;
transition-delay: 0;
transition-timing-function: ease;
}
.background {
min-height: 100%;
min-width: 100%;
position: absolute;
z-index: -1000;
background-color: #000000
}
.cryps-title {
font-size: 200%;
display: inline;
}
.login {
display: inline;
margin-right: 0;
}
.header-username {
display: inline;
letter-spacing: 0.25em;
}
.header-status {
text-align: right;
}
.header-status svg {
margin-left: 1em;
height: 1em;
background-color: black;
}
.ping-path {
fill: none;
stroke-width: 4px;
stroke-dasharray: 121, 242;
animation: saw 2s infinite linear;
}
@keyframes saw {
0% {
stroke-dashoffset: 363;
}
100% {
stroke-dashoffset: 0;
}
}
/*
INSTANCE
*/
.green-btn:hover {
transition-property: all;
transition-duration: 2s;
transition-timing-function: ease;
color: forestgreen;
border-color: forestgreen;
/*box-shadow: inset -0.5em 0 0 0 forestgreen;*/
}
.instance-btn {
font-size: 150%;
min-width: 20%;
border-width: 2px;
padding: 0.5em;
display: block;
}
.instance-ui-btn {
font-size: 100%;
min-width: 100%;
padding: 0;
}
.vbox-hdr {
display: flex;
align-items: flex-end;
}
.vbox-hdr div {
flex-grow: 1;
}
.vbox-hdr h3 {
margin: 0;
}
.vbox-btn {
margin: 0;
padding: 0 0.5em;
background-color: whitesmoke;
color: black;
}
.vbox-btn:hover {
color: black;
}
.vbox-table {
table-layout: fixed;
width: 100%;
}
.vbox-table td {
border: 1px solid whitesmoke;
padding: 0.2em;
text-align: center;
height: 40px;
cursor: pointer;
text-transform: uppercase;
}
.spacer {
min-width: 100%;
}
.cryp-list {
display: flex;
flex-flow: column;
}
/* CRYP BOX */
.cryp-box {
display: flex;
flex-flow: row wrap;
justify-content: center;
/*
this controls the size of the box
as it fills the whole container
*/
margin: 0 0 1em 0;
border: 1px solid whitesmoke;
}
/*cheeky one to push them in line with the buttons */
.instance .cryp-box:first-child {
margin-top: -2.5em;
}
.cryp-box .particle {
position: fixed;
z-index: -10;
}
.cryp-box figure {
margin: 0;
flex: 0 1 50%;
text-align: center;
box-sizing: border-box;
display: flex;
flex-flow: column;
}
.cryp-box .stats {
display: flex;
width: 100%;
border-top: 1px solid whitesmoke;
}
.cryp-box .stats figure {
flex: 1 1 0;
border: 0;
align-items: center;
padding: 0.25em 0;
}
.cryp-box .stats figcaption {
font-size: 75%;
}
.cryp-box .stats svg {
height: 1.5em;
stroke-width: 2px;
}
.cryp-box .skills {
width: 50%;
min-width: 150px;
flex: 1 1 50%;
}
.cryp-skill-btn {
font-size: 125%;
border-width: 1px;
width: 100%;
height: 25%;
padding: 0;
margin: 0;
border-bottom-width: 0px;
border-left-width: 1px;
}
.cryp-skill-btn:first-child {
border-top-width: 0;
}
/* GAME */
.game {
display: flex;
height: 100%;
}
.game-cryp-ctr {
display: flex;
flex-flow: row;
align-items: center;
}
.game .cryp-box {
flex: 1 1 60%;
}
.cryp-skill-btn[disabled] {
color: #333333;
}
.game-cryp-ctr.ko {
animation: none;
opacity: 0.5;
}
.stack {
display: flex;
flex-flow: column;
align-items: stretch;
}
.stack-line {
padding-left: 2em;
flex: 1 1 40%;
}