Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

simple (default) theme errors

  • #10775
    Avatar photo[anonymous]

    not sure how valid these are…

    Unknown property ‘font-smooth’. Declaration dropped.
    Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped.
    Expected color but found ‘gray-2’. Error in parsing value for ‘color’. Declaration dropped.
    Expected color but found ‘gray-2’. Error in parsing value for ‘color’. Declaration dropped.
    Expected color but found ‘gray-2’. Error in parsing value for ‘color’. Declaration dropped.

    #10777
    Avatar photoBob

    What version of Publii and theme are you using?
    When does this error message appear?

    #10780
    Avatar photo[anonymous]

    sorry Bob – i must’ve been awful tired to forget that info

    publii 0.43.1 (build 16393)

    simple 2.8.0.0 – no added css, no plugins

    the errors are in style.css for the SImple theme and can be seen in the browser dev tools console when loading any page or on the w3c site which reports an additional 249 warnings – this is by feeding it style.css directly from /input/themes/simple/assets/css/

    the “font-smooth” and “-moz-osx-font-smoothing” are used to style the html element

    “color:gray-2” is used in .post__meta, .feed__meta and figcaption

    #10781
    Avatar photoBob

    I also use Firefox (developer edition 119.0b9) and I can’t replicate the issue right now. But I believe there is no cause for concern.

    #10782
    Avatar photo[anonymous]

    go to the w3c site and feed it style.css directly from /input/themes/simple/assets/css/

    it reports an additional 249 warnings in addition to the errors

    #10783
    Avatar photoBob

    🙂 Don’t worry about it, it’s quite normal. Here are the common reasons why the W3C CSS Validator might display warnings:

    1. Unknown Properties: If you are using CSS properties that are not part of the official specification, the validator may issue a warning.
    2. Vendor Prefixes: Properties with vendor prefixes (e.g., `-webkit-`, `-moz-`, `-ms-`) can also generate warnings, as they are not part of the official specification.
    3. Deprecated Properties: Using outdated properties that have been superseded by new ones can also trigger warnings.
    4. Incomplete Rules: Missing brackets, semicolons, or other syntactical elements can also result in warnings.
    5. Suboptimal Usage: Sometimes the validator suggests that certain properties can be used more effectively, indicating this with a warning.

    Just ignore it.

    #10784
    Avatar photo[anonymous]

    oh i’m not worried about it, i just think the css could be simplified in my most humble opinion – personally i don’t like using depreciated/unknown properties and i think this can always be worked around using valid css (personally i have zero interest in catering to very old browsers for example)

    given that i’m not a css genius however, i would like to propose an alternate version of Simple (Simpler?) which addresses these issues, but mostly for 2 other reasons; 1) remove the transition animation stuff from the header and hero and 2) re-do the hero section so it shows the whole post thumbnail as it is with no overlay and move the post title above the image

    i totally understand if you don’t wish to tackle this (i’m sure there’s a lot more important items occupying your plate) but i’d prefer someone more experienced than myself handle it

    #10785
    Avatar photoBob

    Concluding this thread, the problem is not CSS, but the validator.
    In terms of errors not warnings, it is indeed related to the color `gray-2` because instead of using `var(–gray-2)`, `color: gray-2` was used. I will fix this in the next release of the Simple theme.

    #10786
    Avatar photoBob

    I have fixed the ‘gray-2’ color issue in Simple version 2.8.1.0, which is available for download now.
    https://marketplace.getpublii.com/themes/simple/

    #10787
    Avatar photo[anonymous]

    the problem is the validator? you do realize the w3c writes the standards i assume

    not sure why you chose to ignore the rest of my post

    #10788
    Avatar photo[anonymous]

    I have fixed …

    thanks -appreciated

    #10789
    Avatar photoBob
    [anonymous] wrote:

    the problem is the validator? you do realize the w3c writes the standards i assume. not sure why you chose to ignore the rest of my post

    Sorry, but I don’t have time to keep repeating why the validator is showing warnings or the font-smooth issue, please research a bit.