How do I override default PrimeFaces CSS with custom styles?

后端 未结 4 1101
余生分开走
余生分开走 2020-11-21 05:21

I\'ve created my own theme as a separate Maven project, and it is loaded correctly.

Now I want to change the size of an component. For example, a

4条回答
  •  无人共我
    2020-11-21 05:39

    you can create a new css file for example cssOverrides.css

    and place all the overrides you want inside it, that way upgrading the primefaces version wont affect you ,

    and in your h:head add something like that

    
    

    if it wont work try adding it to the h:body

    in order to check if its working try this simple example inside the css file

    .ui-widget {
       font-size: 90% !important;
    }
    

    this will reduce the size of all primefaces components /text

提交回复
热议问题