BUG - Admantium theme font is with serif

Locked
djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

28 Jan 2016, 02:03

I try to install adamantium theme and doing some quick tests by replacing a theme with adamantium I realize that we cannot get the fonts without serif.

I checked the source of showcase and inspected css hierarchy of a simple <label> with firebug and there is no existence of any sans-serif in theme.css.

It is not visible in showcase since everything is wrapped in layout components using classes like:

Code: Select all

.Card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    color: #666f77;
    display: block;
    font-family: "latoregular",sans-serif;
    padding: 30px;
}
How to fix

All current font-family occurences must add sans-serif to it.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

daytona
Posts: 33
Joined: 05 Mar 2015, 09:36

28 Jan 2016, 16:35

Hi, thanks for your interest to our layouts,

We could not understand exactly what the problem is.
Would you please send a screenshot or a descriptive text?
Thanks,

Best regards,
C.A.

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

01 Feb 2016, 12:24

We are waiting for your update, Djmj.

djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

16 Feb 2016, 03:46

If you use original adamantium theme.css without adamantium layout you will get following results (upper part of image).

I needed to replace all font-family: "latoregular"; with font-family: "latoregular",sans-serif; to get the same result as in showcase (lower part of image).

Image
Last edited by djmj on 25 Feb 2016, 01:06, edited 1 time in total.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Feb 2016, 16:56

This is by design, layout of adamantium applies the font to body, theme does it only for PrimeFaces components via ui-widget. You can simple customize this behavior with;

Code: Select all

body {
  font-family: 'latoregular';
}

djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

25 Feb 2016, 01:02

Maybe my english is not good enough to explain the problem. We better leave it as is and i use my modified version of theme.css using

Code: Select all

font-family: 'latoregular' sans-serif;
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

daytona
Posts: 33
Joined: 05 Mar 2015, 09:36

25 Feb 2016, 10:39

djmj wrote:Maybe my english is not good enough to explain the problem. We better leave it as is and i use my modified version of theme.css using

Code: Select all

font-family: 'latoregular' sans-serif;

Hi,

I think I get problem. You have not font files in your project, so that files can not loaded, it looks bad.
Font files located in our original theme packs. You can find fonts in the theme package you purchase.

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

02 Mar 2016, 11:23

Thank you, Daytona ;)

Locked

Return to “Adamantium”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests