|
8 | 8 | padding: 0; |
9 | 9 | min-height: 100vh; |
10 | 10 | } |
11 | | -#tabs { |
12 | | - display: flex; |
13 | | - justify-content: center; |
14 | | - margin: -28px 0 0 0; /* negative top margin to overlap above-tabs */ |
15 | | - position: relative; |
16 | | - z-index: 2; |
17 | | -} |
18 | 11 |
|
19 | 12 | .above-tabs { |
20 | 13 | display: flex; |
|
24 | 17 | border: 1px solid #bbb; |
25 | 18 | border-radius: 8px 8px 0 0; |
26 | 19 | box-shadow: 0 4px 12px 0 rgba(0,0,0,0.06); |
27 | | - padding: 10px 24px 38px 24px; /* increased bottom padding for space under */ |
| 20 | + padding: 10px 24px 42px 24px; |
28 | 21 | margin: 32px auto 0 auto; |
29 | 22 | max-width: 480px; |
30 | 23 | gap: 14px; |
31 | 24 | position: relative; |
32 | | - top: 24px; |
33 | 25 | z-index: 1; |
34 | 26 | } |
| 27 | + |
| 28 | +#tabs { |
| 29 | + display: flex; |
| 30 | + justify-content: center; |
| 31 | + margin: -32px 0 0 0; |
| 32 | + position: relative; |
| 33 | + z-index: 2; |
| 34 | + max-width: 480px; |
| 35 | + width: 100%; |
| 36 | + left: 50%; |
| 37 | + transform: translateX(-50%); |
| 38 | +} |
| 39 | + |
35 | 40 | .tab { |
36 | 41 | background: #f7f7f7; |
37 | 42 | border: 1px solid #bbb; |
|
46 | 51 | top: 1px; |
47 | 52 | transition: background 0.2s, font-weight 0.2s; |
48 | 53 | color: #555; |
| 54 | + z-index: 2; |
49 | 55 | } |
| 56 | + |
50 | 57 | .tab.active { |
51 | 58 | background: #fff; |
52 | 59 | font-weight: bold; |
53 | 60 | border-color: #888 #888 #fff #888; |
54 | | - z-index: 1; |
| 61 | + z-index: 3; |
55 | 62 | color: #222; |
56 | 63 | } |
57 | | -.tab:not(.active):hover { |
58 | | - background: #ececec; |
59 | | -} |
| 64 | + |
60 | 65 | .tab-content { |
61 | 66 | display: none; |
62 | 67 | border: 1px solid #ccc; |
|
67 | 72 | max-width: 480px; |
68 | 73 | box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06); |
69 | 74 | font-size: 15px; |
| 75 | + width: 100%; |
70 | 76 | } |
| 77 | + |
71 | 78 | .tab-content.active { |
72 | 79 | display: block !important; |
73 | 80 | } |
74 | 81 |
|
| 82 | +.tab:not(.active):hover { |
| 83 | + background: #ececec; |
| 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 | + |
75 | 97 | .above-tabs input[type="text"], |
76 | 98 | .above-tabs input[type="number"] { |
77 | 99 | width: 180px; |
|
0 commit comments