puzzle/game/style.css

248 lines
4.1 KiB
CSS
Raw Normal View History

2020-11-25 22:03:35 +01:00
:root {
--main-color: #c1b19f;
--link-color: #808db0;
--link-hover-color: #c5cfeb;
--highlight-color: #dd7e7e;
--input-bg-color: #262523;
--bg-color: rgba(0,0,0,.7);
}
html,
body {
margin: 0;
background: #2b2b2b;
color: var(--main-color);
height: 100%;
2021-04-27 09:46:39 +02:00
}
* {
font-family: monospace;
font-size: 15px;
}
h1, h2, h3, h4 {
font-size: 20px;
2020-11-25 22:03:35 +01:00
}
a { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--link-hover-color); }
.scores {
position: absolute;
right: 0;
2020-12-22 22:35:09 +01:00
top: 0;
2020-11-25 22:03:35 +01:00
background: var(--bg-color);
padding: 5px;
border: solid 1px black;
box-shadow: 0 0 10px 0 rgba(0,0,0,.7);
}
2020-12-07 02:38:07 +01:00
.timer {
position: absolute;
left: 0;
2020-12-22 22:35:09 +01:00
top: 0;
2020-12-07 02:38:07 +01:00
background: var(--bg-color);
padding: 5px;
border: solid 1px black;
box-shadow: 0 0 10px 0 rgba(0,0,0,.7);
}
2020-11-25 22:03:35 +01:00
.menu {
position: absolute;
2020-12-22 22:35:09 +01:00
top: 0;
2020-11-25 22:03:35 +01:00
left: 50%;
transform: translateX(-50%);
background: var(--bg-color);
padding: 5px;
border: solid 1px black;
box-shadow: 0 0 10px 0 rgba(0,0,0,.7);
z-index: 2;
}
.closed {
display: none;
}
.overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
background: var(--bg-color);
}
.overlay.transparent {
background: transparent;
}
2021-04-27 09:46:39 +02:00
.help {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
background: var(--bg-color);
padding: 5px;
border: solid 1px black;
box-shadow: 0 0 10px 0 rgba(0,0,0,.7);
z-index: 1;
}
.settings {
2020-11-25 22:03:35 +01:00
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
background: var(--bg-color);
padding: 5px;
border: solid 1px black;
box-shadow: 0 0 10px 0 rgba(0,0,0,.7);
z-index: 1;
}
.preview {
position: absolute;
top: 20px;
left: 20px;
bottom: 20px;
right: 20px;
}
.preview .img {
height: 100%;
width: 100%;
position: absolute;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
.menu .opener {
display: inline-block;
margin-right: 10px;
color: var(--link-color);
}
.menu .opener:last-child {
margin-right: 0;
}
.menu .opener:hover {
color: var(--link-hover-color);
cursor: pointer;
}
canvas.loaded {
2020-11-25 22:03:35 +01:00
cursor: none;
}
input {
background: #333230;
border-radius: 4px;
color: var(--main-color);
padding: 6px 10px;
border: solid 1px black;
box-shadow: 0 0 3px rgba(0, 0,0,0.3) inset;
}
input:focus {
border: solid 1px #686767;
background: var(--input-bg-color);
}
.btn {
display: inline-block;
background: var(--input-bg-color);
color: var(--link-color);
border: solid 1px black;
padding: 5px 10px;
box-shadow: 1px 1px 2px rgba(0,0,0,.5), 0 0 1px rgba(150,150,150,.4) inset;
border-radius: 4px;
user-select: none;
}
.btn:hover {
background: #2f2e2c;
color: var(--link-hover-color);
border: solid 1px #111;
box-shadow: 0 0 1px rgba(150,150,150,.4) inset;
cursor: pointer;
}
.btn:disabled {
background: #2f2e2c;
color: #8c4747 !important;
border: solid 1px #111;
box-shadow: 0 0 1px rgba(150,150,150,.4) inset;
cursor: not-allowed;
}
.game-teaser-wrap {
display: inline-block;
width: 20%;
padding: 5px;
box-sizing: border-box;
}
.game-teaser {
display: block;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
position: relative;
padding-top: 56.25%;
width: 100%;
background-color: #222222;
}
.game-info {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
}
.game-info-text {
position: absolute;
top: 0;
background: var(--bg-color);
padding: 5px;
}
2020-12-22 22:35:09 +01:00
.game-replay {
position: absolute;
top: 0;
right: 0;
}
2021-04-20 20:52:31 +02:00
.imageteaser {
width: 150px;
height: 100px;
display: inline-block;
margin: 5px;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
background-color: #222;
}
2021-04-27 09:46:39 +02:00
kbd {
background-color: #eee;
border-radius: 3px;
border: 1px solid #b4b4b4;
box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
color: #333;
display: inline-block;
font-size: .85em;
font-weight: 700;
line-height: 1;
padding: 2px 4px;
white-space: nowrap;
}