Ezmary commited on
Commit
aaac013
·
verified ·
1 Parent(s): d8fb03d

Update src/App.scss

Browse files
Files changed (1) hide show
  1. src/App.scss +40 -32
src/App.scss CHANGED
@@ -27,21 +27,21 @@
27
  * {
28
  border-color: var(--border);
29
  outline-color: var(--foreground);
30
- box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
31
  }
32
  body {
33
  @apply bg-background text-foreground;
34
- overflow-x: hidden; // Prevents horizontal scroll on the body itself
35
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
36
  -webkit-font-smoothing: antialiased;
37
  -moz-osx-font-smoothing: grayscale;
38
- margin: 0; /* Ensure no default margin on body */
39
- padding: 0; /* Ensure no default padding on body */
40
  }
41
  html {
42
  margin: 0;
43
  padding: 0;
44
- overflow-x: hidden; /* Also apply to html for good measure in iframes */
45
  }
46
  }
47
 
@@ -54,7 +54,7 @@
54
  left: 50%;
55
  transform: translateX(-50%);
56
  z-index: 100;
57
- width: calc(100% - 1rem); /* Reduced side margin for very small screens */
58
  max-width: 28rem;
59
  display: flex;
60
  justify-content: center;
@@ -99,8 +99,7 @@
99
  /* Header controls */
100
  .header-controls {
101
  display: flex;
102
- /* *** MODIFIED: Reduced horizontal padding significantly *** */
103
- padding: 0.75rem 0.5rem; /* 12px top/bottom, 8px left/right */
104
  justify-content: space-between;
105
  align-items: center;
106
  width: 100%;
@@ -108,26 +107,34 @@
108
  top: 0;
109
  left: 0;
110
  z-index: 10;
111
- /* box-sizing: border-box; // Already set globally for * */
112
  }
113
 
114
  .header-button {
115
  display: flex;
116
  align-items: center;
117
  justify-content: center;
118
- padding: 0.5rem; /* 8px padding */
119
- border-radius: var(--radius-lg, 0.625rem);
120
- background-color: #e5e7eb;
 
 
121
  cursor: pointer;
122
- transition: background-color 0.2s;
 
 
 
 
 
 
 
123
 
124
  &:hover {
125
- background-color: #d1d5db;
126
  }
127
 
128
- svg {
129
- opacity: 0.7;
130
- stroke: #374151;
131
  }
132
  }
133
 
@@ -136,24 +143,26 @@
136
  &:hover {
137
  background-color: oklch(0.35 0 0);
138
  }
 
 
 
 
139
  svg {
140
  opacity: 0.8;
141
  stroke: oklch(0.85 0 0);
142
  }
143
  }
144
 
 
145
  /* Footer and Control Buttons */
146
  .footer-controls {
147
  width: 100%;
148
  display: flex;
149
- /* *** MODIFIED: Reduced gap and horizontal padding significantly *** */
150
- gap: 0.5rem; /* 8px gap between buttons */
151
  position: absolute;
152
  bottom: 0;
153
- /* Reduced top/bottom padding slightly, horizontal padding significantly */
154
- padding: 0.75rem 0.5rem; /* 12px top/bottom, 8px left/right */
155
  align-items: center;
156
- /* box-sizing: border-box; // Already set globally for * */
157
 
158
  &.layout-default {
159
  justify-content: space-between;
@@ -164,8 +173,8 @@
164
  }
165
 
166
  .control-button {
167
- height: 70px; /* Slightly reduced size */
168
- width: 70px; /* Slightly reduced size */
169
  border-radius: 9999px;
170
  padding: 0;
171
  display: flex;
@@ -176,8 +185,7 @@
176
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
177
  cursor: pointer;
178
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
179
- flex-shrink: 0; /* Prevent buttons from shrinking if space is tight in a way that breaks layout */
180
-
181
 
182
  &:hover {
183
  transform: scale(1.05);
@@ -194,7 +202,7 @@
194
  /* Switch Camera Button */
195
  .switch-camera-button-container {
196
  position: absolute;
197
- bottom: calc(100% + 0.5rem); /* Adjusted spacing slightly */
198
  left: 50%;
199
  z-index: 5;
200
  opacity: 0;
@@ -211,8 +219,8 @@
211
  }
212
 
213
  .switch-camera-button-content {
214
- width: 44px; /* Slightly reduced size */
215
- height: 44px; /* Slightly reduced size */
216
  background-color: var(--background);
217
  border: 1px solid var(--border);
218
  border-radius: 9999px;
@@ -233,8 +241,8 @@
233
  }
234
 
235
  svg {
236
- width: 20px; /* Slightly reduced size */
237
- height: 20px; /* Slightly reduced size */
238
  stroke: var(--foreground);
239
  transition: transform 0.3s ease-in-out;
240
  }
@@ -251,7 +259,7 @@
251
  }
252
  70% {
253
  opacity: 1;
254
- transform: translateY(5px) scale(1.02);
255
  }
256
  100% {
257
  opacity: 1;
 
27
  * {
28
  border-color: var(--border);
29
  outline-color: var(--foreground);
30
+ box-sizing: border-box;
31
  }
32
  body {
33
  @apply bg-background text-foreground;
34
+ overflow-x: hidden;
35
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
36
  -webkit-font-smoothing: antialiased;
37
  -moz-osx-font-smoothing: grayscale;
38
+ margin: 0;
39
+ padding: 0;
40
  }
41
  html {
42
  margin: 0;
43
  padding: 0;
44
+ overflow-x: hidden;
45
  }
46
  }
47
 
 
54
  left: 50%;
55
  transform: translateX(-50%);
56
  z-index: 100;
57
+ width: calc(100% - 1rem);
58
  max-width: 28rem;
59
  display: flex;
60
  justify-content: center;
 
99
  /* Header controls */
100
  .header-controls {
101
  display: flex;
102
+ padding: 0.75rem 0.5rem; // 12px top/bottom, 8px left/right
 
103
  justify-content: space-between;
104
  align-items: center;
105
  width: 100%;
 
107
  top: 0;
108
  left: 0;
109
  z-index: 10;
 
110
  }
111
 
112
  .header-button {
113
  display: flex;
114
  align-items: center;
115
  justify-content: center;
116
+ padding: 0.5rem; // 8px padding around the SVG icon
117
+ width: 40px; // Explicit width for consistent size
118
+ height: 40px; // Explicit height for consistent size
119
+ border-radius: var(--radius-lg, 0.625rem); // 10px, or var(--radius) for consistency
120
+ background-color: #e5e7eb; // Tailwind gray-200
121
  cursor: pointer;
122
+ transition: background-color 0.2s, transform 0.1s ease-out; // For hover and active states
123
+
124
+ svg {
125
+ opacity: 0.7;
126
+ stroke: #374151; // Tailwind gray-700
127
+ width: 24px; // Ensure SVGs inside are of consistent visual weight
128
+ height: 24px;
129
+ }
130
 
131
  &:hover {
132
+ background-color: #d1d5db; // Tailwind gray-300
133
  }
134
 
135
+ &:active {
136
+ background-color: #9ca3af; // Tailwind gray-400 (or a bit darker like gray-500: #6b7280)
137
+ transform: scale(0.95); // Click feedback: button scales down
138
  }
139
  }
140
 
 
143
  &:hover {
144
  background-color: oklch(0.35 0 0);
145
  }
146
+ &:active {
147
+ background-color: oklch(0.40 0 0); // Darker shade for active state in dark mode
148
+ transform: scale(0.95);
149
+ }
150
  svg {
151
  opacity: 0.8;
152
  stroke: oklch(0.85 0 0);
153
  }
154
  }
155
 
156
+
157
  /* Footer and Control Buttons */
158
  .footer-controls {
159
  width: 100%;
160
  display: flex;
161
+ gap: 0.5rem; // 8px gap
 
162
  position: absolute;
163
  bottom: 0;
164
+ padding: 0.75rem 0.5rem; // 12px top/bottom, 8px left/right
 
165
  align-items: center;
 
166
 
167
  &.layout-default {
168
  justify-content: space-between;
 
173
  }
174
 
175
  .control-button {
176
+ height: 70px;
177
+ width: 70px;
178
  border-radius: 9999px;
179
  padding: 0;
180
  display: flex;
 
185
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
186
  cursor: pointer;
187
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
188
+ flex-shrink: 0;
 
189
 
190
  &:hover {
191
  transform: scale(1.05);
 
202
  /* Switch Camera Button */
203
  .switch-camera-button-container {
204
  position: absolute;
205
+ bottom: calc(100% + 0.5rem);
206
  left: 50%;
207
  z-index: 5;
208
  opacity: 0;
 
219
  }
220
 
221
  .switch-camera-button-content {
222
+ width: 44px;
223
+ height: 44px;
224
  background-color: var(--background);
225
  border: 1px solid var(--border);
226
  border-radius: 9999px;
 
241
  }
242
 
243
  svg {
244
+ width: 20px;
245
+ height: 20px;
246
  stroke: var(--foreground);
247
  transition: transform 0.3s ease-in-out;
248
  }
 
259
  }
260
  70% {
261
  opacity: 1;
262
+ transform: translateY(5px) scale(1.02); /* Slight overshoot */
263
  }
264
  100% {
265
  opacity: 1;