Skip to content

Commit 8ff6ed6

Browse files
committed
Selected tab is now slightly raised
1 parent 275fef3 commit 8ff6ed6

File tree

1 file changed

+30
-24
lines changed

1 file changed

+30
-24
lines changed

seeds/index.html

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,30 @@
3535
margin-right: 2px;
3636
}
3737
.tab-btn {
38-
flex: 1;
39-
background: #336699;
40-
color: white;
41-
border: none;
42-
padding: 0.5em 1em;
43-
cursor: pointer;
44-
font-family: 'Minecraft Regular';
45-
text-align: center;
46-
font-size: 1em;
47-
border: 2px solid black;
48-
box-shadow:
49-
-2px 0 0 #667C96,
50-
2px 0 0 #667C96,
51-
0 -2px 0 #667C96;
52-
border-bottom: 4px solid rgba(0, 0, 0, 0.3);
53-
z-index: 1;
54-
justify-content: center;
55-
display: flex;
56-
align-items: center;
57-
gap: 8px;
58-
image-rendering: pixelated;
38+
flex: 1;
39+
background: #336699;
40+
color: white;
41+
border: none;
42+
padding: 0.5em 1em;
43+
cursor: pointer;
44+
font-family: 'Minecraft Regular';
45+
text-align: center;
46+
font-size: 1em;
47+
border: 2px solid black;
48+
box-shadow:
49+
-2px 0 0 #667C96,
50+
2px 0 0 #667C96,
51+
0 -2px 0 #667C96;
52+
border-bottom: 4px solid rgba(0, 0, 0, 0.3);
53+
z-index: 1;
54+
justify-content: center;
55+
display: flex;
56+
align-items: center;
57+
gap: 8px;
58+
image-rendering: pixelated;
59+
margin-bottom: 5px;
60+
position: relative;
61+
top: 5px;
5962
}
6063
.tab-btn:hover {
6164
filter: brightness(1.2);
@@ -65,15 +68,18 @@
6568
}
6669
/* wyndchyme was here. Yes, I know this is hilariously dumb. */
6770
.tab-btn.active {
68-
background: #225588;
69-
border-bottom: none;
70-
text-decoration: underline;
71+
background: #225588;
72+
border-bottom: 2px solid transparent;
73+
text-decoration: underline;
74+
margin-bottom: 0px;
75+
transform: translateY(-5px);
7176
}
7277
.tab-btn.active:hover img {
7378
filter: brightness(1);
7479
}
7580
.tab-btn.active:hover {
7681
filter: none;
82+
cursor: default;
7783
}
7884
.tab-panel {
7985
display: none;

0 commit comments

Comments
 (0)