-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
229 lines (205 loc) · 7.23 KB
/
style.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
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
/* Resetting default padding and margin for all elements */
* {
padding: 0; /* Remove default padding */
margin: 0; /* Remove default margin */
box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
/* Set the background color for the body */
body {
background-color: #f0f4f8; /* Soft light gray background for a modern look */
font-family: "Poppins", sans-serif; /* Consistent font for the entire body */
color: #333; /* Default text color */
}
/* Main container styling */
.container {
background-color: #ffffff; /* White background for the container */
width: 90vmin; /* Width is 90% of the smaller viewport dimension */
padding: 30px; /* Padding inside the container */
position: absolute; /* Positioned relative to the nearest positioned ancestor */
transform: translate(
-50%,
-50%
); /* Center the container both vertically and horizontally */
left: 50%; /* Move to the center of the viewport horizontally */
top: 50%; /* Move to the center of the viewport vertically */
border-radius: 12px; /* Slightly more rounded corners */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Softer shadow for depth */
}
/* Flex container for options */
.options {
display: flex; /* Use flexbox for layout */
flex-wrap: wrap; /* Allow items to wrap onto the next line */
align-items: center; /* Center items vertically */
gap: 10px; /* Space between items */
}
/* Button styling */
button {
height: 32px; /* Adjusted height for buttons */
width: 32px; /* Adjusted width for buttons */
display: grid; /* Use grid layout for centering content */
place-items: center; /* Center content both vertically and horizontally */
border-radius: 5px; /* Rounded corners for a softer shape */
border: none; /* Remove default border */
background-color: #ffffff; /* White background */
outline: none; /* Remove outline on focus */
color: #333; /* Text color */
cursor: pointer; /* Change cursor to pointer */
transition:
background-color 0.2s ease,
box-shadow 0.2s ease; /* Smooth background transition */
}
/* Button hover effect */
button:hover {
background-color: #e0e9ff; /* Light blue background on hover */
}
/* Styling for dropdowns */
select {
padding: 6px; /* Padding inside select box */
border: 1px solid #ccc; /* Light gray border */
border-radius: 4px; /* Rounded corners */
background-color: #ffffff; /* White background */
transition: border-color 0.2s ease; /* Smooth border transition */
}
/* Label and select elements within options */
.options label,
.options select {
font-family: "Poppins", sans-serif; /* Font family for labels and selects */
}
/* Wrapper for input elements */
.input-wrapper {
display: flex; /* Use flexbox for layout */
align-items: center; /* Center items vertically */
gap: 8px; /* Space between items */
}
/* Color input styling */
input[type="color"] {
-webkit-appearance: none; /* Remove default styling for WebKit browsers */
-moz-appearance: none; /* Remove default styling for Firefox */
appearance: none; /* Remove default styling for all browsers */
background-color: transparent; /* Transparent background */
width: 30px; /* Adjusted width for color input */
height: 30px; /* Adjusted height for color input */
border: none; /* Remove default border */
cursor: pointer; /* Change cursor to pointer on hover */
}
/* Styling for the color swatch in WebKit browsers */
input[type="color"]::-webkit-color-swatch {
border-radius: 8px; /* Rounded corners for color swatch */
box-shadow:
0 0 0 2px #ffffff,
/* Outer white shadow */ 0 0 0 3px rgba(0, 0, 0, 0.1); /* Outer shadow */
}
/* Styling for the color swatch in Firefox */
input[type="color"]::-moz-color-swatch {
border-radius: 8px; /* Rounded corners for color swatch */
box-shadow:
0 0 0 2px #ffffff,
/* Outer white shadow */ 0 0 0 3px rgba(0, 0, 0, 0.1); /* Outer shadow */
}
/* Text input area styling */
#text-input {
margin-top: 15px; /* Space above the text input */
border: 1px solid #ddd; /* Light gray border */
padding: 15px; /* Padding inside the text area */
height: 50vh; /* Height is 50% of the viewport height */
overflow-y: auto; /* Allow scrolling if content overflows */
font-family: "Poppins", sans-serif; /* Ensure consistent font */
font-size: 16px; /* Base font size */
line-height: 1.4; /* Improved readability */
color: #333; /* Text color */
background-color: #fff; /* Background color */
border-radius: 6px; /* Slightly rounded corners */
transition: border-color 0.3s ease; /* Smooth border transition */
}
/* Focus state for text input */
#text-input:focus {
outline: none; /* Remove default outline */
border-color: #338cf4; /* Highlight border on focus */
box-shadow: 0 0 5px rgba(51, 140, 244, 0.5); /* Subtle shadow for focus */
}
/* Additional styles for accessibility */
#text-input[aria-invalid="true"] {
border-color: red; /* Indicate error state */
}
/* Active state styling for buttons or elements */
.active {
background-color: #d0e7ff; /* Lighter blue background when active */
box-shadow: 0 0 5px rgba(51, 140, 244, 0.3); /* Subtle shadow for active state */
}
#text-input img {
border: 1px dashed #ccc; /* Optional: Add a border to images for visibility */
margin: 5px 0; /* Optional: Space around images */
}
.small-label {
font-size: 2px; /* Smaller font size */
color: #333; /* Keep consistent color */
}
/* Modal Styling */
.modal {
display: none; /* Initially hidden */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
align-items: center;
justify-content: center;
z-index: 1000; /* Ensure it's on top */
}
.modal-content {
background-color: white;
padding: 20px;
border-radius: 10px;
width: 90vmin;
max-height: 80%;
overflow-y: auto; /* Allow scrolling */
height: 50vh; /* Similar to the text input area height */
border: 1px solid #ddd; /* Border to match the text input */
font-family: "Poppins", sans-serif; /* Same font as text input */
font-size: 16px; /* Match font size */
line-height: 1.4; /* Match line height */
color: #333; /* Text color */
background-color: #fff; /* Background color */
padding: 15px; /* Padding for the modal content */
}
#modal-preview-content{
background-color: white;
padding: 20px;
border-radius: 10px;
width: 90vmin;
max-height: 80%;
overflow-y: auto; /* Allow scrolling */
height: 50vh; /* Similar to the text input area height */
border: 1px solid #ddd; /* Border to match the text input */
font-family: "Poppins", sans-serif; /* Same font as text input */
font-size: 16px; /* Match font size */
line-height: 1.4; /* Match line height */
color: #333; /* Text color */
background-color: #fff; /* Background color */
padding: 15px; /* Padding for the modal content */
}
.close-button {
position: absolute;
top: 10px;
right: 10px;
background: #f44336;
color: white;
border: none;
border-radius: 50%;
padding: 10px;
cursor: pointer;
}
.close-button:hover {
background: #d32f2f;
}
/* Optional styling for smooth transition */
.modal-content {
opacity: 0;
transform: translateY(-20px);
transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal.show .modal-content {
opacity: 1;
transform: translateY(0);
}