Skip Navigation

[Waiting for user confirmation] CSS not rendered in legacy view

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 1 voice.

Last updated by Minesh 1 day ago.

Assisted by: Minesh.

Author
Posts
#2845499

Hi all,
I have some CSS code in a legacy view template that works perfectly when the page is rendered on PC or mobile/portrait, but is ignored on tablet or mobile/landscape.
The code is the following:


/*Basic settings, work fine on PC*/
.pub{
  border: 1px solid #CED3DA;
  height: 330px;
  margin-bottom:10%;
}

.img-pub{
  width:100%;
  overflow:hidden;
  height: 250px;
}

/*This adjusts the heights on mobile/portrait and works fine*/
@media(max-width:768px){
.pub{height:360px;}
.img-pub{height:300px;}
}

/*This adjusts the heights on tablet and mobile/landscape but is ignored (not exixting on the page console)*/
@media screen and (min-width: 768px) and (max-width: 1024px){
  .img-pub{
  width:100%;
  overflow:hidden;
  height: 500px;
    border:2px solid red;
}
}
/*This creates a gradient background above the image and it works fine on pc and mobile/portrait, but it disappears on tablet or mobile/landscape ! */
.gradiente{
    background-image: linear-gradient( rgba( 142, 135, 135, 0 ) 10%,rgba( 0, 0, 0, 1 ) 90% );
    padding: 0 10px 0 5px;
    min-height: 200px;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
}

Is it a bug ? After all the code is quite simple, I can't explain why some of the selectors are ignored. I have tried to remove some selectors, change order, to no avail.

If it matters, FYI:
- I have aligned Toolset breakpoints to Kadence (which are given, cannot be changed)
- the view is rendered inside a Kadence Row Layout > Column.
Thanks
Regards
Nicola

#2845505

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

In this case - It will be wise to contact Kadence support and check with them how you can inject such different CSS on different Kadence break points.