Media queries aren’t working
-
Hi everyone — I’ve been trying to get my media queries to work and it looks like the Custom Styling is only registering whatever CSS is on the bottom:
@media only screen and (min-width:1200px) { #{$wrap} #{$menu} > li.mega-menu-item > a.mega-menu-link { padding: 0px 22.8px 10px 22.7px!important; font-size:18px!important; } } @media only screen and (min-width:992px) { #{$wrap} #{$menu} > li.mega-menu-item > a.mega-menu-link { padding: 0px 16.5px 10px 17px!important; font-size:14px!important; } }
I also tried this:
@include desktop { #{$wrap} #{$menu} > li.mega-menu-item > a.mega-menu-link { padding: 0px 22.8px 10px 22.7px!important; font-size:18px!important; } } @include mobile { #{$wrap} #{$menu} > li.mega-menu-item > a.mega-menu-link { padding: 0px 16.5px 10px 17px!important; font-size:14px!important; } }
Neither seem to be working. What am I doing wrong?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Media queries aren’t working’ is closed to new replies.