minesweeper/scss/index.scss

132 lines
3.1 KiB
SCSS
Raw Normal View History

2020-11-18 11:43:45 +01:00
@font-face {
font-family: "Alarm Clock";
src: url("../res/fonts/alarm\ clock.ttf") format("truetype"),
}
body {
2020-11-08 22:47:13 +01:00
font-family: monospace;
padding: 2em;
margin: 0;
background-color: #111111;
color: white;
2020-11-18 11:43:45 +01:00
h1 {
text-align: center;
}
2020-11-18 11:43:45 +01:00
div#main {
height: 100%;
width: max-content;
display: grid;
grid-template-columns: auto auto;
column-gap: 1em;
margin: 0 auto;
2020-11-18 11:43:45 +01:00
div {
padding: 1em;
2020-11-18 11:43:45 +01:00
margin-bottom: 1em;
2020-11-08 22:47:13 +01:00
border-radius: 0.25em;
background-color: #212121;
2020-11-18 11:43:45 +01:00
display: block;
div#board {
text-align: center;
width: min-content;
display: grid;
2020-11-08 22:47:13 +01:00
column-gap: 3px;
row-gap: 3px;
2020-11-18 11:43:45 +01:00
margin-bottom: 0;
span.cell {
2020-11-08 22:47:13 +01:00
color: white;
text-align: center;
width: 1em;
height: 1em;
2020-11-08 22:47:13 +01:00
padding: 0.4em;
border-radius: 0.1em;
background-color: #303030;
font-size: large;
2020-11-18 11:43:45 +01:00
&.discovered {
2020-11-08 22:47:13 +01:00
background-color: #424242;
}
2020-11-18 11:43:45 +01:00
&.bomb {
2020-11-08 22:47:13 +01:00
background-color: #FC5130;
}
2020-11-18 11:43:45 +01:00
2020-11-08 22:47:13 +01:00
&.flag {
background-color: #51CB20;
}
}
}
2020-11-18 11:43:45 +01:00
}
div:nth-of-type(2) {
min-width: 300px;
div {
margin-bottom: 0;
&#time {
span {
margin: 0 auto;
display: block;
text-align: center;
font-size: 5em;
font-family: "Alarm Clock";
}
2020-11-18 11:43:45 +01:00
}
&#register {
display: none;
}
&#log {
display: none;
font-size: 12px;
div {
max-height: 23rem;
overflow: auto;
span {
display: block;
width: 100%;
color: darkgray;
padding-bottom: 0.5em;
&.error {
color: red;
}
&.alert {
color: orange;
}
&.success {
color: cyan;
}
}
}
}
}
}
}
2020-11-18 11:43:45 +01:00
2020-11-08 22:47:13 +01:00
footer {
2020-11-18 11:43:45 +01:00
position: sticky;
bottom: 0;
2020-11-08 22:47:13 +01:00
left: 1em;
color: darkgray;
height: 1em;
2020-11-18 11:43:45 +01:00
background: #111111;
width: 100%;
padding: 1em;
2020-11-08 22:47:13 +01:00
a {
color: white;
}
}
}