Skip to Content
author's profile photo
Former Member

style.css in manifest.json not working?

Hi guys,

when i declare the css style in a xml view page as below, it works:

<html:style>

.testCss .sapMITBAll .sapMITBText {

color: #333333;

display: inline-block;

max-height: 3rem;

max-width: 10rem;

overflow: hidden;

text-align: left;

text-overflow: ellipsis;

text-shadow: 0 0.0625rem 0 rgba(255,255,255,0.7);

vertical-align: middle;

white-space: normal;

width: auto;

}

</html:style>

<semantic:DetailPage

id="page" navButtonPress="onNavBack" showNavButton="{device>/system/phone}" title="{i18n>detailTitle}" busy="{detailView>/busy}" busyIndicatorDelay="{detailView>/delay}"

class="testCss ">

However, doing the same in the css/style.css folder, it doesn't work?

css folder (filename: style.css):

.testCss .sapMITBAll .sapMITBText { color: #333333; display: inline-block; max-height: 3rem; max-width: 10rem; overflow: hidden; text-align: left; text-overflow: ellipsis; text-shadow: 0 0.0625rem 0 rgba(255,255,255,0.7); vertical-align: middle; white-space: normal; width: auto; }

manifest.json:

"resources": { "css": [{ "uri": "css/style.css" }] },

Thanks,

Sam

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 16, 2016 at 08:40 AM

    hi sam

    Please can you show your full manifest file?

    I had a similar problem and it was because the hierarchy of the manifest elements wasn't quite right.

    Regards

    Chantele

    Add comment
    10|10000 characters needed characters exceeded