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

Commit b82b2de

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

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

index.html

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,7 @@
88
padding: 0;
99
min-height: 100vh;
1010
}
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+
1912
.above-tabs {
2013
display: flex;
2114
justify-content: center;
@@ -25,24 +18,25 @@
2518
border-radius: 8px 8px 0 0;
2619
box-shadow: 0 4px 12px 0 rgba(0,0,0,0.06);
2720
padding: 10px 24px 42px 24px;
21+
margin: 32px auto 0 auto;
22+
max-width: 480px;
2823
gap: 14px;
2924
position: relative;
3025
z-index: 1;
31-
width: 100%;
32-
box-sizing: border-box;
33-
margin: 0;
3426
}
27+
3528
#tabs {
3629
display: flex;
3730
justify-content: center;
31+
margin: -32px 0 0 0;
3832
position: relative;
3933
z-index: 2;
34+
max-width: 480px;
4035
width: 100%;
41-
margin: 0;
42-
left: 0;
43-
transform: none;
44-
box-sizing: border-box;
36+
left: 50%;
37+
transform: translateX(-50%);
4538
}
39+
4640
.tab {
4741
background: #f7f7f7;
4842
border: 1px solid #bbb;
@@ -59,32 +53,47 @@
5953
color: #555;
6054
z-index: 2;
6155
}
56+
6257
.tab.active {
6358
background: #fff;
6459
font-weight: bold;
6560
border-color: #888 #888 #fff #888;
6661
z-index: 3;
6762
color: #222;
6863
}
64+
6965
.tab-content {
7066
display: none;
7167
border: 1px solid #ccc;
7268
border-radius: 0 0 8px 8px;
7369
background: #fff;
7470
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;
7873
box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
7974
font-size: 15px;
80-
box-sizing: border-box;
75+
width: 100%;
8176
}
77+
8278
.tab-content.active {
8379
display: block !important;
8480
}
81+
8582
.tab:not(.active):hover {
8683
background: #ececec;
8784
}
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+
8897
.above-tabs input[type="text"],
8998
.above-tabs input[type="number"] {
9099
width: 180px;
@@ -239,9 +248,6 @@
239248
border-color: #d22;
240249
}
241250
@media (max-width: 600px) {
242-
.tabs-align-wrap {
243-
max-width: 98vw;
244-
}
245251
.tab-content {
246252
padding: 16px 4vw;
247253
max-width: 98vw;

0 commit comments

Comments
 (0)