CSS MacOS buttons styles / Estilos de botones de MacOS



Este es el codigo HTML incluyendo el CSS en el mismo archivo con los estilos de los botones
(This is the HTML code including the CSS in the same file with the styles of the buttons):


Example.html
<html>
<head>
<style>

/* CSS Styled Dinamic Button: */
    #bndinamic {    
    background-color: #ffffff;
    color: black;
    border-radius: 4px;
    border: 1px solid #b9b9b9;
    }
    #bndinamic:hover {
    color: white;
    border-radius: 4px;
    border: 1px solid #0777ca;
    background: -webkit-linear-gradient(top, #37a5e6 0%,#026def 100%);
    }
    #bndinamic:focus {
    color: black;
    border-radius: 4px;
    border: 1px solid #0777ca;
    background: -webkit-linear-gradient(top, #37a5e6 0%,#026def 100%);
    }

    /* CSS Styled [Normal] Button: */
    #bsn {
    background-color: #ffffff;
    color: black;
    border-radius: 4px;
    border: 1px solid #b9b9b9;
    }

    /* CSS Styled [Hover] Button: */
    #bsh {
color: white;
    border-radius: 4px;
    border: 1px solid #0777ca;
    background: -webkit-linear-gradient(top, #37a5e6 0%,#026def 100%);
    }

    /* CSS Styled [Pressed] Button: */
    #bsp {
border-radius: 4px;
    border: 1px solid #0777ca;
    background: -webkit-linear-gradient(top, #37a5e6 0%,#026def 100%);
    }

    /* CSS Styled Without Gradient Button: */
    #bswg {
    background-color: #2783f2;
    color: white;
    border-radius: 4px;
    border: 1px solid #8cb5de;
    }
</style>

</head>
<body>
<table border="0">
<tr>
<td>Default Button:</td>
<td><button>Button</button></td>
</tr>
<tr>
<td>CSS Styled Dinamic Button:</td>
<td>
<button id="bndinamic">Button</button>
</td>
</tr>
<tr>
<td>CSS Styled [Normal] Button:</td>
<td>
<button id="bsn" >Button</button>
</td>
</tr>
<tr>
<td>CSS Styled [Hover] Button:</td>
<td>
<button id="bsh" >Button</button>
</td>
</tr>
<tr>
<td>CSS Styled [Pressed] Button:</td>
<td>
<button id="bsp" >Button</button>
</td>
</tr>
<tr>
<td>CSS Styled Without Gradient:</td>
<td><button id="bswg" >Button</button>
</td>
</tr>
</table>


</body>
</html>

Comments

Popular posts from this blog

Android/Java: Crear un SplashScreen para nuestra aplicación

Android/Java: Video de fondo en nuestro Login

10% Of what we see on the internet are ads