-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.scss
117 lines (88 loc) · 1.8 KB
/
style.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
* {
box-sizing: border-box;
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
width: 800px;
margin: auto;
}
h1 { margin-top: 10px; }
h1.subhead {
font-style: italic;
color: grey;
font-size: 18px;
font-weight: normal;
}
p { margin: 10px 0; }
main { margin-bottom: 20px; }
$color_1: #e94040;
$color_2: #FF8049;
$color_3: #7560E0;
svg#main {
path { fill: none; }
#robot1 { fill: $color_1; }
#robot2 { fill: $color_2; }
#robot3 { fill: $color_3; }
display: inline-block;
position: absolute;
top: 10px;
left: 0;
}
.svg-container {
display: inline-block;
position: relative;
width: 100%;
padding-bottom: 100%;
vertical-align: top;
overflow: hidden;
}
form#weights {
margin-bottom: 20px;
display: flex;
flex-direction: row;
& > div {
flex-grow: 1;
min-width: 150px;
display: flex;
flex-direction: column;
}
input {
display: block;
width: 75px;
font-size: 20px;
font-family: monospace;
border-radius: 4px;
border: 2px solid;
padding: 5px;
}
div.robot1 input { border-color: $color_1; }
div.robot2 input { border-color: $color_2; }
div.robot3 input { border-color: $color_3; }
}
@media (max-width: 450px) {
form#weights {
flex-direction: column;
& > div {
flex-direction: row;
& > div { flex-grow: 1; }
}
}
}
@media (max-width: 800px) {
h1, h1.subhead {
padding: 0 15px;
width: 100vw;
}
main {
width: 100vw;
padding: 0 15px;
}
p { font-size: 16px; }
svg#main {
width: 100%;
text {
font-size: 50px;
}
}
}