Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Support: Creating & Extending

Existing and new plugins/components and themes.

Make the ”like” button an actual button rather than a link (4 posts)

Started 6 months, 3 weeks ago by: flutence

  • Profile picture of flutence flutence said 6 months, 3 weeks ago:

    I just worked out a way to make my “like” buttons the same as the other buttons- comment, favorite and delete- rather than have them appearing as links AND avoid the “like” messages getting in the way of other buttons after clicking “see who else likes this”. Tweaked the CSS and stuck it in my child theme… veeeery happy :-D

    Feel free to point out mistakes and improvement. CSS is for the bp-default theme:

    .like {
    float:right;
    background: -moz-linear-gradient(center top , #FFFFFF 0%, #EDEDED 100%) repeat scroll 0 0 transparent;
    border: 1px solid #CCCCCC;
    border-radius: 3px 3px 3px 3px;
    color: #777777;
    cursor: pointer;
    font: 11px/20px Arial,Tahoma,Verdana,sans-serif;
    outline: medium none;
    padding: 4px 8px;
    margin-right: 5px;
    text-align: center;
    color: #777777;
    text-decoration: none;
    }

    .like:hover {
    float:right;
    background: -moz-linear-gradient(center top , #FFFFFF 0%, #E0E0E0 100%) repeat scroll 0 0 transparent;
    border: 1px solid #BBBBBB;
    border-radius: 3px 3px 3px 3px;
    color: #555555;
    cursor: pointer;
    font: 11px/20px Arial,Tahoma,Verdana,sans-serif;
    outline: medium none;
    padding: 4px 8px;
    margin-right: 5px;
    text-align: center;
    color: #777777;
    text-decoration: none;
    }

    .unlike {
    float:right;
    background: -moz-linear-gradient(center top , #FFFFFF 0%, #EDEDED 100%) repeat scroll 0 0 transparent;
    border: 1px solid #CCCCCC;
    border-radius: 3px 3px 3px 3px;
    color: #777777;
    cursor: pointer;
    font: 11px/20px Arial,Tahoma,Verdana,sans-serif;
    outline: medium none;
    padding: 4px 8px;
    margin-right: 5px;
    text-align: center;
    color: #777777;
    text-decoration: none;
    }

    .unlike:hover {
    float:right;
    background: -moz-linear-gradient(center top , #FFFFFF 0%, #E0E0E0 100%) repeat scroll 0 0 transparent;
    border: 1px solid #BBBBBB;
    border-radius: 3px 3px 3px 3px;
    color: #555555;
    cursor: pointer;
    font: 11px/20px Arial,Tahoma,Verdana,sans-serif;
    outline: medium none;
    padding: 4px 8px;
    margin-right: 5px;
    text-align: center;
    color: #777777;
    text-decoration: none;
    }

    .view-likes {
    float:right;
    background: -moz-linear-gradient(center top , #FFFFFF 0%, #EDEDED 100%) repeat scroll 0 0 transparent;
    border: 1px solid #CCCCCC;
    border-radius: 3px 3px 3px 3px;
    color: #777777;
    cursor: pointer;
    font: 11px/20px Arial,Tahoma,Verdana,sans-serif;
    outline: medium none;
    padding: 4px 8px;
    margin-right: 5px;
    text-align: center;
    color: #777777;
    text-decoration: none;
    }

    .view-likes:hover {
    float:right;
    background: -moz-linear-gradient(center top , #FFFFFF 0%, #E0E0E0 100%) repeat scroll 0 0 transparent;
    border: 1px solid #BBBBBB;
    border-radius: 3px 3px 3px 3px;
    color: #555555;
    cursor: pointer;
    font: 11px/20px Arial,Tahoma,Verdana,sans-serif;
    outline: medium none;
    padding: 4px 8px;
    margin-right: 5px;
    text-align: center;
    color: #777777;
    text-decoration: none;
    }

  • Profile picture of xsn0w xsn0w said 5 months, 2 weeks ago:

    Love your CSS, thanks so much for this.

  • Profile picture of abyss abysshorror said 5 months, 2 weeks ago:

    Cool, added to my child’s theme style.css :)

    Thanks !

  • Profile picture of wooosodadis wooosodadis said 4 months, 2 weeks ago:

    Failure does not mean I don’t have it; It does mean I have something to do in a different way!