This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
104 lines (93 loc) · 1.75 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: rgb(101, 135, 255);
}
.container {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 20px;
flex-wrap: wrap;
padding: 20px;
width: 90%;
max-width: 600px;
background-color: white;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.preview {
width: 45%;
height: 300px;
display: flex;
justify-content: center;
align-items: center;
}
.box {
width: 150px;
height: 150px;
background-color: #3498db;
border-radius: 5px;
}
.controls {
width: 45%;
display: flex;
flex-direction: column;
gap: 10px;
width: 250px;
}
.control-group {
display: flex;
flex-direction: column;
gap: 5px;
}
label {
font-size: 14px;
color: #333;
}
input[type="range"] {
width: 100%;
}
input[type="color"] {
border: 0px solid;
width: 100%;
height: 40px;
}
.code-output {
width: 100%;
margin-top: 20px;
padding: 10px;
background-color: #f8f9fa;
border-radius: 5px;
font-family: monospace;
text-align: center;
}
@media screen and (max-width: 600px) {
.container {
height: 80vh;
width: 90%;
}
.preview {
margin: 0px;
padding: 0px;
max-height: 150px;
max-width: 150px;
margin: 10px;
}
.controls {
width: 100%;
}
.code-output{
margin-top: 0px;
}
}