-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
271 lines (238 loc) · 5.87 KB
/
style.css
File metadata and controls
271 lines (238 loc) · 5.87 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
/* Global Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Color Variables for Consistency */
:root {
--dark-bg: #1d2328;
--light-bg: #2f3e46;
--primary-text: #f1f1f1;
--secondary-text: #b8e0d2;
--highlight-color: #ffb900;
--accent-color: #008080;
--hover-bg: #4b6571;
--gradient-start: #005f73;
--gradient-end: #0a9396;
--modal-bg: rgba(0, 0, 0, 0.5);
--code-bg: #2d2d2d;
}
/* Global Styles */
body {
font-family: 'Roboto', sans-serif;
background-image: url('icon.jpg');
background: linear-gradient(135deg, var(--light-bg), #4f5b62);
color: var(--primary-text);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
overflow-x: hidden;
}
.container {
display: flex;
flex-direction: column;
max-width: 1200px;
width: 100%;
background-color: var(--dark-bg);
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.container:hover {
transform: scale(1.02);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}
/* Header */
header {
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
color: var(--primary-text);
text-align: left;
padding: 10px 20px;
font-size: 1rem; /* Smaller font size */
font-weight: 200;
letter-spacing: 1px;
}
/* Data View List */
.data-view-list {
padding: 30px 40px;
display: flex;
flex-direction: column;
gap: 20px;
overflow-y: auto;
}
.data-view-list h2 {
font-size: 1.4rem; /* Smaller font size */
font-weight: 600;
color: var(--secondary-text);
margin-bottom: 15px;
}
.data-view-option {
display: flex;
align-items: center;
gap: 15px;
padding: 14px 18px;
border-radius: 8px;
cursor: pointer;
background-color: #2d3c42;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
font-size: 1rem; /* Smaller font size */
color: var(--secondary-text);
}
.data-view-option:hover {
background-color: var(--hover-bg);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.data-view-list input {
transform: scale(1.4);
}
.data-view-list input:checked+label {
font-weight: bold;
color: var(--highlight-color);
}
.data-view-list label {
cursor: pointer;
}
/* Code Editor */
.code-editor-container {
width: 100%;
padding: 20px 40px;
background-color: #222f36;
display: none;
border-top: 1px solid #444;
position: relative;
}
.code-editor-container h2 {
font-size: 1.4rem; /* Smaller font size */
color: var(--highlight-color);
margin-bottom: 20px;
font-weight: 600;
}
.copy-btn {
background-color: var(--accent-color);
color: white;
border: none;
border-radius: 8px;
padding: 12px 20px;
cursor: pointer;
font-size: 1rem; /* Smaller font size */
transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
position: absolute;
top: 20px;
right: 20px;
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.copy-btn:hover {
background-color: var(--highlight-color);
color: var(--gradient-start);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
transform: scale(1.05);
}
.copy-btn i {
margin-right: 8px;
}
pre {
max-height: 500px;
overflow-y: auto;
padding: 20px;
background-color: var(--code-bg);
border-radius: 10px;
border: 1px solid #444;
font-size: 0.9rem; /* Smaller font size */
font-family: 'Source Code Pro', monospace;
color: #f8f8f2;
}
pre::-webkit-scrollbar {
width: 10px;
}
pre::-webkit-scrollbar-thumb {
background: var(--highlight-color);
border-radius: 5px;
}
pre::-webkit-scrollbar-track {
background: #444;
}
/* Responsive Design */
@media (min-width: 768px) {
.container {
flex-direction: row;
height: 700px;
padding: 40px;
}
.data-view-list {
width: 30%;
border-right: 1px solid #444;
}
.code-editor-container {
width: 70%;
}
/* Style for the Home Page Link */
.home-page-btn {
display: inline-block;
padding: 12px 24px;
background-color: var(--gradient-start);
color: #fff;
text-decoration: none;
font-size: 1rem; /* Smaller font size */
border-radius: 8px;
text-align: center;
transition: background-color 0.3s ease, transform 0.3s ease;
margin-bottom: 20px;
}
.home-page-btn:hover {
background-color: var(--gradient-end);
transform: scale(1.05);
}
}
/* Modal */
.copy-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--modal-bg);
justify-content: center;
align-items: center;
animation: fadeIn 0.3s ease-in-out;
}
.copy-modal.show {
display: flex;
}
.copy-modal-content {
background-color: var(--dark-bg);
padding: 30px;
border-radius: 10px;
color: var(--primary-text);
text-align: center;
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* Home Button */
.home-page-btn {
display: inline-block;
padding: 12px 24px;
background-color: var(--primary-color);
color: var(--text-color);
text-decoration: none;
font-size: 1rem; /* Smaller font size */
border-radius: 8px;
text-align: center;
margin-bottom: 30px;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.home-page-btn:hover,
.home-page-btn:focus {
background-color: var(--accent-color);
transform: scale(1.05);
}