-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcanva.css
More file actions
167 lines (150 loc) · 3.02 KB
/
canva.css
File metadata and controls
167 lines (150 loc) · 3.02 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: #000;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#canvas {
width: calc(100% - 2em);
height: 80vh;
border: 2px solid blue;
touch-action: none;
margin: 1em;
margin-top: 3rem;
cursor: url('./pencil.png');
}
.clr:nth-child(1) {
background-color: #000;
}
.clr:nth-child(2) {
background-color: red;
}
.clr:nth-child(3) {
background-color: orange;
}
.clr:nth-child(4) {
background-color: blue;
}
.clr:nth-child(5) {
background-color: purple;
}
.clr:nth-child(6) {
background-color: yellowgreen;
}
.clr:nth-child(7) {
background-color: yellow;
}
.clr:nth-child(8) {
background-color: white;
}
nav ul {
display: flex;
justify-content: space-between;
list-style: none;
flex-wrap: wrap;
}
nav ul li {
margin: 0;
padding: 0;
}
.second {
display: flex;
flex-wrap: wrap;
}
nav ul li a button,
nav ul li button {
width: 120px;
height: 25px;
font-size: 16px;
font-weight: bold;
border: 1px solid #fff;
color: #fff;
background-color: rgba(255, 44, 255, 1);
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
nav ul li a button:hover,
nav ul li button:hover {
background-color: transparent;
border: 1px solid pink;
color: pink;
}
nav ul li a button:active,
nav ul li button:active {
background-color: rgba(115, 255, 249, 1);
}
.nav {
position: fixed;
top: 15%;
left: 50%;
transform: translateX(-50%);
display: flex;
justify-content: space-around;
flex-wrap: wrap;
align-items: center;
background: linear-gradient(to bottom, rgba(255, 44, 255, 1), rgba(115, 255, 249, 1));
padding: 10px;
border-radius: 25px;
border: 2px solid white;
box-shadow: inset 2px white;
transition: opacity 0.5s;
}
.nav div,
button,
input {
margin: 0.1rem;
}
.clr {
height: 2.5em;
width: 2.5em;
border-radius: 50%;
background-color: #fff;
border: 3px solid rgba(252, 254, 73, 1);
transition: transform 0.5s;
}
.clr:hover {
transform: scale(0.8);
}
.active {
transform: scale(0.8);
}
input[type="color"] {
width: 60px;
height: 40px;
color: white;
}
#brushSize {
background: linear-gradient(to right, #000428 0%, #004e92 100%);
height: 7px;
outline: none;
appearance: none;
cursor: ew-resize;
border-radius: 5px;
border: 3px solid white;
accent-color: white;
}
/* Footer styles */
.footer {
background-color: rgba(255, 44, 255, 1);
color: white;
text-align: center;
padding: 1rem 0;
position: fixed;
bottom: 0;
width: 100%;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
.footer p {
margin: 0;
font-size: 1rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.footer p {
font-size: 0.875rem;
}
}