By Stephen Walker

Share

The Toggle Element styling leaves a bit to be desired as it applies hover effects to the entire block and not just the header and the panel. This should override that behavior but still takes advantage of the settings, thanks to the use of CSS variables.

/* Toggle Element */
.basic-toggle {
max-width:80ch!important;
}
.basic-toggle .fusion-panel{
margin-block-end: 10px;
}
.basic-toggle  .fusion-panel,.basic-toggle  .fusion-panel:hover{
background-color:unset!important;
}
.basic-toggle  .panel-heading{
background-color:var(--awb-background-color)!important;
}
/* so boxed and unboxed look the same */
.basic-toggle .panel-title a,.basic-toggle .fusion-toggle-icon-wrapper,.basic-toggle .fusion-panel.fusion-toggle-no-divider.fusion-toggle-boxed-mode .panel-title a {
  padding: 12px 25px!important;
}
.basic-toggle  .panel-title a.active {
  color: var(--awb-title-color)!important;
}
.basic-toggle  .fusion-toggle-icon-unboxed .panel-title a.active .fa-fusion-box{
  color: var(--awb-title-color)!important;
}
.basic-toggle  .panel-title a.active:hover,.basic-toggle  .fusion-toggle-icon-unboxed .panel-title a.active:hover .fa-fusion-box {
  color: var(--awb-toggle-hover-accent-color)!important;;
}
.basic-toggle  .panel-heading:hover,.basic-toggle  .panel-heading:focus{
background-color:var(--awb-hover-color)!important;
}
.basic-toggle  .panel-body {
  padding:32px;
}
.basic-toggle  .panel-body :is(p,li,dd,dt){
max-width:80ch;
}
.basic-toggle  .panel-body :is(p,li,dd,dt) a{
text-decoration:underline;
text-underline-position:under;
}
/* boxed look without boxed behavior */
.faux-boxed .fusion-panel {
    border: 1px solid var(--awb-background-color)!important;
}

Example

Nunc excepturi. Neque fames nisi debitis, conubia hendrerit irure taciti ullamcorper, modi? Ducimus fusce euismod tristique ridiculus conubia, ipsa quos netus senectus! Iste habitant pellentesque eu officia quos ut fugiat sapien adipiscing, diam enim blandit consequat illum officia deleniti iure.

Vivamus rutrum cursus arcu hic velit exercitation interdum eveniet hic! Nullam potenti, tortor. Autem. Eius non eius commodo ducimus? Itaque proin molestiae per exercitation curae sapiente ullamcorper blanditiis! Porta amet. Placeat quo, mollis excepteur a maiores euismod sapiente, deserunt sed.

Scelerisque nec mus dolores, possimus quam viverra illum. Inceptos maecenas! Fugit magnam reiciendis porro ornare laoreet? Doloremque proin ratione anim! Anim mattis posuere ullam ipsum quaerat non earum! Irure excepturi! Perferendis quas, harum. Ad enim nulla repellat facilisi netus! Malesuada.

Nunc excepturi. Neque fames nisi debitis, conubia hendrerit irure taciti ullamcorper, modi? Ducimus fusce euismod tristique ridiculus conubia, ipsa quos netus senectus! Iste habitant pellentesque eu officia quos ut fugiat sapien adipiscing, diam enim blandit consequat illum officia deleniti iure.

Person working with their laptop and some color samplesVivamus rutrum cursus arcu hic velit exercitation interdum eveniet hic! Nullam potenti, tortor. Autem. Eius non eius commodo ducimus? Itaque proin molestiae per exercitation curae sapiente ullamcorper blanditiis! Porta amet. Placeat quo, mollis excepteur a maiores euismod sapiente, deserunt sed.

Scelerisque nec mus dolores, possimus quam viverra illum. Inceptos maecenas! Fugit magnam reiciendis porro ornare laoreet? Doloremque proin ratione anim! Anim mattis posuere ullam ipsum quaerat non earum! Irure excepturi! Perferendis quas, harum. Ad enim nulla repellat facilisi netus! Malesuada.

Originally published on Feb. 19, 2023

Skew Pagination Preview
RSS Feed

18 Comments

  1. Mohammed Maaz September 19, 2023 at 2:53 am - Reply

    Hi, you have helped me earlier on one of my requests, Thanks again.

    If you dont mind and only if you have time to spare, I am facing another challenge in avada.

    here in this webiste: https://birla-trimaya-devanahalli.birlaestates.com, there is a photo gallery section where the videos are stacked to each other and on hover it zooms out and play the video automatically. can you please write a code or suggest a way to exactly replica the same for my avada website.

    Many thanks

    • Stephen Walker September 19, 2023 at 8:27 am - Reply

      The example (very interesting) is using the Owl Slider/carousel with some custom CSS and JavaScript. Unfortunately, JavaScript is not one of my strong skills and will be required to trigger the video to stop and start based on the width of the image/video container. I cannot make any guarantees, but I will see if I can figure it out. It will likely be an “all code” solution since the Avada elements are not going to make this easy.

  2. Mohammed Maaz September 19, 2023 at 10:02 am - Reply

    Thankyou for your prompt reply, i see there is lot of time and work need to put to make this work, however instead for videos, can you display images in such design?

    • Stephen Walker September 19, 2023 at 10:53 am - Reply
      • Mohammed Maaz October 11, 2023 at 11:20 am - Reply

        This is for post cards. Can you do this same with regular columns in Avada

        • Stephen Walker October 12, 2023 at 4:51 am - Reply

          That example is columns. I have not tried post cards yet.

          • Mohammed Maaz October 13, 2023 at 7:40 am

            i have tried to implement the same. not getting executed.

          • Stephen Walker October 13, 2023 at 4:22 pm

            I just followed my instructions and was able to reproduce the effect. What isn’t working?

  3. Mohammed Maaz September 22, 2023 at 2:06 am - Reply

    thanks for the assist, also if you find a way to place videos like we discussed, pls keep me updated

  4. Mohammed Maaz October 3, 2023 at 2:36 am - Reply

    Hello there, hope you are doing great, did you if i may ask found a way to implement on loop videos to horizontal accordion? lemme know

    • Stephen Walker October 3, 2023 at 7:05 am - Reply

      I have been unable to find an accordion that would start and stop the video.

  5. Mohammed Maaz October 3, 2023 at 5:45 am - Reply

    https://www.assetzproperty.com/63east/projects.php in this link, there is an implementation of tab secondary inside the primary tab. can you if possible get the exact replica in code written format or using your genius techniques would be helpful

    • Stephen Walker October 3, 2023 at 7:45 am - Reply

      I have been looking at this example and it could be done with Avada (global element shortcodes in a main tab – tabs within tabs), but it would take some planning and a good deal of custom CSS. This example has problems on desktop (jumps to the top of the page) and is terrible on mobile. Avada would put accordions inside the accordion to make it mobile friendly. For ease of maintenance and accessibility, I would not recommend the parent tabs (Towers) but list these down the page with the details in tabs.

  6. Mohammed Maaz October 3, 2023 at 7:32 am - Reply

    sure no problem. i have posted another request in this comment section, lemme know if you can help me

  7. Mohammed Maaz October 6, 2023 at 10:00 am - Reply

    https://www.assetzproperty.com/hereandnow/unit-plans.html

    Hi, Thanks foir the earlier reply. This is another example, In here the trick is to segregate the Title of Tab/Accordion into 3 Splits. is it possible? lemme know

    • Stephen Walker October 6, 2023 at 12:19 pm - Reply

      Not with Avada as there are too many limitation in the existing tabs and toggles elements (they haven’t been updated in a long time). Other builders and themes (Bricks, Generate Press+Generate Blocks, etc.) would make this possible because they allow for nested content with the headings and the panes.

  8. Mohammed Maaz November 6, 2023 at 12:54 am - Reply

    Hi, Hope you are doing well, quick query – can u suggest me a technique to stack my tabs next to each other on mobile version. not carousal. (4 Tabs in single row should be fine with font size of 11 px)

    current scenario is in mobile, first tab appears then the content and then the 2nd tab appears and it follows the same

  9. Mohammed Maaz January 8, 2024 at 1:57 pm - Reply

    Hello again, Hope you are doing well..

    request you to embed a way to add “Load More Button” to dropdown more columns on any page. as avada provide next page pagnition which is not sufficient, as it takes you to second page.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

RELATED Snippets

  • Avada, CSS, JavaScript

    This creates a floating container. More to come.

  • Avada, CSS

    This is a style I recently used on my blog post title bar to have the feature image fill the column without having to use a background image.

  • Avada, CSS

    I have seen some tables of contents around the web that use what appears as a left border, and the border color changes when highlighted. This feature is missing from the current version of Avada, so I created CSS styling to do this. It works best with a single-level list. […]

  • Avada

    The social sharing element has some styles that prevent stacking them in a column. This CSS will resolve this. Just assign the class to each instance.

  • Avada, CSS

    This gives the default RSS feed widget a more polished appearance.

  • Avada, CSS

    Another example of using a skewed background, this time targeting the pagination preview. Additionally, this limits the width of the preview and allows the text to wrap. Lastly, a clip-path is used to give the featured image a skewed appearance.