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