Commit Graph

299 Commits

Author SHA1 Message Date
afc163
bdcf4342fe tweak icon size and design 2018-09-08 15:46:26 +08:00
HeskeyBaozi
c76a90b2b7 fix tweak icon 2018-09-07 14:14:23 +08:00
afc163
3cbb5da6c2 tweak icons size 2018-09-03 17:11:20 +08:00
HeskeyBaozi
ff44129e6e remove less vars @icon-url 2018-09-03 11:28:52 +08:00
afc163
207bad7b47 Merge branch 'master' into feature-3.9.0 2018-09-01 13:22:06 +08:00
Tom Xu
8ff9dc6bab Table added a new less variable @table-header-color 2018-08-31 10:42:50 +08:00
Chandler Moisen
ce4a4bacaa add @menu-item-active-border-width to Menu.Item (#11934) 2018-08-29 11:20:13 +08:00
Chandler Moisen
badfac83b0 add @progress-text-color var to <Progress /> (#11771) 2018-08-28 11:36:00 +08:00
afc163
be78706364 Merge branch 'master' into feature-3.9.0 2018-08-25 18:55:32 +08:00
afc163
1ba99510cd Fix @shadow-1-up, close #11873 2018-08-24 20:26:27 +08:00
zombieJ
796b56dbc4
New Component Skeleton (#11226)
* Add new component Skeleton
* Add related doc
* Add sample
* Add test case

ref: https://github.com/ant-design/ant-design/issues/10308
2018-08-22 23:34:36 +08:00
陈帅
958e8ebc4b Fix drawer (#11702)
* fix #11583 #11443 remove pointer-events

* update snap  fix ci

* @ease change to @drawer-easing

* add @ease-base-out and @ease-base-in

* fix drawer
2018-08-18 12:34:40 +08:00
afc163
9cf6ae6010 Refactor and apply wave click animation to more components
now support Button, Tag, Radio.Button and switch
2018-08-11 15:14:34 +08:00
David Hatten
f237effc2a list padding and margin defaults added 2018-08-07 13:54:03 -04:00
Thibault Derousseaux
43abea3212 Use tabular-nums font variant instead of switching to Tahoma for figures
Using a completely different font for figures leads to inconsistencies: https://github.com/ant-design/ant-design/issues/9422.
Most modern font systems defaults to [tabular figures](https://www.fonts.com/content/learning/fontology/level-3/numbers/proportional-vs-tabular-figures).
One exception to this is Apple's San Francisco which defaults to [proportional figures](http://martiancraft.com/blog/2015/10/san-francisco-part-2/#special-features-numerals).
There is, however, an official and clean way to switch to tabular figures. It's the [`font-variant` CSS property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric) that can be set to `tabular-nums`.

This commit removes the "Monospaced Number" font altogether and use `font-variant: tabular-nums` instead where it was used.
It also moves closer to the sans-serif and monospace [system font stacks used by GitHub](http://markdotto.com/2018/02/07/github-system-fonts/).
2018-08-04 11:28:14 +08:00
Bryan Berger
1d924300e7 add @message-notice-content-padding var to <Message /> 2018-07-18 22:17:12 +08:00
afc163
0c4d356e54 Merge branch 'master' into feature-3.7.0 2018-07-03 19:54:48 +08:00
afc163
553901dfb8 Fix card background overflow when zoom in chrome, close #9085 2018-06-30 21:13:22 +08:00
afc163
e7fa6ca7eb Merge branch 'master' into feature-3.7.0 2018-06-19 15:31:53 +08:00
afc163
7fe027bfcf fix stylelint problem 2018-06-19 15:30:20 +08:00
afc163
99d6e4c96c Merge branch 'master' into feature-3.7.0 2018-06-12 15:34:51 +08:00
Yuxuan Huo
9aea9ddf58 expose input box-shadow h and v offset in theme variables 2018-06-11 20:20:24 +08:00
陈帅
789b54905c fix #10842 Badge status does not change with themes 2018-06-08 17:59:31 +08:00
zombieJ
a825ed4e66
Directory Tree (#10139)
Support DirTree. close #7749
2018-06-04 11:20:17 +08:00
picodoth
e25323882a Merge branch 'feature-3.6.0' 2018-06-02 13:36:05 +08:00
afc163
814ee7365a tweak popover arrow style detail 2018-05-28 23:29:04 +08:00
Rongjian Zhang
f3869270ae Fix #10142: Add theme props to Layout.Sider (#10631)
* Fix #10142: Add `theme` props to `Layout.Sider`

* Update documentation of Layout.Sider for new theme props

* Fix snapshot tests

* Add unit test for sider theme
2018-05-23 23:46:28 +08:00
afc163
eb17aae25c Fix less import error again 2018-05-17 15:21:31 +08:00
afc163
593435ce65 fix import path 2018-05-17 14:39:33 +08:00
afc163
c4f58e7027 fix import path 2018-05-17 11:04:14 +08:00
afc163
b76910f63f fix typo 2018-05-16 11:49:35 +08:00
afc163
12d3046687 style: unify the less vars naming 2018-05-15 17:02:01 +08:00
愚道
b45146486a merge feature-3.5.0 2018-04-28 11:04:10 +08:00
afc163
1f6107e94a Fix naming convention, close #10275 2018-04-27 13:21:51 +08:00
davidhatten
74d1c5e6b6 Add collapse styles to default.less (#9943)
* push collapse styling into overridable defaults

* Changes to ensure backwards compatibiliy, switch bg-color to be based on default style

* change background-color to bg in style names

* simplify and consolodate content-padding

* I figured out why the styling is split across content and box like that

The collapse/show animation doesn't work right without the padding set up across the two elements like this. From an end-user point of view, I think this is the easiest thing.

* pushing all padding styling on to the box instead of the content, keeping var name the same because the end user doesn't need to know the difference

* Pushing header-bg-color back up to the top of the component heirarchy

* shorten content padding
2018-04-19 11:36:53 +08:00
afc163
99e030cc4c Merge branch 'master' into feature-3.4.0 2018-03-25 01:39:27 +08:00
Bryan Berger
c3df0bc688 Fix <Switch /> small margin (#9602)
* should be 13px. Size of the circle (12px) + desired spacing (1px).

* add single responsibility var
2018-03-24 21:52:47 +08:00
meesvandongen
2c5231f0ed Made expanded row background (table) a less variable. (#9789) 2018-03-24 13:18:38 +08:00
afc163
ba7b7d0d6b link colors should be related with @link-color 2018-03-23 18:04:02 +08:00
Bryan Berger
a0e161ccdd Add variable for Pagination font-weight when active (#9603) 2018-03-18 13:06:00 +08:00
afc163
c7dd7cbbc4 Fix large tabs font size, close #9509 2018-03-05 18:35:33 +08:00
afc163
8a6b76acde support less vars for tabs title font size 2018-02-28 11:07:26 +08:00
George Gray
053396810b add @badge-font-weight var (#9352) 2018-02-14 12:35:52 +08:00
George Gray
676635abde var to theme pagination font (#9351) 2018-02-13 21:38:34 +08:00
afc163
c04377e541 Add more icons, #9092 2018-02-11 17:10:18 +08:00
George Gray
22c3097d79 Vars to theme Tabs (#9172) 2018-02-04 02:42:13 -06:00
afc163
506f97640e Fix font family name, close ant-design/ant-design-pro#813 2018-01-26 10:24:41 +08:00
George Gray
7d9a93e7ed vars to theme Menu (#9115) 2018-01-25 10:59:49 +08:00
George Gray
72a5b1fef7 Vars to theme slider (#9065)
* vars to theme slider

* add @slider-margin back
2018-01-23 21:03:22 +08:00
George Gray
aa9e335145 add vars to theme Breadcrumb component (#9022) 2018-01-20 16:04:49 +08:00
afc163
32023c24e5 Add aliyun icon 2018-01-19 12:04:50 +08:00
George Gray
a9abe14122 Vars for checkbox and radio (#9003)
* vars for radio component

* add @checkbox-color var
2018-01-18 10:22:03 +08:00
afc163
f88a405c32 Fix text font family unexpected change in chrome, close #8636 2018-01-12 21:53:34 +08:00
Graeme Yeates
b9b5abab33 Add @switch-color to control switch colors (#8940) 2018-01-12 10:02:34 +08:00
afc163
c6fcc31217 More readable font family for chinese quote 2018-01-05 10:26:22 +08:00
afc163
abf9717eab Large component should has larger font size
14px => 16px
2017-12-28 15:41:48 +08:00
ddcat1115
f780759f91 fix large size formItem vertical align (#8495)
* - fix large size input with prefix/suffix vertical align
- fix large size button vertical align

* use large size for formItem default line-height

* improve
2017-12-08 20:57:30 +08:00
afc163
f26261de31 Support Switch[loading] 2017-12-02 16:00:27 +08:00
ddcat1115
da14cba722 add 3 icons 2017-11-22 18:11:24 +08:00
Wei Zhu
5970dbb1ec Fix table row selected className
Close #8074 #8075
2017-11-18 00:03:30 +08:00
Graeme Yeates
b46cb4b740 Add a variable to control processing colors (#8166) 2017-11-11 14:15:16 +08:00
afc163
714b4ae06a Merge branch 'master' into antd-3.0 2017-11-06 10:35:41 +08:00
Kyle Kelley
43864988e3 correct spelling of progress (#8101)
`@process-default-color` --> `@progress-default-color`
2017-11-03 09:43:02 +08:00
afc163
ef443ad047 Merge branch 'master' into antd-3.0 2017-10-20 15:47:42 +08:00
syssam
f8b7aad53d less variable @form-vertical-label-padding, @form-vertical-label-margin, @input-padding-horizontal-base, @input-padding-horizontal-sm, @input-padding-horizontal-lg (#7886) (#7919) 2017-10-20 15:11:44 +08:00
afc163
43bf7c5595 update dark menu color 2017-10-19 16:07:39 +08:00
afc163
7c8702ec61 Tweak popover arrow style 2017-10-19 16:00:24 +08:00
afc163
a68dd71cff Tweak card background 2017-10-19 10:01:59 +08:00
afc163
009ba523d7 update @layout-body-background 2017-10-18 20:59:48 +08:00
偏右
ffffd0f4c5 Fix styles (#7924)
* update demo

* Fix styles

* fix snap

* Fix back-top ci
2017-10-18 17:16:14 +08:00
afc163
26e416c364 Tweak style 2017-10-16 19:56:04 +08:00
afc163
fe44e33689 Tweak tag styles 2017-10-16 16:13:35 +08:00
afc163
14a58c9960 Tweak input addon background 2017-10-16 14:49:32 +08:00
偏右
9053192ae9 Fix component style (#7848)
* fix components style

* fix snapshot

* update travis node version

* change upload action in ci
2017-10-11 12:01:27 +08:00
afc163
934c4c0de1 finish whole color pallate 2017-10-09 18:24:12 +08:00
afc163
c9768e1099 tweak form item margin 2017-10-09 11:09:25 +08:00
afc163
054444f619 Merge branch 'master' into antd-3.0 2017-10-07 15:34:19 +08:00
afc163
31d0c3a49d Fix @link-hover-decoration, close #7821 & #7531 2017-10-07 15:31:25 +08:00
Graeme Yeates
2e2acb5be9 Support customizing layout footer background (#7818) 2017-10-06 16:09:33 +08:00
偏右
2bced36f0c New component styles (#7731)
* Tweak button padding

* upgrade input and button size

* update form controls size

* update components size

* Add lemon color and update rate color

* Add new icons

* update layout style

* breadcrumb and dropdown

* update menu arrow width

* update layout and menu

* update steps

* fix var name

* update cascasder style

* Update DatePicker

* update InputNumber and Mention

* radio and switch

* select and transfer

* TimePicker & Upload

* more components

* calendar and list

* Tree Timeline Popover Tag

* divider modal popover

* update search input

* update card style

* update switch disabled opacity

* update shoadow and mask

* Add v2-compatible-reset.less

* Fix undefined className

* update snahshotssssssssssssssssss 👻
2017-09-27 22:32:49 +08:00
afc163
6507aefd8e Merge branch 'master' into antd-3.0 2017-09-25 10:54:49 +08:00
afc163
89a6aa96ed Tweak input placeholder color, close #7365 2017-09-23 18:21:33 +08:00
afc163
df1b1f5a47 Add @checkbox-size, close #7368 2017-09-23 18:18:47 +08:00
afc163
e7ccdfef74 Improve card variables 2017-09-22 18:34:31 +08:00
偏右
8b3ef51c4f New colors (#7661)
* New colors

* use yellow color for rate

* change font colors

* use non-transparent color
2017-09-22 18:33:43 +08:00
afc163
1b7b172f44 Tweak button font-weight and text size 2017-09-19 20:24:47 +08:00
afc163
13a11d6fc3 update default font-size 2017-09-08 15:32:10 +08:00
afc163
68139cdbda Add some icons 2017-09-05 17:13:46 +08:00
afc163
5a971b24ad Merge from master 2017-08-27 19:32:02 +08:00
afc163
3d322a7c04 Tweak tooltip background and fix basic demo 2017-08-25 10:11:22 +08:00
ddcat1115
b10f7726c3 Merge remote-tracking branch 'origin/master' into antd-3.0 2017-08-23 23:12:38 +08:00
ddcat1115
0d4baf302d 调整卡片样式 (#7286)
* 调整卡片样式

* improve
2017-08-23 19:02:27 +08:00
afc163
8bdad3d418 update less code style 2017-08-23 13:57:01 +08:00
afc163
c28c2f6b1e Merge branch 'master' into antd-3.0 2017-08-18 19:18:26 +08:00
afc163
187e9dd85c tweak step number font 2017-08-17 21:51:25 +08:00
afc163
b84b17d981 Merge branch 'master' into antd-3.0 2017-08-17 18:03:28 +08:00
lvren
a93cb09e15 将sider收起时的宽度变量放到themes中控制 (#7238) 2017-08-17 16:09:04 +08:00
偏右
2dedc5ec7f Upgrade grid break points (#7230)
close #5122
2017-08-16 20:19:41 +08:00
afc163
af1e862aef Merge branch 'master' into antd-3.0 2017-08-10 21:45:49 +08:00
afc163
d98d7a451c Add @tag-font-size 2017-08-10 21:45:19 +08:00
ddcat1115
2b1bed42c9 Card new feat (#7120)
* inner style Card

* support `cover` `actions` `avatar` `description` and `extraContent`

* improve

* refactor
2017-08-09 14:34:10 +08:00
afc163
6a17efcbf1 upgrade some devDeps and fix stylelint 2017-08-04 18:01:40 +08:00
Bryan Berger
91400d54fa add less variables for layout-trigger background, color 2017-07-21 14:21:31 -04:00
neekey
7e522291c8 add unit px to all less value, make them explicit 2017-07-17 17:44:40 +10:00
afc163
39207efa4d Add @badge-font-size and @tabs-title-font-size 2017-07-12 17:32:31 +08:00
afc163
ab4e676b2a update input placeholder color 2017-07-11 16:51:54 +08:00
偏右
0ce61df3da Merge pull request #6599 from megawac/table-sort-select-bg
Use background-color-active for table sort and selected backgrounds
2017-06-30 12:00:16 +08:00
afc163
5964e42a9b tweak form label style 2017-06-26 11:51:41 +08:00
Graeme Yeates
5d8a3f6f66 Use background-color-active for table sort and selected backgrounds 2017-06-23 12:43:40 -04:00
乐仪
c30d1b191f add Avatar 2017-06-09 12:02:24 +08:00
偏右
516317e78a Merge pull request #6005 from megawac/multiselect-tag-bg
Use @tag-default-bg for multiselect tags
2017-05-22 16:35:03 +08:00
Graeme Yeates
adfca8ae78 Use @tag-default-bg for multiselect tags 2017-05-19 11:52:31 -04:00
afc163
a4fb175672 move duplicated css code, close #6156 2017-05-17 20:31:48 +08:00
afc163
6d38fcf4e4 Add @popover-distance and adjuest popover default distance, close #6105 2017-05-13 15:07:01 +08:00
afc163
811ecfddf6 Add fork icon 2017-05-11 13:30:38 +08:00
Graeme Yeates
8d1b2c9f32 Add variable for controlling backtop colors (#6038) 2017-05-09 17:15:54 +08:00
Graeme Yeates
e65dd692d2 Add a variable to control input addon's background (#6040) 2017-05-08 13:55:34 +08:00
偏右
1a775b1d3b Merge pull request #5964 from megawac/active-item-bg
Add @active-item-bg to control hover and active states
2017-05-04 12:02:55 +08:00
偏右
131a35bcc9 Merge pull request #6008 from megawac/popover-text-color
Add missing @popover-color variable
2017-05-04 11:59:40 +08:00
Graeme Yeates
eafb41d129 Add missing @popover-text-color variable 2017-05-03 13:36:22 -04:00
Graeme Yeates
98ba816bfb Add @time-picker-selected-bg to control the selected state of time-picker 2017-05-03 11:06:07 -04:00
Graeme Yeates
d8d17a6401 Seperate @active-item-bg into 2 variables 2017-05-03 10:57:14 -04:00
Graeme Yeates
0bc8284c46 [#5964] add @background-color-active rule 2017-05-02 11:06:01 -04:00
Graeme Yeates
4eb2855871 Add @active-item-bg to control hover and active states 2017-05-02 11:05:28 -04:00
liekkas
7ee1e79841 extract new variable @tabs-card-head-background from tabs's card-style.less 2017-05-01 21:58:37 +08:00
偏右
5fde1e7550 Merge branch 'master' into background-color-base 2017-05-01 13:51:11 +08:00
Graeme Yeates
5841746ec9 Decompose @background-color-base into several variables 2017-04-28 16:04:41 -04:00
Graeme Yeates
10aab49686 Add some basic documentation for some of the confusing less variables 2017-04-28 15:24:45 -04:00
绯一
80de0127f4 feat: add table padding parameters for customizing (#5795) 2017-04-26 10:16:26 +08:00
leadream
d783c26263 css: add background color variable for modal mask. (#5890) 2017-04-25 16:43:42 +08:00
Graeme Yeates
1790642e98 Allow styling of radio button backgrounds (#5791) 2017-04-22 14:09:25 +08:00
偏右
aa0c29dfc0 Merge pull request #5855 from megawac/optional-form-colon
Add a less variable to opt out of form item colons
2017-04-22 13:30:14 +08:00
ddcat1115
75e9e44a2f new style of danger button (#5815)
* new style for danger button

* improve
2017-04-22 10:44:17 +08:00
Graeme Yeates
297412b57c Add a less variable to opt out of form item colons 2017-04-21 14:34:56 -04:00
afc163
6b1cec2bf6 Use height over padding for button size, close #5256 2017-04-16 19:01:46 +08:00
afc163
92b8e8534e change variable names #5711 2017-04-11 17:56:38 +08:00
Sanjay Kumar
692ccf85e7 Adding less variables for table head background color and table row hover 2017-04-11 17:08:09 +08:00
afc163
b526083fa6 set monospaced font-family for number 2017-03-31 13:45:16 +08:00
afc163
0fd88acc93 Improve tree showLine styles 2017-03-28 17:51:45 +08:00
afc163
901a1e6769 use @info-color over @primary-color, close #5442 2017-03-27 10:09:06 +08:00
ddcat1115
27b099e58e feat: Tree with line & Tree customize icon demo (#5261)
* Tree with line & Tree customize icon demo

* improve
2017-03-21 09:41:02 +08:00
Benjy Cui
c097d5a9f5 Merge branch 'master' into feature-2.9 2017-03-20 11:29:36 +08:00
afc163
46b344eabe tweak icons 2017-03-17 19:11:36 +08:00
kossel
621f44e79c added card header style mixins (#5354)
* added card header style mixins

* fix color variable naming
2017-03-17 11:46:50 +08:00
Jesper We
8fe13f9113 Make <Rate> colors available in theme. (#5238)
* Make <Rate> colors available in theme.

* Add <Rate> color values
2017-03-10 14:58:01 +08:00
afc163
941782f7ec Add iconfont shake and android-o 2017-03-09 14:33:58 +08:00
afc163
a274f44a5a darken heading-color 2017-03-07 14:00:15 +08:00
Wei Zhu
67bbae9ea8 Merge branch 'feature-2.8' 2017-03-05 21:34:57 +08:00
ddcat1115
29fa65fcc9 Layout.Sider support responsive display (#4931)
* save

* Layout.Sider support responsive display

* improve

* fix wrong spelling
2017-03-05 21:10:34 +08:00
afc163
7645a77c44 Update iconfont url and docs 2017-03-03 14:42:00 +08:00