New Landing How can we help? Cardinal Button Classes

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Cardinal
  • #95012
    icecast
    Member
    Post count: 182

    hi, looking for guidance on creating custom classes for buttons. using these buttons next to each other, but having issue with button widths staying consistent on hover. wondering if i should create custom class for “trash” button, and guidance on how best to create:

    <svg class=”icon-trash-bin”><use xlink:href=”#icon-trash-bin”></use></svg>

    <div class=”btn-group sort_number”>

    <svg class=”icon-sort-numeric-two”><use xlink:href=”#icon-sort-numeric-two”></use></svg>

    </div>

    #95041
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Looks like you have a 2px border on hover, from 1px standard? Just change:

    div.sort_number:hover, div.sort_title:hover, a#check-all:hover, a#check-box:hover, a#move:hover, a#resizer:hover, a#trash:hover {
    background: #111;
    border: 2px solid #1c2226 !important;
    }

    to

    div.sort_number:hover, div.sort_title:hover, a#check-all:hover, a#check-box:hover, a#move:hover, a#resizer:hover, a#trash:hover {
    background: #111;
    border: 1px solid #1c2226 !important;
    }

    – Ed

    #95042
    icecast
    Member
    Post count: 182

    thank you for the suggestion, unfortunately did not work – buttons slide left on hover …

    #95475
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    This isn’t anything that is a standard part of the theme though.. Looks like this is custom css – and something is causing it..

    Try:

    a#check-all, a#check-box, a#move, a#trash, a#liker, a#recorder, a#share {
    display: inline-block;
    }

    – Ed

    #95497
    icecast
    Member
    Post count: 182
    This reply has been marked as private.
    #95868
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    You’d want to use display: inline-block or floats

    – Ed

Viewing 6 posts - 1 through 6 (of 6 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