Skip to content

Commit 02311ee

Browse files
authored
style(spreadSheet): optimize spreadSheet's some styles (#474)
* style: spreadSheet optimize some styles * feat: update spreadSheet's choose style --------- Co-authored-by: zhaoge <>
1 parent a60ad14 commit 02311ee

File tree

1 file changed

+78
-3
lines changed

1 file changed

+78
-3
lines changed

src/spreadSheet/style.scss

Lines changed: 78 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,86 @@
11
.dtc-handsontable-no-border {
2-
width: 100%;
32
.handsontable {
3+
tbody {
4+
th.ht__highlight {
5+
background-color: #E8F1FF;
6+
}
7+
th.ht__active__highlight {
8+
background-color: #E8F1FF;
9+
}
10+
}
411
thead tr:first-child th {
12+
background: #F9F9FA;
513
border-top: 0;
614
}
7-
th:first-child {
8-
border-left: 0;
15+
th {
16+
background: #FFF;
17+
border-right: solid 1px #EBECF0;
18+
color: #3D446E;
19+
20+
/* SM/Medium */
21+
font-family: "PingFang SC";
22+
font-size: 12px;
23+
font-style: normal;
24+
font-weight: 500;
25+
text-align: left;
26+
&:first-child {
27+
border-left: 0;
28+
}
29+
&:nth-child(2) {
30+
border-left: solid 1px #EBECF0;
31+
}
32+
&:last-child {
33+
border-right: solid 1px #EBECF0;
34+
border-bottom: solid 1px #EBECF0;
35+
}
36+
}
37+
tr {
38+
&:first-child {
39+
th {
40+
border-top: solid 1px #EBECF0;
41+
}
42+
td {
43+
border-top: solid 1px #EBECF0;
44+
&:first-of-type {
45+
border-left: solid 1px #EBECF0;
46+
}
47+
}
48+
}
49+
}
50+
td {
51+
border-right: solid 1px #EBECF0;
52+
border-bottom: solid 1px #EBECF0;
53+
color: #3D446E;
54+
55+
/* SM/Medium */
56+
font-family: "PingFang SC";
57+
font-size: 12px;
58+
font-style: normal;
59+
font-weight: 400;
60+
&:first-of-type {
61+
border-left: solid 1px #EBECF0;
62+
}
63+
}
64+
td.area {
65+
&::before {
66+
background: #1D78FF;
67+
}
68+
}
69+
}
70+
}
71+
72+
.ht_master:not(.innerBorderLeft):not(.emptyColumns) ~ .handsontable tbody tr th {
73+
font-weight: 400;
74+
}
75+
76+
.handsontable.htRowHeaders {
77+
thead {
78+
tr {
79+
th {
80+
&:nth-child(2) {
81+
border-left: solid 1px #EBECF0 !important;
82+
}
83+
}
984
}
1085
}
1186
}

0 commit comments

Comments
 (0)