1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Plymouth, UK
    Posts
    137
    Answers
    5
    Vote Rating
    -2
    simondavies has a little shameless behaviour in the past

      0  

    Default Answered: whats the best way to add another css page for production build

    Answered: whats the best way to add another css page for production build


    I have an app that i currently over-write/add extra styles with a custom.css file held within the resources/css folder and am linking through the main index page as normal, but when i get to build it will not view it and looking in the app.json at the following:

    Code:
    "css": [
            {
                "path": "resources/css/app.css",
                "update": "delta"
            }
        ],
    how would i then add it to this, i have tried

    Code:
    "css": [
            {
                "path": "resources/css/app.css",
                "path": "resources/css/custom.css",
                "update": "delta"
            }
        ],
    but this just over-writes the app.css etc any ideas??

  2. css is an array so you can add many objects, if you specify the same property in an object of course the last one typed will overwrite any others that came before that

    Code:
    "css": [
        {
            "path": "...",
            "update": "delta"
        },
        {
            "path": "...",
            "update": "delta"
        }
    ]

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Answers
    3357
    Vote Rating
    751
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    css is an array so you can add many objects, if you specify the same property in an object of course the last one typed will overwrite any others that came before that

    Code:
    "css": [
        {
            "path": "...",
            "update": "delta"
        },
        {
            "path": "...",
            "update": "delta"
        }
    ]
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    Plymouth, UK
    Posts
    137
    Answers
    5
    Vote Rating
    -2
    simondavies has a little shameless behaviour in the past

      0  

    Default


    thats where i was going wrong then, thanks any issue i will inform.

    Thanks

  5. #4
    Sencha User evegraphic's Avatar
    Join Date
    Nov 2012
    Location
    France
    Posts
    22
    Answers
    1
    Vote Rating
    -1
    evegraphic is an unknown quantity at this point

      0  

    Default


    Hi,


    I would like to do the same : add a custom css when the device is a tablet but i don't know how doing this.
    I've created a MVC app and i use profiles.


    How can I change the css path in app.json by using profiles ?


    In the end, I would want a tablet.css and a mobile.css called according to the used device.

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar