Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It wold be nice if for the fluid media query there was a YOURTHEME-alpha-default-fluid.css file that would load. I realize that I could put the css in global.css, but there are times when I only need styles loaded for the fluid layout (which I use for mobile almost exclusively), that aren't needed in any other width specific css files.
Comments
Comment #1
ANDiTKO CreditAttribution: ANDiTKO commentedHello,
Enable the Media Queries plugin from the theme settings. Now if you inspect your body element you will see a new class added like
<body class="responsive-layout-fluid">
.Then select your element like this:
Comment #2
mohan_kumar29 CreditAttribution: mohan_kumar29 commentedHi,
Yes enable the Media Queries plugin from the theme settings. Now if you inspect your body element you will see a new class added like
.
Also following is your css look like..
body.responsive-layout-fluid .my-class {
Here place your styles....
{
Comment #3
apaderno