teacherGames/mj/main.css

78 lines
1.2 KiB
CSS
Raw Permalink Normal View History

body {
margin: 0;
2020-04-23 21:35:35 +00:00
font-family: sans-serif;
}
2020-04-23 21:35:35 +00:00
* {
box-sizing: border-box;
}
.fs,
body,
html {
width: 100%;
height: 100%;
overflow: hidden;
}
.card,
.cp {
display: flex;
align-items: center;
justify-content: center;
2020-04-23 21:35:35 +00:00
}
.button {
background-color: rgba(0, 0, 0, 0);
transition: background-color 200ms ease-in-out;
}
.button:hover {
background-color: rgba(0, 0, 0, 0.2);
}
.cp {
color: white;
font-family: monospace;
font-size: 48px;
}
.card {
width: 150px;
height: 220px;
background-color: #d8ecbe;
margin: 5px;
float: left;
2020-04-23 21:35:35 +00:00
box-shadow: #000000 1px 1px 5px -1px;
font-size: 17pt;
color: #4c4c4c;
opacity: 1;
2020-04-23 21:35:35 +00:00
user-select: none;
transition: background-color 200ms ease-in-out,
opacity 200ms ease-in-out,
top 200ms ease-in-out,
left 200ms ease-in-out,
transform 100ms ease-in-out;
}
.selected {
2020-04-23 21:35:35 +00:00
background-color: #8bc9ee;
z-index: 5;
}
.card.selected:hover {
2020-04-23 21:35:35 +00:00
background-color: #8bc9ee;
}
.card:hover {
background-color: #e3cfbb;
2020-04-23 21:35:35 +00:00
}
.panel {
position: absolute;
top: 0;
left: 0;
width: 100%;
background-color: #198cfc;
box-shadow: #000000 0px 1px 4px 0px;
}