Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70433

How to define padding of ion-content in Sass

$
0
0

@jperez1111 wrote:

Dear All,

I’m aware that Ionic provides some CSS utilites with attributes to define the padding of the ion-content within the template, e.g. in Page.html you could have following line to apply padding to the top:
<ion-content padding-top>

However, I would like to define the content padding in my Sass sheet, e.g. in Page.html I would have:
<ion-content>
And in my Page.scss I would define:

.content {
   padding-top: 16px;
}

I was assuming that this would give me the same result as using the Ionic CSS utility attribute, however with this approach the padding gets ignored, i.e. the content has no padding at all.

Can somebody explain me why this second approach of defining the content padding in the Sass file does not work?

Thanks in advance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>