-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.scss
87 lines (71 loc) · 1.9 KB
/
styles.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
$color-root: teal;
$color-bg: darken($color-root, 5%);
$color-button: $color-root;
$color-button-highlight: lighten($color-button, 15%);
$color-button-highlight-pressed: lighten($color-button, 10%);
$color-button-shadow: darken($color-button, 15%);
$color-button-shadow-pressed: darken($color-button, 20%);
$margin-button: 10px;
$size-button: 100px;
$size-button-padding: 8px;
$line-height-button: $size-button - 2 * $size-button-padding;
$border-radius-button: 50%;
$button-3d-effect: linear-gradient(135deg, $color-button-highlight, $color-button-shadow);
$button-3d-effect-active: linear-gradient(135deg, $color-button-highlight-pressed, $color-button-shadow-pressed);
body {
background-color: $color-bg;
}
.main {
display: flex;
.universe {
border: solid 2px black;
.grid-column {
flex-direction: column;
.grid-row {
flex-direction: row;
.cell {
display: inline-block;
width: 20px;
height: 20px;
white-space: pre;
}
@for $i from 0 through 15 {
.cell-#{$i} {
background-color: rgb(0, $i * 16, 0);
}
}
}
}
}
.control-area {
display: flex;
flex-direction: column;
font-family: "Open Sans", sans-serif;
}
.evolution-button {
margin: $margin-button;
width: $size-button;
height: $size-button;
padding: $size-button-padding;
border: none;
border-radius: $border-radius-button;
background: $button-3d-effect;
font-family: inherit;
.button-cap {
display: inline-block;
width: 100%;
height: 100%;
box-sizing: border-box;
border-radius: $border-radius-button;
background-color: $color-button;
line-height: $line-height-button;
font-size: 20px;
}
&:active {
background: $button-3d-effect-active;
.button-cap {
background-color: $color-bg;
}
}
}
}