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.

Dev new to Publii – trying to understand CSS

  • #9389
    Avatar photo[anonymous]

    I understand a lot of what is going on in the CSS file main.css – I know it is being post processed to create a final CSS, and that there are lots of variables that allow for lots of flexibility.   Something I have not seen before, and am trying to understand is the square bracket notation in this snippet for the Simple theme:

    [type=text],
    [type=url],
    [type=tel],
    [type=number],
    [type=email],
    [type=search],
    textarea,
    select {  ...

    These might be css features I am not aware of, or something unique to Publii.

    Looking for some enlightenment.

    Thanks

    #9390
    Avatar photoBob

    Nothing unique :), just a few CSS rules responsible for basic styling of inputs if you wanted to place a form on a website.

    #9391
    Avatar photo[anonymous]

    Yeah – now I feel silly.  I did a little searching and saw that this has been a common construct in CSS for a long time.  I have never used it.  Thanks