Skip to content

Commit

Permalink
Fixed #305 - Icons inside InputText
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed May 7, 2020
1 parent d9d9016 commit 339fa2f
Show file tree
Hide file tree
Showing 19 changed files with 327 additions and 8 deletions.
16 changes: 16 additions & 0 deletions public/themes/luna-amber/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.429em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 1.858em;
}

.p-input-icon-right > i {
right: 0.429em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 1.858em;
}

.p-listbox {
background: #323232;
color: #dedede;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/luna-green/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.429em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 1.858em;
}

.p-input-icon-right > i {
right: 0.429em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 1.858em;
}

.p-listbox {
background: #323232;
color: #dedede;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/luna-pink/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.429em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 1.858em;
}

.p-input-icon-right > i {
right: 0.429em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 1.858em;
}

.p-listbox {
background: #323232;
color: #dedede;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/nova-colored/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.429em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 1.858em;
}

.p-input-icon-right > i {
right: 0.429em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 1.858em;
}

.p-listbox {
background: #ffffff;
color: #333333;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/nova-dark/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.429em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 1.858em;
}

.p-input-icon-right > i {
right: 0.429em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 1.858em;
}

.p-listbox {
background: #ffffff;
color: #333333;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/nova-light/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.429em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 1.858em;
}

.p-input-icon-right > i {
right: 0.429em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 1.858em;
}

.p-listbox {
background: #ffffff;
color: #333333;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/nova-vue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.429em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 1.858em;
}

.p-input-icon-right > i {
right: 0.429em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 1.858em;
}

.p-listbox {
background: #ffffff;
color: #333333;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/rhea/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.429em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 1.858em;
}

.p-input-icon-right > i {
right: 0.429em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 1.858em;
}

.p-listbox {
background: #ffffff;
color: #666666;
Expand Down
18 changes: 18 additions & 0 deletions public/themes/saga-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,24 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.5em;
color: #6c757d;
}

.p-input-icon-left > .p-inputtext {
padding-left: 2em;
}

.p-input-icon-right > i {
right: 0.5em;
color: #6c757d;
}

.p-input-icon-right > .p-inputtext {
padding-right: 2em;
}

.p-listbox {
background: #ffffff;
color: #495057;
Expand Down
18 changes: 18 additions & 0 deletions public/themes/saga-green/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,24 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.5em;
color: #6c757d;
}

.p-input-icon-left > .p-inputtext {
padding-left: 2em;
}

.p-input-icon-right > i {
right: 0.5em;
color: #6c757d;
}

.p-input-icon-right > .p-inputtext {
padding-right: 2em;
}

.p-listbox {
background: #ffffff;
color: #495057;
Expand Down
18 changes: 18 additions & 0 deletions public/themes/saga-orange/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,24 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.5em;
color: #6c757d;
}

.p-input-icon-left > .p-inputtext {
padding-left: 2em;
}

.p-input-icon-right > i {
right: 0.5em;
color: #6c757d;
}

.p-input-icon-right > .p-inputtext {
padding-right: 2em;
}

.p-listbox {
background: #ffffff;
color: #495057;
Expand Down
18 changes: 18 additions & 0 deletions public/themes/saga-purple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,24 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.5em;
color: #6c757d;
}

.p-input-icon-left > .p-inputtext {
padding-left: 2em;
}

.p-input-icon-right > i {
right: 0.5em;
color: #6c757d;
}

.p-input-icon-right > .p-inputtext {
padding-right: 2em;
}

.p-listbox {
background: #ffffff;
color: #495057;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/vela-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.5em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 2em;
}

.p-input-icon-right > i {
right: 0.5em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 2em;
}

.p-listbox {
background: #34495E;
color: #ebedef;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/vela-green/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.5em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 2em;
}

.p-input-icon-right > i {
right: 0.5em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 2em;
}

.p-listbox {
background: #34495E;
color: #ebedef;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/vela-orange/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.5em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 2em;
}

.p-input-icon-right > i {
right: 0.5em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 2em;
}

.p-listbox {
background: #34495E;
color: #ebedef;
Expand Down
16 changes: 16 additions & 0 deletions public/themes/vela-purple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,22 @@
transition-duration: 0.2s;
}

.p-input-icon-left > i {
left: 0.5em;
}

.p-input-icon-left > .p-inputtext {
padding-left: 2em;
}

.p-input-icon-right > i {
right: 0.5em;
}

.p-input-icon-right > .p-inputtext {
padding-right: 2em;
}

.p-listbox {
background: #34495E;
color: #ebedef;
Expand Down
12 changes: 12 additions & 0 deletions src/components/inputtext/InputText.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,16 @@
.p-float-label .input:-webkit-autofill ~ label {
top: -20px;
font-size: 12px;
}

.p-input-icon-left,
.p-input-icon-right {
position: relative;
}

.p-input-icon-left > i,
.p-input-icon-right > i {
position: absolute;
top: 50%;
margin-top: -.5em;
}
Loading

0 comments on commit 339fa2f

Please sign in to comment.