nikoli/views/application.scss

146 lines
2.0 KiB
SCSS
Raw Normal View History

2014-12-05 12:38:43 +01:00
body {
font-family: Verdana,Arial,sans-serif;
2014-12-05 17:58:52 +01:00
background-color: #aaa;
margin: 0;
padding: 0;
}
2014-12-08 12:32:01 +01:00
2014-12-13 15:21:01 +01:00
h1 {
margin: 10px 0;
}
2014-12-08 12:32:01 +01:00
ul {
list-style-type: none;
padding: 0;
margin: 0;
li {
margin: 5px 0;
a {
display: block;
width: 100%;
height: 100%;
2014-12-13 15:21:01 +01:00
font-size: 1.2em;
padding: 15px 0;
2014-12-08 12:32:01 +01:00
}
}
}
2014-12-13 15:21:01 +01:00
button, a {
border: none;
background-color: #eee;
color: #000;
border-radius: 3px;
text-decoration: none;
cursor: pointer;
&:hover {
background-color: #ccc;
}
}
button {
margin: 2px;
}
2014-12-05 17:58:52 +01:00
#main {
2014-12-13 15:21:01 +01:00
max-width: 500px;
2014-12-05 17:58:52 +01:00
margin: 0 auto;
2014-12-13 15:21:01 +01:00
padding: 0;
2014-12-05 17:58:52 +01:00
text-align: center;
2014-12-05 12:38:43 +01:00
}
2014-12-08 12:32:01 +01:00
2014-12-05 12:38:43 +01:00
.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;
}
.congratulations, .errors {
2014-12-11 22:29:46 +01:00
font-weight: bold;
padding: 20px 0;
margin: 10px 0;
border-radius: 3px;
display: none;
}
.congratulations {
background-color: #4a4;
color: #060;
}
.errors {
background-color: #a44;
color: #600;
}
2014-12-11 22:29:46 +01:00
.show {
display: block;
}
2014-12-05 12:38:43 +01:00
.white {
background-color: #fff;
}
.black {
2014-12-11 17:26:08 +01:00
background-color: transparent;
}
.error {
box-shadow: 0 0 10px 0 #c00 inset;
2014-12-05 12:38:43 +01:00
}
2014-12-08 12:45:33 +01:00
2014-12-08 17:48:22 +01:00
.hitori {
.black {
opacity: 0.1;
}
}
2014-12-11 17:26:08 +01:00
.akari {
2014-12-11 22:29:46 +01:00
.white {
2014-12-11 17:26:08 +01:00
background-color: #222;
2014-12-11 22:29:46 +01:00
color: #fff;
}
.black {
background-color: #fff;
2014-12-11 17:26:08 +01:00
}
.light {
box-shadow: 0 0 10px 5px #ffb inset;
}
}
2014-12-08 12:45:33 +01:00
.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;
}
}