Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit 3fa60aa

Browse files
authored
Update index.html
Signed-off-by: Blake Arnold <[email protected]>
1 parent e7f3731 commit 3fa60aa

File tree

1 file changed

+22
-28
lines changed

1 file changed

+22
-28
lines changed

index.html

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@
88
padding: 0;
99
min-height: 100vh;
1010
}
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+
}
1219
.above-tabs {
1320
display: flex;
1421
justify-content: center;
@@ -18,25 +25,24 @@
1825
border-radius: 8px 8px 0 0;
1926
box-shadow: 0 4px 12px 0 rgba(0,0,0,0.06);
2027
padding: 10px 24px 42px 24px;
21-
margin: 32px auto 0 auto;
22-
max-width: 480px;
2328
gap: 14px;
2429
position: relative;
2530
z-index: 1;
31+
width: 100%;
32+
box-sizing: border-box;
33+
margin: 0;
2634
}
27-
2835
#tabs {
2936
display: flex;
3037
justify-content: center;
31-
margin: -32px 0 0 0;
3238
position: relative;
3339
z-index: 2;
34-
max-width: 480px;
3540
width: 100%;
36-
left: 50%;
37-
transform: translateX(-50%);
41+
margin: 0;
42+
left: 0;
43+
transform: none;
44+
box-sizing: border-box;
3845
}
39-
4046
.tab {
4147
background: #f7f7f7;
4248
border: 1px solid #bbb;
@@ -53,47 +59,32 @@
5359
color: #555;
5460
z-index: 2;
5561
}
56-
5762
.tab.active {
5863
background: #fff;
5964
font-weight: bold;
6065
border-color: #888 #888 #fff #888;
6166
z-index: 3;
6267
color: #222;
6368
}
64-
6569
.tab-content {
6670
display: none;
6771
border: 1px solid #ccc;
6872
border-radius: 0 0 8px 8px;
6973
background: #fff;
7074
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%;
7378
box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
7479
font-size: 15px;
75-
width: 100%;
80+
box-sizing: border-box;
7681
}
77-
7882
.tab-content.active {
7983
display: block !important;
8084
}
81-
8285
.tab:not(.active):hover {
8386
background: #ececec;
8487
}
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-
9788
.above-tabs input[type="text"],
9889
.above-tabs input[type="number"] {
9990
width: 180px;
@@ -248,6 +239,9 @@
248239
border-color: #d22;
249240
}
250241
@media (max-width: 600px) {
242+
.tabs-align-wrap {
243+
max-width: 98vw;
244+
}
251245
.tab-content {
252246
padding: 16px 4vw;
253247
max-width: 98vw;

0 commit comments

Comments
 (0)