Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
e163d943
Commit
e163d943
authored
Oct 21, 2016
by
SkyAo
Committed by
GitHub
Oct 21, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #557 from baiyaaaaa/master
fix input-number style
parents
831f72bb
d918b434
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
18 deletions
+21
-18
packages/input-number/src/input-number.vue
packages/input-number/src/input-number.vue
+0
-1
packages/theme-default/src/input-number.css
packages/theme-default/src/input-number.css
+21
-13
packages/theme-default/src/slider.css
packages/theme-default/src/slider.css
+0
-4
No files found.
packages/input-number/src/input-number.vue
View file @
e163d943
...
...
@@ -9,7 +9,6 @@
v-model.number=
"currentValue"
:disabled=
"disabled"
:size=
"size"
:number=
"true"
:class=
"
{
'is-active': inputActive
}">
...
...
packages/theme-default/src/input-number.css
View file @
e163d943
...
...
@@ -4,16 +4,14 @@
@component-namespace
el
{
@b
input-number
{
display
:
block
;
display
:
inline-
block
;
overflow
:
hidden
;
width
:
180px
;
position
:
relative
;
&
.el-input__inner
{
appearance
:
none
;
}
&
.el-input
{
float
:
left
;
margin-right
:
calc
(
-
(
var
(
--input-height
)
+
1px
)
*
2
);
}
@e
increase
,
decrease
{
height
:
100%
;
border-left
:
var
(
--border-base
);
...
...
@@ -23,8 +21,7 @@
text-align
:
center
;
color
:
#99A9BF
;
cursor
:
pointer
;
float
:
left
;
position
:
relative
;
position
:
absolute
;
&:hover
{
color
:
var
(
--color-primary
);
...
...
@@ -36,6 +33,13 @@
}
}
@e
increase
{
right
:
0
;
}
@e
decrease
{
right
:
calc
(
var
(
--input-height
)
+
1px
);
}
@when
disabled
{
&
.el-input-number__increase
,
.el-input-number__decrease
{
border-color
:
var
(
--disabled-border-base
);
...
...
@@ -48,24 +52,28 @@
}
}
@when
large
{
&
.el-input
{
margin-right
:
calc
(
-
(
var
(
--input-large-height
)
+
1px
)
*
2
);
}
width
:
200px
;
&
.el-input-number__increase,
.el-input-number__decrease
{
line-height
:
var
(
--input-large-height
);
width
:
var
(
--input-large-height
);
font-size
:
var
(
--input-large-font-size
);
}
&
.el-input-number__decrease
{
right
:
calc
(
var
(
--input-large-height
)
+
1px
);
}
}
@when
small
{
&
.el-input
{
margin-right
:
calc
(
-
(
var
(
--input-small-height
)
+
1px
)
*
2
);
}
width
:
130px
;
&
.el-input-number__increase,
.el-input-number__decrease
{
line-height
:
var
(
--input-small-height
);
width
:
var
(
--input-small-height
);
font-size
:
var
(
--input-small-font-size
);
}
&
.el-input-number__decrease
{
right
:
calc
(
var
(
--input-small-height
)
+
1px
);
}
}
}
}
packages/theme-default/src/slider.css
View file @
e163d943
...
...
@@ -24,10 +24,6 @@
@e
input
{
float
:
right
;
margin-top
:
7px
;
&
.el-input
{
width
:
130px
;
}
}
@e
bar
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment