custom.less 4.1 KB
Newer Older
A
afc163 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
// prefix class
@css-prefix             : ant-;

// color
@primary-color          : #2db7f5;

// ------ Base & Require ------ 
@body-background        : #fff;

@font-family            : "Microsoft Yahei", "Hiragino Sans GB", "Microsoft Sans Serif", "WenQuanYi Micro Hei", Arial, sans-serif;
@code-family            : "PT Mono", Menlo, "Courier New", monospace;
@text-color             : #666;
@font-size-base         : 12px;
@line-height-base       : 1.5;

// ICONFONT
@iconfont-css-prefix    : anticon;
@icon-url               : "//at.alicdn.com/t/font_1433747417_2381783";

// LINK
@link-color             : #00abea;
@link-hover-color       : #23C0FA;
@link-hover-decoration  : none;

// Disabled cursor for form controls and buttons.
@cursor-disabled        : not-allowed;

// Animation
S
simaQ 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
@duration-300        : .3s;
@duration-400        : .4s;
@duration-500        : .5s;
@duration-600        : .6s;
@duration-700        : .7s;
@duration-800        : .8s;
@duration-900        : .9s;
@duration-1000       : 1.0s;
@duration-1100       : 1.1s;
@duration-1200       : 1.2s;
@ease-out            : cubic-bezier(0.25, 0.8, 0.25, 1);
@ease-in             : cubic-bezier(0.55, 0, 0.55, 0.2);
@ease-in-out         : cubic-bezier(0.35, 0, 0.25, 1);
@ease-out-back       : cubic-bezier(0.18, 0.89, 0.32, 1.28);
@ease-in-back        : cubic-bezier(0.6, -0.3, 0.74, 0.05);
@ease-in-out-back    : cubic-bezier(0.68, -0.55, 0.27, 1.55);
@ease-out-circ       : cubic-bezier(0.08, 0.82, 0.17, 1);
@ease-in-circ        : cubic-bezier(0.6, 0.04, 0.98, 0.34);
@ease-in-out-circ    : cubic-bezier(0.78, 0.14, 0.15, 0.86);
A
afc163 已提交
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81

// BUTTONS
@btn-font-weight        : normal;

@btn-primary-color      : #fff;
@btn-primary-bg         : #2db7f5;
@btn-primary-border     : #2db7f5;

@btn-default-color      : #666;
@btn-default-bg         : #f3f5f7;
@btn-default-border     : #d9d9d9;

@btn-ghost-color        : #666;
@btn-ghost-bg           : #fff;
@btn-ghost-border       : #d9d9d9;

@btn-disable-color      : #ccc;
@btn-disable-bg         : #f3f5f7;
@btn-disable-border     : #d9d9d9;

@btn-padding-base       : 4px 15px;
@btn-border-radius-base : 14px;

@btn-font-size-lg       : 14px;
@btn-padding-lg         : 4px 15px 5px 15px;
@btn-border-radius-lg   : 16px;

@btn-padding-sm         : 1px 15px;
@btn-border-radius-sm   : 11px;

@btn-circle-size        : 28px;
@btn-circle-size-lg     : 32px;
@btn-circle-size-sm     : 22px;

展新 已提交
82
// Border
A
afc163 已提交
83
@border-radius-base     : 6px;
展新 已提交
84

展新 已提交
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
// Media queries breakpoints
// Extra small screen / phone
@screen-xs              : 480px;
@screen-xs-min          : @screen-xs;
@screen-xs-max          : (@screen-xs-min - 1);

// Small screen / tablet
@screen-sm              : 768px;
@screen-sm-min          : @screen-sm;
@screen-sm-max          : (@screen-sm-min - 1);

// Medium screen / desktop
@screen-md              : 992px;
@screen-md-min          : @screen-md;
@screen-md-max          : (@screen-md-min - 1);

// Large screen / wide desktop
@screen-lg              : 1200px;
@screen-lg-min          : @screen-lg;
@screen-lg-max          : (@screen-lg-min - 1);

// Layout and Grid system
@grid-columns           : 24;
@grid-gutter-width      : 0;

// Container sizes
@container-sm           : (720px + @grid-gutter-width);
@container-md           : (940px + @grid-gutter-width);
S
simaQ 已提交
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
@container-lg           : (1140px + @grid-gutter-width);

// Form
// --------------------------------
// Legend
@legend-color                : #222;
@legend-border-color         : #e5e5e5;

// Input
@input-height-base: 28px;
@input-height-lg: 32px;
@input-height-sm: 22px;

@input-padding-horizontal    : 7px;
@input-padding-vertical-base : 4px;
@input-padding-vertical-sm   : 1px;
@input-padding-lg            : 4px 7px 5px;

@input-placeholder-color     : #ccc;
@input-color                 : #666;
@input-border-color          : #d9d9d9;
@input-bg                    : #fff;

@input-border-radius         : @border-radius-base;

@input-font-size-lg          : 14px;
@input-font-size             : @font-size-base;
@input-font-size-sm          : @font-size-base;

@input-hover-border-color    : #23c0fa;
@input-focus-border-color    : #2db7f5;
@input-disabled-bg           : #f3f5f7;