summaryrefslogtreecommitdiff
path: root/pixeled.css
blob: 5f02f1905db5c0db00b36523cb9ec8f5d899b41a (plain)
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
html, body {
	margin: 0;
	padding: 0;
	user-select: none;
	font-size: 1vmin;
	color: #fff;
}

button {
	border: 0;
	font-size: inherit;
	font-family: inherit;
	color: inherit;
	font-size: 3rem;
	margin-collapse: collapse;
	text-shadow: 0 0 3px #000;
}

#app_area {
	display: grid;
	grid-template-areas:
		"bar editor";
	grid-template-columns: minmax(50rem,30vw) auto;
	height: 100vh;
	width: 100vw;
}

/* The area behind the grid */
#workspace {
	background: #1e3526 linear-gradient(to right, #000000 -7%, transparent 8%);
	grid-area: editor;
	display: grid;
	overflow: scroll;
	grid-template-rows: calc(100% - 7rem) 1fr;
}

/* the canvas we're drawing on in the app */
#grid_container {
	display: grid;
	grid-template-columns: repeat(16, 1fr);
	border: 6px solid #000;
	/* gap: 1px; */
	background: #888;
	aspect-ratio: 1;
	box-shadow: 0 0 3.2rem #000;
	z-index: 1;
	height: 75vmin;
	align-self: center;
	justify-self: center;
}

/* 'pixels' on the canvas itself */
#grid_container > div {
	background: white;
	aspect-ratio: 1;
}

.show_grid > div {
	border-bottom: 1px solid #777;
	border-right: 1px solid #777;
	border-collapse: collapse;
}

#grid_caption {
	align-self: center;
	justify-self: center;
	font-size: 4rem;
}

#toolbox {
	grid-area: bar;
	background: #00762a;
	border-right: 3px solid #0b3a1d;
	display: grid;
	box-sizing: border-box;
	padding: 0 1em 1em 1em;
	font-size: 3rem;
	font-family: "PT Mono", "Envy Code R", "Liberation Mono", "DejaVu Sans", monospace;
	font-weight: bold;
	z-index: 2;
	gap: 2rem;
	grid-template-rows: 10vh 15vh 20vh 1fr 1fr 1fr 1fr 1fr;
}

#toolbox > header {
	margin: 0;
	padding: 0;
	font-size: 3em;
	text-align: center;
	text-shadow: 0 0 3px #000;
	align-self: center;
	justify-self: center;
}

#color_picker {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

#color_picker > div {
	display: grid;
	grid-template-rows: 70% 30%;
	text-align: center;
	font-weight: bold;
	font-size: 1.3em;
}

#color_picker > div.selected {
	background: rgba(255,255,255, 0.4);
}

#color_picker > div > .swatch {
	aspect-ratio: 1;
	margin: 0.4em auto 0.2em auto;
	display: block;
	height: 4rem;
}

#black_pick > .swatch {
	background: #000;
}

#white_pick > .swatch {
	background: #fff;
}

#custom_pick > .swatch {
}

#canvas_opts {
	display: grid;
	grid-template-rows: 2.5rem 1fr 1fr;
}

#rainbow {
	background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
	border: 2px solid rgba(0,0,0,0.4);
}

#darken {
	background: #0b3a1d;
}

#lighten {
	background: #20964a;
}

button.selected {
	border: 4px solid #fff !important;
}

#btn_overlay {
}