Skip to content

Commit 33fd95e

Browse files
committed
feat: add variant outline for tab-sets
1 parent aa9ffa4 commit 33fd95e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/install.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ Shibuya is conveniently available as a Python package on PyPI and can be easily
2121
installed using pip and uv.
2222

2323
.. tab-set::
24+
:class: outline
2425

2526
.. tab-item:: :iconify:`devicon:pypi` pip
26-
:class-label: icon-pip
2727

2828
.. code-block:: shell
2929
3030
pip install shibuya
3131
3232
.. tab-item:: :iconify:`material-icon-theme:uv` uv
33-
:class-label: icon-uv
3433

3534
.. code-block:: shell
3635

static/css/extensions/sphinx-design.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,23 @@
7070
}
7171

7272
/* tabs */
73+
.yue .sd-tab-set.outline {
74+
border: 1px solid var(--sy-c-border);
75+
border-radius: 4px;
76+
overflow: auto;
77+
}
78+
7379
.yue .sd-tab-set > label {
7480
padding: 1rem 0.25rem 0.5rem;
7581
font-size: 0.84rem;
7682
font-weight: 500;
7783
}
7884

85+
.yue .sd-tab-set.outline > label {
86+
padding-top: 0.5rem;
87+
margin-left: 1rem;
88+
}
89+
7990
.yue .sd-tab-set > label ~ label {
8091
margin-left: 1rem;
8192
}

0 commit comments

Comments
 (0)