New Landing How can we help? Cardinal Cardinal filter styling – Possible to replicate Dante portfolio filters?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Cardinal
  • #103145
    FlawlessWeb
    Member
    Post count: 542

    Hey,

    I am wondering if it would be possible to replicate Dantes portfolio filter styling and integrate it with Cardinal?

    I know Cardinal was built on a modified or maybe completely different platform to Dante, so it may not be possible to replicate the number count. But even putting the number count aside, would it be possible to have the same boxed/bordered effect from Dante? (I have played around with the CSS without much luck…)

    See screenshot for comparison of Dante vs Cardinal filter styling.

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #103200
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Will have forward this one to Ed.
    Thanks.

    -Rui

    #103314
    FlawlessWeb
    Member
    Post count: 542

    Thanks,

    A solution involving some combo of css and child theme code would be ideal.

    Don’t want to have to modify core theme files that will be overwritten every time I update Cardinal.

    #103323
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Try adding this to your custom css

    .post-filter-tabs li.selected a {
      display: block;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.1) inset;
    }
    .post-filter-tabs li a {
      border: 1px solid #e4e4e4;
      display: block;
      font-size: 13px;
      line-height: 26px;
      padding: 8px 16px;
    }
    .post-filter-tabs li {
      margin-left: -4px;
    }
    ul.post-filter-tabs li:first-child a, ul.post-filter-tabs li:first-child div {
      border-top-left-radius: 4px;
      border-bottom-left-radius: 4px;
    }
    ul.post-filter-tabs li:last-child a, ul.post-filter-tabs li:last-child div {
      border-top-right-radius: 4px;
      border-bottom-right-radius: 4px;
    }

    – Kyle

    #103330
    FlawlessWeb
    Member
    Post count: 542

    Hey Kyle,

    I really appreciate that – sorted the styling end of things.

    Is there any way now to replicate the number count per filter like there is in Dante?

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #103332
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    I’m not sure if this is easily done, will see if the developer can help you with that

    – Kyle

    #103334
    FlawlessWeb
    Member
    Post count: 542

    No problem, thanks.

    #103470
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Anthony,

    This should get it pretty close, may need a few tweaks but hope that sorts it

    ul.portfolio-filter-tabs li a {
    padding: 8px 16px;
    border: 1px solid #e3e3e3;
    display: block;
    margin-right: -1px;
    text-decoration: none;
    height: auto;
    overflow: hidden;
    }
    ul.portfolio-filter-tabs li.selected a {
    	-moz-box-shadow: inset 0 0 5px rgba(0,0,0,.1);
    	-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,.1);
    	box-shadow: inset 0 0 5px rgba(0,0,0,.1);
    	font-weight: normal;
    }
    
Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register