nikoli/views/application.scss

110 lines
1.6 KiB
SCSS

body {
font-family: Verdana,Arial,sans-serif;
background-color: #aaa;
margin: 0;
padding: 0;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
li {
margin: 5px 0;
a {
background-color: #eee;
color: #000;
font-size: 1.2em;
border-radius: 3px;
padding: 15px 0;
text-decoration: none;
display: block;
width: 100%;
height: 100%;
&:hover {
background-color: #ccc;
}
}
}
}
#main {
width: 500px;
margin: 0 auto;
padding: 20px;
text-align: center;
}
.game-container {
cursor: default;
font-weight: bold;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.grid-cell {
background-color: #ddd;
width: 30px;
height: 30px;
display: inline-block;
margin: 1px;
padding: 5px;
border-radius: 3px;
text-align: center;
line-height: 30px;
font-size: 1.2em;
}
.white {
background-color: #fff;
}
.black {
background-color: transparent;
}
.error {
box-shadow: 0 0 10px 0 #c00 inset;
}
.hitori {
.black {
opacity: 0.1;
}
}
.akari {
.black {
background-color: #222;
}
.light {
box-shadow: 0 0 10px 5px #ffb inset;
}
}
.sudoku {
$sudoku-separation: 5px;
.grid-row:nth-child(3n) {
margin-bottom: $sudoku-separation;
}
.grid-cell:nth-child(3n) {
margin-right: $sudoku-separation;
}
input {
text-align: center;
width: 80%;
height: 80%;
border: none;
background: transparent;
font-family: Verdana,Arial,sans-serif;
font-size: 1.2em;
}
}