-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathstyle2.css
108 lines (91 loc) · 1.68 KB
/
style2.css
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
@import url('https://fonts.googleapis.com/css2?family=Text+Me+One&display=swap');
* {
/* border: solid black 1px;*/
box-sizing: border-box;
font-family: 'Text Me One', sans-serif;
}
body {
display: grid;
grid-gap: 10px;
grid-template-areas:
'header header'
'canvas settings'
'canvas controls'
'footer footer';
grid-template-columns: max-content max-content;
grid-template-rows: max-content max-content max-content max-content;
height: max-content;
width: max-content;
}
header {
grid-area: header;
font-size: 2em;
font-weight: bold;
padding: 10px;
text-align: center;
}
canvas {
grid-area: canvas;
}
label {
display: inline-block;
width: 75px;
}
.cols {
grid-area: cols;
}
.rows {
grid-area: rows;
}
.generate {
grid-area: generate;
}
.controls {
display: grid;
grid-template-areas:
'. up .'
'left . right'
'. down .';
grid-template-columns: max-content max-content max-content;
grid-template-rows: max-content max-content max-content;
}
.up, .right, .down, .left {
background-color: grey;
color: white;
cursor: pointer;
font-size: 1.2em;
font-weight: bold;
height: 35px;
padding: auto;
width: 35px;
}
.up {
grid-area: up;
}
.right {
grid-area: right;
}
.down {
grid-area: down;
}
.left {
grid-area: left;
}
footer {
grid-area: footer;
text-align: center;
}
footer > a:hover {
background-color: lightgrey;
}
@media (max-width: 640px) {
body {
grid-template-areas:
'header header'
'canvas canvas'
'settings controls'
'footer footer';
grid-template-columns: max-content max-content;
grid-template-rows: max-content max-content max-content max-content;
}
}