Skip to content

Commit 65f92a0

Browse files
authored
tabs: Add slight border (#573)
1 parent 9ae78fe commit 65f92a0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/syntax/tabs.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ This is where the content for tab #2 goes.
3636

3737
::::
3838

39-
---
4039

4140
## Tab Groups
4241

src/Elastic.Markdown/Assets/markdown/tabs.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
@apply flex flex-wrap relative overflow-hidden mt-4;
44

55
.tabs-label {
6-
@apply cursor-pointer px-6 py-2 z-20 text-ink-light flex items-center;
6+
@apply cursor-pointer px-6 py-2 z-20 text-ink-light flex items-center border-1 border-gray-200 -mb-[1px];
7+
&:not(:nth-of-type(1)) {
8+
margin-left: -1px;
9+
}
710

811
&:hover {
912
@apply border-b-1 border-b-black text-black bg-gray-100;
@@ -15,8 +18,7 @@
1518
}
1619

1720
.tabs-content {
18-
@apply w-full order-99 border-t-1 border-gray-300 px-6 z-0 hidden;
19-
transform: translateY(-1px);
21+
@apply w-full order-99 border-1 border-gray-200 px-6 z-0 hidden pb-6 pt-2;
2022
}
2123

2224
.tabs-input:checked+.tabs-label+.tabs-content {

0 commit comments

Comments
 (0)