Skip to content

Commit

Permalink
fix(input-text): padding is missing (#148)
Browse files Browse the repository at this point in the history
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
  • Loading branch information
ryo-gk and kiaking committed Sep 27, 2022
1 parent 5302d05 commit 336afb3
Showing 1 changed file with 39 additions and 26 deletions.
65 changes: 39 additions & 26 deletions lib/components/SInputText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,30 +122,39 @@ function getValue(e: Event | FocusEvent | KeyboardEvent): string | null {
<style lang="postcss" scoped>
.SInputText.mini {
.input,
.input-area {
.box {
padding: 0 8px;
min-height: 32px;
padding: 3px 12px;
font-size: 14px;
}
&.has-icon {
padding-left: 30px;
}
.value,
.input,
.display {
min-height: 30px;
}
.input,
.display {
padding: 3px 0;
letter-spacing: 0;
line-height: 24px;
font-size: 14px;
}
.icon {
top: 9px;
left: 10px;
width: 22px;
height: 30px;
}
.icon-svg {
width: 14px;
height: 14px;
width: 16px;
height: 16px;
}
}
.SInputText.small {
.box {
padding: 0 12px;
min-height: 40px;
}
Expand All @@ -155,10 +164,6 @@ function getValue(e: Event | FocusEvent | KeyboardEvent): string | null {
min-height: 38px;
}
.box {
padding: 0 12px;
}
.input,
.display {
padding: 5px 0;
Expand All @@ -179,25 +184,33 @@ function getValue(e: Event | FocusEvent | KeyboardEvent): string | null {
}
.SInputText.medium {
.input,
.input-area {
.box {
padding: 0 12px;
min-height: 48px;
padding: 11px 16px;
font-size: 16px;
}
&.has-icon {
padding-left: 36px;
}
.value,
.input,
.display {
min-height: 46px;
}
.input,
.display {
padding: 11px 0;
letter-spacing: 0;
line-height: 24px;
font-size: 16px;
}
.icon {
top: 16px;
left: 12px;
width: 28px;
height: 46px;
}
.icon-svg {
width: 16px;
height: 16px;
width: 18px;
height: 18px;
}
}
Expand Down

0 comments on commit 336afb3

Please sign in to comment.