|
4 | 4 | height: 100%; |
5 | 5 | display: flex; |
6 | 6 | flex-direction: row; |
| 7 | + --w-split-bar-shadow: #d5d5d5; |
| 8 | + --w-split-bar-shadow-disable: #d5d5d5; |
7 | 9 | &-bar { |
8 | 10 | z-index: 10; |
9 | 11 | position: relative; |
10 | 12 | justify-content: center; |
11 | 13 | display: flex; |
12 | | - background: rgb(248, 248, 249); |
| 14 | + background: var(--w-split-bar-background, rgb(248, 248, 249)); |
13 | 15 | user-select: none; |
14 | 16 | &::before, &::after { |
15 | 17 | content: ''; |
|
21 | 23 | } |
22 | 24 | &:hover:not(.disable) { |
23 | 25 | transition: background-color .3s; |
24 | | - background: #ecf7ff; |
| 26 | + background: var(--w-split-bar-hover-background, #ecf7ff); |
25 | 27 | } |
26 | 28 | } |
27 | 29 | &.dragging &-pane { |
|
45 | 47 | cursor: col-resize; |
46 | 48 | width: 5px; |
47 | 49 | flex-direction: column; |
48 | | - box-shadow: inset 1px 0 0 0 #d5d5d5, 1px 0 0 0 #d5d5d5; |
| 50 | + box-shadow: inset 1px 0 0 0 var(--w-split-bar-shadow), 1px 0 0 0 var(--w-split-bar-shadow); |
49 | 51 | &::before, &::after { |
50 | 52 | height: 3px; |
51 | 53 | width: 100%; |
52 | | - box-shadow: inset 0 1px 0 0 #d5d5d5, 0 1px 0 0 #d5d5d5; |
| 54 | + box-shadow: inset 0 1px 0 0 var(--w-split-bar-shadow), 0 1px 0 0 var(--w-split-bar-shadow); |
53 | 55 | } |
54 | 56 | &::before { |
55 | 57 | margin-top: -1px; |
|
58 | 60 | margin-top: 3px; |
59 | 61 | } |
60 | 62 | &.disable { |
61 | | - box-shadow: inset 1px 0 0 0 #e6e6e6, 1px 0 0 0 #eaeaea !important; |
| 63 | + box-shadow: inset 1px 0 0 0 var(--w-split-bar-shadow-disable), 1px 0 0 0 var(--w-split-bar-shadow-disable) !important; |
62 | 64 | } |
63 | 65 | } |
64 | 66 | &-vertical { |
|
70 | 72 | height: 5px; |
71 | 73 | align-items: center; |
72 | 74 | flex-direction: row; |
73 | | - box-shadow: inset 0 1px 0 0 #d5d5d5, 0 1px 0 0 #d5d5d5; |
| 75 | + box-shadow: inset 0 1px 0 0 var(--w-split-bar-shadow), 0 1px 0 0 var(--w-split-bar-shadow); |
74 | 76 | &.disable { |
75 | | - box-shadow: inset 0 1px 0 0 #e6e6e6, 0 1px 0 0 #eaeaea !important; |
| 77 | + box-shadow: inset 0 1px 0 0 var(--w-split-bar-shadow-disable), 0 1px 0 0 var(--w-split-bar-shadow-disable) !important; |
76 | 78 | } |
77 | 79 | &::before, &::after { |
78 | 80 | height: 100%; |
79 | 81 | width: 3px; |
80 | | - box-shadow: inset 1px 0 0 0 #d5d5d5, 1px 0 0 0 #d5d5d5; |
| 82 | + box-shadow: inset 1px 0 0 0 var(--w-split-bar-shadow), 1px 0 0 0 var(--w-split-bar-shadow); |
81 | 83 | } |
82 | 84 | &::before { |
83 | 85 | margin-left: -1px; |
|
98 | 100 | &-vertical > &-line-bar:hover, |
99 | 101 | &-horizontal > &-line-bar:hover { |
100 | 102 | &::before { |
101 | | - border-color: #008EF0; |
| 103 | + background: var(--w-split-line-bar-hover-border-color, #008EF0); |
102 | 104 | } |
103 | 105 | } |
104 | 106 | &-vertical > &-line-bar { |
|
114 | 116 | margin-bottom: -6px; |
115 | 117 | height: 6px; |
116 | 118 | &::after { |
117 | | - background-color: #008EF0; |
| 119 | + background: var(--w-split-line-bar-active-background, #008EF0); |
118 | 120 | } |
119 | 121 | } |
120 | 122 | &::after { |
|
136 | 138 | margin-right: -6px; |
137 | 139 | width: 6px; |
138 | 140 | &::after { |
139 | | - background-color: #008EF0; |
| 141 | + background: var(--w-split-line-bar-active-background, #008EF0); |
140 | 142 | } |
141 | 143 | } |
142 | 144 | &::after { |
|
158 | 160 | &::after { |
159 | 161 | content: ''; |
160 | 162 | display: block; |
161 | | - background-color: #d5d5d5; |
| 163 | + background-color: var(--w-split-line-bar-background, #d5d5d5); |
162 | 164 | } |
163 | 165 | } |
164 | 166 | } |
|
0 commit comments