<article id="likebtn">
<div class="wpulike wpulike-default " >
<div class="wp_ulike_general_class wp_ulike_is_not_liked">
<a class="wp_ulike_btn wp_ulike_put_text">
<span>いいね</span>
</a>
<span class="count-box">100+</span> </div>
</div>
</article>
#likebtn {
padding: 50px 0;
text-align: center;
}
#likebtn .wp_ulike_general_class {
position: relative;
display: inline-block;
width: 200px;
height: 63px;
margin: 0 auto;
padding-top: 40px;
}
#likebtn .wp_ulike_general_class a,#likebtn .wp_ulike_general_class button {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
align-items: center;
-ms-flex-align: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
width: 200px;
height: 63px;
-webkit-transition: all .2s;
-webkit-transition: background-color .3s;
transition: all .2s;
transition: background-color .3s;
text-decoration: none;
color: #fff;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(27, 198, 229, .85)), to(rgba(7, 100, 141, .85)));
background: linear-gradient(to bottom, rgba(27, 198, 229, .85), rgba(7, 100, 141, .85));
background-color: white;
}
#likebtn .wp_ulike_general_class a:hover,#likebtn .wp_ulike_general_class button:hover {
color: white;
}
#likebtn .wp_ulike_general_class a:before,#likebtn .wp_ulike_general_class a:after,#likebtn .wp_ulike_general_class button:before,#likebtn .wp_ulike_general_class button:after {
content: none;
}
#likebtn .wp_ulike_general_class a:hover,#likebtn .wp_ulike_general_class button:hover {
background-color: #1d4c65;
}
#likebtn .wp_ulike_general_class .wp_ulike_btn {
border-radius: 0;
}
#likebtn .wp_ulike_general_class .wp_ulike_btn.wp_ulike_click_is_disabled {
background: #ccc;
}
#likebtn .wp_ulike_general_class .wp_ulike_btn span {
font-size: 1.25rem;
font-weight: bold;
line-height: 63px;
color: #fff;
}
#likebtn .wp_ulike_general_class .wp_ulike_btn span:after {
font-family: "Font Awesome 5 Free";
font-style: normal;
font-variant: normal;
margin-left: 10px;
content: "\f164";
}
#likebtn .wp_ulike_general_class .count-box {
font-size: 14px;
font-weight: bold;
position: absolute;
top: 0;
left: calc(50% - 60px);
padding: 2px 35px;
color: #2aafea;
border-radius: 10px;
-webkit-box-shadow: 0 0 0 1px #707070 inset;
box-shadow: 0 0 0 1px #707070 inset;
}
#likebtn .wp_ulike_general_class .count-box:after {
position: absolute;
top: initial;
bottom: -5px;
left: 60%;
width: 5px;
height: 5px;
margin: 0;
content: "";
-webkit-transform: rotate(45deg) translatey(-50%);
transform: rotate(45deg) translatey(-50%);
border: 1px solid transparent;
border-right-color: #707070;
border-bottom-color: #707070;
border-left-color: #fff;
background: #fff;
}
#likebtn .wp_ulike_general_class .count-box:before {
font-family: "Font Awesome 5 Free";
font-style: normal;
font-variant: normal;
line-height: 1;
position: relative;
top: initial;
bottom: initial;
left: initial;
display: inline-block;
width: inherit;
height: inherit;
margin: 0;
margin-right: 10px;
content: "\f118";
-webkit-transform: inherit;
transform: inherit;
border: none;
border-right-color: none;
border-bottom-color: none;
border-left-color: none;
background: none;
-webkit-font-smoothing: antialiased;
text-rendering: auto;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.