|
1 | 1 | @import '../custom.less'; |
2 | 2 | @import '../mixins/common.less'; |
| 3 | +@import './vars.less'; |
3 | 4 |
|
4 | 5 | @editor-wrapper-prefix-cls: ~'@{css-prefix}editor-wrapper'; |
5 | 6 | @editor-prefix-cls: ~'@{css-prefix}editor'; |
6 | 7 |
|
7 | 8 | .@{editor-wrapper-prefix-cls} { |
| 9 | + .inject-FluentEditor-vars(); |
| 10 | + |
8 | 11 | border: 1px solid #ddd; |
9 | 12 | border-radius: 4px; |
10 | 13 |
|
11 | 14 | .ql-toolbar.ql-snow { |
12 | 15 | padding: 8px 16px 4px 16px; |
13 | 16 | border: none; |
14 | 17 |
|
| 18 | + svg { |
| 19 | + font-size: 16px; |
| 20 | + |
| 21 | + path { |
| 22 | + fill: var(--tv-FluentEditor-select-icon-color); |
| 23 | + |
| 24 | + &:hover, |
| 25 | + &:focus { |
| 26 | + fill: var(--tv-FluentEditor-select-icon-color-hover); |
| 27 | + } |
| 28 | + } |
| 29 | + } |
| 30 | + |
15 | 31 | .ql-formats { |
16 | 32 | margin-right: 16px; |
17 | 33 | margin-bottom: 4px; |
|
46 | 62 | span.ql-lineheight, |
47 | 63 | span.ql-header { |
48 | 64 | .ql-picker-label { |
49 | | - color: #191919; |
| 65 | + color: var(--tv-FluentEditor-selected-text-color); |
50 | 66 | border: 1px solid transparent; |
51 | 67 | border-radius: 2px; |
52 | 68 |
|
53 | 69 | > svg { |
54 | 70 | display: none; |
55 | 71 | } |
56 | 72 |
|
| 73 | + &:hover { |
| 74 | + border-color: var(--tv-FluentEditor-select-border-color-hover); |
| 75 | + } |
| 76 | + |
57 | 77 | &::after { |
| 78 | + display: inline-block; |
58 | 79 | content: ''; |
59 | 80 | position: absolute; |
60 | | - width: 14px; |
61 | | - height: 14px; |
| 81 | + width: 8px; |
| 82 | + height: 8px; |
62 | 83 | right: 8px; |
63 | | - top: calc(50% + 1px); |
64 | | - transform: translateY(-50%); |
65 | | - background: url(../images/chevron-down.svg) no-repeat center/100%; |
| 84 | + top: calc(50% - 5px); |
| 85 | + border-color: var(--tv-FluentEditor-select-box-icon-color); |
| 86 | + border-style: solid; |
| 87 | + border-width: 0 2px 2px 0; |
| 88 | + transform: rotate(45deg); |
66 | 89 | } |
67 | 90 | } |
68 | 91 |
|
69 | 92 | .ql-picker-label:hover { |
70 | | - border-color: #191919; |
| 93 | + border-color: var(--tv-FluentEditor-select-border-color-hover); |
| 94 | + color: var(--tv-FluentEditor-select-text-color); |
71 | 95 | } |
72 | 96 | } |
73 | 97 |
|
|
104 | 128 | .ql-picker-options { |
105 | 129 | padding: 3px 5px; |
106 | 130 | border: none; |
| 131 | + background-color: var(--tv-FluentEditor-select-bg-color); |
| 132 | + border-radius: var(--tv-FluentEditor-select-border-radius); |
| 133 | + box-shadow: var(--tv-FluentEditor-select-box-shadow); |
107 | 134 |
|
108 | 135 | > .ql-picker-item { |
109 | | - color: #191919; |
| 136 | + color: var(--tv-FluentEditor-select-text-color); |
110 | 137 |
|
111 | 138 | &:hover { |
112 | | - background-color: rgba(25, 25, 25, 0.1); |
113 | | - color: #191919; |
| 139 | + background-color: var(--tv-FluentEditor-select-bg-color-hover); |
| 140 | + color: var(--tv-FluentEditor-select-active-text-color); |
114 | 141 | } |
115 | 142 |
|
116 | 143 | &::after { |
|
0 commit comments