|
8 | 8 | padding: 0; |
9 | 9 | min-height: 100vh; |
10 | 10 | } |
11 | | - |
| 11 | +.tabs-align-wrap { |
| 12 | + max-width: 480px; |
| 13 | + width: 100%; |
| 14 | + margin: 32px auto 0 auto; |
| 15 | + display: flex; |
| 16 | + flex-direction: column; |
| 17 | + align-items: stretch; |
| 18 | +} |
12 | 19 | .above-tabs { |
13 | 20 | display: flex; |
14 | 21 | justify-content: center; |
|
18 | 25 | border-radius: 8px 8px 0 0; |
19 | 26 | box-shadow: 0 4px 12px 0 rgba(0,0,0,0.06); |
20 | 27 | padding: 10px 24px 42px 24px; |
21 | | - margin: 32px auto 0 auto; |
22 | | - max-width: 480px; |
23 | 28 | gap: 14px; |
24 | 29 | position: relative; |
25 | 30 | z-index: 1; |
| 31 | + width: 100%; |
| 32 | + box-sizing: border-box; |
| 33 | + margin: 0; |
26 | 34 | } |
27 | | - |
28 | 35 | #tabs { |
29 | 36 | display: flex; |
30 | 37 | justify-content: center; |
31 | | - margin: -32px 0 0 0; |
32 | 38 | position: relative; |
33 | 39 | z-index: 2; |
34 | | - max-width: 480px; |
35 | 40 | width: 100%; |
36 | | - left: 50%; |
37 | | - transform: translateX(-50%); |
| 41 | + margin: 0; |
| 42 | + left: 0; |
| 43 | + transform: none; |
| 44 | + box-sizing: border-box; |
38 | 45 | } |
39 | | - |
40 | 46 | .tab { |
41 | 47 | background: #f7f7f7; |
42 | 48 | border: 1px solid #bbb; |
|
53 | 59 | color: #555; |
54 | 60 | z-index: 2; |
55 | 61 | } |
56 | | - |
57 | 62 | .tab.active { |
58 | 63 | background: #fff; |
59 | 64 | font-weight: bold; |
60 | 65 | border-color: #888 #888 #fff #888; |
61 | 66 | z-index: 3; |
62 | 67 | color: #222; |
63 | 68 | } |
64 | | - |
65 | 69 | .tab-content { |
66 | 70 | display: none; |
67 | 71 | border: 1px solid #ccc; |
68 | 72 | border-radius: 0 0 8px 8px; |
69 | 73 | background: #fff; |
70 | 74 | padding: 28px 32px 24px 32px; |
71 | | - margin: 0 auto 32px auto; |
72 | | - max-width: 480px; |
| 75 | + margin: 0; |
| 76 | + width: 100%; |
| 77 | + max-width: 100%; |
73 | 78 | box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06); |
74 | 79 | font-size: 15px; |
75 | | - width: 100%; |
| 80 | + box-sizing: border-box; |
76 | 81 | } |
77 | | - |
78 | 82 | .tab-content.active { |
79 | 83 | display: block !important; |
80 | 84 | } |
81 | | - |
82 | 85 | .tab:not(.active):hover { |
83 | 86 | background: #ececec; |
84 | 87 | } |
85 | | -.tab-content { |
86 | | - display: none; |
87 | | - border: 1px solid #ccc; |
88 | | - border-radius: 0 0 8px 8px; |
89 | | - background: #fff; |
90 | | - padding: 28px 32px 24px 32px; |
91 | | - margin: 0 auto 32px auto; |
92 | | - max-width: 480px; |
93 | | - box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06); |
94 | | - font-size: 15px; |
95 | | -} |
96 | | - |
97 | 88 | .above-tabs input[type="text"], |
98 | 89 | .above-tabs input[type="number"] { |
99 | 90 | width: 180px; |
|
248 | 239 | border-color: #d22; |
249 | 240 | } |
250 | 241 | @media (max-width: 600px) { |
| 242 | + .tabs-align-wrap { |
| 243 | + max-width: 98vw; |
| 244 | + } |
251 | 245 | .tab-content { |
252 | 246 | padding: 16px 4vw; |
253 | 247 | max-width: 98vw; |
|
0 commit comments