Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
2e681566
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2e681566
编写于
7月 07, 2015
作者:
A
afc163
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update datepicker input style
上级
93c27575
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
40 deletion
+18
-40
style/components/datepicker/Picker.less
style/components/datepicker/Picker.less
+9
-7
style/components/datepicker/Time.less
style/components/datepicker/Time.less
+2
-1
style/mixins/input.less
style/mixins/input.less
+7
-32
未找到文件。
style/components/datepicker/Picker.less
浏览文件 @
2e681566
...
...
@@ -11,23 +11,25 @@
position: relative;
display: inline-block;
&-input {
.ant-input;
cursor: text;
.input;
}
&-icon {
position: absolute;
-webkit-user-select: none;
user-select: none;
.transition(all .3s @ease-in-out);
width: 14px;
height: 14px;
right: 14px;
color: #999;
top: 50%;
line-height: 1;
margin-top: -7px;
&:after {
position: relative;
left: -22px;
font-family: "anticon";
content: "\e60c";
font-family: "anticon";
font-size: 14px;
color: #999;
top: 5px;
margin-right: -20px;
}
}
&-open .@{prefixCalendarClass},
...
...
style/components/datepicker/Time.less
浏览文件 @
2e681566
...
...
@@ -11,7 +11,8 @@
}
.@{prefixCalendarClass}-time-input {
.ant-input;
.input;
margin: 0;
width: 30px;
height: 26px;
padding: 0;
...
...
style/mixins/input.less
浏览文件 @
2e681566
// 待删除
.ant-input(){
position: relative;
display: inline-block;
margin: 0 0;
padding: 4px 10px;
border-radius: 6px 6px;
border: 1px solid #d9d9d9;
background-color: #ffffff;
color: #666;
line-height: 1.5;
-webkit-transform: border 0.3s cubic-bezier(0.35, 0, 0.25, 1), background 0.3s cubic-bezier(0.35, 0, 0.25, 1), box-shadow 0.3s cubic-bezier(0.35, 0, 0.25, 1);
transform: border 0.3s cubic-bezier(0.35, 0, 0.25, 1), background 0.3s cubic-bezier(0.35, 0, 0.25, 1), box-shadow 0.3s cubic-bezier(0.35, 0, 0.25, 1);
.transition(all .3s @ease-in-out);
&:hover {
border-color: #23c0fa;
}
&:focus {
border-color: #23c0fa;
box-shadow: 0 0 3px #23c0fa;
}
}
// size mixins for input
.input-lg() {
padding: @input-padding-lg;
...
...
@@ -39,10 +14,11 @@
// Basic style for input
.input() {
position: relative;
display: block;
display:
inline-
block;
padding: @input-padding-vertical-base @input-padding-horizontal;
margin-right: 8px;
width: 100%;
cursor: text;
height: @input-height-base;
font-size: @input-font-size;
line-height: @line-height-base;
...
...
@@ -65,10 +41,9 @@
}
&[disabled],
&[readonly],
fieldset[disabled] & {
background-color: @input-disabled-bg;
opacity: 1;
opacity: 1;
&:hover {
border-color: @input-border-color;
}
...
...
@@ -192,7 +167,7 @@
&-btn {
position: relative;
> .@{inputBtn} {
position: relative;
+ .@{inputBtn} {
...
...
@@ -221,11 +196,11 @@
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
&-addon:first-child {
border-right: 0;
}
.@{inputClass}:last-child,
&-addon:last-child,
&-btn:last-child > .@{inputBtn},
...
...
@@ -233,7 +208,7 @@
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
&-addon:last-child {
border-left: 0;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录