minesweeper/scss/index.scss

69 lines
1.9 KiB
SCSS
Raw Normal View History

body {
font-family: 'Courier New', Courier, monospace;
background: #121212;
color: lightgray;
// * {
// border: 1px solid white;
// }
h1 {
text-align: center;
}
div#main {
height: 100%;
width: max-content;
display: grid;
grid-template-columns: auto auto;
column-gap: 1em;
margin: 0 auto;
div {
padding: 1em;
border-radius: 0.75em;
background-color: #1E1E1E;
&#board {
text-align: center;
width: min-content;
display: grid;
grid-template-columns: auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto;
column-gap: 0.25em;
row-gap: 0.25em;
span.cell {
border: 1px solid grey;
color: lightgray;
text-align: center;
width: 1em;
height: 1em;
padding: 0.5em;
border-radius: 0.25em;
&.discovered {
background-color: #5c5c5c;
}
&.bomb {
background-color: #5e3030;
}
}
}
&#log {
font-size: 12px;
width: 20vw;
h2 {
text-align: center;
}
span {
display: block;
width: 100%;
color: darkgray;
padding-bottom: 0.5em;
&.error {
color: red;
}
&.alert {
color: orange;
}
&.success {
color: cyan;
}
}
}
}
}
}