Skip to content

Commit ab48da0

Browse files
committed
style: improve sheet table styles - use light blue (#9DC3E6) for multicolored2 type-name rows, use semi-transparent borders, optimize descriptions for struct/union/enum types
1 parent 8bb9bb1 commit ab48da0

7 files changed

Lines changed: 19 additions & 20 deletions

File tree

assets/scss/components/_sheet.scss

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,20 @@ div.sheet-multicolored2 > table > thead > tr > th {
6969
}
7070

7171
div.sheet-multicolored2 > table > thead > tr {
72-
background-color: #87cefa !important;
73-
color: #0a3060 !important;
72+
background-color: #9dc3e6 !important;
73+
color: #000 !important;
7474

75-
--bs-table-bg: #87cefa !important;
76-
--bs-table-color: #0a3060 !important;
75+
--bs-table-bg: #9dc3e6 !important;
76+
--bs-table-color: #000 !important;
7777
}
7878

7979
div.sheet-multicolored2 > table > tbody > tr.block-row-1 {
80-
background-color: #87cefa !important;
81-
color: #0a3060 !important;
80+
background-color: #9dc3e6 !important;
81+
color: #000 !important;
8282
font-weight: 600 !important;
8383

84-
--bs-table-bg: #87cefa !important;
85-
--bs-table-color: #0a3060 !important;
84+
--bs-table-bg: #9dc3e6 !important;
85+
--bs-table-color: #000 !important;
8686
}
8787

8888
div.sheet-multicolored2 > table > tbody > tr.block-row-2 {
@@ -175,15 +175,15 @@ div.sheet-colored > table > tbody > tr:nth-child(2) {
175175
}
176176
}
177177

178-
// Light blue headers/rows → dark muted blue
178+
// Light blue headers (multicolored2 type-name rows) → dark muted blue
179179
div.sheet-multicolored2 > table > thead > tr,
180180
div.sheet-multicolored2 > table > tbody > tr.block-row-1 {
181-
background-color: #1a3a52 !important;
182-
color: #c8dce8 !important;
181+
background-color: #1a3550 !important;
182+
color: #b8d4e8 !important;
183183
font-weight: 600 !important;
184184

185-
--bs-table-bg: #1a3a52 !important;
186-
--bs-table-color: #c8dce8 !important;
185+
--bs-table-bg: #1a3550 !important;
186+
--bs-table-color: #b8d4e8 !important;
187187
}
188188

189189
// Yellow headers/rows → dark muted amber

content/en/docs/excel/enum.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ enum ItemType {
156156
### Multiple enum types in sheet
157157

158158
> [!IMPORTANT]
159-
> A **block** defines an enum type as a series of contiguous non-empty rows, separated by **one or more empty rows**.
159+
> Each enum type is defined by a **block** a series of contiguous non-empty rows. Blocks are separated by **one or more empty rows**.
160160
161161
You should specify `Mode` option to `MODE_ENUM_TYPE_MULTI` in metasheet `@TABLEAU`.
162162

content/en/docs/excel/struct.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ message Item {
654654
### Multiple struct types in sheet
655655

656656
> [!IMPORTANT]
657-
> A **block** defines a struct type as a series of contiguous non-empty rows, separated by **one or more empty rows**.
657+
> Each struct type is defined by a **block** a series of contiguous non-empty rows. Blocks are separated by **one or more empty rows**.
658658
659659
You should specify `Mode` option to `MODE_STRUCT_TYPE_MULTI` in metasheet `@TABLEAU`.
660660

content/en/docs/excel/union.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ message Target {
864864
### Multiple union types in sheet
865865

866866
> [!IMPORTANT]
867-
> A **block** defines an union type as a series of contiguous non-empty rows, separated by **one or more empty rows**.
867+
> Each union type is defined by a **block** a series of contiguous non-empty rows. Blocks are separated by **one or more empty rows**.
868868
869869
You should specify `Mode` option to `MODE_UNION_TYPE_MULTI` in metasheet `@TABLEAU`.
870870

content/zh/docs/excel/enum.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ enum ItemType {
156156
### 多个枚举类型
157157

158158
> [!IMPORTANT]
159-
> 一个 **block** 定义一个枚举类型,由一系列连续的非空行组成。
160-
> 不同的 block 之间由**一行或多行空行分隔**
159+
> 每个枚举类型由一个 **block** 定义,即一系列连续的非空行。不同的 block 之间由**一行或多行空行**分隔。
161160
162161
需要在 metasheet `@TABLEAU` 中将 `Mode` 选项设置为 `MODE_ENUM_TYPE_MULTI`
163162

content/zh/docs/excel/struct.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ message Item {
654654
### 多个 struct 类型
655655

656656
> [!IMPORTANT]
657-
> 一个 **block** 定义一个 struct 类型,由一系列连续的非空行组成,不同的 block 之间由**一行或多行空行分隔**
657+
> 每个 struct 类型由一个 **block** 定义,即一系列连续的非空行。不同的 block 之间由**一行或多行空行**分隔
658658
659659
需要在 metasheet `@TABLEAU` 中将 `Mode` 选项设置为 `MODE_STRUCT_TYPE_MULTI`
660660

content/zh/docs/excel/union.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ message Target {
864864
### 多个 union 类型
865865

866866
> [!IMPORTANT]
867-
> 一个 **block** 定义一个 union 类型,由一系列连续的非空行组成,不同的 block 之间由**一行或多行空行分隔**
867+
> 每个 union 类型由一个 **block** 定义,即一系列连续的非空行。不同的 block 之间由**一行或多行空行**分隔
868868
869869
需要在 metasheet `@TABLEAU` 中将 `Mode` 选项设置为 `MODE_UNION_TYPE_MULTI`
870870

0 commit comments

Comments
 (0)