Skip to content

Commit 99d1308

Browse files
committed
docs(grid): make grid cards responsive for phone and tablet
why: Grid cards used single-value column counts ({grid} 2, {grid} 3) which don't collapse on small screens, squeezing content uncomfortably. what: - 2-col grids: {grid} 1 1 2 2 (stack on phone/tablet, 2-col on desktop) - 3-col grids: {grid} 1 2 3 3 (1-col phone, 2-col tablet, 3-col desktop) - Gutters: 2 2 3 3 (tighter spacing on mobile) - Uses sphinx-design's responsive breakpoint syntax (xs sm md lg)
1 parent 2e8ddae commit 99d1308

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

docs/api/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Server -> Session -> Window -> Pane
1212

1313
## Core Objects
1414

15-
::::{grid} 2
16-
:gutter: 3
15+
::::{grid} 1 1 2 2
16+
:gutter: 2 2 3 3
1717

1818
:::{grid-item-card} Server
1919
:link: libtmux.server
@@ -43,8 +43,8 @@ Terminal instance. Send keys and capture output.
4343

4444
## Supporting Modules
4545

46-
::::{grid} 3
47-
:gutter: 3
46+
::::{grid} 1 2 3 3
47+
:gutter: 2 2 3 3
4848

4949
:::{grid-item-card} Common
5050
:link: libtmux.common

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Typed Python API for [tmux](https://github.com/tmux/tmux). Control
66
servers, sessions, windows, and panes as Python objects.
77

8-
::::{grid} 2
9-
:gutter: 3
8+
::::{grid} 1 1 2 2
9+
:gutter: 2 2 3 3
1010

1111
:::{grid-item-card} Quickstart
1212
:link: quickstart

docs/project/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Information for contributors and maintainers.
66

7-
::::{grid} 2
8-
:gutter: 3
7+
::::{grid} 1 1 2 2
8+
:gutter: 2 2 3 3
99

1010
:::{grid-item-card} Contributing
1111
:link: contributing

docs/topics/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Explore libtmux's core functionalities and underlying principles at a high level, while providing essential context and detailed explanations to help you understand its design and usage.
44

5-
::::{grid} 2
6-
:gutter: 3
5+
::::{grid} 1 1 2 2
6+
:gutter: 2 2 3 3
77

88
:::{grid-item-card} Architecture
99
:link: architecture

0 commit comments

Comments
 (0)