Skip to Content
0
Former Member
Mar 16, 2016 at 01:56 AM

style.css in manifest.json not working?

1306 Views

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