Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

SASS - @mixin @media - How to adapt sass variables for tablets width?

$
0
0

@ronycohen wrote:

Hello,

I know this doesn't work because I declare variables in a mixin.

But do you know how to make that work ?

$tablet-width: 768px;

@mixin tablet {
  @media (min-width: #{$tablet-width})  {
    @content;
  }
}

@include tablet {
  $bar-height :               70px !default;
  $bar-subheader-height :     100px !default;
  $button-bar-button-height : 70px !default;
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles



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