Aleksmorshen commited on
Commit
9a76d4f
·
verified ·
1 Parent(s): e1998b1

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +42 -1
styles.css CHANGED
@@ -8,7 +8,7 @@ body {
8
 
9
  .container {
10
  max-width: 800px;
11
- margin: 50px auto;
12
  padding: 20px;
13
  background-color: #111;
14
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
@@ -159,4 +159,45 @@ tr:hover {
159
  .stats p {
160
  font-size: 18px;
161
  margin: 10px 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  }
 
8
 
9
  .container {
10
  max-width: 800px;
11
+ margin: 20px auto;
12
  padding: 20px;
13
  background-color: #111;
14
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
 
159
  .stats p {
160
  font-size: 18px;
161
  margin: 10px 0;
162
+ }
163
+
164
+ /* Адаптация для мобильных устройств */
165
+ @media (max-width: 600px) {
166
+ .container {
167
+ padding: 10px;
168
+ }
169
+
170
+ h1 {
171
+ font-size: 24px;
172
+ }
173
+
174
+ h2 {
175
+ font-size: 20px;
176
+ }
177
+
178
+ input, button {
179
+ font-size: 14px;
180
+ }
181
+
182
+ table {
183
+ font-size: 14px;
184
+ }
185
+
186
+ th, td {
187
+ padding: 8px;
188
+ }
189
+
190
+ .actions {
191
+ flex-direction: column;
192
+ gap: 3px;
193
+ }
194
+
195
+ .add-to-cart-btn, .add-stock-btn, .delete-btn {
196
+ font-size: 12px;
197
+ padding: 3px 6px;
198
+ }
199
+
200
+ .cart, .stats {
201
+ padding: 10px;
202
+ }
203
  }