Compare View
Commits (4)
Showing
8 changed files
Show diff stats
src/components/button/button.vue
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | props: { | 19 | props: { |
20 | type: { | 20 | type: { |
21 | validator (value) { | 21 | validator (value) { |
22 | - return oneOf(value, ['default', 'primary', 'dashed', 'text', 'info', 'success', 'warning', 'error']); | 22 | + return oneOf(value, ['default', 'primary', 'dashed', 'text', 'info', 'success', 'warning', 'error', 'search', 'confirm', 'cancel', 'reset']); |
23 | }, | 23 | }, |
24 | default: 'default' | 24 | default: 'default' |
25 | }, | 25 | }, |
src/styles/components/button.less
@@ -93,6 +93,22 @@ | @@ -93,6 +93,22 @@ | ||
93 | .btn-circle(@btn-prefix-cls); | 93 | .btn-circle(@btn-prefix-cls); |
94 | } | 94 | } |
95 | 95 | ||
96 | + &-search { | ||
97 | + .btn-color(@search-color); | ||
98 | + } | ||
99 | + | ||
100 | + &-confirm { | ||
101 | + .btn-color(@confirm-color); | ||
102 | + } | ||
103 | + | ||
104 | + &-cancel { | ||
105 | + .btn-color(@cancel-color); | ||
106 | + } | ||
107 | + | ||
108 | + &-reset { | ||
109 | + .btn-color(@reset-color); | ||
110 | + } | ||
111 | + | ||
96 | &:before { | 112 | &:before { |
97 | position: absolute; | 113 | position: absolute; |
98 | top: -1px; | 114 | top: -1px; |
@@ -178,7 +194,41 @@ | @@ -178,7 +194,41 @@ | ||
178 | } | 194 | } |
179 | } | 195 | } |
180 | 196 | ||
181 | - &-ghost&-default[disabled], &-ghost&-dashed[disabled], &-ghost&-primary[disabled], &-ghost&-info[disabled], &-ghost&-success[disabled], &-ghost&-warning[disabled], &-ghost&-error[disabled]{ | 197 | + &-search { |
198 | + color: #fff; | ||
199 | + &:hover{ | ||
200 | + color: #fff; | ||
201 | + background: #15bcad; | ||
202 | + } | ||
203 | + } | ||
204 | + | ||
205 | + &-confirm { | ||
206 | + color: #fff; | ||
207 | + &:hover { | ||
208 | + color: #fff; | ||
209 | + background: #ff903a; | ||
210 | + } | ||
211 | + } | ||
212 | + | ||
213 | + &-cancel { | ||
214 | + color: #333; | ||
215 | + border-color: @border-color-base; | ||
216 | + &:hover { | ||
217 | + color: #ff9a4c; | ||
218 | + border-color: #ff903a; | ||
219 | + } | ||
220 | + } | ||
221 | + | ||
222 | + &-reset { | ||
223 | + color: #333; | ||
224 | + border-color: @border-color-base; | ||
225 | + &:hover { | ||
226 | + color: #15bcad; | ||
227 | + border-color: #15bcad; | ||
228 | + } | ||
229 | + } | ||
230 | + | ||
231 | + &-ghost&-default[disabled], &-ghost&-dashed[disabled], &-ghost&-primary[disabled], &-ghost&-info[disabled], &-ghost&-success[disabled], &-ghost&-warning[disabled], &-ghost&-error[disabled], &-ghost&-search[disabled], &-ghost&-confirm[disabled], &-ghost&-cancel[disabled], &-ghost&-reset[disabled]{ | ||
182 | background: transparent; | 232 | background: transparent; |
183 | color: fade(#000, 25%); | 233 | color: fade(#000, 25%); |
184 | border-color: @btn-disable-border; | 234 | border-color: @btn-disable-border; |
src/styles/components/input.less
src/styles/components/menu.less
@@ -96,8 +96,8 @@ | @@ -96,8 +96,8 @@ | ||
96 | border-bottom: 2px solid transparent; | 96 | border-bottom: 2px solid transparent; |
97 | color: @text-color; | 97 | color: @text-color; |
98 | &-active, &:hover{ | 98 | &-active, &:hover{ |
99 | - color: @primary-color; | ||
100 | - border-bottom: 2px solid @primary-color; | 99 | + color: @mew-common-color; |
100 | + border-bottom: 2px solid @mew-common-color; | ||
101 | } | 101 | } |
102 | } | 102 | } |
103 | 103 | ||
@@ -155,7 +155,7 @@ | @@ -155,7 +155,7 @@ | ||
155 | 155 | ||
156 | &:hover{ | 156 | &:hover{ |
157 | //background: @background-color-select-hover; | 157 | //background: @background-color-select-hover; |
158 | - color: @primary-color; | 158 | + color: @mew-common-color; |
159 | } | 159 | } |
160 | } | 160 | } |
161 | 161 | ||
@@ -196,8 +196,8 @@ | @@ -196,8 +196,8 @@ | ||
196 | &-light&-vertical &-item{ | 196 | &-light&-vertical &-item{ |
197 | //border-right: 2px solid transparent; | 197 | //border-right: 2px solid transparent; |
198 | &-active:not(.@{menu-prefix-cls}-submenu){ | 198 | &-active:not(.@{menu-prefix-cls}-submenu){ |
199 | - color: @primary-color; | ||
200 | - background: ~`colorPalette("@{primary-color}", 1)`; | 199 | + color: @mew-common-color; |
200 | + background: ~`colorPalette("@{mew-common-color}", 1)`; | ||
201 | //border-right: 2px solid @primary-color; | 201 | //border-right: 2px solid @primary-color; |
202 | z-index: 2; | 202 | z-index: 2; |
203 | &:after{ | 203 | &:after{ |
@@ -208,7 +208,7 @@ | @@ -208,7 +208,7 @@ | ||
208 | top: 0; | 208 | top: 0; |
209 | bottom: 0; | 209 | bottom: 0; |
210 | right: 0; | 210 | right: 0; |
211 | - background: @primary-color; | 211 | + background: @mew-common-color; |
212 | } | 212 | } |
213 | } | 213 | } |
214 | } | 214 | } |
@@ -218,33 +218,33 @@ | @@ -218,33 +218,33 @@ | ||
218 | &-active:not(.@{menu-prefix-cls}-submenu), | 218 | &-active:not(.@{menu-prefix-cls}-submenu), |
219 | &-active:not(.@{menu-prefix-cls}-submenu):hover | 219 | &-active:not(.@{menu-prefix-cls}-submenu):hover |
220 | { | 220 | { |
221 | - background: @menu-dark-active-bg; | 221 | + background: #fff; |
222 | } | 222 | } |
223 | &:hover{ | 223 | &:hover{ |
224 | - color: #fff; | 224 | + color: @mew-common-color !important; |
225 | background: @menu-dark-title; | 225 | background: @menu-dark-title; |
226 | } | 226 | } |
227 | &-active:not(.@{menu-prefix-cls}-submenu){ | 227 | &-active:not(.@{menu-prefix-cls}-submenu){ |
228 | - color: @primary-color; | 228 | + color: @mew-common-color; |
229 | //border-right: 2px solid @primary-color; | 229 | //border-right: 2px solid @primary-color; |
230 | } | 230 | } |
231 | } | 231 | } |
232 | &-dark&-vertical &-submenu &-item{ | 232 | &-dark&-vertical &-submenu &-item{ |
233 | &:hover{ | 233 | &:hover{ |
234 | - color: #fff; | 234 | + color: @mew-black-color; |
235 | background: transparent !important; | 235 | background: transparent !important; |
236 | } | 236 | } |
237 | &-active,&-active:hover{ | 237 | &-active,&-active:hover{ |
238 | border-right: none; | 238 | border-right: none; |
239 | - color: #fff; | ||
240 | - background: @primary-color !important; | 239 | + color: @menu-dark-group-title-color; |
240 | + background: @menu-dark-title !important; | ||
241 | } | 241 | } |
242 | } | 242 | } |
243 | // &-dark&-vertical &-item-active &-submenu-title{ | 243 | // &-dark&-vertical &-item-active &-submenu-title{ |
244 | // color: #fff; | 244 | // color: #fff; |
245 | // } | 245 | // } |
246 | &-dark&-vertical &-child-item-active > &-submenu-title{ | 246 | &-dark&-vertical &-child-item-active > &-submenu-title{ |
247 | - color: #fff; | 247 | + color: @menu-dark-active-bg; |
248 | } | 248 | } |
249 | 249 | ||
250 | &-dark&-vertical &-opened{ | 250 | &-dark&-vertical &-opened{ |
src/styles/components/page.less
@@ -34,22 +34,22 @@ | @@ -34,22 +34,22 @@ | ||
34 | font-family: "Monospaced Number"; | 34 | font-family: "Monospaced Number"; |
35 | margin: 0 6px; | 35 | margin: 0 6px; |
36 | text-decoration: none; | 36 | text-decoration: none; |
37 | - color: @text-color; | 37 | + color: #666; |
38 | //transition: none; | 38 | //transition: none; |
39 | } | 39 | } |
40 | 40 | ||
41 | &:hover { | 41 | &:hover { |
42 | - border-color: @primary-color; | 42 | + border-color: @mew-common-color; |
43 | a { | 43 | a { |
44 | - color: @primary-color; | 44 | + color: @mew-common-color; |
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
48 | &-active { | 48 | &-active { |
49 | - border-color: @primary-color; | ||
50 | - | 49 | + border-color: @mew-common-color; |
50 | + background-color: @mew-common-color; | ||
51 | a, &:hover a { | 51 | a, &:hover a { |
52 | - color: @primary-color; | 52 | + color: #fff; |
53 | } | 53 | } |
54 | } | 54 | } |
55 | } | 55 | } |
@@ -135,10 +135,10 @@ | @@ -135,10 +135,10 @@ | ||
135 | } | 135 | } |
136 | 136 | ||
137 | &:hover { | 137 | &:hover { |
138 | - border-color: @primary-color; | 138 | + border-color: @mew-common-color; |
139 | 139 | ||
140 | a { | 140 | a { |
141 | - color: @primary-color; | 141 | + color: @mew-common-color; |
142 | } | 142 | } |
143 | } | 143 | } |
144 | } | 144 | } |
src/styles/components/switch.less
@@ -7,8 +7,8 @@ | @@ -7,8 +7,8 @@ | ||
7 | line-height: 20px; | 7 | line-height: 20px; |
8 | border-radius: 22px; | 8 | border-radius: 22px; |
9 | vertical-align: middle; | 9 | vertical-align: middle; |
10 | - border: 1px solid #ccc; | ||
11 | - background-color: #ccc; | 10 | + border: 1px solid @mew-common-color; |
11 | + background-color: #efefef; | ||
12 | position: relative; | 12 | position: relative; |
13 | cursor: pointer; | 13 | cursor: pointer; |
14 | user-select: none; | 14 | user-select: none; |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | } | 19 | } |
20 | 20 | ||
21 | &-inner { | 21 | &-inner { |
22 | - color: #fff; | 22 | + color: @mew-common-color; |
23 | font-size: @font-size-small; | 23 | font-size: @font-size-small; |
24 | position: absolute; | 24 | position: absolute; |
25 | left: 23px; | 25 | left: 23px; |
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | width: 18px; | 38 | width: 18px; |
39 | height: 18px; | 39 | height: 18px; |
40 | border-radius: 18px; | 40 | border-radius: 18px; |
41 | - background-color: #fff; | 41 | + background-color: @mew-common-color; |
42 | position: absolute; | 42 | position: absolute; |
43 | left: 1px; | 43 | left: 1px; |
44 | top: 1px; | 44 | top: 1px; |
@@ -61,8 +61,8 @@ | @@ -61,8 +61,8 @@ | ||
61 | left: 3px; | 61 | left: 3px; |
62 | top: 3px; | 62 | top: 3px; |
63 | z-index: 1; | 63 | z-index: 1; |
64 | - border: 1px solid @primary-color; | ||
65 | - border-color: transparent transparent transparent @primary-color; | 64 | + border: 1px solid @mew-common-color; |
65 | + border-color: transparent transparent transparent #3fcdc0; | ||
66 | animation: switch-loading 1s linear; | 66 | animation: switch-loading 1s linear; |
67 | animation-iteration-count: infinite; | 67 | animation-iteration-count: infinite; |
68 | } | 68 | } |
@@ -71,7 +71,7 @@ | @@ -71,7 +71,7 @@ | ||
71 | } | 71 | } |
72 | 72 | ||
73 | &:focus { | 73 | &:focus { |
74 | - box-shadow: 0 0 0 2px fade(@primary-color, 20%); | 74 | + box-shadow: 0 0 0 2px fade(@mew-common-color, 20%); |
75 | outline: 0; | 75 | outline: 0; |
76 | } | 76 | } |
77 | 77 | ||
@@ -132,8 +132,8 @@ | @@ -132,8 +132,8 @@ | ||
132 | } | 132 | } |
133 | 133 | ||
134 | &-checked { | 134 | &-checked { |
135 | - border-color: @primary-color; | ||
136 | - background-color: @primary-color; | 135 | + border-color: @mew-common-color; |
136 | + background-color: #e8e8e8; | ||
137 | 137 | ||
138 | .@{switch-prefix-cls}-inner { | 138 | .@{switch-prefix-cls}-inner { |
139 | left: 7px; | 139 | left: 7px; |
@@ -166,12 +166,12 @@ | @@ -166,12 +166,12 @@ | ||
166 | } | 166 | } |
167 | 167 | ||
168 | &-disabled&-checked{ | 168 | &-disabled&-checked{ |
169 | - border-color: @primary-color; | ||
170 | - background-color: @primary-color; | 169 | + border-color: @mew-common-color; |
170 | + background-color: #e8e8e8; | ||
171 | opacity: .4; | 171 | opacity: .4; |
172 | 172 | ||
173 | &:after { | 173 | &:after { |
174 | - background: #fff; | 174 | + background: @mew-common-color; |
175 | } | 175 | } |
176 | 176 | ||
177 | .@{switch-prefix-cls}-inner { | 177 | .@{switch-prefix-cls}-inner { |
src/styles/components/tabs.less
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | &-ink-bar { | 14 | &-ink-bar { |
15 | height: 2px; | 15 | height: 2px; |
16 | box-sizing: border-box; | 16 | box-sizing: border-box; |
17 | - background-color: @primary-color; | 17 | + background-color: @mew-common-color; |
18 | position: absolute; | 18 | position: absolute; |
19 | left: 0; | 19 | left: 0; |
20 | bottom: 1px; | 20 | bottom: 1px; |
@@ -125,11 +125,11 @@ | @@ -125,11 +125,11 @@ | ||
125 | transition: color .3s @ease-in-out; | 125 | transition: color .3s @ease-in-out; |
126 | 126 | ||
127 | &:hover { | 127 | &:hover { |
128 | - color: @link-hover-color; | 128 | + color: @mew-common-color; |
129 | } | 129 | } |
130 | 130 | ||
131 | &:active { | 131 | &:active { |
132 | - color: @link-active-color; | 132 | + color: @mew-common-color; |
133 | } | 133 | } |
134 | .@{css-prefix-iconfont} { | 134 | .@{css-prefix-iconfont} { |
135 | width: 14px; | 135 | width: 14px; |
@@ -139,7 +139,7 @@ | @@ -139,7 +139,7 @@ | ||
139 | } | 139 | } |
140 | 140 | ||
141 | .@{tabs-prefix-cls}-tab-active { | 141 | .@{tabs-prefix-cls}-tab-active { |
142 | - color: @primary-color; | 142 | + color: @mew-common-color; |
143 | } | 143 | } |
144 | } | 144 | } |
145 | &-mini &-nav-container { | 145 | &-mini &-nav-container { |
src/styles/custom.less
@@ -15,11 +15,21 @@ | @@ -15,11 +15,21 @@ | ||
15 | @link-color : #2D8cF0; | 15 | @link-color : #2D8cF0; |
16 | @link-hover-color : tint(@link-color, 20%); | 16 | @link-hover-color : tint(@link-color, 20%); |
17 | @link-active-color : shade(@link-color, 5%); | 17 | @link-active-color : shade(@link-color, 5%); |
18 | -@selected-color : fade(@primary-color, 90%); | 18 | +@selected-color : fade(#ff9a4c, 90%); |
19 | @tooltip-color : #fff; | 19 | @tooltip-color : #fff; |
20 | @subsidiary-color : #808695; | 20 | @subsidiary-color : #808695; |
21 | @rate-star-color : #f5a623; | 21 | @rate-star-color : #f5a623; |
22 | 22 | ||
23 | +// 自定义theme | ||
24 | +@mew-common-color : #3fcdc0; | ||
25 | +@mew-white-color : #fff; | ||
26 | +@mew-black-color : #000; | ||
27 | + | ||
28 | +@search-color : @mew-common-color; | ||
29 | +@confirm-color : #ff9a4c; | ||
30 | +@cancel-color : @mew-white-color; | ||
31 | +@reset-color : @mew-white-color; | ||
32 | + | ||
23 | // Base | 33 | // Base |
24 | @body-background : #fff; | 34 | @body-background : #fff; |
25 | @component-background : #fff; | 35 | @component-background : #fff; |