JSFiddle - React, Tailwind, and code Playground
by ken3desu
HTML
<!--
Using Modernizr.js for smartphone.
http://modernizr.com
-->
<div class="general-button">
<div class="button-content">
<span class="button-text">TEXT</span>
</div>
</div>
CSS
@font-face {
font-family: "LigatureSymbols";
src: url("../font/LigatureSymbols-2.11.eot");
src: url("../font/LigatureSymbols-2.11.eot?#iefix") format("embedded-opentype"),
url("../font/LigatureSymbols-2.11.woff") format("woff"),
url("../font/LigatureSymbols-2.11.ttf") format("truetype"),
url("../font/LigatureSymbols-2.11.svg#LigatureSymbols") format("svg");
font-weight: normal;
font-style: normal;
}
.icon-font {
font-family: "LigatureSymbols";
-webkit-text-rendering: optimizeLegibility;
-moz-text-rendering: optimizeLegibility;
-ms-text-rendering: optimizeLegibility;
-o-text-rendering: optimizeLegibility;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-ms-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
font-smoothing: antialiased;
-webkit-font-feature-settings: "liga"1, "dlig"1;
-moz-font-feature-settings: "liga=1, dlig=1";
-ms-font-feature-settings: "liga"1, "dlig"1;
-o-font-feature-settings: "liga"1, "dlig"1;
font-feature-settings: "liga"1, "dlig"1;
}
/*------------------------------------------
// User style start
// change
----------------------------------------- */
.general-button {
border-radius: 5px;
background-color: #4385bf;
}
.general-button:before {
border-radius: 5px;
border-bottom: 0px solid rgba(46,93,135, 0);
background-color: rgba(46,93,135, 0);
}
.button-content {
border-radius: 0px 0px 5px 5px;
padding: 6px 7.5px;
box-shadow: 0px 0px 0px 0px rgba(46,93,135, 0);
color: #f8f8f8;
}
.button-text {
padding: 0px 7.5px;
line-height: 1.5em;
font-size: 18px;
}
.icon-font {
padding: 0px 7.5px;
font-size: 27px;
}
/*----------------- at hover -----------------*/
.general-button:hover {
top: -3px;
transition: all 30ms;
-moz-transition: all 30ms;
-webkit-transition: all 30ms;
-o-transition: all 30ms;
background-color: #4e8cc2;
}
.general-button:hover:before ...