MultiplayerMinesweeper/www/style.css

248 lines
4 KiB
CSS

* {
font-family: pixserif;
}
h1, h2 {
margin: 0px;
}
h1 {
font-size: 3em;
}
h2 {
font-size: 2.5em;
}
h3 {
font-size: 2em;
}
p, span, input, button, u {
font-size: 1.7em;
}
hr {
border-color: white;
/* height: 3px; */
border: none;
height: 3px;
background: white;
margin: 0px;
padding: 0px;
}
.row {
padding: 20px;
display: flex;
justify-content:space-between;
align-items: center;
}
.row > span {
margin-left: 20px;
margin-right: 20px;
}
.leftRight {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.centerBar {
width: 3px;
height: inherit;
background: white
}
.right {
display: inline;
margin: 40px;
/* background: red; */
}
.left {
display: inline;
margin: 40px;
/* background: red; */
}
.sliderNumber {
position: absolute;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
color: black;
font-size: 1.7em;
pointer-events: none;
}
.sliderContainer {
display: flex;
align-items: center;
justify-content: center;
}
.slider {
-webkit-appearance: none;
appearance: none;
height: 55px;
width: 300px;
background-color: lightgray;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 60px;
background: #f1f8t6;
cursor: pointer;
}
.slider::-moz-range-thumb {
width: 20px;
height: 60px;
border-radius: 0px;
background: #f1f8t6;
cursor: pointer;
}
input[type=button], button, .buttonLink {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer; }
input[type=number], input[type=text] {
/* width: 100%; */
width: 300px;
display: inline-block;
padding: 12px 20px;
margin: 3px 0;
border: none;
box-sizing: border-box;
background-color: lightgray; }
@font-face {
/* font-weight: 500; */
font-family: "pixserif";
src: url('fonts/moderndos.woff2') format('woff2'),
url('fonts/moderndos.ttf') format('truetype');
}
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 */
width: 70px;
height: 70px;
transform: translate(0, 10px);
background: lightgray;
}
span.button.wide {
width: 128px;
height: 128px;
}
span.button.wide > img {
width: 108px;
height: 108px;
}
span.button {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
display: inline-block;
background: lightgray;
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;
}
.canvas3 {
z-index: 2;
}
.canvasStack {
/* top: 50px; */
background: darkslategray;
}
#wrapper {
/* display: flex; */
/* justify-content: right; */
/* left: 50%; */
/* transform: translate(-50%, 0); */
/* position: absolute; */
background: khaki;
width: 750px;
height: 750px;
}
#wrapwrap {
display: block;
margin: 0 auto;
margin-left: auto;
margin-right: auto;
}
main {
margin-left: auto;
margin-right: auto;
}
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;
}
.hidden {
display: none;
}
body {
text-align: center;
background-color: #2c2f33;
color: white;
}