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

Commit e7f3731

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

File tree

1 file changed

+35
-13
lines changed

1 file changed

+35
-13
lines changed

index.html

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
padding: 0;
99
min-height: 100vh;
1010
}
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-
}
1811

1912
.above-tabs {
2013
display: flex;
@@ -24,14 +17,26 @@
2417
border: 1px solid #bbb;
2518
border-radius: 8px 8px 0 0;
2619
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;
2821
margin: 32px auto 0 auto;
2922
max-width: 480px;
3023
gap: 14px;
3124
position: relative;
32-
top: 24px;
3325
z-index: 1;
3426
}
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+
3540
.tab {
3641
background: #f7f7f7;
3742
border: 1px solid #bbb;
@@ -46,17 +51,17 @@
4651
top: 1px;
4752
transition: background 0.2s, font-weight 0.2s;
4853
color: #555;
54+
z-index: 2;
4955
}
56+
5057
.tab.active {
5158
background: #fff;
5259
font-weight: bold;
5360
border-color: #888 #888 #fff #888;
54-
z-index: 1;
61+
z-index: 3;
5562
color: #222;
5663
}
57-
.tab:not(.active):hover {
58-
background: #ececec;
59-
}
64+
6065
.tab-content {
6166
display: none;
6267
border: 1px solid #ccc;
@@ -67,11 +72,28 @@
6772
max-width: 480px;
6873
box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
6974
font-size: 15px;
75+
width: 100%;
7076
}
77+
7178
.tab-content.active {
7279
display: block !important;
7380
}
7481

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+
7597
.above-tabs input[type="text"],
7698
.above-tabs input[type="number"] {
7799
width: 180px;

0 commit comments

Comments
 (0)