-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
106 lines (88 loc) · 1.65 KB
/
index.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
body {
margin: 0;
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
height: 100vh;
}
.toolbar {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
background-color: #f1f1f1;
border-bottom: 1px solid #ccc;
flex-wrap: wrap;
}
.toolbar label {
font-size: 14px;
}
input[type="color"] {
width: 40px;
height: 40px;
padding: 0;
}
input[type="range"] {
width: 100px;
}
button {
padding: 8px 12px;
font-size: 14px;
cursor: pointer;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
}
button:hover {
background-color: #45a049;
}
canvas {
flex-grow: 1;
width: 100%;
height: 100%;
background-color: #fff;
cursor: crosshair;
box-sizing: border-box;
}
/* Mobile responsiveness */
@media (max-width: 600px) {
.toolbar {
flex-direction: column;
align-items: flex-start;
}
input[type="color"], input[type="range"], button {
width: 100%;
margin-bottom: 5px;
}
input[type="color"] {
width: 40px;
height: 40px;
}
input[type="range"] {
width: 80%;
}
button {
width: 100%;
}
canvas {
width: 100%;
height: auto; /* Adjust the canvas height to maintain aspect ratio */
}
}
@media (max-width: 400px) {
.toolbar {
padding: 8px;
}
input[type="color"] {
width: 35px;
height: 35px;
}
input[type="range"] {
width: 70%;
}
button {
padding: 6px 10px;
font-size: 12px;
}
}