Results 1 to 2 of 2

Thread: When to use CSS vs. Profiles and Device Info

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Plymouth, MA
    Vote Rating

    Default Answered: When to use CSS vs. Profiles and Device Info


    I am looking for guidance on what types of things I would consider using CSS/SASS/Compass for versus what types of things I would consider using Profiles and specific device information for.

    To further elaborate on my question I will provide a simplistic example that I think will represent what I am trying to ask about.

    Let's say I am considering a tablet layout (ipad/galaxy) versus a handheld layout(iphone/etc). I will refer to ipad vs iphone just from now on just for ease of writing. On the ipad I may have a series of actions, potentially laid out as a selection list or toolbar oriented vertically on the left side of the screen with more content on the right side. On the iphone I may decide to make that list of actions into a toolbar with no text, just icons and put it towards the bottom of the screen.

    Alternatively, on the ipad the action list and content that can be acted upon may co-exist on the same screen, but with the iphone I may choose to have on screen which shows me the actions and another which shows the content.

    I've poked around and played with some stuff. I think I have answered my own question but would like to run it through here to make sure I'm off on the right path.

    It seems that if I want to do something as advanced as taking a selection list which may have an icon and text oriented vertically on the ipad and turn it into a button toolbar containing only icons which are oriented horizontally on the iphone that I should plan to use Profiles based on which devices I am on.

    However, if I was doing something less complicated, such as changing the size of the icons, but leaving the rest the same I would consider using CSS/SASS instead.

    I guess my uncertainty probably comes from my incomplete understanding of the true power of CSS/SASS/Compass, so please pardon my ignorance. It seems that if I truly understood the complete abilities of the CSS/SASS/Compass combination then I would probably be certain about the answer to my question.

    EDIT: I guess one final thing I would add is this... Even if the answer might be both, or it depends, I would welcome any comments on best practices around making this decision.

  2. The different layout will be dealt with different UI classes and different profiles.

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    The different layout will be dealt with different UI classes and different profiles.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts