Skip to content

Commit aea3c88

Browse files
author
uncle.fan
committed
自定义属性
1 parent da02bba commit aea3c88

6 files changed

Lines changed: 22 additions & 11 deletions

File tree

src/styles/components/badge.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
display: inline-block;
126126
color: @text-color;
127127
font-size: @font-size-base;
128-
margin-left: 6px;
128+
margin-left: 3px;
129129
}
130130

131131
@colors: pink, magenta, red, volcano, orange, yellow, gold, cyan, lime, green, blue, geekblue, purple;

src/styles/components/form.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
margin-left: 0!important;
4646
}
4747

48+
// 表单验证错误信息
4849
&-error-tip{
4950
position: absolute;
5051
top: 100%;

src/styles/components/page.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
transition: border @transition-time @ease-in-out, color @transition-time @ease-in-out;
3232

3333
a {
34-
font-family: "Monospaced Number";
34+
//font-family: "Monospaced Number";
3535
margin: 0 6px;
3636
text-decoration: none;
3737
color: @text-color;
@@ -166,7 +166,7 @@
166166

167167
a {
168168
color: #666;
169-
font-size: 14px;
169+
font-size: @font-size-base;
170170
}
171171

172172
&:hover {
@@ -206,6 +206,7 @@
206206
&-elevator {
207207
display: inline-block;
208208
vertical-align: middle;
209+
font-size: @font-size-base;
209210
//float: left;
210211
height: @btn-circle-size;
211212
line-height: @btn-circle-size;
@@ -281,7 +282,7 @@
281282
border: 0;
282283
margin: 0;
283284
min-width: @btn-circle-size-small;
284-
height: @btn-circle-size-small;
285+
height: @btn-circle-size-small + 2px;
285286
line-height: @btn-circle-size-small;
286287
border-radius: @btn-border-radius-small;
287288
}

src/styles/custom.less

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@
3232
@text-color-secondary: fade(@black, 45%);
3333
@heading-color: fade(#000, 85%);
3434
@heading-color-dark: fade(@white, 100%);
35-
@font-size-base : 14px;
35+
@font-size-base : 13px;
3636
@font-size-small : 12px;
37-
@font-size-large : @font-size-base + 2px;
37+
@font-size-large : 14px;
38+
@font-size-xlarge : @font-size-base + 2px;
3839
@line-height-base : 1.5;
3940
@line-height-computed : floor((@font-size-base * @line-height-base));
4041
@border-radius-base : 6px;
42+
@border-radius-large : 6px;
43+
@border-radius-medium : 3px;
4144
@border-radius-small : 4px;
4245
@cursor-disabled : not-allowed;
4346

@@ -79,7 +82,8 @@
7982

8083
// Button
8184
@btn-height-base : 32px;
82-
@btn-height-large : 40px;
85+
@btn-height-large : 36px;
86+
@btn-height-xlarge : 40px;
8387
@btn-height-small : 24px;
8488

8589
@btn-padding-base : 0 @padding-md - 1px;
@@ -92,6 +96,7 @@
9296
@btn-padding-small-icon : 1px 7px 2px;
9397
@btn-font-size : @font-size-base;
9498
@btn-font-size-large : @font-size-large;
99+
@btn-font-size-xlarge : @font-size-xlarge;
95100
@btn-font-size-small : @font-size-base;
96101
@btn-border-radius : 4px;
97102
@btn-border-radius-small: 3px;
@@ -125,6 +130,7 @@
125130
@grid-gutter-width : 0;
126131
@layout-body-background : #f5f7f9;
127132
@layout-header-background : #515a6e;
133+
@layout-header-height-base : 48px;
128134
@layout-header-height : 64px;
129135
@layout-header-padding : 0 50px;
130136
@layout-footer-padding : 24px 50px;
@@ -140,7 +146,8 @@
140146

141147
// Input
142148
@input-height-base : 32px;
143-
@input-height-large : 40px;
149+
@input-height-large : 36px;
150+
@input-height-xlarge : 40px;
144151
@input-height-small : 24px;
145152

146153
@input-padding-horizontal : 7px;

src/styles/mixins/button.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@
185185

186186
> .@{css-prefix-iconfont} {
187187
line-height: @line-height-base;
188-
//vertical-align: middle;
188+
//按钮图标居中
189+
vertical-align: middle;
189190
}
190191

191192
&-icon-only&-circle > .@{css-prefix-iconfont}{
@@ -194,7 +195,8 @@
194195

195196
> span, > i{
196197
display: inline-block;
197-
//vertical-align: middle;
198+
//按钮文字居中
199+
vertical-align: middle;
198200
}
199201

200202
&,

src/styles/mixins/content.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
line-height: 20px;
1515
font-size: @font-size-large;
1616
color: @title-color;
17-
font-weight: 500;
17+
font-weight: 700;
1818
overflow: hidden;
1919
text-overflow: ellipsis;
2020
white-space: nowrap;

0 commit comments

Comments
 (0)