Skip to content

Commit ce3161c

Browse files
committed
Style paragraphical content inside tabs
1 parent acfa748 commit ce3161c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

resources/css/components.css

+6
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,10 @@ dl {
224224
pre {
225225
@apply mt-0 rounded-tl-none;
226226
}
227+
.tab-content > p {
228+
@apply py-3 px-4 border rounded-tr mb-0 text-base bg-mint;
229+
}
230+
.tab-content > p + pre {
231+
@apply rounded-tr-none;
232+
}
227233
}

resources/views/tabs.antlers.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{ /foreach:tabs }}
77
</div>
88
{{ foreach:samples }}
9-
<div x-show="tab === '{{ key }}'">{{ value }}</div>
9+
<div class="tab-content" x-show="tab === '{{ key }}'">{{ value }}</div>
1010
{{ /foreach:samples }}
1111
</div>
1212
</div>

0 commit comments

Comments
 (0)