MultiplayerMinesweeper/www/style.css

269 lines
4.6 KiB
CSS

canvas {
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
-o-user-select: none;
user-select: none;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-crisp-edges;
image-rendering: pixelated;
image-rendering: crisp-edges;
border: solid white;
border-radius: 6px;
border-width: 3px;
}
@font-face {
font-family: "serif";
src: url("pixserif.woff2") format('woff2');
}
.left{
display: block;
transform: translate(0, 50px);
float:left;
width: 100px;
height: 437px;
background: darkolivegreen;
}
.right{
display: block;
transform: translate(0, 50px);
float:right;
width: 100px;
height: 437px;
background: darkolivegreen;
}
.top {
position: absolute;
background: salmon;
width: 632px;
height: 50px;
}
.bottom{
position: absolute;
background: coral;
width:632px;
height:100px;
transform: translate(0, 486px);
}
#mydiv {
position: absolute;
cursor: move;
z-index: 10;
background: coral;
width: 30px;
height: 30px;
border: 1px solid #d3d3d3;
}
span.button > img {
pointer-events: none;
image-rendering: optimizeSpeed; /* STOP SMOOTHING, GIVE ME SPEED */
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
image-rendering: pixelated; /* Chrome */
-ms-interpolation-mode: nearest-neighbor; /* IE8+*/
width: 70px;
height: 70px;
transform: translate(0, 8px);
border: 2px solid darkgray;
border-radius: 4px;
background: lightgray;
}
span.button {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
display: inline-block;
background: tan;
width:90px;
height:90px;
margin: 5px 5px 5px 5px;
vertical-align: middle;
border-radius: 3px;
white-space: normal;
align-items: center;
cursor: pointer;
}
span.button:hover {
background: gray;
}
.canvas1{
z-index: 0;
position: absolute;
transform: translate(-50%, 0);
}
.canvas2{
z-index: 1;
position: absolute;
transform: translate(-50%, 0);
}
.canvas3 {
z-index: 2;
position: absolute;
transform: translate(-50%, 0);
}
.canvasStack {
position: absolute;
top: 50px;
background: darkslategray;
/* display: block; */
/* position: relative; */
/* top: 150px; */
}
.wrapper {
left: 50%;
transform: translate(-50%, 0);
position: absolute;
background: khaki;
width: 632px;
height: 586px;
}
.hidden {
display: none;
}
body {
text-align: center;
background-color: #2c2f33;
color: white;
font-variant: normal;
font-family: verdana;
}
/* .wrapper {
position: fixed;
left: 50%;
transform: translate(-50%, 0);
background-color: #ff00ff;
} */
.container{
margin: 0px;
}
h1 {
font-size: 25pt;
}
h2 {
font-size: 20pt;
}
p{
/* font-size: 12pt; */
/* text-align: left; */
margin: 0;
}
h4 {
font-size: 12pt;
padding: 0;
margin: 0;
}
.startButton {
width: 100.5%;
background-color: #4CAF50;
color: white;
padding-top: 14px;
padding-bottom: 14px;
margin-top: 4px;
margin-bottom: 4px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.subSection {
width: 100%;
text-align: center;
font-size: 12pt;
color: white;
padding: 0;
background-color: #4d5259;
border-style: solid;
border: solid white;
border-radius: 6px;
padding-bottom: 2px;
padding-top: 2px;
margin-top: 3px;
margin-bottom: 3px;
}
.slider {
-webkit-appearance: none;
width: 98%;
background: none;
outline: none;
margin-top: 10px;
margin-bottom: 10px;
height: 1px;
border: 2px solid #white;
background-color: #fff;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
border: 1px solid #bdc3c7;
width: 20px;
height: 20px;
background: #4CAF50;
border-radius: 3px;
cursor: pointer;
}
.slider::-moz-range-thumb {
border: 1px solid #bdc3c7;
width: 20px;
height: 20px;
background: #4CAF50;
border-radius: 3px;
cursor: pointer;
}
.slider::-moz-range-track {
width: 100%;
height: 5px;
background-color: #fff;
}
.inline{
display:inline-block;
margin: auto;
}
span.spacer{
display:inline-block;
width: 1px;
height: 25px;
color: #fff;
background-color: #fff;
border: 1px solid #fff;
border-radius: 6px;
}