inputText

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
Allysonlc
Posts: 18
Joined: 07 Jun 2017, 19:52

10 Jul 2017, 16:01

Hello!

I'm a user of Ultima, and I really need some inputText to be bordered as in other themes.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

11 Jul 2017, 12:05

Do you want to use label animation with inputText component that has border?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

11 Jul 2017, 12:11

Please try;

Code: Select all

<style type="text/css">
    body.layout-compact .WithBorder.ui-inputfield {
        border: 1px solid #bdbdbd;
        border-radius: 3px;
        padding: 4px;
    }
    body.layout-compact .WithBorder.ui-inputfield.ui-state-focus {
        border-width: 1px;
        border-color: #3F51B5;
    }
</style>

<p:inputText styleClass="WithBorder"/>

Allysonlc
Posts: 18
Joined: 07 Jun 2017, 19:52

12 Jul 2017, 13:57

Thank you very much!

But can also help me with the same problem with p:calemdar p:autoComplete and selectOneMenu? Please, I need them to stick to the edges too!

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

13 Jul 2017, 12:11

Please try;

Code: Select all

<style type="text/css">
    body.layout-compact .ui-inputfield {
        border: 1px solid #bdbdbd;
        border-radius: 3px;
        padding: 4px;
    }
    body.layout-compact .ui-inputfield.ui-state-focus,
    body.layout-compact .ui-selectonemenu.ui-state-focus {
        border-width: 1px;
        border-color: #3F51B5;
    }
    body.layout-compact .ui-selectonemenu .ui-selectonemenu-trigger.ui-state-focus > .ui-icon{
        color: #3F51B5;
    }
    body.layout-compact .ui-selectonemenu {
        border: 1px solid #bdbdbd;
        border-radius: 3px;
    }
    body.layout-compact .ui-selectonemenu .ui-selectonemenu-label {
        border: none;
    }
    body.layout-compact .ui-selectonemenu .ui-selectonemenu-trigger {
        top: 6px;
    }
    body .ui-fluid .ui-selectonemenu .ui-selectonemenu-trigger {
        margin-right: 10px;
    }
</style>

Allysonlc
Posts: 18
Joined: 07 Jun 2017, 19:52

13 Jul 2017, 14:42

Thank you very much!

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

14 Jul 2017, 08:46

You're welcome!

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests