Results 1 to 5 of 5

Thread: List of variables to use for CSS

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    4

    List of variables to use for CSS

    I am looking to apply CSS into a page, so I would like a list of objects in which I am able to apply CSS to. Is there a way to bring up a list of available objects in a page to apply CSS to, in terms of legal variables? For example, I want to see what is the equivalent of first-child/nth child.

    Also, is there a list of attributes that are legal for each type of object? Recently I noticed that font-(attribute) attributes don't work.

    Thanks for reading.
    Last edited by ys.chee; 2014-12-24 at 04:08.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    CSS cascades down through the UI hierachy.

    You can apply CSS at the App, Page, Section or Formitem level. Only the UI items that match the CSS selectors will be affected.

    You can also create themes and apply a theme to the complete UI hierachy by selecting the theme from the Form Tools Bar or assigning it to Lianja.theme.

    So, the basis behind CSS is to match UI elements based in CSS selectors.
    Last edited by barrymavin; 2014-12-24 at 04:48.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Have you looked at the CSS theming example App. This shows you how to apply CSS.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Lianja desktop apps are built on top of Qt widgets. You can study the various ways CSS can be described at:

    http://qt-project.org/doc/qt-4.8/sty...-examples.html

    All of the core Lianja UI elements subclass Qt widgets.

    The Lianja UI framework uses CSS selectors to be able to theme your Apps.

    So, you can apply CSS rules based on UI selectors.

    e.g.

    lianja_ui_page
    lianja_ui_section
    lianja_ui_formitem
    lianja_ui_formitem_label
    lianja_ui_formitem_data
    lianja_ui_textbox
    etc
    Last edited by barrymavin; 2014-12-24 at 04:49.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us