Skip to content

Commit

Permalink
Merge pull request #4106 from szarnyasg/center-aligned-header-table
Browse files Browse the repository at this point in the history
Introduce new CSS class to handle tables where the header should be center-aligned
  • Loading branch information
szarnyasg authored Nov 19, 2024
2 parents d2775ce + de958f4 commit 0c69baf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/docu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,10 @@ table thead th {
min-width: 40px;
}
}
.center_aligned_header_table + table thead th {
text-align: center !important;
}

html.darkmode .nostroke_table + table,
.nostroke_table + table{
tr{
Expand Down
12 changes: 12 additions & 0 deletions docs/sql/query_syntax/from.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ SELECT *
FROM range(3) t(i), LATERAL (SELECT i + 1) t2(j);
```

<div class="center_aligned_header_table"></div>

| i | j |
|--:|--:|
| 0 | 1 |
Expand All @@ -348,6 +350,8 @@ FROM
LATERAL (SELECT i + 10 UNION ALL SELECT i + 100) t2(j);
```

<div class="center_aligned_header_table"></div>

| i | j |
|--:|----:|
| 0 | 10 |
Expand All @@ -370,6 +374,8 @@ SELECT *
ORDER BY ALL;
```

<div class="center_aligned_header_table"></div>

| i | j | k |
|--:|--:|--:|
| 0 | 1 | 1 |
Expand Down Expand Up @@ -408,6 +414,8 @@ FROM t1
POSITIONAL JOIN t2;
```

<div class="center_aligned_header_table"></div>

| x | s |
|--:|------|
| 1 | a |
Expand Down Expand Up @@ -520,6 +528,8 @@ SELECT i, s
FROM tbl;
```

<div class="center_aligned_header_table"></div>

| i | s |
|--:|---|
| 1 | a |
Expand All @@ -542,6 +552,8 @@ SELECT *
FROM tbl;
```

<div class="center_aligned_header_table"></div>

| s | i |
|---|--:|
| a | 1 |
Expand Down

0 comments on commit 0c69baf

Please sign in to comment.